We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f512ac commit c8c1c3dCopy full SHA for c8c1c3d
httplib.h
@@ -255,6 +255,8 @@ using socket_t = int;
255
256
#if OPENSSL_VERSION_NUMBER < 0x1010100fL
257
#error Sorry, OpenSSL versions prior to 1.1.1 are not supported
258
+#elif OPENSSL_VERSION_NUMBER < 0x30000000L
259
+#define SSL_get1_peer_certificate SSL_get_peer_certificate
260
#endif
261
262
@@ -7716,7 +7718,7 @@ inline bool SSLClient::initialize_ssl(Socket &socket, Error &error) {
7716
7718
return false;
7717
7719
}
7720
- auto server_cert = SSL_get_peer_certificate(ssl2);
7721
+ auto server_cert = SSL_get1_peer_certificate(ssl2);
7722
7723
if (server_cert == nullptr) {
7724
error = Error::SSLServerVerification;
0 commit comments