Allow any supported cipher to be used with smime -encrypt.
[openssl.git] / apps / smime.c
index 8d356b5b21b200041bad0ac9415844ee7af9e54e..c5453eafe2f938405f67bf43a48bf46ebd037606 100644 (file)
@@ -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++;
                }