summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/tasn_enc.c
diff options
context:
space:
mode:
authortb <>2023-07-28 10:00:10 +0000
committertb <>2023-07-28 10:00:10 +0000
commitf0045e366b4be4794ddf9c7123b1bb43169d83ea (patch)
tree8272f88698795f7034962dbe4a4dec21929fd6ba /src/lib/libcrypto/asn1/tasn_enc.c
parentb57b8995befab5a960cda55abaa2c8eeb444dd0a (diff)
downloadopenbsd-f0045e366b4be4794ddf9c7123b1bb43169d83ea.tar.gz
openbsd-f0045e366b4be4794ddf9c7123b1bb43169d83ea.tar.bz2
openbsd-f0045e366b4be4794ddf9c7123b1bb43169d83ea.zip
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 'src/lib/libcrypto/asn1/tasn_enc.c')
-rw-r--r--src/lib/libcrypto/asn1/tasn_enc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_enc.c b/src/lib/libcrypto/asn1/tasn_enc.c
index be0579f840..b71993a139 100644
--- a/src/lib/libcrypto/asn1/tasn_enc.c
+++ b/src/lib/libcrypto/asn1/tasn_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tasn_enc.c,v 1.32 2023/07/05 21:23:36 beck Exp $ */ 1/* $OpenBSD: tasn_enc.c,v 1.33 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 */
@@ -271,14 +271,6 @@ ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it,
271} 271}
272LCRYPTO_ALIAS(ASN1_item_ex_i2d); 272LCRYPTO_ALIAS(ASN1_item_ex_i2d);
273 273
274int
275ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out,
276 const ASN1_TEMPLATE *tt)
277{
278 return asn1_template_ex_i2d(pval, out, tt, -1, 0);
279}
280LCRYPTO_ALIAS(ASN1_template_i2d);
281
282static int 274static int
283asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out, 275asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
284 const ASN1_TEMPLATE *tt, int tag, int iclass) 276 const ASN1_TEMPLATE *tt, int tag, int iclass)