Backport from HEAD:
[openssl.git] / crypto / ecdh / ech_ossl.c
index 2a40ff12dfa8c29c4624e49bb668f2c5d0eebbbf..4a30628fbcc98b8c9ef9f1aa71acb8b5cd687bd6 100644 (file)
@@ -157,6 +157,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
                        goto err;
                        }
                }
+#ifndef OPENSSL_NO_EC2M
        else
                {
                if (!EC_POINT_get_affine_coordinates_GF2m(group, tmp, x, y, ctx)) 
@@ -165,6 +166,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
                        goto err;
                        }
                }
+#endif
 
        buflen = (EC_GROUP_get_degree(group) + 7)/8;
        len = BN_num_bytes(x);