From 2acafbd3a0ab30747379afb675c42911a04666eb Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 25 Jan 2025 10:37:50 +0000 Subject: Remove now unused internal ec_group_get_field_type() ok jsing --- src/lib/libcrypto/ec/ec_lib.c | 11 +---------- src/lib/libcrypto/ec/ec_local.h | 3 +-- 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index cb9c19a777..6b18b82a72 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_lib.c,v 1.114 2025/01/25 10:36:50 tb Exp $ */ +/* $OpenBSD: ec_lib.c,v 1.115 2025/01/25 10:37:50 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -236,15 +236,6 @@ EC_METHOD_get_field_type(const EC_METHOD *meth) } LCRYPTO_ALIAS(EC_METHOD_get_field_type); -int -ec_group_get_field_type(const EC_GROUP *group) -{ - if (group == NULL || group->meth == NULL) - return NID_undef; - - return group->meth->field_type; -} - /* * If there is a user-provided cofactor, sanity check and use it. Otherwise * try computing the cofactor from generator order n and field cardinality p. diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 84c1552c8a..684f6d2e90 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_local.h,v 1.63 2025/01/22 09:56:58 jsing Exp $ */ +/* $OpenBSD: ec_local.h,v 1.64 2025/01/25 10:37:50 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -177,7 +177,6 @@ int ec_wnaf_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx); int ec_group_is_builtin_curve(const EC_GROUP *group, int *out_nid); -int ec_group_get_field_type(const EC_GROUP *group); /* * Wrappers around the unergonomic EC_POINT_{oct2point,point2oct}(). -- cgit v1.2.3-55-g6feb