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

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