summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hidden/openssl/ec.h
diff options
context:
space:
mode:
authortb <>2025-03-09 15:33:35 +0000
committertb <>2025-03-09 15:33:35 +0000
commit53a919ddf8f4c663b3beca57c18dc025e1f71fa0 (patch)
tree5ea07c323509da65b5e08fe62e83b6238f547a51 /src/lib/libcrypto/hidden/openssl/ec.h
parentb04c2a1d799fe2ea8751349ab1dc4a8b551ce48d (diff)
downloadopenbsd-53a919ddf8f4c663b3beca57c18dc025e1f71fa0.tar.gz
openbsd-53a919ddf8f4c663b3beca57c18dc025e1f71fa0.tar.bz2
openbsd-53a919ddf8f4c663b3beca57c18dc025e1f71fa0.zip
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
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/hidden/openssl/ec.h8
1 files changed, 1 insertions, 7 deletions
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 @@
1/* $OpenBSD: ec.h,v 1.7 2024/10/22 15:54:33 tb Exp $ */ 1/* $OpenBSD: ec.h,v 1.8 2025/03/09 15:33:35 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -25,14 +25,9 @@
25#endif 25#endif
26#include "crypto_namespace.h" 26#include "crypto_namespace.h"
27 27
28LCRYPTO_USED(EC_GFp_simple_method);
29LCRYPTO_USED(EC_GFp_mont_method);
30LCRYPTO_USED(EC_GROUP_new);
31LCRYPTO_USED(EC_GROUP_free); 28LCRYPTO_USED(EC_GROUP_free);
32LCRYPTO_USED(EC_GROUP_copy); 29LCRYPTO_USED(EC_GROUP_copy);
33LCRYPTO_USED(EC_GROUP_dup); 30LCRYPTO_USED(EC_GROUP_dup);
34LCRYPTO_USED(EC_GROUP_method_of);
35LCRYPTO_USED(EC_METHOD_get_field_type);
36LCRYPTO_USED(EC_GROUP_set_generator); 31LCRYPTO_USED(EC_GROUP_set_generator);
37LCRYPTO_USED(EC_GROUP_get0_generator); 32LCRYPTO_USED(EC_GROUP_get0_generator);
38LCRYPTO_USED(EC_GROUP_get_order); 33LCRYPTO_USED(EC_GROUP_get_order);
@@ -62,7 +57,6 @@ LCRYPTO_USED(EC_POINT_new);
62LCRYPTO_USED(EC_POINT_free); 57LCRYPTO_USED(EC_POINT_free);
63LCRYPTO_USED(EC_POINT_copy); 58LCRYPTO_USED(EC_POINT_copy);
64LCRYPTO_USED(EC_POINT_dup); 59LCRYPTO_USED(EC_POINT_dup);
65LCRYPTO_USED(EC_POINT_method_of);
66LCRYPTO_USED(EC_POINT_set_to_infinity); 60LCRYPTO_USED(EC_POINT_set_to_infinity);
67LCRYPTO_USED(EC_POINT_set_affine_coordinates); 61LCRYPTO_USED(EC_POINT_set_affine_coordinates);
68LCRYPTO_USED(EC_POINT_get_affine_coordinates); 62LCRYPTO_USED(EC_POINT_get_affine_coordinates);