diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-17 13:50:48 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-17 13:59:04 +0100 |
commit | 8900f3e3982a016a25ad87a2270446e780038ec9 (patch) | |
tree | 686da17998e72e5a54c75bb511459e55bc5344f9 /crypto/x509/t_x509.c | |
parent | 5e6089f0eba7b12f21b3237c57f2bd56049eb1ae (diff) |
Convert X509* functions to use const getters
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509/t_x509.c')
-rw-r--r-- | crypto/x509/t_x509.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c index 9fec3ed99b..bfd6f6d8ff 100644 --- a/crypto/x509/t_x509.c +++ b/crypto/x509/t_x509.c @@ -110,7 +110,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, } if (!(cflag & X509_FLAG_NO_SIGNAME)) { - X509_ALGOR *tsig_alg = X509_get0_tbs_sigalg(x); + const X509_ALGOR *tsig_alg = X509_get0_tbs_sigalg(x); if (X509_signature_print(bp, tsig_alg, NULL) <= 0) goto err; } @@ -170,8 +170,8 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, } if (!(cflag & X509_FLAG_NO_IDS)) { - ASN1_BIT_STRING *iuid, *suid; - X509_get0_uids(&iuid, &suid, x); + const ASN1_BIT_STRING *iuid, *suid; + X509_get0_uids(x, &iuid, &suid); if (iuid != NULL) { if (BIO_printf(bp, "%8sIssuer Unique ID: ", "") <= 0) goto err; |