]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix build with LibreSSL v2.5
authorJouni Malinen <j@w1.fi>
Sat, 14 Apr 2018 20:56:38 +0000 (23:56 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 Apr 2018 21:01:35 +0000 (00:01 +0300)
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>
src/common/dpp.c

index f9bf8c2db76b08fd9959235185eda3d9db1eebb4..fdc54fcaf4eda5af11c6cbc018b0bf0d33184671 100644 (file)
@@ -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)