Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2016-09-14 01:10:38 +0300
committerCQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>2016-09-16 20:27:43 +0300
commitdefe2a85b1b7848d8a9e4d1d2168113389d6ac9f (patch)
tree653819a27974db6c3864d02f64fdbed7036f20a0
parent9a5f49eec089f080e7fac41c387086f6fc0ae6a5 (diff)
Add a few more scopers.
Conscrypt uses these types. Note that BORINGSSL_MAKE_STACK_DELETER requires DECLARE_STACK_OF to work. Otherwise the compiler gives some really confusing error. Change-Id: I8d194067ea6450937e4a8fcb4acbbf98a2550bce Reviewed-on: https://boringssl-review.googlesource.com/11082 Reviewed-by: Kenny Root <kroot@google.com> Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
-rw-r--r--include/openssl/asn1.h4
-rw-r--r--include/openssl/x509.h4
-rw-r--r--include/openssl/x509v3.h13
3 files changed, 21 insertions, 0 deletions
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h
index 391be811..c8b32e72 100644
--- a/include/openssl/asn1.h
+++ b/include/openssl/asn1.h
@@ -205,6 +205,8 @@ struct asn1_object_st
int flags; /* Should we free this one */
};
+DECLARE_STACK_OF(ASN1_OBJECT)
+
#define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */
/* This indicates that the ASN1_STRING is not a real value but just a place
* holder for the location where indefinite length constructed data should
@@ -928,6 +930,8 @@ extern "C++" {
namespace bssl {
+BORINGSSL_MAKE_STACK_DELETER(ASN1_OBJECT, ASN1_OBJECT_free)
+
BORINGSSL_MAKE_DELETER(ASN1_OBJECT, ASN1_OBJECT_free)
BORINGSSL_MAKE_DELETER(ASN1_STRING, ASN1_STRING_free)
BORINGSSL_MAKE_DELETER(ASN1_TYPE, ASN1_TYPE_free)
diff --git a/include/openssl/x509.h b/include/openssl/x509.h
index b45dd3bc..667e8947 100644
--- a/include/openssl/x509.h
+++ b/include/openssl/x509.h
@@ -1230,6 +1230,10 @@ extern "C++" {
namespace bssl {
BORINGSSL_MAKE_STACK_DELETER(X509, X509_free)
+BORINGSSL_MAKE_STACK_DELETER(X509_CRL, X509_CRL_free)
+BORINGSSL_MAKE_STACK_DELETER(X509_EXTENSION, X509_EXTENSION_free)
+BORINGSSL_MAKE_STACK_DELETER(X509_NAME, X509_NAME_free)
+
BORINGSSL_MAKE_DELETER(X509, X509_free)
BORINGSSL_MAKE_DELETER(X509_ALGOR, X509_ALGOR_free)
BORINGSSL_MAKE_DELETER(X509_CRL, X509_CRL_free)
diff --git a/include/openssl/x509v3.h b/include/openssl/x509v3.h
index 67063bc8..c39cf1b0 100644
--- a/include/openssl/x509v3.h
+++ b/include/openssl/x509v3.h
@@ -732,7 +732,20 @@ void ERR_load_X509V3_strings(void);
#ifdef __cplusplus
}
+
+extern "C++" {
+
+namespace bssl {
+
+BORINGSSL_MAKE_STACK_DELETER(GENERAL_NAME, GENERAL_NAME_free)
+
+BORINGSSL_MAKE_DELETER(GENERAL_NAME, GENERAL_NAME_free)
+
+} // namespace bssl
+
+} /* extern C++ */
#endif
+
#define X509V3_R_BAD_IP_ADDRESS 100
#define X509V3_R_BAD_OBJECT 101
#define X509V3_R_BN_DEC2BN_ERROR 102