summaryrefslogtreecommitdiffstats
path: root/apps/x509.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/x509.c
parent870871e5df4f47611c38e81d3f50e38cbf362082 (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/x509.c')
-rw-r--r--apps/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c
index 188bc17a09..29dc74ca9e 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -302,6 +302,7 @@ int x509_main(int argc, char **argv)
goto err;
X509_STORE_set_verify_cb(ctx, callb);
+ opt_set_unknown_name("digest");
prog = opt_init(argc, argv, x509_options);
while ((o = opt_next()) != OPT_EOF) {
switch (o) {
@@ -592,7 +593,6 @@ int x509_main(int argc, char **argv)
break;
}
}
-
/* No extra arguments. */
if (!opt_check_rest_arg(NULL))
goto opthelp;