From 228dd0c69c88441ef938348663c77f426d9c883f Mon Sep 17 00:00:00 2001 From: tickelton Date: Sat, 2 May 2015 16:12:33 +0200 Subject: [PATCH] fix build with --disable-ssl Commit b06b1f15aca3e42710ed6a496624e649464e2281 broke the configure option "--disable-ssl" as the function sslMakeContext() was not enclosed in an "#if defined(HAVE_OPENSSL)" statement. --- libhttp/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhttp/ssl.c b/libhttp/ssl.c index b96f9d9..cb40c14 100644 --- a/libhttp/ssl.c +++ b/libhttp/ssl.c @@ -590,7 +590,6 @@ static int sslSetCertificateFromFile(SSL_CTX *context, int rc = sslSetCertificateFromFd(context, fd); return rc; } -#endif static SSL_CTX *sslMakeContext(void) { SSL_CTX *context; @@ -617,6 +616,7 @@ static SSL_CTX *sslMakeContext(void) { check(SSL_CTX_set_cipher_list(context, "HIGH:MEDIUM:!aNULL:!MD5")); return context; } +#endif #ifdef HAVE_TLSEXT static int sslSNICallback(SSL *sslHndl, int *al ATTR_UNUSED,