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 #include -#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;