summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/tasn_dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_dec.c')
-rw-r--r--src/lib/libcrypto/asn1/tasn_dec.c20
1 files changed, 1 insertions, 19 deletions
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 @@
1/* $OpenBSD: tasn_dec.c,v 1.87 2023/07/05 21:23:36 beck Exp $ */ 1/* $OpenBSD: tasn_dec.c,v 1.88 2023/07/28 10:00:10 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -1258,21 +1258,3 @@ ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long inlen,
1258 return ret; 1258 return ret;
1259} 1259}
1260LCRYPTO_ALIAS(ASN1_item_ex_d2i); 1260LCRYPTO_ALIAS(ASN1_item_ex_d2i);
1261
1262int
1263ASN1_template_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
1264 const ASN1_TEMPLATE *at)
1265{
1266 CBS cbs;
1267 int ret;
1268
1269 if (len < 0)
1270 return 0;
1271
1272 CBS_init(&cbs, *in, len);
1273 if ((ret = asn1_template_d2i(pval, &cbs, at, 0, 0)) == 1)
1274 *in = CBS_data(&cbs);
1275
1276 return ret;
1277}
1278LCRYPTO_ALIAS(ASN1_template_d2i);