]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: Fix build with BoringSSL and LibreSSL 3.3.x and older
authorJouni Malinen <j@w1.fi>
Fri, 15 Apr 2022 09:19:52 +0000 (12:19 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 15 Apr 2022 10:00:08 +0000 (13:00 +0300)
Define the EC_GROUP_get_curve() wrapper for the older versions.

Fixes: 3c61f4db4c3b ("OpenSSL: Replace EC_GROUP_get_curve_GFp() calls with EC_GROUP_get_curve()")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/crypto_openssl.c

index a54ec71a8adf1ed013b8669d43fbd710e33bbd34..e1b3d15fc4499072687c6a5e70c1cfe19fd0fea2 100644 (file)
@@ -122,7 +122,10 @@ static const unsigned char * ASN1_STRING_get0_data(const ASN1_STRING *x)
 #endif /* OpenSSL version < 1.1.0 */
 
 
-#if OPENSSL_VERSION_NUMBER < 0x10101000L
+#if OPENSSL_VERSION_NUMBER < 0x10101000L || \
+       defined(OPENSSL_IS_BORINGSSL) || \
+       (defined(LIBRESSL_VERSION_NUMBER) && \
+        LIBRESSL_VERSION_NUMBER < 0x30400000L)
 static int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a,
                              BIGNUM *b, BN_CTX *ctx)
 {