]> granicus.if.org Git - apache/commitdiff
Follow up to r1828222: fix "defined but not used 'prot'" warning with libressl.
authorYann Ylavic <ylavic@apache.org>
Sun, 29 Apr 2018 22:07:26 +0000 (22:07 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 29 Apr 2018 22:07:26 +0000 (22:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1830522 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 89ed3df0fe0411cad0427ba94c13ec4b68d22145..21e2b2b9d343acb46a42b83c037bd6e0f54c2416 100644 (file)
@@ -582,7 +582,8 @@ static apr_status_t ssl_init_ctx_protocol(server_rec *s,
     char *cp;
     int protocol = mctx->protocol;
     SSLSrvConfigRec *sc = mySrvConfig(s);
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L  && \
+       (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x20800000L)
     int prot;
 #endif