]> granicus.if.org Git - php/commitdiff
Define X509_get_signature_nid for LibreSSL
authorJakub Zelenka <bukka@php.net>
Sun, 30 Oct 2016 19:12:24 +0000 (19:12 +0000)
committerJakub Zelenka <bukka@php.net>
Sun, 30 Oct 2016 19:12:24 +0000 (19:12 +0000)
It should hopefully fix the LibreSSL build. Thanks to Alice Wonder!

ext/openssl/openssl.c

index ce9a5019d0155d25323ba973dd289c44e723b24d..4bfc03fa96ca75fe6c54c8e3ef3f89fb76a6c40a 100644 (file)
@@ -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)
 {