From: Dr. Stephen Henson Date: Wed, 21 Apr 2004 12:43:21 +0000 (+0000) Subject: Use X509_get_serialNumber() instead of accessing internals in x509.c X-Git-Tag: BEN_FIPS_TEST_6~14^2~287 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=90fac840669f02e75078052a58638ead9ed27a78;hp=64674bcc8cee73853d00388a5e83cb1b2f38bec1;ds=sidebyside Use X509_get_serialNumber() instead of accessing internals in x509.c --- 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)