From f0045e366b4be4794ddf9c7123b1bb43169d83ea Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 28 Jul 2023 10:00:10 +0000 Subject: Make ASN1_{primitive,template}_* internal These were long removed from the public OpenSSL API, so we can do the same. Remove ASN1_template_{d2i,i2d}() - those are unused internally. ok jsing --- src/lib/libcrypto/asn1/tasn_dec.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/lib/libcrypto/asn1/tasn_dec.c') diff --git a/src/lib/libcrypto/asn1/tasn_dec.c b/src/lib/libcrypto/asn1/tasn_dec.c index 553cab2494..31b9efee54 100644 --- a/src/lib/libcrypto/asn1/tasn_dec.c +++ b/src/lib/libcrypto/asn1/tasn_dec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tasn_dec.c,v 1.87 2023/07/05 21:23:36 beck Exp $ */ +/* $OpenBSD: tasn_dec.c,v 1.88 2023/07/28 10:00:10 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -1258,21 +1258,3 @@ ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long inlen, return ret; } LCRYPTO_ALIAS(ASN1_item_ex_d2i); - -int -ASN1_template_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, - const ASN1_TEMPLATE *at) -{ - CBS cbs; - int ret; - - if (len < 0) - return 0; - - CBS_init(&cbs, *in, len); - if ((ret = asn1_template_d2i(pval, &cbs, at, 0, 0)) == 1) - *in = CBS_data(&cbs); - - return ret; -} -LCRYPTO_ALIAS(ASN1_template_d2i); -- cgit v1.2.3-55-g6feb