mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
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)
This commit is contained in:
parent
fa8ff9e4e8
commit
a89835f7e0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -364,7 +364,7 @@ int pkcs12_main(int argc, char **argv)
|
||||
goto end;
|
||||
|
||||
if (ciphername != NULL) {
|
||||
if (!opt_cipher(ciphername, &enc))
|
||||
if (!opt_cipher_any(ciphername, &enc))
|
||||
goto opthelp;
|
||||
}
|
||||
if (export_pkcs12) {
|
||||
|
@ -367,7 +367,7 @@ int smime_main(int argc, char **argv)
|
||||
goto opthelp;
|
||||
}
|
||||
if (ciphername != NULL) {
|
||||
if (!opt_cipher(ciphername, &cipher))
|
||||
if (!opt_cipher_any(ciphername, &cipher))
|
||||
goto opthelp;
|
||||
}
|
||||
if (!(operation & SMIME_SIGNERS) && (skkeys != NULL || sksigners != NULL)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user