diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index ab6ad031694..3593cdc3e08 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -668,7 +668,7 @@ int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) return 1; } -#if OPENSSL_VERSION_NUMBER < 0x10002000L +#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined (LIBRESSL_VERSION_NUMBER) static int X509_get_signature_nid(const X509 *x) {