mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-22 17:34:19 +03:00
Fix OpenSSL X509 cert API detection
LibreSSL defines a OPENSSL_VERSION_NUMBER of 2.1 but only provides the old OpenSSL 1.0.x API.
This commit is contained in:
parent
356e92c604
commit
3f88c12315
@ -128,8 +128,10 @@ static char fetch_error_buffer[CURL_ERROR_SIZE];
|
||||
static char fetch_proxy_userpwd[100];
|
||||
|
||||
|
||||
/* OpenSSL 1.0.x to 1.1.0 certificate reference counting changed */
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x1010000fL)
|
||||
/* OpenSSL 1.0.x to 1.1.0 certificate reference counting changed
|
||||
* LibreSSL declares its OpenSSL version as 2.1 but only supports the old way
|
||||
*/
|
||||
#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL))
|
||||
static int ns_X509_up_ref(X509 *cert)
|
||||
{
|
||||
cert->references++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user