Commit cfab88e0ff9448d0b41db4630ea39a4621dfa544
1 parent
a0cff581
Exists in
master
and in
3 other branches
Incluindo dados sobre a conexão SSL no trace
Showing
1 changed file
with
12 additions
and
1 deletions
Show diff stats
telnet.c
| ... | ... | @@ -844,7 +844,18 @@ static void ssl_negotiate(H3270 *hSession) |
| 844 | 844 | non_blocking(hSession,True); |
| 845 | 845 | |
| 846 | 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 | 860 | /* Tell the world that we are (still) connected, now in secure mode. */ |
| 850 | 861 | lib3270_set_connected(hSession); | ... | ... |