diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-08-27 15:33:18 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-12-07 15:26:40 +0100 |
commit | d9f073575fdb07b486cd1b38974cd177687ccc1e (patch) | |
tree | d0e8bf2bb5f98e59ae5fb06a07f4115ab5468516 /apps/cms.c | |
parent | Fix documentation for tlsext_ticket_key (diff) | |
download | openssl-d9f073575fdb07b486cd1b38974cd177687ccc1e.tar.xz openssl-d9f073575fdb07b486cd1b38974cd177687ccc1e.zip |
APPS: Improve diagnostics on missing/extra args and unknown cipher/digest
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16450)
Diffstat (limited to 'apps/cms.c')
-rw-r--r-- | apps/cms.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/cms.c b/apps/cms.c index 76c7896719..18671fdc30 100644 --- a/apps/cms.c +++ b/apps/cms.c @@ -697,10 +697,8 @@ int cms_main(int argc, char **argv) if (!opt_md(digestname, &sign_md)) goto end; } - if (ciphername != NULL) { - if (!opt_cipher_any(ciphername, &cipher)) - goto end; - } + if (!opt_cipher_any(ciphername, &cipher)) + goto end; if (wrapname != NULL) { if (!opt_cipher_any(wrapname, &wrap_cipher)) goto end; |