From 1a13809bae9d821783380006de315efcd2b60e61 Mon Sep 17 00:00:00 2001 From: Jakub Zelenka Date: Sun, 30 Oct 2016 19:12:24 +0000 Subject: [PATCH] Define X509_get_signature_nid for LibreSSL It should hopefully fix the LibreSSL build. Thanks to Alice Wonder! --- ext/openssl/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1