diff options
Diffstat (limited to 'src/lib/libssl/ssl_algs.c')
-rw-r--r-- | src/lib/libssl/ssl_algs.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/lib/libssl/ssl_algs.c b/src/lib/libssl/ssl_algs.c index 0967b2dfe4..4717c0e6e1 100644 --- a/src/lib/libssl/ssl_algs.c +++ b/src/lib/libssl/ssl_algs.c | |||
@@ -76,16 +76,13 @@ int SSL_library_init(void) | |||
76 | #endif | 76 | #endif |
77 | #ifndef OPENSSL_NO_RC2 | 77 | #ifndef OPENSSL_NO_RC2 |
78 | EVP_add_cipher(EVP_rc2_cbc()); | 78 | EVP_add_cipher(EVP_rc2_cbc()); |
79 | /* Not actually used for SSL/TLS but this makes PKCS#12 work | ||
80 | * if an application only calls SSL_library_init(). | ||
81 | */ | ||
82 | EVP_add_cipher(EVP_rc2_40_cbc()); | ||
83 | #endif | 79 | #endif |
84 | #ifndef OPENSSL_NO_AES | 80 | #ifndef OPENSSL_NO_AES |
85 | EVP_add_cipher(EVP_aes_128_cbc()); | 81 | EVP_add_cipher(EVP_aes_128_cbc()); |
86 | EVP_add_cipher(EVP_aes_192_cbc()); | 82 | EVP_add_cipher(EVP_aes_192_cbc()); |
87 | EVP_add_cipher(EVP_aes_256_cbc()); | 83 | EVP_add_cipher(EVP_aes_256_cbc()); |
88 | #endif | 84 | #endif |
85 | |||
89 | #ifndef OPENSSL_NO_CAMELLIA | 86 | #ifndef OPENSSL_NO_CAMELLIA |
90 | EVP_add_cipher(EVP_camellia_128_cbc()); | 87 | EVP_add_cipher(EVP_camellia_128_cbc()); |
91 | EVP_add_cipher(EVP_camellia_256_cbc()); | 88 | EVP_add_cipher(EVP_camellia_256_cbc()); |
@@ -94,7 +91,10 @@ int SSL_library_init(void) | |||
94 | #ifndef OPENSSL_NO_SEED | 91 | #ifndef OPENSSL_NO_SEED |
95 | EVP_add_cipher(EVP_seed_cbc()); | 92 | EVP_add_cipher(EVP_seed_cbc()); |
96 | #endif | 93 | #endif |
97 | 94 | ||
95 | #ifndef OPENSSL_NO_MD2 | ||
96 | EVP_add_digest(EVP_md2()); | ||
97 | #endif | ||
98 | #ifndef OPENSSL_NO_MD5 | 98 | #ifndef OPENSSL_NO_MD5 |
99 | EVP_add_digest(EVP_md5()); | 99 | EVP_add_digest(EVP_md5()); |
100 | EVP_add_digest_alias(SN_md5,"ssl2-md5"); | 100 | EVP_add_digest_alias(SN_md5,"ssl2-md5"); |
@@ -105,14 +105,6 @@ int SSL_library_init(void) | |||
105 | EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); | 105 | EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); |
106 | EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); | 106 | EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); |
107 | #endif | 107 | #endif |
108 | #ifndef OPENSSL_NO_SHA256 | ||
109 | EVP_add_digest(EVP_sha224()); | ||
110 | EVP_add_digest(EVP_sha256()); | ||
111 | #endif | ||
112 | #ifndef OPENSSL_NO_SHA512 | ||
113 | EVP_add_digest(EVP_sha384()); | ||
114 | EVP_add_digest(EVP_sha512()); | ||
115 | #endif | ||
116 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_DSA) | 108 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_DSA) |
117 | EVP_add_digest(EVP_dss1()); /* DSA with sha1 */ | 109 | EVP_add_digest(EVP_dss1()); /* DSA with sha1 */ |
118 | EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); | 110 | EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); |