summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-04-17 21:18:08 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-04-17 21:18:14 +0200
commit3080056f0599e306fe0d31976c611c1ebb336a50 (patch)
tree8a11a82c73697a1c44ec3f1ea414286a5f6c62dc /src/cli.c
parent25b66dfb7a1d41fa4efd716036c05535d35f2b74 (diff)
downloadgnutls-3080056f0599e306fe0d31976c611c1ebb336a50.tar.gz
Do not print certificates twice.
That will improve the visibility of messages of the various verification methods.
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cli.c b/src/cli.c
index 6837777d22..90c144e1a5 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -471,7 +471,6 @@ static int cert_verify_callback(gnutls_session_t session)
txt_service,
GNUTLS_CRT_X509, cert, 0);
if (rc == GNUTLS_E_NO_CERTIFICATE_FOUND) {
- print_cert_info_compact(session);
fprintf(stderr,
"Host %s (%s) has never been contacted before.\n",
hostname, txt_service);
@@ -485,7 +484,6 @@ static int cert_verify_callback(gnutls_session_t session)
if (rc == 0)
return -1;
} else if (rc == GNUTLS_E_CERTIFICATE_KEY_MISMATCH) {
- print_cert_info_compact(session);
fprintf(stderr,
"Warning: host %s is known and it is associated with a different key.\n",
hostname);