From: Rob Stradling Date: Thu, 22 Jan 2015 12:18:30 +0000 (+0000) Subject: Use inner algorithm when printing certificate. X-Git-Tag: OpenSSL_1_0_2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f11818c88dc0b22c65f19e3d351f3738f02898d7;p=oweals%2Fopenssl.git Use inner algorithm when printing certificate. Reviewed-by: Stephen Henson Reviewed-by: Tim Hudson Reviewed-by: Richard Levitte (cherry picked from commit 004efdbb41f731d36bf12d251909aaa08704a756) --- diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c index 4c9bf2c087..8aab55130c 100644 --- a/crypto/asn1/t_x509.c +++ b/crypto/asn1/t_x509.c @@ -164,7 +164,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, } if (!(cflag & X509_FLAG_NO_SIGNAME)) { - if (X509_signature_print(bp, x->sig_alg, NULL) <= 0) + if (X509_signature_print(bp, ci->signature, NULL) <= 0) goto err; #if 0 if (BIO_printf(bp, "%8sSignature Algorithm: ", "") <= 0)