This patch adds rudimentary support for Server Name Indication as specified in sec. 3.1 of RFC 4366. It has been tested against OpenSSL only; I'm not sure if it works with GNU TLS. This patch assumes an SNI-capable version of OpenSSL, but autoconf macros and ifdefs can be added to avoid issues with earlier versions.
Trivial usage example:
package require http
package require tls
::http::register https 443 [list ::tls::socket -tls1 true -sni foo.bar.com]
set tok [http::geturl https://foo.bar.com -channel stdout]
Log in to post a comment.