Use inner algorithm when printing certificate. Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c index f33932a..0bdc2c2 100644 --- a/crypto/asn1/t_x509.c +++ b/crypto/asn1/t_x509.c
@@ -164,7 +164,7 @@ } 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)