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

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