summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ecp_methods.c
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/ec/ecp_methods.c
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 'src/lib/libcrypto/ec/ecp_methods.c')
-rw-r--r--src/lib/libcrypto/ec/ecp_methods.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c
index d1d0add538..544c2be4d4 100644
--- a/src/lib/libcrypto/ec/ecp_methods.c
+++ b/src/lib/libcrypto/ec/ecp_methods.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_methods.c,v 1.43 2025/02/13 11:19:49 tb Exp $ */ 1/* $OpenBSD: ecp_methods.c,v 1.44 2025/03/09 15:33:35 tb Exp $ */
2/* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> 2/* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de>
3 * for the OpenSSL project. 3 * for the OpenSSL project.
4 * Includes code written by Bodo Moeller for the OpenSSL project. 4 * Includes code written by Bodo Moeller for the OpenSSL project.
@@ -1299,7 +1299,6 @@ EC_GFp_simple_method(void)
1299{ 1299{
1300 return &ec_GFp_simple_method; 1300 return &ec_GFp_simple_method;
1301} 1301}
1302LCRYPTO_ALIAS(EC_GFp_simple_method);
1303 1302
1304static const EC_METHOD ec_GFp_mont_method = { 1303static const EC_METHOD ec_GFp_mont_method = {
1305 .group_set_curve = ec_mont_group_set_curve, 1304 .group_set_curve = ec_mont_group_set_curve,
@@ -1325,4 +1324,3 @@ EC_GFp_mont_method(void)
1325{ 1324{
1326 return &ec_GFp_mont_method; 1325 return &ec_GFp_mont_method;
1327} 1326}
1328LCRYPTO_ALIAS(EC_GFp_mont_method);