diff options
author | David Benjamin <davidben@google.com> | 2023-10-01 23:53:03 -0400 |
---|---|---|
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-12 14:04:35 +0000 |
commit | 5e1496bf00a1bd740f5626aa4897b105a3561254 (patch) | |
tree | 8011039ee646ca1db4857ff9e827b05f5971b2c3 /crypto/asn1 | |
parent | 5555991d3729d4231671214f0b9ba4858a5a8a81 (diff) | |
download | boringssl-5e1496bf00a1bd740f5626aa4897b105a3561254.zip boringssl-5e1496bf00a1bd740f5626aa4897b105a3561254.tar.gz boringssl-5e1496bf00a1bd740f5626aa4897b105a3561254.tar.bz2 |
Remove asn1_ex_clear from ASN1_EXTERN_FUNCS.
This is never defined.
Change-Id: I1ecaa00f780d6b2f000dc67514c2f49eb4cf2a45
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/63528
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/internal.h | 1 | ||||
-rw-r--r-- | crypto/asn1/tasn_new.c | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/crypto/asn1/internal.h b/crypto/asn1/internal.h index 5dca728..414b5a9 100644 --- a/crypto/asn1/internal.h +++ b/crypto/asn1/internal.h @@ -256,7 +256,6 @@ typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); typedef struct ASN1_EXTERN_FUNCS_st { ASN1_ex_new_func *asn1_ex_new; ASN1_ex_free_func *asn1_ex_free; - ASN1_ex_free_func *asn1_ex_clear; ASN1_ex_d2i *asn1_ex_d2i; ASN1_ex_i2d *asn1_ex_i2d; } ASN1_EXTERN_FUNCS; diff --git a/crypto/asn1/tasn_new.c b/crypto/asn1/tasn_new.c index e896ead..cc30bc8 100644 --- a/crypto/asn1/tasn_new.c +++ b/crypto/asn1/tasn_new.c @@ -183,16 +183,9 @@ auxerr: } static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) { - const ASN1_EXTERN_FUNCS *ef; - switch (it->itype) { case ASN1_ITYPE_EXTERN: - ef = it->funcs; - if (ef && ef->asn1_ex_clear) { - ef->asn1_ex_clear(pval, it); - } else { - *pval = NULL; - } + *pval = NULL; break; case ASN1_ITYPE_PRIMITIVE: |