projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check non-option arguments
[openssl.git]
/
apps
/
kdf.c
diff --git
a/apps/kdf.c
b/apps/kdf.c
index ba14cfdc765283bf6c56a25c054f4348a0bbfe23..4bbb88a5aed2afa1ac5adbcffb8d6c434ade33b5 100644
(file)
--- a/
apps/kdf.c
+++ b/
apps/kdf.c
@@
-89,13
+89,12
@@
opthelp:
break;
}
}
break;
}
}
+
+ /* One argument, the KDF name. */
argc = opt_num_rest();
argv = opt_rest();
argc = opt_num_rest();
argv = opt_rest();
-
- if (argc != 1) {
- BIO_printf(bio_err, "Invalid number of extra arguments\n");
+ if (argc != 1)
goto opthelp;
goto opthelp;
- }
if ((kdf = EVP_KDF_fetch(NULL, argv[0], NULL)) == NULL) {
BIO_printf(bio_err, "Invalid KDF name %s\n", argv[0]);
if ((kdf = EVP_KDF_fetch(NULL, argv[0], NULL)) == NULL) {
BIO_printf(bio_err, "Invalid KDF name %s\n", argv[0]);