diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-08-24 12:03:12 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2022-01-11 12:45:33 +0100 |
commit | 2c2724476ef50b8926b033f009bdfc85ac3f1816 (patch) | |
tree | 063c001d6a1f66afd83a8ce91df68bc7959901b4 /apps/storeutl.c | |
parent | 870871e5df4f47611c38e81d3f50e38cbf362082 (diff) |
APPS: Add check for multiple 'unknown' options
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/16416)
Diffstat (limited to 'apps/storeutl.c')
-rw-r--r-- | apps/storeutl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/storeutl.c b/apps/storeutl.c index 8d1ce3cea3..65444fc53e 100644 --- a/apps/storeutl.c +++ b/apps/storeutl.c @@ -74,7 +74,7 @@ int storeutl_main(int argc, char *argv[]) BIO *out = NULL; ENGINE *e = NULL; OPTION_CHOICE o; - char *prog = opt_init(argc, argv, storeutl_options); + char *prog; PW_CB_DATA pw_cb_data; int expected = 0; int criterion = 0; @@ -87,6 +87,8 @@ int storeutl_main(int argc, char *argv[]) EVP_MD *digest = NULL; OSSL_LIB_CTX *libctx = app_get0_libctx(); + opt_set_unknown_name("digest"); + prog = opt_init(argc, argv, storeutl_options); while ((o = opt_next()) != OPT_EOF) { switch (o) { case OPT_EOF: |