mirror of
https://github.com/znc/znc.git
synced 2026-05-05 13:02:31 +02:00
Fix redefinition error under OpenSSL
LIBRESSL_VERSION_NUMBER is 0 when not defined, making the condition always true. Close #1688
This commit is contained in:
committed by
Alexey Sokolov
parent
064d0c928b
commit
f839d258d0
@@ -29,7 +29,7 @@
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/rsa.h>
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (LIBRESSL_VERSION_NUMBER < 0x20700000L)
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x20700000L))
|
||||
#define X509_getm_notBefore X509_get_notBefore
|
||||
#define X509_getm_notAfter X509_get_notAfter
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user