summaryrefslogtreecommitdiff
path: root/openssl-freefilesync/openssl-1.1.1-version-add-engines.patch
blob: 3c3f58e5f6b8ad84e322338ef2c3f2c79ce59197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -up openssl-1.1.1-pre8/apps/version.c.version-add-engines openssl-1.1.1-pre8/apps/version.c
--- openssl-1.1.1-pre8/apps/version.c.version-add-engines	2018-06-20 16:48:09.000000000 +0200
+++ openssl-1.1.1-pre8/apps/version.c	2018-07-16 18:00:40.608624346 +0200
@@ -64,7 +64,7 @@ int version_main(int argc, char **argv)
 {
     int ret = 1, dirty = 0, seed = 0;
     int cflags = 0, version = 0, date = 0, options = 0, platform = 0, dir = 0;
-    int engdir = 0;
+    int engdir = 0, engines = 0;
     char *prog;
     OPTION_CHOICE o;
 
@@ -106,7 +106,7 @@ opthelp:
             break;
         case OPT_A:
             seed = options = cflags = version = date = platform = dir = engdir
-                = 1;
+                = engines = 1;
             break;
         }
     }
@@ -188,6 +188,16 @@ opthelp:
 #endif
         printf("\n");
     }
+    if (engines) {
+        ENGINE *e;
+        printf("engines:  ");
+        e = ENGINE_get_first();
+        while (e) {
+            printf("%s ", ENGINE_get_id(e));
+            e = ENGINE_get_next(e);
+        }
+        printf("\n");
+    }
     ret = 0;
  end:
     return ret;
bgstack15