From: Rainer Jung Date: Mon, 23 Mar 2020 13:33:22 +0000 (+0000) Subject: Fix compilation breakage with OpenSSL 1.1.0 up to 1.1.0f. X-Git-Tag: 2.5.0-alpha2-ci-test-only~1566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40d37b8a304f93cd14def4e9eab887b00a3d0e78;p=thirdparty%2Fapache%2Fhttpd.git Fix compilation breakage with OpenSSL 1.1.0 up to 1.1.0f. SSL_CTX_get_min_proto_version() and SSL_CTX_get_max_proto_version() were only introduced in 1.1.0g. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875544 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index a27168c5658..14f9688fb24 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -2535,7 +2535,7 @@ static int ssl_find_vhost(void *servername, conn_rec *c, server_rec *s) * from the ctx by hand */ SSL_set_options(ssl, SSL_CTX_get_options(ctx)); -#if OPENSSL_VERSION_NUMBER >= 0x10100000L \ +#if OPENSSL_VERSION_NUMBER >= 0x1010007fL \ && (!defined(LIBRESSL_VERSION_NUMBER) \ || LIBRESSL_VERSION_NUMBER >= 0x20800000L) /*