summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/tasn_dec.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-07-28 10:00:11 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-07-28 10:00:11 +0000
commit3452add9c73a3ee46b77b5875ac3fa6b19eee059 (patch)
treeae5a0c9cfda756c0735b7606e893a743dd608d09 /lib/libcrypto/asn1/tasn_dec.c
parent0008b057cd99b3e00cf8daaa3d28d47bc5e02b15 (diff)
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
Diffstat (limited to 'lib/libcrypto/asn1/tasn_dec.c')
-rw-r--r--lib/libcrypto/asn1/tasn_dec.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/libcrypto/asn1/tasn_dec.c b/lib/libcrypto/asn1/tasn_dec.c
index 553cab24943..31b9efee54a 100644
--- a/lib/libcrypto/asn1/tasn_dec.c
+++ b/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);