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

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

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 %