summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Stradling <rob.stradling@comodo.com>2015-01-22 12:18:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2015-01-22 12:42:15 +0000
commitf11818c88dc0b22c65f19e3d351f3738f02898d7 (patch)
tree4e834e63fef112c18694abe3c7051457d79c664e
parent3577e01438469a64bfd435cbad902f2e291ddb1f (diff)
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> (cherry picked from commit 004efdbb41f731d36bf12d251909aaa08704a756)
-rw-r--r--crypto/asn1/t_x509.c2
1 files changed, 1 insertions, 1 deletions
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)