From 5ecdf06c8ceff8a817291b1f1ea5b681ca119f4d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 14 Apr 2018 23:56:38 +0300 Subject: [PATCH] DPP: Fix build with LibreSSL v2.5 The ECDSA_SIG_{set,get}0() wrappers are needed with LibreSSL v2.5 (but not v2.7.2). Signed-off-by: Jouni Malinen --- src/common/dpp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/dpp.c b/src/common/dpp.c index f9bf8c2db..fdc54fcaf 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -43,7 +43,9 @@ static int dpp_test_gen_invalid_key(struct wpabuf *msg, const struct dpp_curve_params *curve); #endif /* CONFIG_TESTING_OPTIONS */ -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ + (defined(LIBRESSL_VERSION_NUMBER) && \ + LIBRESSL_VERSION_NUMBER < 0x20700000L) /* Compatibility wrappers for older versions. */ static int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)