1
0
mirror of synced 2025-04-24 21:07:01 +03:00

httplib.h: support LibreSSL (#1922)

This commit is contained in:
orbea 2024-09-06 19:19:53 -07:00 committed by GitHub
parent 61c418048d
commit 327ff263f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -273,7 +273,7 @@ using socket_t = int;
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#if defined(OPENSSL_IS_BORINGSSL) #if defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER)
#if OPENSSL_VERSION_NUMBER < 0x1010107f #if OPENSSL_VERSION_NUMBER < 0x1010107f
#error Please use OpenSSL or a current version of BoringSSL #error Please use OpenSSL or a current version of BoringSSL
#endif #endif
@ -786,7 +786,7 @@ private:
fn(); fn();
} }
#if defined(CPPHTTPLIB_OPENSSL_SUPPORT) && !defined(OPENSSL_IS_BORINGSSL) #if defined(CPPHTTPLIB_OPENSSL_SUPPORT) && !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
OPENSSL_thread_stop(); OPENSSL_thread_stop();
#endif #endif
} }