diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-11-25 15:17:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 15:17:37 +0100 |
commit | 5366dd2abd8fdeecf4a6ff173faf1f241d185628 (patch) | |
tree | 4f2cb6ca02be8dd15568f69a11200eb7f627ec51 /src | |
parent | 7ee8ea71b7d6e939d8e08d332feee2a27d662155 (diff) | |
parent | 596c41702569b4ffe7360dbb123f14b4fc57caed (diff) |
Merge pull request #1260 from SaberUK/master+libressl
Fix LibreSSL not having a shim for the OpenSSL 1.1 BIO API.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |