From: Jouni Malinen Date: Sat, 14 Apr 2018 20:56:38 +0000 (+0300) Subject: DPP: Fix build with LibreSSL v2.5 X-Git-Tag: hostap_2_7~434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ecdf06c8ceff8a817291b1f1ea5b681ca119f4d;p=thirdparty%2Fhostap.git 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 --- 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)