From 90fac840669f02e75078052a58638ead9ed27a78 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 21 Apr 2004 12:43:21 +0000 Subject: [PATCH] Use X509_get_serialNumber() instead of accessing internals in x509.c --- apps/x509.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.34.1