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