diff options
author | David Benjamin <davidben@google.com> | 2021-07-14 13:46:27 -0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2021-07-15 19:11:43 +0000 |
commit | 94a608a1f5d4339d95252902a9e9381c2cc1c225 (patch) | |
tree | 9a2a9ace5153ed0394ebfc60f1694a70fe0ee0be /include | |
parent | a5a9b54d84e60e6a63f64cd001db1baf131b91a1 (diff) | |
download | boringssl-94a608a1f5d4339d95252902a9e9381c2cc1c225.zip boringssl-94a608a1f5d4339d95252902a9e9381c2cc1c225.tar.gz boringssl-94a608a1f5d4339d95252902a9e9381c2cc1c225.tar.bz2 |
Make X509_EXTENSION opaque.
I've switched a few things to the accessors where it was easy, but
X509_EXTENSION is, in us and upstream, not const-correct right now, so
it's a little goofy.
Update-Note: Use X509_EXTENSION_get_* instead.
Change-Id: Ife9636051a924a950b1c739b7720baf12e35f9c7
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/48505
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/x509.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/openssl/x509.h b/include/openssl/x509.h index 4960b35..dafa677 100644 --- a/include/openssl/x509.h +++ b/include/openssl/x509.h @@ -134,12 +134,6 @@ struct X509_name_st { DEFINE_STACK_OF(X509_NAME) -struct X509_extension_st { - ASN1_OBJECT *object; - ASN1_BOOLEAN critical; - ASN1_OCTET_STRING *value; -} /* X509_EXTENSION */; - typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS; DEFINE_STACK_OF(X509_EXTENSION) @@ -1702,7 +1696,7 @@ OPENSSL_EXPORT ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne); // X509_EXTENSION_get_critical returns one if |ex| is critical and zero // otherwise. -OPENSSL_EXPORT int X509_EXTENSION_get_critical(X509_EXTENSION *ex); +OPENSSL_EXPORT int X509_EXTENSION_get_critical(const X509_EXTENSION *ex); // X509at_get_attr_count returns the number of attributes in |x|. OPENSSL_EXPORT int X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x); |