]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Fix OpenSSL version check for EC_POINT_set_affine_coordinates
authorNoel Kuntze <noel.kuntze@thermi.consulting>
Thu, 15 Apr 2021 14:23:18 +0000 (16:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 4 May 2021 12:51:18 +0000 (14:51 +0200)
Fixes: bd323ae6c832 ("openssl: Migrate from deprecated EC_POINT_[set|get]_affine_coordinates_GFp() functions")
Closes strongswan/strongswan#332

src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c

index 68a517035df906ceb5e52453fd6925d6f0735d12..98dacc4f61041c135c928e1325437081215c2ec5 100644 (file)
@@ -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))