deprecate EC_POINT_make_affine and EC_POINTs_make_affine
[oweals/openssl.git] / crypto / ec / ecp_nistz256.c
index 4577707e1515df8b145466718660509db2653760..50b6d43b7c55d1c7467b5347dc2e5233732f182e 100644 (file)
@@ -897,7 +897,8 @@ __owur static int ecp_nistz256_mult_precompute(EC_GROUP *group, BN_CTX *ctx)
              * It would be faster to use EC_POINTs_make_affine and
              * make multiple points affine at the same time.
              */
-            if (!EC_POINT_make_affine(group, P, ctx))
+            if (group->meth->make_affine == NULL
+                || !group->meth->make_affine(group, P, ctx))
                 goto err;
             if (!ecp_nistz256_bignum_to_field_elem(temp.X, P->X) ||
                 !ecp_nistz256_bignum_to_field_elem(temp.Y, P->Y)) {