Skip to content

Commit

Permalink
httplib.h: support LibreSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Sep 6, 2024
1 parent 978a4f6 commit 0d0e524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ using socket_t = int;
#include <iostream>
#include <sstream>

#if defined(OPENSSL_IS_BORINGSSL)
#if defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER)
#if OPENSSL_VERSION_NUMBER < 0x1010107f
#error Please use OpenSSL or a current version of BoringSSL
#endif
Expand Down Expand Up @@ -776,7 +776,7 @@ class ThreadPool final : public TaskQueue {
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();
#endif
}
Expand Down

0 comments on commit 0d0e524

Please sign in to comment.