Change default cipher in smime app to des3.

PR#3357
(cherry picked from commit ca3ffd9670f2b589bf8cc04923f953e06d6fbc58)
This commit is contained in:
Dr. Stephen Henson 2014-05-21 10:39:11 +01:00
parent 5cd1a6fc3e
commit cd302feb5d
2 changed files with 3 additions and 3 deletions

View File

@ -541,8 +541,8 @@ int MAIN(int argc, char **argv)
{ {
if (!cipher) if (!cipher)
{ {
#ifndef OPENSSL_NO_RC2 #ifndef OPENSSL_NO_DES
cipher = EVP_rc2_40_cbc(); cipher = EVP_des_ede3_cbc();
#else #else
BIO_printf(bio_err, "No cipher selected\n"); BIO_printf(bio_err, "No cipher selected\n");
goto end; goto end;

View File

@ -159,7 +159,7 @@ EVP_get_cipherbyname() function) can also be used preceded by a dash, for
example B<-aes_128_cbc>. See L<B<enc>|enc(1)> for list of ciphers example B<-aes_128_cbc>. See L<B<enc>|enc(1)> for list of ciphers
supported by your version of OpenSSL. supported by your version of OpenSSL.
If not specified 40 bit RC2 is used. Only used with B<-encrypt>. If not specified triple DES is used. Only used with B<-encrypt>.
=item B<-nointern> =item B<-nointern>