Skip to content

Commit 327ff26

Browse files
authored
httplib.h: support LibreSSL (#1922)
1 parent 61c4180 commit 327ff26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httplib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ using socket_t = int;
273273
#include <iostream>
274274
#include <sstream>
275275

276-
#if defined(OPENSSL_IS_BORINGSSL)
276+
#if defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER)
277277
#if OPENSSL_VERSION_NUMBER < 0x1010107f
278278
#error Please use OpenSSL or a current version of BoringSSL
279279
#endif
@@ -786,7 +786,7 @@ class ThreadPool final : public TaskQueue {
786786
fn();
787787
}
788788

789-
#if defined(CPPHTTPLIB_OPENSSL_SUPPORT) && !defined(OPENSSL_IS_BORINGSSL)
789+
#if defined(CPPHTTPLIB_OPENSSL_SUPPORT) && !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
790790
OPENSSL_thread_stop();
791791
#endif
792792
}

0 commit comments

Comments
 (0)