]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix build with LibreSSL 2.0.7+
authorGiovanni Bechis <gbechis@apache.org>
Mon, 17 Feb 2020 07:52:55 +0000 (07:52 +0000)
committerGiovanni Bechis <gbechis@apache.org>
Mon, 17 Feb 2020 07:52:55 +0000 (07:52 +0000)
bz 64047

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874101 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c
modules/ssl/ssl_private.h

index e378218be51aa0938d056a36b9206ff79960b72c..29810726c5849ce89d48c1da55943ba48fe2209d 100644 (file)
@@ -1624,7 +1624,7 @@ static apr_status_t ssl_init_proxy_certs(server_rec *s,
     X509_STORE_CTX *sctx;
     X509_STORE *store = SSL_CTX_get_cert_store(mctx->ssl_ctx);
 
-#if OPENSSL_VERSION_NUMBER >= 0x1010100fL
+#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER)
     /* For OpenSSL >=1.1.1, turn on client cert support which is
      * otherwise turned off by default (by design).
      * https://github.com/openssl/openssl/issues/6933 */
index c415976fad05453e27b0f3e7664ef0b6172696d8..a8b219c280ba1c35f4902755edf4612093753a77 100644 (file)
 #define BN_get_rfc3526_prime_4096  get_rfc3526_prime_4096
 #define BN_get_rfc3526_prime_6144  get_rfc3526_prime_6144
 #define BN_get_rfc3526_prime_8192  get_rfc3526_prime_8192
+#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL
 #define BIO_set_init(x,v)          (x->init=v)
 #define BIO_get_data(x)            (x->ptr)
 #define BIO_set_data(x,v)          (x->ptr=v)
+#endif
 #define BIO_get_shutdown(x)        (x->shutdown)
 #define BIO_set_shutdown(x,v)      (x->shutdown=v)
 #define DH_bits(x)                 (BN_num_bits(x->p))