From: Dr. Stephen Henson Date: Thu, 25 May 2006 16:53:52 +0000 (+0000) Subject: Allow any supported cipher to be used with smime -encrypt. X-Git-Tag: OpenSSL_0_9_8k^2~1296 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=c27309edcb2fba1fed691962d6e8f551f0dff31b Allow any supported cipher to be used with smime -encrypt. --- diff --git a/apps/smime.c b/apps/smime.c index 8d356b5b21..c5453eafe2 100644 --- a/apps/smime.c +++ b/apps/smime.c @@ -348,7 +348,7 @@ int MAIN(int argc, char **argv) } else if (args_verify(&args, NULL, &badarg, bio_err, &vpm)) continue; - else + else if ((cipher = EVP_get_cipherbyname(*args + 1)) == NULL) badarg = 1; args++; }