From d9f073575fdb07b486cd1b38974cd177687ccc1e Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Fri, 27 Aug 2021 15:33:18 +0200 Subject: APPS: Improve diagnostics on missing/extra args and unknown cipher/digest Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/16450) --- apps/fipsinstall.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/fipsinstall.c') diff --git a/apps/fipsinstall.c b/apps/fipsinstall.c index 363631112e..5af007083a 100644 --- a/apps/fipsinstall.c +++ b/apps/fipsinstall.c @@ -382,9 +382,12 @@ opthelp: } /* No extra arguments. */ - argc = opt_num_rest(); - if (argc != 0 || (verify && in_fname == NULL)) + if (!opt_check_rest_arg(NULL)) goto opthelp; + if (verify && in_fname == NULL) { + BIO_printf(bio_err, "Missing -in option for -verify\n"); + goto opthelp; + } if (parent_config != NULL) { /* Test that a parent config can load the module */ -- cgit v1.2.3-70-g09d2