From: Nikos Mavrogiannopoulos Date: Tue, 24 Jan 2012 18:05:29 +0000 (+0100) Subject: Do not print the same things twice. X-Git-Tag: gnutls_3_0_13~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=194a008547ff01e12bcc6800f2ff338ca4903c09;p=thirdparty%2Fgnutls.git Do not print the same things twice. --- diff --git a/src/cli.c b/src/cli.c index b533d9a048..ac0a02fc1c 100644 --- a/src/cli.c +++ b/src/cli.c @@ -828,9 +828,6 @@ main (int argc, char **argv) session_id = malloc (session_id_size); gnutls_session_get_id (hd.session, session_id, &session_id_size); - /* print some information */ - print_info (hd.session, hostname, HAVE_OPT(INSECURE)); - printf ("- Disconnecting\n"); socket_bye (&hd); diff --git a/src/common.c b/src/common.c index 4c1ed32016..bd03a54229 100644 --- a/src/common.c +++ b/src/common.c @@ -503,14 +503,6 @@ print_info (gnutls_session_t session, const char *hostname, int insecure) tmp = SU (gnutls_compression_get_name (gnutls_compression_get (session))); printf ("- Compression: %s\n", tmp); - if (verbose) - { - unsigned char id[32]; - size_t id_size = sizeof (id); - gnutls_session_get_id (session, id, &id_size); - printf ("- Session ID: %s\n", raw_to_string (id, id_size)); - } - if (verbose) { gnutls_datum_t cb;