diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-08-07 18:34:18 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-08-07 18:34:18 +0000 |
| commit | ac448403b0b99947600681f5828e8456d5bbdfa5 (patch) | |
| tree | d1731ba7706c9baf9b95240c72005cd0b4683471 /dev-cpp/cpp-httplib/files | |
| parent | ce8004e4e9d484234994b9dacc3c09ea894812ea (diff) | |
| download | baldeagleos-repo-ac448403b0b99947600681f5828e8456d5bbdfa5.tar.gz baldeagleos-repo-ac448403b0b99947600681f5828e8456d5bbdfa5.tar.xz baldeagleos-repo-ac448403b0b99947600681f5828e8456d5bbdfa5.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/cpp-httplib/files')
| -rw-r--r-- | dev-cpp/cpp-httplib/files/cpp-httplib-0.16.1-httplib_h.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-cpp/cpp-httplib/files/cpp-httplib-0.16.1-httplib_h.patch b/dev-cpp/cpp-httplib/files/cpp-httplib-0.16.1-httplib_h.patch new file mode 100644 index 000000000000..069469fc1fc9 --- /dev/null +++ b/dev-cpp/cpp-httplib/files/cpp-httplib-0.16.1-httplib_h.patch @@ -0,0 +1,33 @@ +diff '--color=auto' -urN cpp-httplib-0.16.1.orig/httplib.h cpp-httplib-0.16.1/httplib.h +--- cpp-httplib-0.16.1.orig/httplib.h 2024-08-07 18:39:18.623564657 +0200 ++++ cpp-httplib-0.16.1/httplib.h 2024-08-07 18:43:50.987584273 +0200 +@@ -269,7 +269,7 @@ + #include <iostream> + #include <sstream> + +-#if OPENSSL_VERSION_NUMBER < 0x30000000L ++#if OPENSSL_VERSION_NUMBER < 0x30000000L && !defined(LIBRESSL_VERSION_NUMBER) + #error Sorry, OpenSSL versions prior to 3.0.0 are not supported + #endif + +@@ -727,8 +727,10 @@ + fn(); + } + +-#ifdef CPPHTTPLIB_OPENSSL_SUPPORT ++#if defined(CPPHTTPLIB_OPENSSL_SUPPORT) && !defined(LIBRESSL_VERSION_NUMBER) + OPENSSL_thread_stop(); ++#else ++ ERR_remove_state(0); + #endif + } + +@@ -9078,7 +9080,7 @@ + return false; + } + +- auto server_cert = SSL_get1_peer_certificate(ssl2); ++ auto server_cert = SSL_get_peer_certificate(ssl2); + + if (server_cert == nullptr) { + error = Error::SSLServerVerification; |
