fix; we now have ECDSA_SIG accessors

This commit is contained in:
sthen 2018-03-18 23:56:59 +00:00
parent 8e5238cb0f
commit 794a748a41

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-lib_dns_opensslecdsa_link_c,v 1.1 2018/03/18 23:56:59 sthen Exp $
Index: lib/dns/opensslecdsa_link.c
--- lib/dns/opensslecdsa_link.c.orig
+++ lib/dns/opensslecdsa_link.c
@@ -42,7 +42,9 @@
#define DST_RET(a) {ret = a; goto err;}
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
+
/* From OpenSSL 1.1 */
static void
ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) {