summaryrefslogtreecommitdiff
path: root/dev-cpp/cpp-httplib/files
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-08-09 19:08:34 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-08-09 19:08:34 +0000
commit5439f76b0795ab33c7c8a07b3e1918a9cde7abf1 (patch)
treede7450aafcdaaa2f7431cfb526a09bf3f6b93a2b /dev-cpp/cpp-httplib/files
parent3fda5f51bc5c3b1f1c2b5bd9abd5ed62d14b7193 (diff)
downloadbaldeagleos-repo-5439f76b0795ab33c7c8a07b3e1918a9cde7abf1.tar.gz
baldeagleos-repo-5439f76b0795ab33c7c8a07b3e1918a9cde7abf1.tar.xz
baldeagleos-repo-5439f76b0795ab33c7c8a07b3e1918a9cde7abf1.zip
Adding metadata
Diffstat (limited to 'dev-cpp/cpp-httplib/files')
-rw-r--r--dev-cpp/cpp-httplib/files/cpp-httplib-0.16.2-httplib_h.patch30
-rw-r--r--dev-cpp/cpp-httplib/files/httplib_h.patch21
2 files changed, 30 insertions, 21 deletions
diff --git a/dev-cpp/cpp-httplib/files/cpp-httplib-0.16.2-httplib_h.patch b/dev-cpp/cpp-httplib/files/cpp-httplib-0.16.2-httplib_h.patch
new file mode 100644
index 000000000000..a46cc633717c
--- /dev/null
+++ b/dev-cpp/cpp-httplib/files/cpp-httplib-0.16.2-httplib_h.patch
@@ -0,0 +1,30 @@
+diff '--color=auto' -urN cpp-httplib-0.16.2.orig/httplib.h cpp-httplib-0.16.2/httplib.h
+--- cpp-httplib-0.16.2.orig/httplib.h 2024-08-09 19:05:55.831889663 +0200
++++ cpp-httplib-0.16.2/httplib.h 2024-08-09 19:08:48.730886021 +0200
+@@ -274,7 +274,7 @@
+ #error Please use OpenSSL or a current version of BoringSSL
+ #endif
+ #define SSL_get1_peer_certificate SSL_get_peer_certificate
+-#elif OPENSSL_VERSION_NUMBER < 0x30000000L
++#elif OPENSSL_VERSION_NUMBER < 0x30000000L && !defined(LIBRESSL_VERSION_NUMBER)
+ #error Sorry, OpenSSL versions prior to 3.0.0 are not supported
+ #endif
+
+@@ -732,7 +732,7 @@
+ 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
+ }
+@@ -9108,7 +9108,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;
diff --git a/dev-cpp/cpp-httplib/files/httplib_h.patch b/dev-cpp/cpp-httplib/files/httplib_h.patch
deleted file mode 100644
index b37a49341f4f..000000000000
--- a/dev-cpp/cpp-httplib/files/httplib_h.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff '--color=auto' -urN cpp-httplib-0.16.0.orig/httplib.h cpp-httplib-0.16.0/httplib.h
---- cpp-httplib-0.16.0.orig/httplib.h 2024-07-14 10:29:02.536885895 +0200
-+++ cpp-httplib-0.16.0/httplib.h 2024-07-14 10:30:41.405879297 +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
-
-@@ -9029,7 +9029,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;