summaryrefslogtreecommitdiffstats
path: root/apps/info.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-08-24 12:40:10 +0200
committerRichard Levitte <levitte@openssl.org>2019-08-27 18:44:36 +0200
commit096978f09908ba0f679ff905b0db4861a57eb1c8 (patch)
tree68410e1446437b1a891a6036aa308e497459d479 /apps/info.c
parentb5a276884b8e945815732845540af3c8143e8457 (diff)
OPENSSL_info(): add the item OPENSSL_INFO_SEED_SOURCE and use it
'openssl version -r' prints the seed source based on compiler macros. This does not necessarily reflect the library's idea of what seed sources to use, so we reimplement the list of seed sources as a OPENSSL_info() item and display that instead. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9689)
Diffstat (limited to 'apps/info.c')
-rw-r--r--apps/info.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/info.c b/apps/info.c
index a2c359e0f8..d67ed87df3 100644
--- a/apps/info.c
+++ b/apps/info.c
@@ -14,7 +14,7 @@
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
OPT_CONFIGDIR, OPT_ENGINESDIR, OPT_MODULESDIR, OPT_DSOEXT, OPT_DIRNAMESEP,
- OPT_LISTSEP
+ OPT_LISTSEP, OPT_SEEDS
} OPTION_CHOICE;
const OPTIONS info_options[] = {
@@ -30,6 +30,7 @@ const OPTIONS info_options[] = {
{"dsoext", OPT_DSOEXT, '-', "Configured extension for modules"},
{"dirnamesep", OPT_DIRNAMESEP, '-', "Directory-filename separator"},
{"listsep", OPT_LISTSEP, '-', "List separator character"},
+ {"seeds", OPT_SEEDS, '-', "Seed sources"},
{NULL}
};
@@ -74,6 +75,10 @@ opthelp:
type = OPENSSL_INFO_LIST_SEPARATOR;
dirty++;
break;
+ case OPT_SEEDS:
+ type = OPENSSL_INFO_SEED_SOURCE;
+ dirty++;
+ break;
}
}
if (opt_num_rest() != 0) {