]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Migrate from deprecated EC_POINT_[set|get]_affine_coordinates_GFp() functions
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 19 Mar 2021 07:50:27 +0000 (08:50 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 19 Mar 2021 07:50:27 +0000 (08:50 +0100)
src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c

index 53691205df71b234eb4bb182c410a30f39f149a2..68a517035df906ceb5e52453fd6925d6f0735d12 100644 (file)
@@ -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;
        }