com php-src: Define X509_get_signature_nid for LibreSSL: ext/openssl/openssl.c
| From: | Jakub Zelenka | Date: | Sun, 30 Oct 2016 19:12:24 +0000 |
| Subject: | com php-src: Define X509_get_signature_nid for LibreSSL: ext/openssl/openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95351@lists.php.net to get a copy of this message | ||
Commit: 1a13809bae9d821783380006de315efcd2b60e61
Author: Jakub Zelenka <bukka@php.net> Sun, 30 Oct 2016 19:12:24 +0000
Parents: 72659f95975a2587b7f180c3812fec61518e3cd2
Branches: PHP-7.1
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1a13809bae9d821783380006de315efcd2b60e61
Log:
Define X509_get_signature_nid for LibreSSL
It should hopefully fix the LibreSSL build. Thanks to Alice Wonder!
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index ce9a501..4bfc03f 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)
{