Blame SOURCES/openssl-1.1.1-version-add-engines.patch

3a273b
diff -up openssl-1.1.1-pre8/apps/version.c.version-add-engines openssl-1.1.1-pre8/apps/version.c
3a273b
--- openssl-1.1.1-pre8/apps/version.c.version-add-engines	2018-06-20 16:48:09.000000000 +0200
3a273b
+++ openssl-1.1.1-pre8/apps/version.c	2018-07-16 18:00:40.608624346 +0200
3a273b
@@ -64,7 +64,7 @@ int version_main(int argc, char **argv)
3a273b
 {
3a273b
     int ret = 1, dirty = 0, seed = 0;
3a273b
     int cflags = 0, version = 0, date = 0, options = 0, platform = 0, dir = 0;
3a273b
-    int engdir = 0;
3a273b
+    int engdir = 0, engines = 0;
3a273b
     char *prog;
3a273b
     OPTION_CHOICE o;
3a273b
 
3a273b
@@ -106,7 +106,7 @@ opthelp:
3a273b
             break;
3a273b
         case OPT_A:
3a273b
             seed = options = cflags = version = date = platform = dir = engdir
3a273b
-                = 1;
3a273b
+                = engines = 1;
3a273b
             break;
3a273b
         }
3a273b
     }
3a273b
@@ -188,6 +188,16 @@ opthelp:
3a273b
 #endif
3a273b
         printf("\n");
3a273b
     }
3a273b
+    if (engines) {
3a273b
+        ENGINE *e;
3a273b
+        printf("engines:  ");
3a273b
+        e = ENGINE_get_first();
3a273b
+        while (e) {
3a273b
+            printf("%s ", ENGINE_get_id(e));
3a273b
+            e = ENGINE_get_next(e);
3a273b
+        }
3a273b
+        printf("\n");
3a273b
+    }
3a273b
     ret = 0;
3a273b
  end:
3a273b
     return ret;