Line 0
Link Here
|
|
|
1 |
As reported upstream in http://redmine.lighttpd.net/issues/2729 |
2 |
|
3 |
--- src/network.c.orig 2015-12-04 21:13:47 UTC |
4 |
+++ src/network.c |
5 |
@@ -767,6 +767,7 @@ int network_init(server *srv) { |
6 |
SSL_CTX_set_options(s->ssl_ctx, ssloptions); |
7 |
SSL_CTX_set_info_callback(s->ssl_ctx, ssl_info_callback); |
8 |
|
9 |
+#ifndef OPENSSL_NO_SSL2 |
10 |
if (!s->ssl_use_sslv2) { |
11 |
/* disable SSLv2 */ |
12 |
if (!(SSL_OP_NO_SSLv2 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2))) { |
13 |
@@ -775,7 +776,9 @@ int network_init(server *srv) { |
14 |
return -1; |
15 |
} |
16 |
} |
17 |
+#endif |
18 |
|
19 |
+#ifndef OPENSSL_NO_SSL3 |
20 |
if (!s->ssl_use_sslv3) { |
21 |
/* disable SSLv3 */ |
22 |
if (!(SSL_OP_NO_SSLv3 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv3))) { |
23 |
@@ -784,6 +787,7 @@ int network_init(server *srv) { |
24 |
return -1; |
25 |
} |
26 |
} |
27 |
+#endif |
28 |
|
29 |
if (!buffer_string_is_empty(s->ssl_cipher_list)) { |
30 |
/* Disable support for low encryption ciphers */ |