]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_ssl_openssl.cpp
Convert a bunch of time-related config options to getDuration.
[user/henk/code/inspircd.git] / src / modules / extra / m_ssl_openssl.cpp
index 370f855ed3ad68578e12bc26fdf46c5d9620ef93..68f75c87ff96739fd2643fac6e6efc1cdfd1f393 100644 (file)
@@ -26,7 +26,7 @@
 
 /// $PackageInfo: require_system("centos") openssl-devel pkgconfig
 /// $PackageInfo: require_system("darwin") openssl pkg-config
-/// $PackageInfo: require_system("ubuntu" "16.04") libssl-dev openssl pkg-config
+/// $PackageInfo: require_system("ubuntu") libssl-dev openssl pkg-config
 
 
 #include "inspircd.h"
@@ -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;