mirror of
https://abf.rosa.ru/djam/openssl.git
synced 2025-02-23 16:22:50 +00:00
47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
![]() |
diff -urN openssl-1.0.1m/apps/version.c openssl-1.0.1m-patched/apps/version.c
|
||
|
--- openssl-1.0.1m/apps/version.c 2015-03-19 23:19:00.000000000 +1000
|
||
|
+++ openssl-1.0.1m-patched/apps/version.c 2015-04-05 22:41:48.501135895 +1000
|
||
|
@@ -131,6 +131,7 @@
|
||
|
#ifndef OPENSSL_NO_BF
|
||
|
# include <openssl/blowfish.h>
|
||
|
#endif
|
||
|
+#include <openssl/engine.h>
|
||
|
|
||
|
#undef PROG
|
||
|
#define PROG version_main
|
||
|
@@ -140,7 +141,7 @@
|
||
|
int MAIN(int argc, char **argv)
|
||
|
{
|
||
|
int i, ret = 0;
|
||
|
- int cflags = 0, version = 0, date = 0, options = 0, platform = 0, dir = 0;
|
||
|
+ int cflags = 0, version = 0, date = 0, options = 0, platform = 0, dir = 0, engines = 0;
|
||
|
|
||
|
apps_startup();
|
||
|
|
||
|
@@ -164,7 +165,7 @@
|
||
|
else if (strcmp(argv[i], "-d") == 0)
|
||
|
dir = 1;
|
||
|
else if (strcmp(argv[i], "-a") == 0)
|
||
|
- date = version = cflags = options = platform = dir = 1;
|
||
|
+ date = version = cflags = options = platform = dir = engines = 1;
|
||
|
else {
|
||
|
BIO_printf(bio_err, "usage:version -[avbofpd]\n");
|
||
|
ret = 1;
|
||
|
@@ -208,6 +209,16 @@
|
||
|
printf("%s\n", SSLeay_version(SSLEAY_CFLAGS));
|
||
|
if (dir)
|
||
|
printf("%s\n", SSLeay_version(SSLEAY_DIR));
|
||
|
+ 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");
|
||
|
+ }
|
||
|
end:
|
||
|
apps_shutdown();
|
||
|
OPENSSL_EXIT(ret);
|