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

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