From: Peter Powell Date: Wed, 23 Nov 2016 17:24:28 +0000 (+0000) Subject: Fix LibreSSL not having a shim for the OpenSSL 1.1 BIO API. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=596c41702569b4ffe7360dbb123f14b4fc57caed;p=user%2Fhenk%2Fcode%2Finspircd.git Fix LibreSSL not having a shim for the OpenSSL 1.1 BIO API. --- diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 370f855ed..bda9180b7 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -59,7 +59,7 @@ #endif // BIO is opaque in OpenSSL 1.1 but the access API does not exist in 1.0 and older. -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if ((defined LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)) # define BIO_get_data(BIO) BIO->ptr # define BIO_set_data(BIO, VALUE) BIO->ptr = VALUE; # define BIO_set_init(BIO, VALUE) BIO->init = VALUE;