summaryrefslogtreecommitdiffstats
path: root/apps/cms.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-06-15 14:07:25 +1000
committerPauli <pauli@openssl.org>2021-06-16 18:32:30 +1000
commita89835f7e0e4f8155f658af486b93956feaae61d (patch)
tree296732d3025684ced7d5c64d817c0aed6f2c0ea8 /apps/cms.c
parentfa8ff9e4e8e0937eb04bf16d0159c3aedbd33547 (diff)
apps: use get_cipher_any() instead of get_cipher() for commands that support these ciphers/modes
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15747)
Diffstat (limited to 'apps/cms.c')
-rw-r--r--apps/cms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/cms.c b/apps/cms.c
index 81112c5a38..58ce54e454 100644
--- a/apps/cms.c
+++ b/apps/cms.c
@@ -725,11 +725,11 @@ int cms_main(int argc, char **argv)
goto end;
}
if (ciphername != NULL) {
- if (!opt_cipher(ciphername, &cipher))
+ if (!opt_cipher_any(ciphername, &cipher))
goto end;
}
if (wrapname != NULL) {
- if (!opt_cipher(wrapname, &wrap_cipher))
+ if (!opt_cipher_any(wrapname, &wrap_cipher))
goto end;
}