]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix LibreSSL not having a shim for the OpenSSL 1.1 BIO API.
authorPeter Powell <petpow@saberuk.com>
Wed, 23 Nov 2016 17:24:28 +0000 (17:24 +0000)
committerPeter Powell <petpow@saberuk.com>
Wed, 23 Nov 2016 17:24:28 +0000 (17:24 +0000)
src/modules/extra/m_ssl_openssl.cpp

index 370f855ed3ad68578e12bc26fdf46c5d9620ef93..bda9180b7e892db3985891e15fb6970dd6e567d8 100644 (file)
@@ -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;