From abe50b50f7d087e564e2a1f523a31c844de1ade0 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 15 Apr 2024 15:41:27 +0000 Subject: [PATCH] Make ECPARAMETERS_{new,free,it} internal-only ok jsing --- lib/libcrypto/Symbols.list | 3 --- lib/libcrypto/ec/ec_asn1.c | 10 +++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/libcrypto/Symbols.list b/lib/libcrypto/Symbols.list index 36bf47c4ebb..0bb8bb6aea6 100644 --- a/lib/libcrypto/Symbols.list +++ b/lib/libcrypto/Symbols.list @@ -885,9 +885,6 @@ ECDSA_do_verify ECDSA_sign ECDSA_size ECDSA_verify -ECPARAMETERS_free -ECPARAMETERS_it -ECPARAMETERS_new ECPKPARAMETERS_free ECPKPARAMETERS_it ECPKPARAMETERS_new diff --git a/lib/libcrypto/ec/ec_asn1.c b/lib/libcrypto/ec/ec_asn1.c index 683ca174173..eb28fa53324 100644 --- a/lib/libcrypto/ec/ec_asn1.c +++ b/lib/libcrypto/ec/ec_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_asn1.c,v 1.48 2023/07/07 19:37:53 beck Exp $ */ +/* $OpenBSD: ec_asn1.c,v 1.49 2024/04/15 15:41:27 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -448,16 +448,16 @@ const ASN1_ITEM ECPARAMETERS_it = { .sname = "ECPARAMETERS", }; -ECPARAMETERS *ECPARAMETERS_new(void); -void ECPARAMETERS_free(ECPARAMETERS *a); +static ECPARAMETERS *ECPARAMETERS_new(void); +static void ECPARAMETERS_free(ECPARAMETERS *a); -ECPARAMETERS * +static ECPARAMETERS * ECPARAMETERS_new(void) { return (ECPARAMETERS*)ASN1_item_new(&ECPARAMETERS_it); } -void +static void ECPARAMETERS_free(ECPARAMETERS *a) { ASN1_item_free((ASN1_VALUE *)a, &ECPARAMETERS_it); -- 2.20.1