From: Jakub Zelenka Date: Sun, 30 Oct 2016 19:12:24 +0000 (+0000) Subject: Define X509_get_signature_nid for LibreSSL X-Git-Tag: php-7.1.0RC6~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a13809bae9d821783380006de315efcd2b60e61;p=php Define X509_get_signature_nid for LibreSSL It should hopefully fix the LibreSSL build. Thanks to Alice Wonder! --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index ce9a5019d0..4bfc03fa96 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -669,7 +669,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) {