Blame SOURCES/openssl-1.1.1-version-add-engines.patch
|
|
0bf02d |
diff -up openssl-1.1.1-pre8/apps/version.c.version-add-engines openssl-1.1.1-pre8/apps/version.c
|
|
|
0bf02d |
--- openssl-1.1.1-pre8/apps/version.c.version-add-engines 2018-06-20 16:48:09.000000000 +0200
|
|
|
0bf02d |
+++ openssl-1.1.1-pre8/apps/version.c 2018-07-16 18:00:40.608624346 +0200
|
|
|
0bf02d |
@@ -64,7 +64,7 @@ int version_main(int argc, char **argv)
|
|
|
0bf02d |
{
|
|
|
0bf02d |
int ret = 1, dirty = 0, seed = 0;
|
|
|
0bf02d |
int cflags = 0, version = 0, date = 0, options = 0, platform = 0, dir = 0;
|
|
|
0bf02d |
- int engdir = 0;
|
|
|
0bf02d |
+ int engdir = 0, engines = 0;
|
|
|
0bf02d |
char *prog;
|
|
|
0bf02d |
OPTION_CHOICE o;
|
|
|
0bf02d |
|
|
|
0bf02d |
@@ -106,7 +106,7 @@ opthelp:
|
|
|
0bf02d |
break;
|
|
|
0bf02d |
case OPT_A:
|
|
|
0bf02d |
seed = options = cflags = version = date = platform = dir = engdir
|
|
|
0bf02d |
- = 1;
|
|
|
0bf02d |
+ = engines = 1;
|
|
|
0bf02d |
break;
|
|
|
0bf02d |
}
|
|
|
0bf02d |
}
|
|
|
0bf02d |
@@ -188,6 +188,16 @@ opthelp:
|
|
|
0bf02d |
#endif
|
|
|
0bf02d |
printf("\n");
|
|
|
0bf02d |
}
|
|
|
0bf02d |
+ if (engines) {
|
|
|
0bf02d |
+ ENGINE *e;
|
|
|
0bf02d |
+ printf("engines: ");
|
|
|
0bf02d |
+ e = ENGINE_get_first();
|
|
|
0bf02d |
+ while (e) {
|
|
|
0bf02d |
+ printf("%s ", ENGINE_get_id(e));
|
|
|
0bf02d |
+ e = ENGINE_get_next(e);
|
|
|
0bf02d |
+ }
|
|
|
0bf02d |
+ printf("\n");
|
|
|
0bf02d |
+ }
|
|
|
0bf02d |
ret = 0;
|
|
|
0bf02d |
end:
|
|
|
0bf02d |
return ret;
|