diff options
| author | tb <> | 2023-07-28 10:00:10 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-28 10:00:10 +0000 |
| commit | 6602851323526cd6d822de23c4b19db917aa927a (patch) | |
| tree | 8272f88698795f7034962dbe4a4dec21929fd6ba /src/lib/libcrypto/asn1/tasn_dec.c | |
| parent | 01880b11cac352ccba5d827f27af88f31718069a (diff) | |
| download | openbsd-6602851323526cd6d822de23c4b19db917aa927a.tar.gz openbsd-6602851323526cd6d822de23c4b19db917aa927a.tar.bz2 openbsd-6602851323526cd6d822de23c4b19db917aa927a.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_dec.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_dec.c | 20 |
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 | } |
| 1260 | LCRYPTO_ALIAS(ASN1_item_ex_d2i); | 1260 | LCRYPTO_ALIAS(ASN1_item_ex_d2i); |
| 1261 | |||
| 1262 | int | ||
| 1263 | ASN1_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 | } | ||
| 1278 | LCRYPTO_ALIAS(ASN1_template_d2i); | ||
