diff options
Diffstat (limited to 'src/lib/libssl/ssl_algs.c')
-rw-r--r-- | src/lib/libssl/ssl_algs.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/lib/libssl/ssl_algs.c b/src/lib/libssl/ssl_algs.c index dde8918fe0..3d1299ee7b 100644 --- a/src/lib/libssl/ssl_algs.c +++ b/src/lib/libssl/ssl_algs.c | |||
@@ -63,40 +63,44 @@ | |||
63 | 63 | ||
64 | int SSL_library_init(void) | 64 | int SSL_library_init(void) |
65 | { | 65 | { |
66 | #ifndef NO_DES | 66 | |
67 | #ifndef OPENSSL_NO_DES | ||
67 | EVP_add_cipher(EVP_des_cbc()); | 68 | EVP_add_cipher(EVP_des_cbc()); |
68 | EVP_add_cipher(EVP_des_ede3_cbc()); | 69 | EVP_add_cipher(EVP_des_ede3_cbc()); |
69 | #endif | 70 | #endif |
70 | #ifndef NO_IDEA | 71 | #ifndef OPENSSL_NO_IDEA |
71 | EVP_add_cipher(EVP_idea_cbc()); | 72 | EVP_add_cipher(EVP_idea_cbc()); |
72 | #endif | 73 | #endif |
73 | #ifndef NO_RC4 | 74 | #ifndef OPENSSL_NO_RC4 |
74 | EVP_add_cipher(EVP_rc4()); | 75 | EVP_add_cipher(EVP_rc4()); |
75 | #endif | 76 | #endif |
76 | #ifndef NO_RC2 | 77 | #ifndef OPENSSL_NO_RC2 |
77 | EVP_add_cipher(EVP_rc2_cbc()); | 78 | EVP_add_cipher(EVP_rc2_cbc()); |
78 | #endif | 79 | #endif |
79 | 80 | #ifndef OPENSSL_NO_AES | |
80 | #ifndef NO_MD2 | 81 | EVP_add_cipher(EVP_aes_128_cbc()); |
82 | EVP_add_cipher(EVP_aes_192_cbc()); | ||
83 | EVP_add_cipher(EVP_aes_256_cbc()); | ||
84 | #endif | ||
85 | #ifndef OPENSSL_NO_MD2 | ||
81 | EVP_add_digest(EVP_md2()); | 86 | EVP_add_digest(EVP_md2()); |
82 | #endif | 87 | #endif |
83 | #ifndef NO_MD5 | 88 | #ifndef OPENSSL_NO_MD5 |
84 | EVP_add_digest(EVP_md5()); | 89 | EVP_add_digest(EVP_md5()); |
85 | EVP_add_digest_alias(SN_md5,"ssl2-md5"); | 90 | EVP_add_digest_alias(SN_md5,"ssl2-md5"); |
86 | EVP_add_digest_alias(SN_md5,"ssl3-md5"); | 91 | EVP_add_digest_alias(SN_md5,"ssl3-md5"); |
87 | #endif | 92 | #endif |
88 | #ifndef NO_SHA | 93 | #ifndef OPENSSL_NO_SHA |
89 | EVP_add_digest(EVP_sha1()); /* RSA with sha1 */ | 94 | EVP_add_digest(EVP_sha1()); /* RSA with sha1 */ |
90 | EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); | 95 | EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); |
91 | EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); | 96 | EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); |
92 | #endif | 97 | #endif |
93 | #if !defined(NO_SHA) && !defined(NO_DSA) | 98 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_DSA) |
94 | EVP_add_digest(EVP_dss1()); /* DSA with sha1 */ | 99 | EVP_add_digest(EVP_dss1()); /* DSA with sha1 */ |
95 | EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); | 100 | EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); |
96 | EVP_add_digest_alias(SN_dsaWithSHA1,"DSS1"); | 101 | EVP_add_digest_alias(SN_dsaWithSHA1,"DSS1"); |
97 | EVP_add_digest_alias(SN_dsaWithSHA1,"dss1"); | 102 | EVP_add_digest_alias(SN_dsaWithSHA1,"dss1"); |
98 | #endif | 103 | #endif |
99 | |||
100 | /* If you want support for phased out ciphers, add the following */ | 104 | /* If you want support for phased out ciphers, add the following */ |
101 | #if 0 | 105 | #if 0 |
102 | EVP_add_digest(EVP_sha()); | 106 | EVP_add_digest(EVP_sha()); |