Commit 2a50d6b6de0e5b0d92ba8b64ab6b646a51339033
1 parent
b9fdc4bd
Exists in
master
and in
5 other branches
Incluindo dados sobre a conexão SSL no trace
Showing
2 changed files
with
13 additions
and
2 deletions
Show diff stats
po/pt_BR.po
@@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
5 | msgstr "" | 5 | msgstr "" |
6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
8 | -"POT-Creation-Date: 2012-12-26 11:20-0200\n" | 8 | +"POT-Creation-Date: 2012-12-27 15:43-0200\n" |
9 | "PO-Revision-Date: 2012-12-26 10:36-0200\n" | 9 | "PO-Revision-Date: 2012-12-26 10:36-0200\n" |
10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
11 | "Language-Team: Português <>\n" | 11 | "Language-Team: Português <>\n" |
src/lib3270/telnet.c
@@ -844,7 +844,18 @@ static void ssl_negotiate(H3270 *hSession) | @@ -844,7 +844,18 @@ static void ssl_negotiate(H3270 *hSession) | ||
844 | non_blocking(hSession,True); | 844 | non_blocking(hSession,True); |
845 | 845 | ||
846 | /* Success. */ | 846 | /* Success. */ |
847 | - trace_dsn(hSession,"TLS/SSL negotiated connection complete. Connection is now secure.\n"); | 847 | + if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_DS_TRACE)) |
848 | + { | ||
849 | + char buffer[4096]; | ||
850 | + int alg_bits = 0; | ||
851 | + const SSL_CIPHER * cipher = SSL_get_current_cipher(hSession->ssl_con); | ||
852 | + | ||
853 | + trace_dsn(hSession,"TLS/SSL negotiated connection complete. Connection is now secure.\n"); | ||
854 | + | ||
855 | + trace_dsn(hSession,"TLS/SSL cipher description: %s",SSL_CIPHER_description(cipher, buffer, 4095)); | ||
856 | + SSL_CIPHER_get_bits(cipher, &alg_bits); | ||
857 | + trace_dsn(hSession,"%s version %s with %d bits\n",SSL_CIPHER_get_name(cipher),SSL_CIPHER_get_version(cipher),alg_bits); | ||
858 | + } | ||
848 | 859 | ||
849 | /* Tell the world that we are (still) connected, now in secure mode. */ | 860 | /* Tell the world that we are (still) connected, now in secure mode. */ |
850 | lib3270_set_connected(hSession); | 861 | lib3270_set_connected(hSession); |