From 2a50d6b6de0e5b0d92ba8b64ab6b646a51339033 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Fri, 28 Dec 2012 18:48:50 +0000 Subject: [PATCH] Incluindo dados sobre a conexão SSL no trace --- po/pt_BR.po | 2 +- src/lib3270/telnet.c | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 4efd495..c6662ab 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-12-26 11:20-0200\n" +"POT-Creation-Date: 2012-12-27 15:43-0200\n" "PO-Revision-Date: 2012-12-26 10:36-0200\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português <>\n" diff --git a/src/lib3270/telnet.c b/src/lib3270/telnet.c index 63884c9..83e5ee2 100644 --- a/src/lib3270/telnet.c +++ b/src/lib3270/telnet.c @@ -844,7 +844,18 @@ static void ssl_negotiate(H3270 *hSession) non_blocking(hSession,True); /* Success. */ - trace_dsn(hSession,"TLS/SSL negotiated connection complete. Connection is now secure.\n"); + if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_DS_TRACE)) + { + char buffer[4096]; + int alg_bits = 0; + const SSL_CIPHER * cipher = SSL_get_current_cipher(hSession->ssl_con); + + trace_dsn(hSession,"TLS/SSL negotiated connection complete. Connection is now secure.\n"); + + trace_dsn(hSession,"TLS/SSL cipher description: %s",SSL_CIPHER_description(cipher, buffer, 4095)); + SSL_CIPHER_get_bits(cipher, &alg_bits); + trace_dsn(hSession,"%s version %s with %d bits\n",SSL_CIPHER_get_name(cipher),SSL_CIPHER_get_version(cipher),alg_bits); + } /* Tell the world that we are (still) connected, now in secure mode. */ lib3270_set_connected(hSession); -- libgit2 0.21.2