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

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