diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-28 10:00:11 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-28 10:00:11 +0000 |
commit | 3452add9c73a3ee46b77b5875ac3fa6b19eee059 (patch) | |
tree | ae5a0c9cfda756c0735b7606e893a743dd608d09 /lib/libcrypto/asn1/tasn_dec.c | |
parent | 0008b057cd99b3e00cf8daaa3d28d47bc5e02b15 (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.c | 20 |
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); |