mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
openssl: Fix OpenSSL version check for EC_POINT_set_affine_coordinates
Fixes: bd323ae6c832 ("openssl: Migrate from deprecated EC_POINT_[set|get]_affine_coordinates_GFp() functions") Closes strongswan/strongswan#332
This commit is contained in:
parent
e9a55abce4
commit
1de13f9037
@ -506,7 +506,7 @@ EC_GROUP *ec_group_new_brainpool(bp_curve *curve)
|
||||
goto failed;
|
||||
}
|
||||
G = EC_POINT_new(group);
|
||||
#ifdef OPENSSL_VERSION_NUMBER >= 0x1010100fL
|
||||
#if 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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user