From: Nikos Mavrogiannopoulos Date: Thu, 7 Jun 2012 20:13:32 +0000 (+0200) Subject: Print the fingerprint only in the first certificate in the chain. X-Git-Tag: gnutls_3_0_21~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a649e5caa8eeacef0369a788f10fbf71649639dd;p=thirdparty%2Fgnutls.git Print the fingerprint only in the first certificate in the chain. --- diff --git a/src/common.c b/src/common.c index c2f30a001c..95de4b4af4 100644 --- a/src/common.c +++ b/src/common.c @@ -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);