]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/ec/ec2_smpl.c
deprecate EC_POINT_make_affine and EC_POINTs_make_affine
[thirdparty/openssl.git] / crypto / ec / ec2_smpl.c
index 98d128927d150152301b796dde2c25d74a717130..95097c67ec0267038f1c358c8ce6c466ba86fcf8 100644 (file)
@@ -489,7 +489,8 @@ int ec_GF2m_simple_invert(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
         /* point is its own inverse */
         return 1;
 
-    if (!EC_POINT_make_affine(group, point, ctx))
+    if (group->meth->make_affine == NULL
+        || !group->meth->make_affine(group, point, ctx))
         return 0;
     return BN_GF2m_add(point->Y, point->X, point->Y);
 }