fix build with --disable-ssl

Commit b06b1f15ac broke the configure option
"--disable-ssl" as the function sslMakeContext() was not enclosed in an
"#if defined(HAVE_OPENSSL)" statement.
This commit is contained in:
tickelton 2015-05-02 16:12:33 +02:00
parent 8e09b8f2a6
commit 228dd0c69c

View file

@ -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,