Use inner algorithm when printing certificate.
authorRob Stradling <rob.stradling@comodo.com>
Thu, 22 Jan 2015 12:18:30 +0000 (12:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 22 Jan 2015 14:10:02 +0000 (14:10 +0000)
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)

crypto/asn1/t_x509.c

index 07e6397e85fc9db8bfa209c4027291de2d63e9d5..4e7c45dd5ddc8948a8c12cf444e4eef6c145f16a 100644 (file)
@@ -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)