Posted to tcl by rmax at Wed Jun 25 11:19:40 GMT 2014view pretty

# This shows that TLS handshake stops somewhere in the early stages
package require tls
tls::init -command tls::callback
set ::tls::debug 2
set sock [tls::socket 54.87.176.38 9553]
tls::handshake $sock

Comments

Posted by oehhar at Wed Jun 25 11:47:34 GMT 2014 [text] [code]

Test on Windows Vista 32 bit with fossil branch zip-427: --- % package require tls 1.6 % tls::init -command tls::callback -command tls::callback % set ::tls::debug 2 2 % set sock [tls::socket 54.87.176.38 9553] sock01A13508 % tls::handshake $sock TLS/sock01A13508: handshake/start: before/connect initialization TLS/sock01A13508: connect/loop: before/connect initialization TLS/sock01A13508: connect/loop: SSLv2/v3 write client hello A handshake failed: other error % --- So no crash but error

Posted by oehhar at Wed Jun 25 13:17:01 GMT 2014 [text] [code]

Here the non-blocking case on WIndows: % package require tls 1.6 % tls::init -command tls::callback -command tls::callback % set ::tls::debug 2 2 % set sock [tls::socket 54.87.176.38 9553] sock01A03508 % fconfigure $sock -blocking 0 % tls::handshake $sock TLS/sock01A03508: handshake/start: before/connect initialization TLS/sock01A03508: connect/loop: before/connect initialization TLS/sock01A03508: connect/loop: SSLv2/v3 write client hello A TLS/sock01A03508: connect/exit: SSLv2/v3 read server hello A 0 %