apache: fix build without sslv3

SSLv3 support is deactivated in LEDE now, which causes a build problem
in apache.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens
2016-07-31 13:20:56 +02:00
parent 630a41fd05
commit 51bbfb6013
2 changed files with 19 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
--- a/support/ab.c
+++ b/support/ab.c
@@ -2232,8 +2232,10 @@ int main(int argc, const char * const ar
} else if (strncasecmp(optarg, "SSL2", 4) == 0) {
meth = SSLv2_client_method();
#endif
+#ifndef OPENSSL_NO_SSL3_METHOD
} else if (strncasecmp(optarg, "SSL3", 4) == 0) {
meth = SSLv3_client_method();
+#endif
#ifdef HAVE_TLSV1_X
} else if (strncasecmp(optarg, "TLS1.1", 6) == 0) {
meth = TLSv1_1_client_method();