aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-04-14 20:56:38 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-14 21:01:35 (GMT)
commit5ecdf06c8ceff8a817291b1f1ea5b681ca119f4d (patch)
tree5142a5102f98b601eb4c2f7bc3fc0c1c14fa9f69
parent4b603f01dec28d9ae022effb060a15e5a84b1f0c (diff)
downloadhostap-5ecdf06c8ceff8a817291b1f1ea5b681ca119f4d.zip
hostap-5ecdf06c8ceff8a817291b1f1ea5b681ca119f4d.tar.gz
hostap-5ecdf06c8ceff8a817291b1f1ea5b681ca119f4d.tar.bz2
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 <j@w1.fi>
-rw-r--r--src/common/dpp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index f9bf8c2..fdc54fc 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)