diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/src/ssl/ssl_algs.c | 9 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/t1_lib.c | 8 | ||||
-rw-r--r-- | src/lib/libssl/ssl_algs.c | 9 | ||||
-rw-r--r-- | src/lib/libssl/t1_lib.c | 8 |
4 files changed, 0 insertions, 34 deletions
diff --git a/src/lib/libssl/src/ssl/ssl_algs.c b/src/lib/libssl/src/ssl/ssl_algs.c index 92973866d2..463bf8ad66 100644 --- a/src/lib/libssl/src/ssl/ssl_algs.c +++ b/src/lib/libssl/src/ssl/ssl_algs.c | |||
@@ -85,18 +85,13 @@ SSL_library_init(void) | |||
85 | */ | 85 | */ |
86 | EVP_add_cipher(EVP_rc2_40_cbc()); | 86 | EVP_add_cipher(EVP_rc2_40_cbc()); |
87 | #endif | 87 | #endif |
88 | #ifndef OPENSSL_NO_AES | ||
89 | EVP_add_cipher(EVP_aes_128_cbc()); | 88 | EVP_add_cipher(EVP_aes_128_cbc()); |
90 | EVP_add_cipher(EVP_aes_192_cbc()); | 89 | EVP_add_cipher(EVP_aes_192_cbc()); |
91 | EVP_add_cipher(EVP_aes_256_cbc()); | 90 | EVP_add_cipher(EVP_aes_256_cbc()); |
92 | EVP_add_cipher(EVP_aes_128_gcm()); | 91 | EVP_add_cipher(EVP_aes_128_gcm()); |
93 | EVP_add_cipher(EVP_aes_256_gcm()); | 92 | EVP_add_cipher(EVP_aes_256_gcm()); |
94 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) | ||
95 | EVP_add_cipher(EVP_aes_128_cbc_hmac_sha1()); | 93 | EVP_add_cipher(EVP_aes_128_cbc_hmac_sha1()); |
96 | EVP_add_cipher(EVP_aes_256_cbc_hmac_sha1()); | 94 | EVP_add_cipher(EVP_aes_256_cbc_hmac_sha1()); |
97 | #endif | ||
98 | |||
99 | #endif | ||
100 | #ifndef OPENSSL_NO_CAMELLIA | 95 | #ifndef OPENSSL_NO_CAMELLIA |
101 | EVP_add_cipher(EVP_camellia_128_cbc()); | 96 | EVP_add_cipher(EVP_camellia_128_cbc()); |
102 | EVP_add_cipher(EVP_camellia_256_cbc()); | 97 | EVP_add_cipher(EVP_camellia_256_cbc()); |
@@ -106,16 +101,12 @@ SSL_library_init(void) | |||
106 | EVP_add_cipher(EVP_seed_cbc()); | 101 | EVP_add_cipher(EVP_seed_cbc()); |
107 | #endif | 102 | #endif |
108 | 103 | ||
109 | #ifndef OPENSSL_NO_MD5 | ||
110 | EVP_add_digest(EVP_md5()); | 104 | EVP_add_digest(EVP_md5()); |
111 | EVP_add_digest_alias(SN_md5, "ssl2-md5"); | 105 | EVP_add_digest_alias(SN_md5, "ssl2-md5"); |
112 | EVP_add_digest_alias(SN_md5, "ssl3-md5"); | 106 | EVP_add_digest_alias(SN_md5, "ssl3-md5"); |
113 | #endif | ||
114 | #ifndef OPENSSL_NO_SHA | ||
115 | EVP_add_digest(EVP_sha1()); /* RSA with sha1 */ | 107 | EVP_add_digest(EVP_sha1()); /* RSA with sha1 */ |
116 | EVP_add_digest_alias(SN_sha1, "ssl3-sha1"); | 108 | EVP_add_digest_alias(SN_sha1, "ssl3-sha1"); |
117 | EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA); | 109 | EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA); |
118 | #endif | ||
119 | EVP_add_digest(EVP_sha224()); | 110 | EVP_add_digest(EVP_sha224()); |
120 | EVP_add_digest(EVP_sha256()); | 111 | EVP_add_digest(EVP_sha256()); |
121 | EVP_add_digest(EVP_sha384()); | 112 | EVP_add_digest(EVP_sha384()); |
diff --git a/src/lib/libssl/src/ssl/t1_lib.c b/src/lib/libssl/src/ssl/t1_lib.c index b88b3561e0..304140d7f6 100644 --- a/src/lib/libssl/src/ssl/t1_lib.c +++ b/src/lib/libssl/src/ssl/t1_lib.c | |||
@@ -338,9 +338,7 @@ static unsigned char tls12_sigalgs[] = { | |||
338 | tlsext_sigalg(TLSEXT_hash_sha384) | 338 | tlsext_sigalg(TLSEXT_hash_sha384) |
339 | tlsext_sigalg(TLSEXT_hash_sha256) | 339 | tlsext_sigalg(TLSEXT_hash_sha256) |
340 | tlsext_sigalg(TLSEXT_hash_sha224) | 340 | tlsext_sigalg(TLSEXT_hash_sha224) |
341 | #ifndef OPENSSL_NO_SHA | ||
342 | tlsext_sigalg(TLSEXT_hash_sha1) | 341 | tlsext_sigalg(TLSEXT_hash_sha1) |
343 | #endif | ||
344 | }; | 342 | }; |
345 | 343 | ||
346 | int | 344 | int |
@@ -2195,12 +2193,8 @@ typedef struct { | |||
2195 | } tls12_lookup; | 2193 | } tls12_lookup; |
2196 | 2194 | ||
2197 | static tls12_lookup tls12_md[] = { | 2195 | static tls12_lookup tls12_md[] = { |
2198 | #ifndef OPENSSL_NO_MD5 | ||
2199 | {NID_md5, TLSEXT_hash_md5}, | 2196 | {NID_md5, TLSEXT_hash_md5}, |
2200 | #endif | ||
2201 | #ifndef OPENSSL_NO_SHA | ||
2202 | {NID_sha1, TLSEXT_hash_sha1}, | 2197 | {NID_sha1, TLSEXT_hash_sha1}, |
2203 | #endif | ||
2204 | {NID_sha224, TLSEXT_hash_sha224}, | 2198 | {NID_sha224, TLSEXT_hash_sha224}, |
2205 | {NID_sha256, TLSEXT_hash_sha256}, | 2199 | {NID_sha256, TLSEXT_hash_sha256}, |
2206 | {NID_sha384, TLSEXT_hash_sha384}, | 2200 | {NID_sha384, TLSEXT_hash_sha384}, |
@@ -2271,10 +2265,8 @@ const EVP_MD | |||
2271 | *tls12_get_hash(unsigned char hash_alg) | 2265 | *tls12_get_hash(unsigned char hash_alg) |
2272 | { | 2266 | { |
2273 | switch (hash_alg) { | 2267 | switch (hash_alg) { |
2274 | #ifndef OPENSSL_NO_SHA | ||
2275 | case TLSEXT_hash_sha1: | 2268 | case TLSEXT_hash_sha1: |
2276 | return EVP_sha1(); | 2269 | return EVP_sha1(); |
2277 | #endif | ||
2278 | case TLSEXT_hash_sha224: | 2270 | case TLSEXT_hash_sha224: |
2279 | return EVP_sha224(); | 2271 | return EVP_sha224(); |
2280 | 2272 | ||
diff --git a/src/lib/libssl/ssl_algs.c b/src/lib/libssl/ssl_algs.c index 92973866d2..463bf8ad66 100644 --- a/src/lib/libssl/ssl_algs.c +++ b/src/lib/libssl/ssl_algs.c | |||
@@ -85,18 +85,13 @@ SSL_library_init(void) | |||
85 | */ | 85 | */ |
86 | EVP_add_cipher(EVP_rc2_40_cbc()); | 86 | EVP_add_cipher(EVP_rc2_40_cbc()); |
87 | #endif | 87 | #endif |
88 | #ifndef OPENSSL_NO_AES | ||
89 | EVP_add_cipher(EVP_aes_128_cbc()); | 88 | EVP_add_cipher(EVP_aes_128_cbc()); |
90 | EVP_add_cipher(EVP_aes_192_cbc()); | 89 | EVP_add_cipher(EVP_aes_192_cbc()); |
91 | EVP_add_cipher(EVP_aes_256_cbc()); | 90 | EVP_add_cipher(EVP_aes_256_cbc()); |
92 | EVP_add_cipher(EVP_aes_128_gcm()); | 91 | EVP_add_cipher(EVP_aes_128_gcm()); |
93 | EVP_add_cipher(EVP_aes_256_gcm()); | 92 | EVP_add_cipher(EVP_aes_256_gcm()); |
94 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) | ||
95 | EVP_add_cipher(EVP_aes_128_cbc_hmac_sha1()); | 93 | EVP_add_cipher(EVP_aes_128_cbc_hmac_sha1()); |
96 | EVP_add_cipher(EVP_aes_256_cbc_hmac_sha1()); | 94 | EVP_add_cipher(EVP_aes_256_cbc_hmac_sha1()); |
97 | #endif | ||
98 | |||
99 | #endif | ||
100 | #ifndef OPENSSL_NO_CAMELLIA | 95 | #ifndef OPENSSL_NO_CAMELLIA |
101 | EVP_add_cipher(EVP_camellia_128_cbc()); | 96 | EVP_add_cipher(EVP_camellia_128_cbc()); |
102 | EVP_add_cipher(EVP_camellia_256_cbc()); | 97 | EVP_add_cipher(EVP_camellia_256_cbc()); |
@@ -106,16 +101,12 @@ SSL_library_init(void) | |||
106 | EVP_add_cipher(EVP_seed_cbc()); | 101 | EVP_add_cipher(EVP_seed_cbc()); |
107 | #endif | 102 | #endif |
108 | 103 | ||
109 | #ifndef OPENSSL_NO_MD5 | ||
110 | EVP_add_digest(EVP_md5()); | 104 | EVP_add_digest(EVP_md5()); |
111 | EVP_add_digest_alias(SN_md5, "ssl2-md5"); | 105 | EVP_add_digest_alias(SN_md5, "ssl2-md5"); |
112 | EVP_add_digest_alias(SN_md5, "ssl3-md5"); | 106 | EVP_add_digest_alias(SN_md5, "ssl3-md5"); |
113 | #endif | ||
114 | #ifndef OPENSSL_NO_SHA | ||
115 | EVP_add_digest(EVP_sha1()); /* RSA with sha1 */ | 107 | EVP_add_digest(EVP_sha1()); /* RSA with sha1 */ |
116 | EVP_add_digest_alias(SN_sha1, "ssl3-sha1"); | 108 | EVP_add_digest_alias(SN_sha1, "ssl3-sha1"); |
117 | EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA); | 109 | EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA); |
118 | #endif | ||
119 | EVP_add_digest(EVP_sha224()); | 110 | EVP_add_digest(EVP_sha224()); |
120 | EVP_add_digest(EVP_sha256()); | 111 | EVP_add_digest(EVP_sha256()); |
121 | EVP_add_digest(EVP_sha384()); | 112 | EVP_add_digest(EVP_sha384()); |
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index b88b3561e0..304140d7f6 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -338,9 +338,7 @@ static unsigned char tls12_sigalgs[] = { | |||
338 | tlsext_sigalg(TLSEXT_hash_sha384) | 338 | tlsext_sigalg(TLSEXT_hash_sha384) |
339 | tlsext_sigalg(TLSEXT_hash_sha256) | 339 | tlsext_sigalg(TLSEXT_hash_sha256) |
340 | tlsext_sigalg(TLSEXT_hash_sha224) | 340 | tlsext_sigalg(TLSEXT_hash_sha224) |
341 | #ifndef OPENSSL_NO_SHA | ||
342 | tlsext_sigalg(TLSEXT_hash_sha1) | 341 | tlsext_sigalg(TLSEXT_hash_sha1) |
343 | #endif | ||
344 | }; | 342 | }; |
345 | 343 | ||
346 | int | 344 | int |
@@ -2195,12 +2193,8 @@ typedef struct { | |||
2195 | } tls12_lookup; | 2193 | } tls12_lookup; |
2196 | 2194 | ||
2197 | static tls12_lookup tls12_md[] = { | 2195 | static tls12_lookup tls12_md[] = { |
2198 | #ifndef OPENSSL_NO_MD5 | ||
2199 | {NID_md5, TLSEXT_hash_md5}, | 2196 | {NID_md5, TLSEXT_hash_md5}, |
2200 | #endif | ||
2201 | #ifndef OPENSSL_NO_SHA | ||
2202 | {NID_sha1, TLSEXT_hash_sha1}, | 2197 | {NID_sha1, TLSEXT_hash_sha1}, |
2203 | #endif | ||
2204 | {NID_sha224, TLSEXT_hash_sha224}, | 2198 | {NID_sha224, TLSEXT_hash_sha224}, |
2205 | {NID_sha256, TLSEXT_hash_sha256}, | 2199 | {NID_sha256, TLSEXT_hash_sha256}, |
2206 | {NID_sha384, TLSEXT_hash_sha384}, | 2200 | {NID_sha384, TLSEXT_hash_sha384}, |
@@ -2271,10 +2265,8 @@ const EVP_MD | |||
2271 | *tls12_get_hash(unsigned char hash_alg) | 2265 | *tls12_get_hash(unsigned char hash_alg) |
2272 | { | 2266 | { |
2273 | switch (hash_alg) { | 2267 | switch (hash_alg) { |
2274 | #ifndef OPENSSL_NO_SHA | ||
2275 | case TLSEXT_hash_sha1: | 2268 | case TLSEXT_hash_sha1: |
2276 | return EVP_sha1(); | 2269 | return EVP_sha1(); |
2277 | #endif | ||
2278 | case TLSEXT_hash_sha224: | 2270 | case TLSEXT_hash_sha224: |
2279 | return EVP_sha224(); | 2271 | return EVP_sha224(); |
2280 | 2272 | ||