openssl: Migrate from deprecated EC_POINT_[set|get]_affine_coordinates_GFp() functions

This commit is contained in:
Andreas Steffen
2021-03-19 08:50:27 +01:00
parent c5eac9c390
commit bd323ae6c8
@@ -506,7 +506,11 @@ EC_GROUP *ec_group_new_brainpool(bp_curve *curve)
goto failed;
}
G = EC_POINT_new(group);
#ifdef OPENSSL_VERSION_NUMBER >= 0x1010100fL
if (!G || !EC_POINT_set_affine_coordinates(group, G, x, y, ctx))
#else
if (!G || !EC_POINT_set_affine_coordinates_GFp(group, G, x, y, ctx))
#endif
{
goto failed;
}