diff --git a/src/common/dpp.c b/src/common/dpp.c index 74a524d21..c359d5561 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -6219,14 +6219,14 @@ static int dpp_test_gen_invalid_key(struct wpabuf *msg, if (EC_POINT_set_affine_coordinates_GFp(group, point, x, y, ctx) != 1) { -#if OPENSSL_VERSION_NUMBER >= 0x10101000L || defined(OPENSSL_IS_BORINGSSL) +#if OPENSSL_VERSION_NUMBER >= 0x10100000L || defined(OPENSSL_IS_BORINGSSL) /* Unlike older OpenSSL versions, OpenSSL 1.1.1 and BoringSSL * return an error from EC_POINT_set_affine_coordinates_GFp() * when the point is not on the curve. */ break; -#else /* >=1.1.1 or OPENSSL_IS_BORINGSSL */ +#else /* >=1.1.0 or OPENSSL_IS_BORINGSSL */ goto fail; -#endif /* >= 1.1.1 or OPENSSL_IS_BORINGSSL */ +#endif /* >= 1.1.0 or OPENSSL_IS_BORINGSSL */ } if (!EC_POINT_is_on_curve(group, point, ctx))