From 770bc2e5805f34930562cebfe55d841c0af98600 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 3 Oct 2024 06:24:07 +0000 Subject: [PATCH] Remove the unused field_mod_func from EC_GROUP This was only used by the NIST method. For all other group methods it's an uninitialized pointer (as EC_GROUP_new() still uses the malloc + set all members to 0 idiom). ok jsing --- lib/libcrypto/ec/ec_local.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libcrypto/ec/ec_local.h b/lib/libcrypto/ec/ec_local.h index 6ea78eaac4c..c2befdede7e 100644 --- a/lib/libcrypto/ec/ec_local.h +++ b/lib/libcrypto/ec/ec_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_local.h,v 1.27 2023/11/29 21:35:57 tb Exp $ */ +/* $OpenBSD: ec_local.h,v 1.28 2024/10/03 06:24:07 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -216,9 +216,6 @@ struct ec_group_st { /* Montgomery context and values used by EC_GFp_mont_method. */ BN_MONT_CTX *mont_ctx; BIGNUM *mont_one; - - int (*field_mod_func)(BIGNUM *, const BIGNUM *, const BIGNUM *, - BN_CTX *); } /* EC_GROUP */; struct ec_key_st { -- 2.20.1