aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-05-03 21:26:25 +1000
committerSteve Bennett <steveb@workware.net.au>2020-05-06 11:22:56 +1000
commit305a61b3d3a69aaea55e15e3fbd47b1c4247cf33 (patch)
tree0c63be28b4c8247bcab676775727d375ef91be74 /jim_tcl.txt
parent90669224d718ec875d83df47694370d1cc6ccf23 (diff)
downloadjimtcl-305a61b3d3a69aaea55e15e3fbd47b1c4247cf33.zip
jimtcl-305a61b3d3a69aaea55e15e3fbd47b1c4247cf33.tar.gz
jimtcl-305a61b3d3a69aaea55e15e3fbd47b1c4247cf33.tar.bz2
aio: ssl: Allow SNI to be specified
For some SSL connections it is necessary to set the Server Name Indication in the connection in order to receive the correct certificate. Allow this as part of the client ssl call with: $sock ssl -sni $servername Also for -server mode, allow the certificate and private key to be stored in a single file and only be specified once. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index d0f3b25..73c0593 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -4846,8 +4846,12 @@ aio
+*vtime* 'time'+;;
Timeout for noncanonical read (units of 0.1 seconds)
-+$handle *ssl* ?*-server* 'cert priv'?+::
++$handle *ssl* ?*-server* 'cert ?key?'|*-sni* 'servername'?+::
Upgrades the stream to a SSL/TLS session and returns the handle.
+ If +-server+ is specified, either both the certificate and private key files
+ must be specified, or a single file must be specified containing both.
+ If +-server+ is not specified, the connection is a client connection. In this case
+ +-sni+ may be specified if required to set the Server Name Indication.
+$handle *unlock*+::
Release a POSIX lock previously acquired by `aio lock`.