From c7d13c138c0aaaa6bff867b5137cf1e74950f53a Mon Sep 17 00:00:00 2001 From: FdaSilvaYY Date: Sun, 10 Jul 2016 00:59:23 +0200 Subject: Constify X509|X509_CRL|X509_REVOKED_get_ext Reviewed-by: Matt Caswell Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1300) --- crypto/x509/x509_ext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto') diff --git a/crypto/x509/x509_ext.c b/crypto/x509/x509_ext.c index 9e6fa6b5a5..55a95d9d3c 100644 --- a/crypto/x509/x509_ext.c +++ b/crypto/x509/x509_ext.c @@ -37,7 +37,7 @@ int X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos) return (X509v3_get_ext_by_critical(x->crl.extensions, crit, lastpos)); } -X509_EXTENSION *X509_CRL_get_ext(X509_CRL *x, int loc) +X509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc) { return (X509v3_get_ext(x->crl.extensions, loc)); } @@ -84,7 +84,7 @@ int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos) (x->cert_info.extensions, crit, lastpos)); } -X509_EXTENSION *X509_get_ext(X509 *x, int loc) +X509_EXTENSION *X509_get_ext(const X509 *x, int loc) { return (X509v3_get_ext(x->cert_info.extensions, loc)); } @@ -132,7 +132,7 @@ int X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x, int crit, int lastpo return (X509v3_get_ext_by_critical(x->extensions, crit, lastpos)); } -X509_EXTENSION *X509_REVOKED_get_ext(X509_REVOKED *x, int loc) +X509_EXTENSION *X509_REVOKED_get_ext(const X509_REVOKED *x, int loc) { return (X509v3_get_ext(x->extensions, loc)); } -- cgit v1.2.3