From: Andreas Steffen Date: Fri, 19 Mar 2021 07:50:27 +0000 (+0100) Subject: openssl: Migrate from deprecated EC_POINT_[set|get]_affine_coordinates_GFp() functions X-Git-Tag: 5.9.3dr1~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd323ae6c8325812b95a0b61598a35940b06bfb1;p=thirdparty%2Fstrongswan.git openssl: Migrate from deprecated EC_POINT_[set|get]_affine_coordinates_GFp() functions --- diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c index 53691205df..68a517035d 100644 --- a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c +++ b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c @@ -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; }