Allow any supported cipher to be used with smime -encrypt.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 25 May 2006 16:53:52 +0000 (16:53 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 25 May 2006 16:53:52 +0000 (16:53 +0000)
apps/smime.c

index 8d356b5..c5453ea 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++;
                }