blob: b37a49341f4fd0e684f0b603551c9366d8f308e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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;
|