summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-10-03 06:24:07 +0000
committertb <>2024-10-03 06:24:07 +0000
commit783ed0d8a88accb3c12a042a1139528aa7d568ce (patch)
tree8da2047ecf2443aecb27985b012223b5cf14a7a8 /src
parent46c178f52b6e10bbcf914fc7366a854e953d2fba (diff)
downloadopenbsd-783ed0d8a88accb3c12a042a1139528aa7d568ce.tar.gz
openbsd-783ed0d8a88accb3c12a042a1139528aa7d568ce.tar.bz2
openbsd-783ed0d8a88accb3c12a042a1139528aa7d568ce.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index 6ea78eaac4..c2befdede7 100644
--- a/src/lib/libcrypto/ec/ec_local.h
+++ b/src/lib/libcrypto/ec/ec_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_local.h,v 1.27 2023/11/29 21:35:57 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.28 2024/10/03 06:24:07 tb Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -216,9 +216,6 @@ struct ec_group_st {
216 /* Montgomery context and values used by EC_GFp_mont_method. */ 216 /* Montgomery context and values used by EC_GFp_mont_method. */
217 BN_MONT_CTX *mont_ctx; 217 BN_MONT_CTX *mont_ctx;
218 BIGNUM *mont_one; 218 BIGNUM *mont_one;
219
220 int (*field_mod_func)(BIGNUM *, const BIGNUM *, const BIGNUM *,
221 BN_CTX *);
222} /* EC_GROUP */; 219} /* EC_GROUP */;
223 220
224struct ec_key_st { 221struct ec_key_st {