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