Blame SOURCES/openssl-1.0.2a-version-add-engines.patch

cfec1a
diff -up openssl-1.0.2a/apps/version.c.version-add-engines openssl-1.0.2a/apps/version.c
cfec1a
--- openssl-1.0.2a/apps/version.c.version-add-engines	2015-04-09 18:16:42.345756005 +0200
cfec1a
+++ openssl-1.0.2a/apps/version.c	2015-04-09 18:16:36.573622667 +0200
cfec1a
@@ -131,6 +131,7 @@
cfec1a
 #ifndef OPENSSL_NO_BF
cfec1a
 # include <openssl/blowfish.h>
cfec1a
 #endif
cfec1a
+#include <openssl/engine.h>
cfec1a
 
cfec1a
 #undef PROG
cfec1a
 #define PROG    version_main
cfec1a
@@ -140,7 +141,8 @@ int MAIN(int, char **);
cfec1a
 int MAIN(int argc, char **argv)
cfec1a
 {
cfec1a
     int i, ret = 0;
cfec1a
-    int cflags = 0, version = 0, date = 0, options = 0, platform = 0, dir = 0;
cfec1a
+    int cflags = 0, version = 0, date = 0, options = 0, platform = 0, dir =
cfec1a
+        0, engines = 0;
cfec1a
 
cfec1a
     apps_startup();
cfec1a
 
cfec1a
@@ -164,7 +166,7 @@ int MAIN(int argc, char **argv)
cfec1a
         else if (strcmp(argv[i], "-d") == 0)
cfec1a
             dir = 1;
cfec1a
         else if (strcmp(argv[i], "-a") == 0)
cfec1a
-            date = version = cflags = options = platform = dir = 1;
cfec1a
+            date = version = cflags = options = platform = dir = engines = 1;
cfec1a
         else {
cfec1a
             BIO_printf(bio_err, "usage:version -[avbofpd]\n");
cfec1a
             ret = 1;
cfec1a
@@ -208,6 +210,16 @@ int MAIN(int argc, char **argv)
cfec1a
         printf("%s\n", SSLeay_version(SSLEAY_CFLAGS));
cfec1a
     if (dir)
cfec1a
         printf("%s\n", SSLeay_version(SSLEAY_DIR));
cfec1a
+    if (engines) {
cfec1a
+        ENGINE *e;
cfec1a
+        printf("engines:  ");
cfec1a
+        e = ENGINE_get_first();
cfec1a
+        while (e) {
cfec1a
+            printf("%s ", ENGINE_get_id(e));
cfec1a
+            e = ENGINE_get_next(e);
cfec1a
+        }
cfec1a
+        printf("\n");
cfec1a
+    }
cfec1a
  end:
cfec1a
     apps_shutdown();
cfec1a
     OPENSSL_EXIT(ret);