]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Print the fingerprint only in the first certificate in the chain.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 7 Jun 2012 20:13:32 +0000 (22:13 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 7 Jun 2012 20:13:32 +0000 (22:13 +0200)
src/common.c

index c2f30a001cc6b7eca8d633b60f344ace14afdd55..95de4b4af4597ae5355a145eab3e2439edbed7af 100644 (file)
@@ -139,6 +139,7 @@ print_x509_info (gnutls_session_t session, int flag, int print_cert)
             }
 
           printf ("- Certificate[%d] info:\n - ", j);
+          if (flag == GNUTLS_CRT_PRINT_COMPACT && j > 0) flag = GNUTLS_CRT_PRINT_ONELINE;
 
           ret =
             gnutls_x509_crt_print (crt, flag, &cinfo);