summaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2004-04-21 12:43:21 +0000
committerDr. Stephen Henson <steve@openssl.org>2004-04-21 12:43:21 +0000
commit90fac840669f02e75078052a58638ead9ed27a78 (patch)
treeb869eecc2d01c951bc94728cadd4241a41a0f848 /apps/x509.c
parent64674bcc8cee73853d00388a5e83cb1b2f38bec1 (diff)
Use X509_get_serialNumber() instead of accessing internals in x509.c
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c
index 58706be344..4869b14025 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -695,7 +695,8 @@ bad:
else if (serial == i)
{
BIO_printf(STDout,"serial=");
- i2a_ASN1_INTEGER(STDout,x->cert_info->serialNumber);
+ i2a_ASN1_INTEGER(STDout,
+ X509_get_serialNumber(x));
BIO_printf(STDout,"\n");
}
else if (email == i)