summaryrefslogtreecommitdiff
path: root/apps/pkcs12.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-08-24 12:03:12 +0200
committerDr. David von Oheimb <dev@ddvo.net>2022-01-11 12:45:33 +0100
commit2c2724476ef50b8926b033f009bdfc85ac3f1816 (patch)
tree063c001d6a1f66afd83a8ce91df68bc7959901b4 /apps/pkcs12.c
parent870871e5df4f47611c38e81d3f50e38cbf362082 (diff)
downloadopenssl-new-2c2724476ef50b8926b033f009bdfc85ac3f1816.tar.gz
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/pkcs12.c')
-rw-r--r--apps/pkcs12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 08af7bf3d2..754994e6a9 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -182,6 +182,7 @@ int pkcs12_main(int argc, char **argv)
EVP_CIPHER *enc = (EVP_CIPHER *)default_enc;
OPTION_CHOICE o;
+ opt_set_unknown_name("cipher");
prog = opt_init(argc, argv, pkcs12_options);
while ((o = opt_next()) != OPT_EOF) {
switch (o) {