From aea3014df333871d02dc263a69746399371b2009 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 9 Mar 2025 15:33:35 +0000 Subject: Unexport EC_METHOD and all API using it This is an implementation detail and there is no reason to leak it from the library. This removes EC_GFp_{mont,simple}_method(), EC_GROUP_{method_of,new}(), EC_METHOD_get_field_type(), EC_POINT_method_of() from the public API. EC_GROUP_copy() is now quite useless, so it will go as well. ok jsing --- src/lib/libcrypto/hidden/openssl/ec.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/lib/libcrypto/hidden') diff --git a/src/lib/libcrypto/hidden/openssl/ec.h b/src/lib/libcrypto/hidden/openssl/ec.h index 0b64474c4b..8ffa017d2d 100644 --- a/src/lib/libcrypto/hidden/openssl/ec.h +++ b/src/lib/libcrypto/hidden/openssl/ec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec.h,v 1.7 2024/10/22 15:54:33 tb Exp $ */ +/* $OpenBSD: ec.h,v 1.8 2025/03/09 15:33:35 tb Exp $ */ /* * Copyright (c) 2023 Bob Beck * @@ -25,14 +25,9 @@ #endif #include "crypto_namespace.h" -LCRYPTO_USED(EC_GFp_simple_method); -LCRYPTO_USED(EC_GFp_mont_method); -LCRYPTO_USED(EC_GROUP_new); LCRYPTO_USED(EC_GROUP_free); LCRYPTO_USED(EC_GROUP_copy); LCRYPTO_USED(EC_GROUP_dup); -LCRYPTO_USED(EC_GROUP_method_of); -LCRYPTO_USED(EC_METHOD_get_field_type); LCRYPTO_USED(EC_GROUP_set_generator); LCRYPTO_USED(EC_GROUP_get0_generator); LCRYPTO_USED(EC_GROUP_get_order); @@ -62,7 +57,6 @@ LCRYPTO_USED(EC_POINT_new); LCRYPTO_USED(EC_POINT_free); LCRYPTO_USED(EC_POINT_copy); LCRYPTO_USED(EC_POINT_dup); -LCRYPTO_USED(EC_POINT_method_of); LCRYPTO_USED(EC_POINT_set_to_infinity); LCRYPTO_USED(EC_POINT_set_affine_coordinates); LCRYPTO_USED(EC_POINT_get_affine_coordinates); -- cgit v1.2.3-55-g6feb