diff --git a/src/core/linux/connect.c b/src/core/linux/connect.c index 7702b1e..41c9e7a 100644 --- a/src/core/linux/connect.c +++ b/src/core/linux/connect.c @@ -196,10 +196,11 @@ static void net_connected(H3270 *hSession, int GNUC_UNUSED(fd), LIB3270_IO_FLAG hSession->ever_3270 = False; #if defined(HAVE_LIBSSL) + debug("%s: TLS/SSL is %s",__FUNCTION__,hSession->ssl.enabled ? "ENABLED" : "DISABLED") + trace_dsn(hSession,"TLS/SSL is %s\n", hSession->ssl.enabled ? "enabled" : "disabled" ); if(hSession->ssl.enabled) { hSession->ssl.host = 1; - if(ssl_init(hSession)) return errno = ENOTCONN; diff --git a/src/core/telnet.c b/src/core/telnet.c index 8cf6960..02879a1 100644 --- a/src/core/telnet.c +++ b/src/core/telnet.c @@ -1060,6 +1060,8 @@ static int telnet_fsm(H3270 *hSession, unsigned char c) cmd(SB), opt(TELOPT_STARTTLS), cmd(SE)); + + debug("%s: %s requires TLS/SSL",__FUNCTION__,opt(TELOPT_STARTTLS)); hSession->need_tls_follows = 1; } #endif /*]*/ diff --git a/src/testprogram/testprogram.c b/src/testprogram/testprogram.c index 6a6c229..a26034b 100644 --- a/src/testprogram/testprogram.c +++ b/src/testprogram/testprogram.c @@ -57,7 +57,8 @@ int main(int argc, char *argv[]) lib3270_crl_set_preferred_protocol(h,"ldap"); #endif // HAVE_LDAP - lib3270_set_url(h,NULL); + if(lib3270_set_url(h,NULL)) + lib3270_set_url(h,"tn3270://fandezhi.efglobe.com"); int long_index =0; int opt; @@ -104,9 +105,6 @@ int main(int argc, char *argv[]) } - if(lib3270_set_url(h,NULL)) - lib3270_set_url(h,"tn3270://fandezhi.efglobe.com"); - //lib3270_set_toggle(h,LIB3270_TOGGLE_DS_TRACE,1); lib3270_set_toggle(h,LIB3270_TOGGLE_SSL_TRACE,1); -- libgit2 0.21.2