aboutsummaryrefslogtreecommitdiff
path: root/crypto/x509/t_x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-19 12:39:57 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-19 18:40:55 +0100
commit568ce3a583a17c33feacbf5028ece9f7f0680478 (patch)
treef55156e99147d3139ad974b7a9c44925982bf987 /crypto/x509/t_x509.c
parentc4fbed6c3139726fc719a703d2195f3b6426b748 (diff)
downloadopenssl-568ce3a583a17c33feacbf5028ece9f7f0680478.zip
openssl-568ce3a583a17c33feacbf5028ece9f7f0680478.tar.gz
openssl-568ce3a583a17c33feacbf5028ece9f7f0680478.tar.bz2
Constify certificate and CRL time routines.
Update certificate and CRL time routines to match new standard. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509/t_x509.c')
-rw-r--r--crypto/x509/t_x509.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c
index 5d7c130..feeff75 100644
--- a/crypto/x509/t_x509.c
+++ b/crypto/x509/t_x509.c
@@ -129,11 +129,11 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
goto err;
if (BIO_write(bp, " Not Before: ", 24) <= 0)
goto err;
- if (!ASN1_TIME_print(bp, X509_get_notBefore(x)))
+ if (!ASN1_TIME_print(bp, X509_get0_notBefore(x)))
goto err;
if (BIO_write(bp, "\n Not After : ", 25) <= 0)
goto err;
- if (!ASN1_TIME_print(bp, X509_get_notAfter(x)))
+ if (!ASN1_TIME_print(bp, X509_get0_notAfter(x)))
goto err;
if (BIO_write(bp, "\n", 1) <= 0)
goto err;