aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2021-10-20 00:35:43 -0400
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-10-20 23:50:16 +0000
commita259a5484237190bf58d57fd80a8b107ad82869f (patch)
tree9adcbd0e071b51ce1e75d26fe6edec07c418b224 /crypto
parentefab69bf7323009da8257f47e7e0976a43e12c64 (diff)
downloadboringssl-a259a5484237190bf58d57fd80a8b107ad82869f.zip
boringssl-a259a5484237190bf58d57fd80a8b107ad82869f.tar.gz
boringssl-a259a5484237190bf58d57fd80a8b107ad82869f.tar.bz2
Unexport ASN1_OBJECT_new.
Outside the library, this function is practically useless. It creates an empty ASN1_OBJECT, which can never be filled in because the struct is private and there are no mutating setters. (See https://boringssl-review.googlesource.com/c/boringssl/+/46164 and https://boringssl-review.googlesource.com/c/boringssl/+/48326 for a discussion on why it's important ASN1_OBJECTs are immutable.) Update-Note: ASN1_OBJECT_new is no longer exported. While this function does remain in OpenSSL, it is extremely unlikely anyone has found a use for this function. Bug: 452 Change-Id: I111a9a1ce3ca4d7aa717a3c3a03d34c05af8fdbd Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/50025 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asn1/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/internal.h b/crypto/asn1/internal.h
index 5731499..4190e61 100644
--- a/crypto/asn1/internal.h
+++ b/crypto/asn1/internal.h
@@ -106,6 +106,8 @@ struct asn1_object_st {
int flags; /* Should we free this one */
};
+ASN1_OBJECT *ASN1_OBJECT_new(void);
+
int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d);
int asn1_generalizedtime_to_tm(struct tm *tm, const ASN1_GENERALIZEDTIME *d);