diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-17 21:18:08 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-17 21:18:14 +0200 |
commit | 3080056f0599e306fe0d31976c611c1ebb336a50 (patch) | |
tree | 8a11a82c73697a1c44ec3f1ea414286a5f6c62dc /src/cli.c | |
parent | 25b66dfb7a1d41fa4efd716036c05535d35f2b74 (diff) | |
download | gnutls-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |