aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509_set.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-17 13:50:48 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-17 13:59:04 +0100
commit8900f3e3982a016a25ad87a2270446e780038ec9 (patch)
tree686da17998e72e5a54c75bb511459e55bc5344f9 /crypto/x509/x509_set.c
parent5e6089f0eba7b12f21b3237c57f2bd56049eb1ae (diff)
downloadopenssl-8900f3e3982a016a25ad87a2270446e780038ec9.tar.gz
Convert X509* functions to use const getters
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509/x509_set.c')
-rw-r--r--crypto/x509/x509_set.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/x509/x509_set.c b/crypto/x509/x509_set.c
index ecf5f04f20..dfcecb15c2 100644
--- a/crypto/x509/x509_set.c
+++ b/crypto/x509/x509_set.c
@@ -135,12 +135,13 @@ X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x)
return x->cert_info.key;
}
-STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x)
+const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x)
{
return x->cert_info.extensions;
}
-void X509_get0_uids(ASN1_BIT_STRING **piuid, ASN1_BIT_STRING **psuid, X509 *x)
+void X509_get0_uids(const X509 *x, const ASN1_BIT_STRING **piuid,
+ const ASN1_BIT_STRING **psuid)
{
if (piuid != NULL)
*piuid = x->cert_info.issuerUID;
@@ -148,7 +149,7 @@ void X509_get0_uids(ASN1_BIT_STRING **piuid, ASN1_BIT_STRING **psuid, X509 *x)
*psuid = x->cert_info.subjectUID;
}
-X509_ALGOR *X509_get0_tbs_sigalg(X509 *x)
+const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x)
{
return &x->cert_info.signature;
}