diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-05-14 08:58:28 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-06-04 21:30:41 -0400 |
commit | 7d7da288b81aea19622ea1820722ce869fbe0364 (patch) | |
tree | 490190e9c15a08a91fcc9e1fc1bc8883316c50b0 /crypto/x509/x509_lu.c | |
parent | a9936b5a127f8f5816073bf0f3e82dd23b46b668 (diff) |
Constify X509_OBJECT_get_type & X509_OBJECT_get0_X509
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1074)
Diffstat (limited to 'crypto/x509/x509_lu.c')
-rw-r--r-- | crypto/x509/x509_lu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index ea7f4714e0..0b5b5b9ed7 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -370,7 +370,7 @@ int X509_OBJECT_up_ref_count(X509_OBJECT *a) return 1; } -X509 *X509_OBJECT_get0_X509(X509_OBJECT *a) +X509 *X509_OBJECT_get0_X509(const X509_OBJECT *a) { if (a == NULL || a->type != X509_LU_X509) return NULL; @@ -384,7 +384,7 @@ X509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *a) return a->data.crl; } -int X509_OBJECT_get_type(X509_OBJECT *a) +int X509_OBJECT_get_type(const X509_OBJECT *a) { return a->type; } |