Artifact
59c4d46cd798f61520a3965a0ab6972ba59d6cf3:
0000: 3c 21 64 6f 63 74 79 70 65 20 68 74 6d 6c 20 70 <!doctype html p
0010: 75 62 6c 69 63 20 22 2d 2f 2f 57 33 43 2f 2f 44 ublic "-//W3C//D
0020: 54 44 20 48 54 4d 4c 20 34 2e 30 20 54 72 61 6e TD HTML 4.0 Tran
0030: 73 69 74 69 6f 6e 61 6c 2f 2f 45 4e 22 3e 20 0a sitional//EN"> .
0040: 0a 3c 68 74 6d 6c 3e 0a 0a 3c 68 65 61 64 3e 0a .<html>..<head>.
0050: 3c 6d 65 74 61 20 68 74 74 70 2d 65 71 75 69 76 <meta http-equiv
0060: 3d 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 0a ="Content-Type".
0070: 63 6f 6e 74 65 6e 74 3d 22 74 65 78 74 2f 68 74 content="text/ht
0080: 6d 6c 3b 20 63 68 61 72 73 65 74 3d 69 73 6f 2d ml; charset=iso-
0090: 38 38 35 39 2d 31 22 3e 0a 3c 6d 65 74 61 20 6e 8859-1">.<meta n
00a0: 61 6d 65 3d 22 41 75 74 68 6f 72 22 0a 63 6f 6e ame="Author".con
00b0: 74 65 6e 74 3d 22 4d 61 74 74 20 4e 65 77 6d 61 tent="Matt Newma
00c0: 6e 20 26 6c 74 3b 6d 61 74 74 40 6e 6f 76 61 64 n <matt@novad
00d0: 69 67 6d 2e 63 6f 6d 26 67 74 3b 22 3e 0a 3c 6d igm.com>">.<m
00e0: 65 74 61 20 6e 61 6d 65 3d 22 43 6f 70 79 72 69 eta name="Copyri
00f0: 67 68 74 22 20 63 6f 6e 74 65 6e 74 3d 22 31 39 ght" content="19
0100: 39 39 20 4d 61 74 74 20 4e 65 77 6d 61 6e 2e 22 99 Matt Newman."
0110: 3e 0a 3c 74 69 74 6c 65 3e 54 4c 53 20 28 53 53 >.<title>TLS (SS
0120: 4c 29 20 54 63 6c 20 43 6f 6d 6d 61 6e 64 73 3c L) Tcl Commands<
0130: 2f 74 69 74 6c 65 3e 0a 3c 2f 68 65 61 64 3e 0a /title>.</head>.
0140: 0a 3c 62 6f 64 79 20 62 67 63 6f 6c 6f 72 3d 22 .<body bgcolor="
0150: 23 46 46 46 46 46 46 22 3e 0a 0a 3c 64 6c 3e 0a #FFFFFF">..<dl>.
0160: 20 20 20 20 3c 64 64 3e 3c 61 20 68 72 65 66 3d <dd><a href=
0170: 22 23 4e 41 4d 45 22 3e 4e 41 4d 45 3c 2f 61 3e "#NAME">NAME</a>
0180: 20 3c 64 6c 3e 0a 20 20 20 20 20 20 20 20 20 20 <dl>.
0190: 20 20 3c 64 64 3e 3c 73 74 72 6f 6e 67 3e 74 6c <dd><strong>tl
01a0: 73 3c 2f 73 74 72 6f 6e 67 3e 20 2d 20 62 69 6e s</strong> - bin
01b0: 64 69 6e 67 20 74 6f 20 3c 73 74 72 6f 6e 67 3e ding to <strong>
01c0: 4f 70 65 6e 53 53 4c 3c 2f 73 74 72 6f 6e 67 3e OpenSSL</strong>
01d0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .
01e0: 20 74 6f 6f 6c 6b 69 74 2e 3c 2f 64 64 3e 0a 20 toolkit.</dd>.
01f0: 20 20 20 20 20 20 20 3c 2f 64 6c 3e 0a 20 20 20 </dl>.
0200: 20 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e 3c </dd>. <dd><
0210: 61 20 68 72 65 66 3d 22 23 53 59 4e 4f 50 53 49 a href="#SYNOPSI
0220: 53 22 3e 53 59 4e 4f 50 53 49 53 3c 2f 61 3e 20 S">SYNOPSIS</a>
0230: 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e 3c 64 </dd>. <dd><d
0240: 6c 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c l>. <
0250: 64 64 3e 3c 62 3e 70 61 63 6b 61 67 65 20 72 65 dd><b>package re
0260: 71 75 69 72 65 20 54 63 6c 20 3c 2f 62 3e 3c 65 quire Tcl </b><e
0270: 6d 3e 3f 38 2e 32 3f 3c 2f 65 6d 3e 3c 2f 64 64 m>?8.2?</em></dd
0280: 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c 64 >. <d
0290: 64 3e 3c 62 3e 70 61 63 6b 61 67 65 20 72 65 71 d><b>package req
02a0: 75 69 72 65 20 74 6c 73 20 3c 2f 62 3e 3c 65 6d uire tls </b><em
02b0: 3e 3f 31 2e 35 3f 3c 2f 65 6d 3e 3c 2f 64 64 3e >?1.5?</em></dd>
02c0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c 64 74 . <dt
02d0: 3e 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 20 > </dt>.
02e0: 20 20 20 20 20 20 20 20 20 3c 64 64 3e 3c 62 3e <dd><b>
02f0: 74 6c 73 3a 3a 69 6e 69 74 20 3c 2f 62 3e 3c 69 tls::init </b><i
0300: 3e 3f 6f 70 74 69 6f 6e 73 3f 3c 2f 69 3e 20 3c >?options?</i> <
0310: 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 20 20 20 /dd>.
0320: 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 73 6f 63 <dd><b>tls::soc
0330: 6b 65 74 20 3c 2f 62 3e 3c 65 6d 3e 3f 6f 70 74 ket </b><em>?opt
0340: 69 6f 6e 73 3f 20 68 6f 73 74 20 70 6f 72 74 3c ions? host port<
0350: 2f 65 6d 3e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 /em></dd>.
0360: 20 20 20 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 <dd><b>tls
0370: 3a 3a 73 6f 63 6b 65 74 3c 2f 62 3e 3c 65 6d 3e ::socket</b><em>
0380: 20 3f 2d 73 65 72 76 65 72 20 63 6f 6d 6d 61 6e ?-server comman
0390: 64 3f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 d?.
03a0: 20 20 20 3f 6f 70 74 69 6f 6e 73 3f 20 70 6f 72 ?options? por
03b0: 74 3c 2f 65 6d 3e 3c 2f 64 64 3e 0a 20 20 20 20 t</em></dd>.
03c0: 20 20 20 20 20 20 20 20 3c 64 64 3e 3c 62 3e 74 <dd><b>t
03d0: 6c 73 3a 3a 68 61 6e 64 73 68 61 6b 65 3c 2f 62 ls::handshake</b
03e0: 3e 3c 65 6d 3e 20 63 68 61 6e 6e 65 6c 3c 2f 65 ><em> channel</e
03f0: 6d 3e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 m></dd>.
0400: 20 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a <dd><b>tls::
0410: 73 74 61 74 75 73 20 3c 2f 62 3e 3c 65 6d 3e 3f status </b><em>?
0420: 2d 6c 6f 63 61 6c 3f 20 63 68 61 6e 6e 65 6c 3c -local? channel<
0430: 2f 65 6d 3e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 /em></dd>.
0440: 20 20 20 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 <dd><b>tls
0450: 3a 3a 69 6d 70 6f 72 74 3c 2f 62 3e 3c 65 6d 3e ::import</b><em>
0460: 20 63 68 61 6e 6e 65 6c 20 3f 6f 70 74 69 6f 6e channel ?option
0470: 73 3f 3c 2f 65 6d 3e 3c 2f 64 64 3e 0a 20 20 20 s?</em></dd>.
0480: 20 20 20 20 20 20 20 20 20 3c 64 64 3e 3c 62 3e <dd><b>
0490: 74 6c 73 3a 3a 63 69 70 68 65 72 73 20 3c 2f 62 tls::ciphers </b
04a0: 3e 3c 65 6d 3e 70 72 6f 74 6f 63 6f 6c 20 3f 76 ><em>protocol ?v
04b0: 65 72 62 6f 73 65 3f 3c 2f 65 6d 3e 3c 2f 64 64 erbose?</em></dd
04c0: 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c 64 >. <d
04d0: 64 3e 3c 62 3e 74 6c 73 3a 3a 76 65 72 73 69 6f d><b>tls::versio
04e0: 6e 3c 2f 62 3e 3c 2f 64 64 3e 0a 20 20 20 20 20 n</b></dd>.
04f0: 20 20 20 3c 2f 64 6c 3e 0a 20 20 20 20 3c 2f 64 </dl>. </d
0500: 64 3e 0a 20 20 20 20 3c 64 64 3e 3c 61 20 68 72 d>. <dd><a hr
0510: 65 66 3d 22 23 43 4f 4d 4d 41 4e 44 53 22 3e 43 ef="#COMMANDS">C
0520: 4f 4d 4d 41 4e 44 53 3c 2f 61 3e 3c 2f 64 64 3e OMMANDS</a></dd>
0530: 0a 20 20 20 20 3c 64 64 3e 3c 61 20 68 72 65 66 . <dd><a href
0540: 3d 22 23 43 41 4c 4c 42 41 43 4b 20 4f 50 54 49 ="#CALLBACK OPTI
0550: 4f 4e 53 22 3e 43 41 4c 4c 42 41 43 4b 20 4f 50 ONS">CALLBACK OP
0560: 54 49 4f 4e 53 3c 2f 61 3e 3c 2f 64 64 3e 0a 20 TIONS</a></dd>.
0570: 20 20 20 3c 64 64 3e 3c 61 20 68 72 65 66 3d 22 <dd><a href="
0580: 23 48 54 54 50 53 20 45 58 41 4d 50 4c 45 22 3e #HTTPS EXAMPLE">
0590: 48 54 54 50 53 20 45 58 41 4d 50 4c 45 3c 2f 61 HTTPS EXAMPLE</a
05a0: 3e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e 3c ></dd>. <dd><
05b0: 61 20 68 72 65 66 3d 22 23 53 45 45 20 41 4c 53 a href="#SEE ALS
05c0: 4f 22 3e 53 50 45 43 49 41 4c 20 43 4f 4e 53 49 O">SPECIAL CONSI
05d0: 44 45 52 41 54 49 4f 4e 53 3c 2f 61 3e 3c 2f 64 DERATIONS</a></d
05e0: 64 3e 0a 20 20 20 20 3c 64 64 3e 3c 61 20 68 72 d>. <dd><a hr
05f0: 65 66 3d 22 23 53 45 45 20 41 4c 53 4f 22 3e 53 ef="#SEE ALSO">S
0600: 45 45 20 41 4c 53 4f 3c 2f 61 3e 3c 2f 64 64 3e EE ALSO</a></dd>
0610: 0a 3c 2f 64 6c 3e 0a 0a 3c 68 72 3e 0a 0a 3c 68 .</dl>..<hr>..<h
0620: 33 3e 3c 61 20 6e 61 6d 65 3d 22 4e 41 4d 45 22 3><a name="NAME"
0630: 3e 4e 41 4d 45 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a >NAME</a></h3>..
0640: 3c 70 3e 3c 73 74 72 6f 6e 67 3e 74 6c 73 3c 2f <p><strong>tls</
0650: 73 74 72 6f 6e 67 3e 20 2d 20 62 69 6e 64 69 6e strong> - bindin
0660: 67 20 74 6f 20 3c 73 74 72 6f 6e 67 3e 4f 70 65 g to <strong>Ope
0670: 6e 53 53 4c 3c 2f 73 74 72 6f 6e 67 3e 0a 74 6f nSSL</strong>.to
0680: 6f 6c 6b 69 74 2e 3c 2f 70 3e 0a 0a 3c 68 33 3e olkit.</p>..<h3>
0690: 3c 61 20 6e 61 6d 65 3d 22 53 59 4e 4f 50 53 49 <a name="SYNOPSI
06a0: 53 22 3e 53 59 4e 4f 50 53 49 53 3c 2f 61 3e 3c S">SYNOPSIS</a><
06b0: 2f 68 33 3e 0a 0a 3c 70 3e 3c 62 3e 70 61 63 6b /h3>..<p><b>pack
06c0: 61 67 65 20 72 65 71 75 69 72 65 20 54 63 6c 20 age require Tcl
06d0: 38 2e 32 3c 2f 62 3e 3c 62 72 3e 0a 3c 62 3e 70 8.2</b><br>.<b>p
06e0: 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 74 ackage require t
06f0: 6c 73 20 31 2e 35 3c 2f 62 3e 3c 62 72 3e 0a 3c ls 1.5</b><br>.<
0700: 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74 6c br>.<a href="#tl
0710: 73 3a 3a 69 6e 69 74 22 3e 3c 62 3e 74 6c 73 3a s::init"><b>tls:
0720: 3a 69 6e 69 74 20 3c 2f 62 3e 3c 69 3e 3f 6f 70 :init </b><i>?op
0730: 74 69 6f 6e 73 3f 3c 2f 69 3e 3c 62 72 3e 0a 3c tions?</i><br>.<
0740: 2f 61 3e 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 /a><a href="#tls
0750: 3a 3a 73 6f 63 6b 65 74 22 3e 3c 62 3e 74 6c 73 ::socket"><b>tls
0760: 3a 3a 73 6f 63 6b 65 74 20 3c 2f 62 3e 3c 65 6d ::socket </b><em
0770: 3e 3f 6f 70 74 69 6f 6e 73 3f 20 68 6f 73 74 0a >?options? host.
0780: 70 6f 72 74 3c 2f 65 6d 3e 3c 62 72 3e 0a 3c 62 port</em><br>.<b
0790: 3e 74 6c 73 3a 3a 73 6f 63 6b 65 74 3c 2f 62 3e >tls::socket</b>
07a0: 3c 65 6d 3e 20 3f 2d 73 65 72 76 65 72 20 63 6f <em> ?-server co
07b0: 6d 6d 61 6e 64 3f 20 3f 6f 70 74 69 6f 6e 73 3f mmand? ?options?
07c0: 20 70 6f 72 74 3c 2f 65 6d 3e 3c 62 72 3e 0a 3c port</em><br>.<
07d0: 2f 61 3e 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 /a><a href="#tls
07e0: 3a 3a 73 74 61 74 75 73 22 3e 3c 62 3e 74 6c 73 ::status"><b>tls
07f0: 3a 3a 73 74 61 74 75 73 20 3c 2f 62 3e 3c 65 6d ::status </b><em
0800: 3e 3f 2d 6c 6f 63 61 6c 3f 20 63 68 61 6e 6e 65 >?-local? channe
0810: 6c 3c 2f 65 6d 3e 3c 62 72 3e 0a 3c 2f 61 3e 3c l</em><br>.</a><
0820: 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a 68 61 a href="#tls::ha
0830: 6e 64 73 68 61 6b 65 22 3e 3c 62 3e 74 6c 73 3a ndshake"><b>tls:
0840: 3a 68 61 6e 64 73 68 61 6b 65 3c 2f 62 3e 3c 65 :handshake</b><e
0850: 6d 3e 20 63 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c m> channel</em><
0860: 2f 61 3e 3c 62 72 3e 0a 3c 62 72 3e 0a 3c 61 20 /a><br>.<br>.<a
0870: 68 72 65 66 3d 22 23 74 6c 73 3a 3a 69 6d 70 6f href="#tls::impo
0880: 72 74 22 3e 3c 62 3e 74 6c 73 3a 3a 69 6d 70 6f rt"><b>tls::impo
0890: 72 74 20 3c 2f 62 3e 3c 69 3e 63 68 61 6e 6e 65 rt </b><i>channe
08a0: 6c 20 3f 6f 70 74 69 6f 6e 73 3f 3c 2f 69 3e 3c l ?options?</i><
08b0: 2f 61 3e 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d /a><br>.<a href=
08c0: 22 23 74 6c 73 3a 3a 63 69 70 68 65 72 73 20 70 "#tls::ciphers p
08d0: 72 6f 74 6f 63 6f 6c 20 3f 76 65 72 62 6f 73 65 rotocol ?verbose
08e0: 3f 22 3e 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a ?"><strong>tls::
08f0: 63 69 70 68 65 72 73 3c 2f 73 74 72 6f 6e 67 3e ciphers</strong>
0900: 0a 3c 65 6d 3e 70 72 6f 74 6f 63 6f 6c 20 3f 76 .<em>protocol ?v
0910: 65 72 62 6f 73 65 3f 3c 2f 65 6d 3e 3c 2f 61 3e erbose?</em></a>
0920: 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74 <br>.<a href="#t
0930: 6c 73 3a 3a 76 65 72 73 69 6f 6e 22 3e 3c 62 3e ls::version"><b>
0940: 74 6c 73 3a 3a 76 65 72 73 69 6f 6e 3c 2f 62 3e tls::version</b>
0950: 3c 2f 61 3e 0a 3c 2f 70 3e 0a 0a 3c 68 33 3e 3c </a>.</p>..<h3><
0960: 61 20 6e 61 6d 65 3d 22 44 45 53 43 52 49 50 54 a name="DESCRIPT
0970: 49 4f 4e 22 3e 44 45 53 43 52 49 50 54 49 4f 4e ION">DESCRIPTION
0980: 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 54 68 </a></h3>..<p>Th
0990: 69 73 20 65 78 74 65 6e 73 69 6f 6e 20 70 72 6f is extension pro
09a0: 76 69 64 65 73 20 61 20 67 65 6e 65 72 69 63 20 vides a generic
09b0: 62 69 6e 64 69 6e 67 20 74 6f 20 3c 61 0a 68 72 binding to <a.hr
09c0: 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f ef="http://www.o
09d0: 70 65 6e 73 73 6c 2e 6f 72 67 2f 22 3e 4f 70 65 penssl.org/">Ope
09e0: 6e 53 53 4c 3c 2f 61 3e 2c 20 75 74 69 6c 69 7a nSSL</a>, utiliz
09f0: 69 6e 67 20 74 68 65 0a 3c 73 74 72 6f 6e 67 3e ing the.<strong>
0a00: 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c Tcl_StackChannel
0a10: 3c 2f 73 74 72 6f 6e 67 3e 0a 41 50 49 20 66 6f </strong>.API fo
0a20: 72 20 54 63 6c 20 38 2e 32 20 61 6e 64 20 68 69 r Tcl 8.2 and hi
0a30: 67 68 65 72 2e 20 54 68 65 20 73 6f 63 6b 65 74 gher. The socket
0a40: 73 20 62 65 68 61 76 65 20 65 78 61 63 74 6c 79 s behave exactly
0a50: 20 74 68 65 20 73 61 6d 65 0a 61 73 20 63 68 61 the same.as cha
0a60: 6e 6e 65 6c 73 20 63 72 65 61 74 65 64 20 75 73 nnels created us
0a70: 69 6e 67 20 54 63 6c 27 73 20 62 75 69 6c 74 2d ing Tcl's built-
0a80: 69 6e 20 3c 73 74 72 6f 6e 67 3e 73 6f 63 6b 65 in <strong>socke
0a90: 74 3c 2f 73 74 72 6f 6e 67 3e 0a 63 6f 6d 6d 61 t</strong>.comma
0aa0: 6e 64 20 77 69 74 68 20 61 64 64 69 74 69 6f 6e nd with addition
0ab0: 61 6c 20 6f 70 74 69 6f 6e 73 20 66 6f 72 20 63 al options for c
0ac0: 6f 6e 74 72 6f 6c 6c 69 6e 67 20 74 68 65 20 53 ontrolling the S
0ad0: 53 4c 20 73 65 73 73 69 6f 6e 2e 0a 54 6f 20 75 SL session..To u
0ae0: 73 65 20 54 4c 53 20 77 69 74 68 20 61 6e 20 65 se TLS with an e
0af0: 61 72 6c 69 65 72 20 76 65 72 73 69 6f 6e 20 6f arlier version o
0b00: 66 20 54 63 6c 20 74 68 61 6e 20 38 2e 32 2c 20 f Tcl than 8.2,
0b10: 70 6c 65 61 73 65 20 6f 62 74 61 69 6e 0a 54 4c please obtain.TL
0b20: 53 20 31 2e 33 2e 20 20 50 6c 65 61 73 65 20 6e S 1.3. Please n
0b30: 6f 74 65 20 74 68 61 74 20 74 68 65 72 65 20 61 ote that there a
0b40: 72 65 20 6b 6e 6f 77 6e 20 6c 69 6d 69 74 61 74 re known limitat
0b50: 69 6f 6e 73 20 77 69 74 68 20 74 68 65 0a 73 74 ions with the.st
0b60: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 20 69 6d acked channel im
0b70: 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 70 72 69 plementation pri
0b80: 6f 72 20 74 6f 20 38 2e 33 2e 32 2c 20 73 6f 20 or to 8.3.2, so
0b90: 69 74 20 69 73 20 72 65 63 6f 6d 6d 65 6e 64 65 it is recommende
0ba0: 64 0a 74 68 61 74 20 54 4c 53 20 69 73 20 75 73 d.that TLS is us
0bb0: 65 64 20 77 69 74 68 20 61 6e 20 38 2e 33 2e 32 ed with an 8.3.2
0bc0: 2b 20 69 6e 74 65 72 70 72 65 74 65 72 2e 20 20 + interpreter.
0bd0: 54 68 65 20 63 75 72 72 65 6e 74 20 76 65 72 73 The current vers
0be0: 69 6f 6e 0a 6f 66 20 54 4c 53 20 77 69 6c 6c 20 ion.of TLS will
0bf0: 77 6f 72 6b 20 77 69 74 68 20 54 63 6c 20 38 2e work with Tcl 8.
0c00: 32 2b 2c 20 69 74 20 69 73 20 6a 75 73 74 20 6d 2+, it is just m
0c10: 6f 72 65 20 73 74 61 62 6c 65 20 77 69 74 68 20 ore stable with
0c20: 38 2e 33 2e 32 2b 2e 0a 3c 2f 70 3e 0a 0a 3c 68 8.3.2+..</p>..<h
0c30: 33 3e 3c 61 20 6e 61 6d 65 3d 22 43 4f 4d 4d 41 3><a name="COMMA
0c40: 4e 44 53 22 3e 43 4f 4d 4d 41 4e 44 53 3c 2f 61 NDS">COMMANDS</a
0c50: 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 54 79 70 69 63 ></h3>..<p>Typic
0c60: 61 6c 6c 79 20 6f 6e 65 20 77 6f 75 6c 64 20 75 ally one would u
0c70: 73 65 20 74 68 65 20 3c 73 74 72 6f 6e 67 3e 74 se the <strong>t
0c80: 6c 73 3a 3a 73 6f 63 6b 65 74 20 3c 2f 73 74 72 ls::socket </str
0c90: 6f 6e 67 3e 63 6f 6d 6d 61 6e 64 0a 77 68 69 63 ong>command.whic
0ca0: 68 20 70 72 6f 76 69 64 65 73 20 63 6f 6d 70 61 h provides compa
0cb0: 74 69 62 69 6c 69 74 79 20 77 69 74 68 20 74 68 tibility with th
0cc0: 65 20 6e 61 74 69 76 65 20 54 63 6c 20 3c 73 74 e native Tcl <st
0cd0: 72 6f 6e 67 3e 73 6f 63 6b 65 74 3c 2f 73 74 72 rong>socket</str
0ce0: 6f 6e 67 3e 0a 63 6f 6d 6d 61 6e 64 2e 20 49 6e ong>.command. In
0cf0: 20 73 75 63 68 20 63 61 73 65 73 20 3c 73 74 72 such cases <str
0d00: 6f 6e 67 3e 74 6c 73 3a 3a 69 6d 70 6f 72 74 3c ong>tls::import<
0d10: 2f 73 74 72 6f 6e 67 3e 20 73 68 6f 75 6c 64 20 /strong> should
0d20: 6e 6f 74 20 62 65 0a 75 73 65 64 20 64 69 72 65 not be.used dire
0d30: 63 74 6c 79 2e 3c 2f 70 3e 0a 0a 3c 64 6c 3e 0a ctly.</p>..<dl>.
0d40: 20 20 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d <dt><a name=
0d50: 22 74 6c 73 3a 3a 69 6e 69 74 22 3e 3c 62 3e 74 "tls::init"><b>t
0d60: 6c 73 3a 3a 69 6e 69 74 20 3c 2f 62 3e 3c 69 3e ls::init </b><i>
0d70: 3f 6f 70 74 69 6f 6e 73 3f 3c 2f 69 3e 3c 2f 61 ?options?</i></a
0d80: 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 54 ></dt>. <dd>T
0d90: 68 69 73 20 72 6f 75 74 69 6e 65 20 73 65 74 73 his routine sets
0da0: 20 74 68 65 20 64 65 66 61 75 6c 74 20 6f 70 74 the default opt
0db0: 69 6f 6e 73 20 75 73 65 64 20 62 79 20 3c 73 74 ions used by <st
0dc0: 72 6f 6e 67 3e 74 6c 73 3a 3a 73 6f 63 6b 65 74 rong>tls::socket
0dd0: 3c 2f 73 74 72 6f 6e 67 3e 0a 20 20 20 20 20 20 </strong>.
0de0: 20 20 61 6e 64 20 69 73 20 3c 65 6d 3e 6f 70 74 and is <em>opt
0df0: 69 6f 6e 61 6c 3c 2f 65 6d 3e 2e 20 49 66 20 79 ional</em>. If y
0e00: 6f 75 20 63 61 6c 6c 20 3c 73 74 72 6f 6e 67 3e ou call <strong>
0e10: 74 6c 73 3a 3a 69 6d 70 6f 72 74 3c 2f 73 74 72 tls::import</str
0e20: 6f 6e 67 3e 0a 20 20 20 20 20 20 20 20 64 69 72 ong>. dir
0e30: 65 63 74 6c 79 20 74 68 69 73 20 72 6f 75 74 69 ectly this routi
0e40: 6e 65 20 68 61 73 20 6e 6f 20 65 66 66 65 63 74 ne has no effect
0e50: 2e 20 41 6e 79 20 6f 66 20 74 68 65 20 6f 70 74 . Any of the opt
0e60: 69 6f 6e 73 0a 20 20 20 20 20 20 20 20 74 68 61 ions. tha
0e70: 74 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 73 t <strong>tls::s
0e80: 6f 63 6b 65 74 3c 2f 73 74 72 6f 6e 67 3e 20 61 ocket</strong> a
0e90: 63 63 65 70 74 73 20 63 61 6e 20 62 65 20 73 65 ccepts can be se
0ea0: 74 0a 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 t. using
0eb0: 74 68 69 73 20 63 6f 6d 6d 61 6e 64 2c 20 74 68 this command, th
0ec0: 6f 75 67 68 20 79 6f 75 20 73 68 6f 75 6c 64 20 ough you should
0ed0: 6c 69 6d 69 74 20 79 6f 75 72 20 6f 70 74 69 6f limit your optio
0ee0: 6e 73 0a 20 20 20 20 20 20 20 20 74 6f 20 6f 6e ns. to on
0ef0: 6c 79 20 54 4c 53 20 72 65 6c 61 74 65 64 20 6f ly TLS related o
0f00: 6e 65 73 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 nes.</dd>. <d
0f10: 74 3e 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 t> </dt>.
0f20: 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 <dt><a name="t
0f30: 6c 73 3a 3a 73 6f 63 6b 65 74 22 3e 3c 62 3e 74 ls::socket"><b>t
0f40: 6c 73 3a 3a 73 6f 63 6b 65 74 20 3c 2f 62 3e 3c ls::socket </b><
0f50: 65 6d 3e 3f 6f 70 74 69 6f 6e 73 3f 0a 20 20 20 em>?options?.
0f60: 20 20 20 20 20 68 6f 73 74 20 70 6f 72 74 3c 2f host port</
0f70: 65 6d 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20 em></a></dt>.
0f80: 20 3c 64 74 3e 3c 62 3e 74 6c 73 3a 3a 73 6f 63 <dt><b>tls::soc
0f90: 6b 65 74 3c 2f 62 3e 3c 65 6d 3e 20 3f 2d 73 65 ket</b><em> ?-se
0fa0: 72 76 65 72 20 63 6f 6d 6d 61 6e 64 3f 20 3f 6f rver command? ?o
0fb0: 70 74 69 6f 6e 73 3f 20 70 6f 72 74 3c 2f 65 6d ptions? port</em
0fc0: 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 54 ></dt>. <dd>T
0fd0: 68 69 73 20 69 73 20 61 20 68 65 6c 70 65 72 20 his is a helper
0fe0: 66 75 6e 63 74 69 6f 6e 20 74 68 61 74 20 75 74 function that ut
0ff0: 69 6c 69 7a 65 73 20 74 68 65 20 75 6e 64 65 72 ilizes the under
1000: 6c 79 69 6e 67 0a 20 20 20 20 20 20 20 20 63 6f lying. co
1010: 6d 6d 61 6e 64 73 20 28 3c 73 74 72 6f 6e 67 3e mmands (<strong>
1020: 74 6c 73 3a 3a 69 6d 70 6f 72 74 3c 2f 73 74 72 tls::import</str
1030: 6f 6e 67 3e 29 2e 20 49 74 20 62 65 68 61 76 65 ong>). It behave
1040: 73 0a 20 20 20 20 20 20 20 20 65 78 61 63 74 6c s. exactl
1050: 79 20 74 68 65 20 73 61 6d 65 20 61 73 20 74 68 y the same as th
1060: 65 20 6e 61 74 69 76 65 20 54 63 6c 20 3c 73 74 e native Tcl <st
1070: 72 6f 6e 67 3e 73 6f 63 6b 65 74 3c 2f 73 74 72 rong>socket</str
1080: 6f 6e 67 3e 0a 20 20 20 20 20 20 20 20 63 6f 6d ong>. com
1090: 6d 61 6e 64 20 65 78 63 65 70 74 20 74 68 61 74 mand except that
10a0: 20 74 68 65 20 6f 70 74 69 6f 6e 73 20 63 61 6e the options can
10b0: 20 69 6e 63 6c 75 64 65 20 61 6e 79 20 6f 66 20 include any of
10c0: 74 68 65 0a 20 20 20 20 20 20 20 20 61 70 70 6c the. appl
10d0: 69 63 61 62 6c 65 20 3c 61 20 68 72 65 66 3d 22 icable <a href="
10e0: 23 74 6c 73 3a 3a 69 6d 70 6f 72 74 22 3e 3c 73 #tls::import"><s
10f0: 74 72 6f 6e 67 3e 74 6c 73 3a 69 6d 70 6f 72 74 trong>tls:import
1100: 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 61 3e 0a 20 20 </strong></a>.
1110: 20 20 20 20 20 20 6f 70 74 69 6f 6e 73 2e 3c 2f options.</
1120: 64 64 3e 0a 20 20 20 20 3c 64 74 3e 26 6e 62 73 dd>. <dt>&nbs
1130: 70 3b 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 74 3e p;</dt>. <dt>
1140: 3c 61 20 6e 61 6d 65 3d 22 74 6c 73 3a 3a 68 61 <a name="tls::ha
1150: 6e 64 73 68 61 6b 65 22 3e 3c 73 74 72 6f 6e 67 ndshake"><strong
1160: 3e 74 6c 73 3a 3a 68 61 6e 64 73 68 61 6b 65 3c >tls::handshake<
1170: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 68 61 /strong> <em>cha
1180: 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 61 3e 3c 2f 64 nnel</em></a></d
1190: 74 3e 0a 20 20 20 20 3c 64 64 3e 46 6f 72 63 65 t>. <dd>Force
11a0: 73 20 68 61 6e 64 73 68 61 6b 65 20 74 6f 20 74 s handshake to t
11b0: 61 6b 65 20 70 6c 61 63 65 2c 20 61 6e 64 20 72 ake place, and r
11c0: 65 74 75 72 6e 73 20 30 20 69 66 0a 20 20 20 20 eturns 0 if.
11d0: 20 20 20 20 68 61 6e 64 73 68 61 6b 65 20 69 73 handshake is
11e0: 20 73 74 69 6c 6c 20 69 6e 20 70 72 6f 67 72 65 still in progre
11f0: 73 73 20 28 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 ss (non-blocking
1200: 29 2c 20 6f 72 20 31 20 69 66 0a 20 20 20 20 20 ), or 1 if.
1210: 20 20 20 74 68 65 20 68 61 6e 64 73 68 61 6b 65 the handshake
1220: 20 77 61 73 20 73 75 63 63 65 73 73 66 75 6c 2e was successful.
1230: 20 49 66 20 74 68 65 20 68 61 6e 64 73 68 61 6b If the handshak
1240: 65 20 66 61 69 6c 65 64 0a 20 20 20 20 20 20 20 e failed.
1250: 20 74 68 69 73 20 72 6f 75 74 69 6e 65 20 77 69 this routine wi
1260: 6c 6c 20 74 68 72 6f 77 20 61 6e 20 65 72 72 6f ll throw an erro
1270: 72 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 74 3e r.</dd>. <dt>
1280: 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 20 20 </dt>.
1290: 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 6c 73 <dt><a name="tls
12a0: 3a 3a 73 74 61 74 75 73 22 3e 3c 73 74 72 6f 6e ::status"><stron
12b0: 67 3e 74 6c 73 3a 3a 73 74 61 74 75 73 3c 2f 73 g>tls::status</s
12c0: 74 72 6f 6e 67 3e 0a 20 20 20 20 3c 65 6d 3e 3f trong>. <em>?
12d0: 2d 6c 6f 63 61 6c 3f 20 63 68 61 6e 6e 65 6c 3c -local? channel<
12e0: 2f 65 6d 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 /em></a></dt>.
12f0: 20 20 3c 64 64 3e 52 65 74 75 72 6e 73 20 74 68 <dd>Returns th
1300: 65 20 63 75 72 72 65 6e 74 20 73 65 63 75 72 69 e current securi
1310: 74 79 20 73 74 61 74 75 73 20 6f 66 20 61 20 53 ty status of a S
1320: 53 4c 20 63 68 61 6e 6e 65 6c 2e 20 54 68 65 0a SL channel. The.
1330: 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 20 69 result i
1340: 73 20 61 20 6c 69 73 74 20 6f 66 20 6b 65 79 20 s a list of key
1350: 76 61 6c 75 65 20 70 61 69 72 73 20 64 65 73 63 value pairs desc
1360: 72 69 62 69 6e 67 20 74 68 65 0a 20 20 20 20 20 ribing the.
1370: 20 20 20 63 6f 6e 6e 65 63 74 65 64 20 70 65 65 connected pee
1380: 72 2e 20 49 66 20 74 68 65 20 72 65 73 75 6c 74 r. If the result
1390: 20 69 73 20 61 6e 20 65 6d 70 74 79 20 6c 69 73 is an empty lis
13a0: 74 20 74 68 65 6e 20 74 68 65 0a 20 20 20 20 20 t then the.
13b0: 20 20 20 53 53 4c 20 68 61 6e 64 73 68 61 6b 65 SSL handshake
13c0: 20 68 61 73 20 6e 6f 74 20 79 65 74 20 63 6f 6d has not yet com
13d0: 70 6c 65 74 65 64 2e 0a 20 20 20 20 20 20 20 20 pleted..
13e0: 49 66 20 3c 65 6d 3e 2d 6c 6f 63 61 6c 3c 2f 65 If <em>-local</e
13f0: 6d 3e 20 69 73 20 67 69 76 65 6e 2c 20 74 68 65 m> is given, the
1400: 6e 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74 n the certificat
1410: 65 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 0a 20 20 e information.
1420: 20 20 20 20 20 20 69 73 20 74 68 65 20 6f 6e 65 is the one
1430: 20 75 73 65 64 20 6c 6f 63 61 6c 6c 79 2e 3c 2f used locally.</
1440: 64 64 3e 0a 3c 2f 64 6c 3e 0a 0a 3c 62 6c 6f 63 dd>.</dl>..<bloc
1450: 6b 71 75 6f 74 65 3e 0a 20 20 20 20 3c 64 6c 3e kquote>. <dl>
1460: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 . <dt><st
1470: 72 6f 6e 67 3e 69 73 73 75 65 72 3c 2f 73 74 72 rong>issuer</str
1480: 6f 6e 67 3e 20 3c 65 6d 3e 64 6e 3c 2f 65 6d 3e ong> <em>dn</em>
1490: 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 </dt>. <d
14a0: 64 3e 54 68 65 20 64 69 73 74 69 6e 67 75 69 73 d>The distinguis
14b0: 68 65 64 20 6e 61 6d 65 20 28 44 4e 29 20 6f 66 hed name (DN) of
14c0: 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74 65 the certificate
14d0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 73 73 . iss
14e0: 75 65 72 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 uer.</dd>.
14f0: 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 75 <dt><strong>su
1500: 62 6a 65 63 74 3c 2f 73 74 72 6f 6e 67 3e 20 3c bject</strong> <
1510: 65 6d 3e 64 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a em>dn</em></dt>.
1520: 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20 <dd>The
1530: 64 69 73 74 69 6e 67 75 69 73 68 65 64 20 6e 61 distinguished na
1540: 6d 65 20 28 44 4e 29 20 6f 66 20 74 68 65 20 63 me (DN) of the c
1550: 65 72 74 69 66 69 63 61 74 65 0a 20 20 20 20 20 ertificate.
1560: 20 20 20 20 20 20 20 73 75 62 6a 65 63 74 2e 3c subject.<
1570: 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 /dd>. <dt
1580: 3e 3c 73 74 72 6f 6e 67 3e 6e 6f 74 42 65 66 6f ><strong>notBefo
1590: 72 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e re</strong> <em>
15a0: 64 61 74 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 date</em></dt>.
15b0: 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20 62 <dd>The b
15c0: 65 67 69 6e 20 64 61 74 65 20 66 6f 72 20 74 68 egin date for th
15d0: 65 20 76 61 6c 69 64 69 74 79 20 6f 66 20 74 68 e validity of th
15e0: 65 20 63 65 72 74 69 66 69 63 61 74 65 2e 3c 2f e certificate.</
15f0: 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e dd>. <dt>
1600: 3c 73 74 72 6f 6e 67 3e 6e 6f 74 41 66 74 65 72 <strong>notAfter
1610: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 64 61 </strong> <em>da
1620: 74 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 te</em></dt>.
1630: 20 20 20 20 20 3c 64 64 3e 54 68 65 20 65 78 70 <dd>The exp
1640: 69 72 79 20 64 61 74 65 20 66 6f 72 20 74 68 65 iry date for the
1650: 20 63 65 72 74 69 66 69 63 61 74 65 2e 3c 2f 64 certificate.</d
1660: 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c d>. <dt><
1670: 73 74 72 6f 6e 67 3e 73 65 72 69 61 6c 3c 2f 73 strong>serial</s
1680: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e 3c 2f 65 6d trong> <em>n</em
1690: 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c ></dt>. <
16a0: 64 64 3e 54 68 65 20 73 65 72 69 61 6c 20 6e 75 dd>The serial nu
16b0: 6d 62 65 72 20 6f 66 20 74 68 65 20 63 65 72 74 mber of the cert
16c0: 69 66 69 63 61 74 65 2e 3c 2f 64 64 3e 0a 20 20 ificate.</dd>.
16d0: 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e <dt><stron
16e0: 67 3e 63 69 70 68 65 72 3c 2f 73 74 72 6f 6e 67 g>cipher</strong
16f0: 3e 20 3c 65 6d 3e 63 69 70 68 65 72 3c 2f 65 6d > <em>cipher</em
1700: 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c ></dt>. <
1710: 64 64 3e 54 68 65 20 63 75 72 72 65 6e 74 20 63 dd>The current c
1720: 69 70 68 65 72 20 69 6e 20 75 73 65 20 62 65 74 ipher in use bet
1730: 77 65 65 6e 20 74 68 65 20 63 6c 69 65 6e 74 20 ween the client
1740: 61 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 and.
1750: 73 65 72 76 65 72 20 63 68 61 6e 6e 65 6c 73 2e server channels.
1760: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 </dd>. <d
1770: 74 3e 3c 73 74 72 6f 6e 67 3e 73 62 69 74 73 3c t><strong>sbits<
1780: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e 3c 2f /strong> <em>n</
1790: 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 em></dt>.
17a0: 20 3c 64 64 3e 54 68 65 20 6e 75 6d 62 65 72 20 <dd>The number
17b0: 6f 66 20 62 69 74 73 20 75 73 65 64 20 66 6f 72 of bits used for
17c0: 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 79 the session key
17d0: 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 6c 3e .</dd>. </dl>
17e0: 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 0a .</blockquote>..
17f0: 3c 64 6c 3e 0a 20 20 20 20 3c 64 74 3e 3c 61 20 <dl>. <dt><a
1800: 6e 61 6d 65 3d 22 74 6c 73 3a 3a 69 6d 70 6f 72 name="tls::impor
1810: 74 22 3e 3c 62 3e 74 6c 73 3a 3a 69 6d 70 6f 72 t"><b>tls::impor
1820: 74 20 3c 2f 62 3e 3c 69 3e 63 68 61 6e 6e 65 6c t </b><i>channel
1830: 0a 20 20 20 20 20 20 20 20 3f 6f 70 74 69 6f 6e . ?option
1840: 73 3f 3c 2f 69 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a s?</i></a></dt>.
1850: 20 20 20 20 3c 64 64 3e 53 53 4c 2d 65 6e 61 62 <dd>SSL-enab
1860: 6c 65 20 61 20 72 65 67 75 6c 61 72 20 54 63 6c le a regular Tcl
1870: 20 63 68 61 6e 6e 65 6c 20 2d 20 69 74 20 6e 65 channel - it ne
1880: 65 64 20 6e 6f 74 20 62 65 20 61 0a 20 20 20 20 ed not be a.
1890: 20 20 20 20 73 6f 63 6b 65 74 2c 20 62 75 74 20 socket, but
18a0: 6d 75 73 74 20 70 72 6f 76 69 64 65 20 62 69 2d must provide bi-
18b0: 64 69 72 65 63 74 69 6f 6e 61 6c 20 66 6c 6f 77 directional flow
18c0: 2e 20 41 6c 73 6f 0a 20 20 20 20 20 20 20 20 73 . Also. s
18d0: 65 74 74 69 6e 67 20 73 65 73 73 69 6f 6e 20 70 etting session p
18e0: 61 72 61 6d 65 74 65 72 73 20 66 6f 72 20 53 53 arameters for SS
18f0: 4c 20 68 61 6e 64 73 68 61 6b 65 2e 3c 2f 64 64 L handshake.</dd
1900: 3e 0a 3c 2f 64 6c 3e 0a 0a 3c 62 6c 6f 63 6b 71 >.</dl>..<blockq
1910: 75 6f 74 65 3e 0a 20 20 20 20 3c 64 6c 3e 0a 20 uote>. <dl>.
1920: 20 20 20 20 20 20 20 3c 64 74 3e 2d 3c 73 74 72 <dt>-<str
1930: 6f 6e 67 3e 63 61 64 69 72 3c 2f 73 74 72 6f 6e ong>cadir</stron
1940: 67 3e 20 3c 65 6d 3e 64 69 72 3c 2f 65 6d 3e 3c g> <em>dir</em><
1950: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 /dt>. <dd
1960: 3e 50 72 6f 76 69 64 65 20 74 68 65 20 64 69 72 >Provide the dir
1970: 65 63 74 6f 72 79 20 63 6f 6e 74 61 69 6e 69 6e ectory containin
1980: 67 20 74 68 65 20 43 41 20 63 65 72 74 69 66 69 g the CA certifi
1990: 63 61 74 65 73 2e 3c 2f 64 64 3e 0a 20 20 20 20 cates.</dd>.
19a0: 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e <dt><strong>
19b0: 2d 63 61 66 69 6c 65 20 3c 2f 73 74 72 6f 6e 67 -cafile </strong
19c0: 3e 3c 65 6d 3e 66 69 6c 65 6e 61 6d 65 3c 2f 65 ><em>filename</e
19d0: 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 m></dt>.
19e0: 3c 64 64 3e 50 72 6f 76 69 64 65 20 74 68 65 20 <dd>Provide the
19f0: 43 41 20 66 69 6c 65 2e 3c 2f 64 64 3e 0a 20 20 CA file.</dd>.
1a00: 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e <dt><stron
1a10: 67 3e 2d 63 65 72 74 66 69 6c 65 3c 2f 73 74 72 g>-certfile</str
1a20: 6f 6e 67 3e 20 3c 65 6d 3e 66 69 6c 65 6e 61 6d ong> <em>filenam
1a30: 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 e</em></dt>.
1a40: 20 20 20 20 3c 64 64 3e 50 72 6f 76 69 64 65 20 <dd>Provide
1a50: 74 68 65 20 63 65 72 74 69 66 69 63 61 74 65 20 the certificate
1a60: 74 6f 20 75 73 65 2e 3c 2f 64 64 3e 0a 20 20 20 to use.</dd>.
1a70: 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 <dt><strong
1a80: 3e 2d 63 69 70 68 65 72 20 3c 2f 73 74 72 6f 6e >-cipher </stron
1a90: 67 3e 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65 6d g><em>string</em
1aa0: 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c ></dt>. <
1ab0: 64 64 3e 50 72 6f 76 69 64 65 20 74 68 65 20 63 dd>Provide the c
1ac0: 69 70 68 65 72 20 73 75 69 74 65 73 20 74 6f 20 ipher suites to
1ad0: 75 73 65 2e 20 53 79 6e 74 61 78 20 69 73 20 61 use. Syntax is a
1ae0: 73 20 70 65 72 0a 20 20 20 20 20 20 20 20 20 20 s per.
1af0: 20 20 4f 70 65 6e 53 53 4c 2e 3c 2f 64 64 3e 0a OpenSSL.</dd>.
1b00: 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 <dt><str
1b10: 6f 6e 67 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f 73 74 ong>-command</st
1b20: 72 6f 6e 67 3e 3c 65 6d 3e 20 63 61 6c 6c 62 61 rong><em> callba
1b30: 63 6b 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 ck</em></dt>.
1b40: 20 20 20 20 20 3c 64 64 3e 49 66 20 73 70 65 63 <dd>If spec
1b50: 69 66 69 65 64 2c 20 74 68 69 73 20 63 61 6c 6c ified, this call
1b60: 62 61 63 6b 20 77 69 6c 6c 20 62 65 20 69 6e 76 back will be inv
1b70: 6f 6b 65 64 20 61 74 20 73 65 76 65 72 61 6c 20 oked at several
1b80: 70 6f 69 6e 74 73 0a 20 20 20 20 20 20 20 20 20 points.
1b90: 20 20 20 64 75 72 69 6e 67 20 74 68 65 20 4f 70 during the Op
1ba0: 65 6e 53 53 4c 20 68 61 6e 64 73 68 61 6b 65 2e enSSL handshake.
1bb0: 20 20 49 74 20 63 61 6e 20 70 61 73 73 20 65 72 It can pass er
1bc0: 72 6f 72 73 20 61 6e 64 20 74 72 61 63 69 6e 67 rors and tracing
1bd0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 66 . inf
1be0: 6f 72 6d 61 74 69 6f 6e 2c 20 61 6e 64 20 69 74 ormation, and it
1bf0: 20 63 61 6e 20 61 6c 6c 6f 77 20 54 63 6c 20 73 can allow Tcl s
1c00: 63 72 69 70 74 73 20 74 6f 20 70 65 72 66 6f 72 cripts to perfor
1c10: 6d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 m. th
1c20: 65 69 72 20 6f 77 6e 20 76 61 6c 69 64 61 74 69 eir own validati
1c30: 6f 6e 20 6f 66 20 74 68 65 20 63 65 72 74 69 66 on of the certif
1c40: 69 63 61 74 65 20 69 6e 20 70 6c 61 63 65 20 6f icate in place o
1c50: 66 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 f the.
1c60: 20 20 64 65 66 61 75 6c 74 20 76 61 6c 69 64 61 default valida
1c70: 74 69 6f 6e 20 70 72 6f 76 69 64 65 64 20 62 79 tion provided by
1c80: 20 4f 70 65 6e 53 53 4c 2e 0a 20 20 20 20 20 20 OpenSSL..
1c90: 20 20 20 20 20 20 54 68 65 20 63 61 6c 6c 62 61 The callba
1ca0: 63 6b 20 73 68 6f 75 6c 64 20 72 65 74 75 72 6e ck should return
1cb0: 20 61 6e 20 69 6e 74 65 67 65 72 20 77 68 6f 73 an integer whos
1cc0: 65 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e e interpretation
1cd0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 65 70 . dep
1ce0: 65 6e 64 73 20 6f 6e 20 63 6f 6e 74 65 78 74 2e ends on context.
1cf0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c 62 72 . <br
1d00: 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 >. Se
1d10: 65 20 3c 61 20 68 72 65 66 3d 22 23 43 41 4c 4c e <a href="#CALL
1d20: 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 3e 43 41 BACK OPTIONS">CA
1d30: 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 3c 2f LLBACK OPTIONS</
1d40: 61 3e 20 66 6f 72 0a 20 20 20 20 20 20 20 20 20 a> for.
1d50: 20 20 20 66 75 72 74 68 65 72 20 64 69 73 63 75 further discu
1d60: 73 73 69 6f 6e 2e 3c 2f 64 64 3e 0a 20 20 20 20 ssion.</dd>.
1d70: 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e <dt><strong>
1d80: 2d 6b 65 79 66 69 6c 65 3c 2f 73 74 72 6f 6e 67 -keyfile</strong
1d90: 3e 20 3c 65 6d 3e 66 69 6c 65 6e 61 6d 65 3c 2f > <em>filename</
1da0: 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 em></dt>.
1db0: 20 3c 64 64 3e 50 72 6f 76 69 64 65 20 74 68 65 <dd>Provide the
1dc0: 20 70 72 69 76 61 74 65 20 6b 65 79 20 66 69 6c private key fil
1dd0: 65 2e 20 28 3c 73 74 72 6f 6e 67 3e 64 65 66 61 e. (<strong>defa
1de0: 75 6c 74 3c 2f 73 74 72 6f 6e 67 3e 3a 0a 20 20 ult</strong>:.
1df0: 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 value
1e00: 6f 66 20 2d 63 65 72 74 66 69 6c 65 29 3c 2f 64 of -certfile)</d
1e10: 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c d>. <dt><
1e20: 73 74 72 6f 6e 67 3e 2d 6d 6f 64 65 6c 3c 2f 73 strong>-model</s
1e30: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 68 61 6e 6e trong> <em>chann
1e40: 65 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 el</em></dt>.
1e50: 20 20 20 20 20 3c 64 64 3e 54 68 69 73 20 77 69 <dd>This wi
1e60: 6c 6c 20 66 6f 72 63 65 20 74 68 69 73 20 63 68 ll force this ch
1e70: 61 6e 6e 65 6c 20 74 6f 20 73 68 61 72 65 20 74 annel to share t
1e80: 68 65 20 73 61 6d 65 20 3c 65 6d 3e 3c 73 74 72 he same <em><str
1e90: 6f 6e 67 3e 53 53 4c 5f 43 54 58 3c 2f 73 74 72 ong>SSL_CTX</str
1ea0: 6f 6e 67 3e 3c 2f 65 6d 3e 0a 20 20 20 20 20 20 ong></em>.
1eb0: 20 20 20 20 20 20 73 74 72 75 63 74 75 72 65 20 structure
1ec0: 61 73 20 74 68 65 20 73 70 65 63 69 66 69 65 64 as the specified
1ed0: 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 3c 2f 65 6d <em>channel</em
1ee0: 3e 2c 20 61 6e 64 0a 20 20 20 20 20 20 20 20 20 >, and.
1ef0: 20 20 20 74 68 65 72 65 66 6f 72 65 20 73 68 61 therefore sha
1f00: 72 65 20 63 61 6c 6c 62 61 63 6b 73 20 65 74 63 re callbacks etc
1f10: 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c .</dd>. <
1f20: 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 70 61 73 73 dt><strong>-pass
1f30: 77 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e 3c 65 6d word</strong><em
1f40: 3e 20 63 61 6c 6c 62 61 63 6b 3c 2f 65 6d 3e 3c > callback</em><
1f50: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 /dt>. <dd
1f60: 3e 49 66 20 73 75 70 70 6c 69 65 64 2c 20 74 68 >If supplied, th
1f70: 69 73 20 63 61 6c 6c 62 61 63 6b 20 77 69 6c 6c is callback will
1f80: 20 62 65 20 69 6e 76 6f 6b 65 64 20 77 68 65 6e be invoked when
1f90: 20 4f 70 65 6e 53 53 4c 20 6e 65 65 64 73 0a 20 OpenSSL needs.
1fa0: 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 6f 62 to ob
1fb0: 74 61 69 6e 20 61 20 70 61 73 73 77 6f 72 64 2c tain a password,
1fc0: 20 74 79 70 69 63 61 6c 6c 79 20 66 6f 72 20 61 typically for a
1fd0: 20 63 65 72 74 69 66 69 63 61 74 65 2e 0a 20 20 certificate..
1fe0: 20 20 20 20 20 20 20 20 20 20 54 68 65 20 63 61 The ca
1ff0: 6c 6c 62 61 63 6b 20 73 68 6f 75 6c 64 20 72 65 llback should re
2000: 74 75 72 6e 20 61 20 73 74 72 69 6e 67 20 77 68 turn a string wh
2010: 69 63 68 20 72 65 70 72 65 73 65 6e 74 73 20 74 ich represents t
2020: 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 he. p
2030: 61 73 73 77 6f 72 64 20 74 6f 20 62 65 20 75 73 assword to be us
2040: 65 64 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 ed..
2050: 3c 62 72 3e 0a 20 20 20 20 20 20 20 20 20 20 20 <br>.
2060: 20 53 65 65 20 3c 61 20 68 72 65 66 3d 22 23 43 See <a href="#C
2070: 41 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 ALLBACK OPTIONS"
2080: 3e 43 41 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e >CALLBACK OPTION
2090: 53 3c 2f 61 3e 20 66 6f 72 0a 20 20 20 20 20 20 S</a> for.
20a0: 20 20 20 20 20 20 66 75 72 74 68 65 72 20 64 69 further di
20b0: 73 63 75 73 73 69 6f 6e 2e 3c 2f 64 64 3e 0a 20 scussion.</dd>.
20c0: 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f <dt><stro
20d0: 6e 67 3e 2d 72 65 71 75 65 73 74 20 3c 2f 73 74 ng>-request </st
20e0: 72 6f 6e 67 3e 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 rong><em>bool</e
20f0: 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 m></dt>.
2100: 3c 64 64 3e 52 65 71 75 65 73 74 20 61 20 63 65 <dd>Request a ce
2110: 72 74 69 66 69 63 61 74 65 20 66 72 6f 6d 20 70 rtificate from p
2120: 65 65 72 20 64 75 72 69 6e 67 20 53 53 4c 20 68 eer during SSL h
2130: 61 6e 64 73 68 61 6b 65 2e 0a 20 20 20 20 20 20 andshake..
2140: 20 20 20 20 20 20 28 3c 73 74 72 6f 6e 67 3e 64 (<strong>d
2150: 65 66 61 75 6c 74 3c 2f 73 74 72 6f 6e 67 3e 3a efault</strong>:
2160: 20 3c 65 6d 3e 74 72 75 65 3c 2f 65 6d 3e 29 3c <em>true</em>)<
2170: 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 /dd>. <dt
2180: 3e 3c 73 74 72 6f 6e 67 3e 2d 72 65 71 75 69 72 ><strong>-requir
2190: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 e</strong> <em>b
21a0: 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 ool</em></dt>.
21b0: 20 20 20 20 20 20 3c 64 64 3e 52 65 71 75 69 72 <dd>Requir
21c0: 65 20 61 20 76 61 6c 69 64 20 63 65 72 74 69 66 e a valid certif
21d0: 69 63 61 74 65 20 66 72 6f 6d 20 70 65 65 72 20 icate from peer
21e0: 64 75 72 69 6e 67 20 53 53 4c 0a 20 20 20 20 20 during SSL.
21f0: 20 20 20 20 20 20 20 68 61 6e 64 73 68 61 6b 65 handshake
2200: 2e 20 49 66 20 74 68 69 73 20 69 73 20 73 65 74 . If this is set
2210: 20 74 6f 20 74 72 75 65 20 74 68 65 6e 20 3c 73 to true then <s
2220: 74 72 6f 6e 67 3e 2d 72 65 71 75 65 73 74 3c 2f trong>-request</
2230: 73 74 72 6f 6e 67 3e 0a 20 20 20 20 20 20 20 20 strong>.
2240: 20 20 20 20 6d 75 73 74 20 61 6c 73 6f 20 62 65 must also be
2250: 20 73 65 74 20 74 6f 20 74 72 75 65 2e 20 28 3c set to true. (<
2260: 73 74 72 6f 6e 67 3e 64 65 66 61 75 6c 74 3c 2f strong>default</
2270: 73 74 72 6f 6e 67 3e 3a 20 3c 65 6d 3e 66 61 6c strong>: <em>fal
2280: 73 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 20 20 se</em>)</dd>.
2290: 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e <dt><stron
22a0: 67 3e 2d 73 65 72 76 65 72 3c 2f 73 74 72 6f 6e g>-server</stron
22b0: 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e g> <em>bool</em>
22c0: 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 </dt>. <d
22d0: 64 3e 48 61 6e 64 73 68 61 6b 65 20 61 73 20 73 d>Handshake as s
22e0: 65 72 76 65 72 20 69 66 20 74 72 75 65 2c 20 65 erver if true, e
22f0: 6c 73 65 20 68 61 6e 64 73 68 61 6b 65 20 61 73 lse handshake as
2300: 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 6c 69 . cli
2310: 65 6e 74 2e 28 3c 73 74 72 6f 6e 67 3e 64 65 66 ent.(<strong>def
2320: 61 75 6c 74 3c 2f 73 74 72 6f 6e 67 3e 3a 20 3c ault</strong>: <
2330: 65 6d 3e 66 61 6c 73 65 3c 2f 65 6d 3e 29 3c 2f em>false</em>)</
2340: 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e dd>. <dt>
2350: 3c 73 74 72 6f 6e 67 3e 2d 73 73 6c 32 3c 2f 73 <strong>-ssl2</s
2360: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 3c trong> <em>bool<
2370: 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 /em></dt>.
2380: 20 20 3c 64 64 3e 45 6e 61 62 6c 65 20 75 73 65 <dd>Enable use
2390: 20 6f 66 20 53 53 4c 20 76 32 2e 20 28 3c 73 74 of SSL v2. (<st
23a0: 72 6f 6e 67 3e 64 65 66 61 75 6c 74 3c 2f 73 74 rong>default</st
23b0: 72 6f 6e 67 3e 3a 20 3c 65 6d 3e 74 72 75 65 3c rong>: <em>true<
23c0: 2f 65 6d 3e 0a 20 20 20 20 20 20 20 20 20 20 20 /em>.
23d0: 20 75 6e 6c 65 73 73 20 2d 44 4e 4f 5f 50 41 54 unless -DNO_PAT
23e0: 45 4e 54 53 20 77 61 73 20 73 70 65 63 69 66 69 ENTS was specifi
23f0: 65 64 20 69 6e 20 62 75 69 6c 64 29 3c 2f 64 64 ed in build)</dd
2400: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 >. <dt><s
2410: 74 72 6f 6e 67 3e 2d 73 73 6c 33 20 3c 2f 73 74 trong>-ssl3 </st
2420: 72 6f 6e 67 3e 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 rong><em>bool</e
2430: 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 m></dt>.
2440: 3c 64 64 3e 45 6e 61 62 6c 65 20 75 73 65 20 6f <dd>Enable use o
2450: 66 20 53 53 4c 20 76 33 2e 20 28 3c 73 74 72 6f f SSL v3. (<stro
2460: 6e 67 3e 64 65 66 61 75 6c 74 3c 2f 73 74 72 6f ng>default</stro
2470: 6e 67 3e 3a 20 3c 65 6d 3e 74 72 75 65 3c 2f 65 ng>: <em>true</e
2480: 6d 3e 29 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 m>)</dd>.
2490: 20 3c 64 74 3e 2d 3c 73 74 72 6f 6e 67 3e 74 6c <dt>-<strong>tl
24a0: 73 31 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e s1</strong> <em>
24b0: 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 bool</em></dt>.
24c0: 20 20 20 20 20 20 20 3c 64 64 3e 45 6e 61 62 6c <dd>Enabl
24d0: 65 20 75 73 65 20 6f 66 20 54 4c 53 20 76 31 2e e use of TLS v1.
24e0: 20 28 3c 73 74 72 6f 6e 67 3e 64 65 66 61 75 6c (<strong>defaul
24f0: 74 3c 2f 73 74 72 6f 6e 67 3e 3a 20 3c 65 6d 3e t</strong>: <em>
2500: 66 61 6c 73 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e false</em>)</dd>
2510: 0a 20 20 20 20 3c 2f 64 6c 3e 0a 3c 2f 62 6c 6f . </dl>.</blo
2520: 63 6b 71 75 6f 74 65 3e 0a 0a 3c 64 6c 3e 0a 20 ckquote>..<dl>.
2530: 20 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 <dt><a name="
2540: 74 6c 73 3a 3a 63 69 70 68 65 72 73 20 70 72 6f tls::ciphers pro
2550: 74 6f 63 6f 6c 20 3f 76 65 72 62 6f 73 65 3f 22 tocol ?verbose?"
2560: 3e 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 63 69 ><strong>tls::ci
2570: 70 68 65 72 73 3c 2f 73 74 72 6f 6e 67 3e 0a 20 phers</strong>.
2580: 20 20 20 20 20 20 20 3c 65 6d 3e 70 72 6f 74 6f <em>proto
2590: 63 6f 6c 20 3f 76 65 72 62 6f 73 65 3f 3c 2f 65 col ?verbose?</e
25a0: 6d 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20 20 m></a></dt>.
25b0: 3c 64 64 3e 52 65 74 75 72 6e 73 20 6c 69 73 74 <dd>Returns list
25c0: 20 6f 66 20 73 75 70 70 6f 72 74 65 64 20 63 69 of supported ci
25d0: 70 68 65 72 73 20 62 61 73 65 64 20 6f 6e 20 74 phers based on t
25e0: 68 65 20 3c 65 6d 3e 70 72 6f 74 6f 63 6f 6c 3c he <em>protocol<
25f0: 2f 65 6d 3e 0a 20 20 20 20 20 20 20 20 79 6f 75 /em>. you
2600: 20 73 75 70 70 6c 79 2c 20 77 68 69 63 68 20 6d supply, which m
2610: 75 73 74 20 62 65 20 6f 6e 65 20 6f 66 20 3c 65 ust be one of <e
2620: 6d 3e 73 73 6c 32 2c 20 73 73 6c 33 2c 20 6f 72 m>ssl2, ssl3, or
2630: 20 74 6c 73 31 3c 2f 65 6d 3e 2e 0a 20 20 20 20 tls1</em>..
2640: 20 20 20 20 49 66 20 3c 65 6d 3e 76 65 72 62 6f If <em>verbo
2650: 73 65 3c 2f 65 6d 3e 20 69 73 20 73 70 65 63 69 se</em> is speci
2660: 66 69 65 64 20 61 73 20 74 72 75 65 20 74 68 65 fied as true the
2670: 6e 20 61 20 76 65 72 62 6f 73 65 2c 0a 20 20 20 n a verbose,.
2680: 20 20 20 20 20 73 65 6d 69 2d 68 75 6d 61 6e 20 semi-human
2690: 72 65 61 64 61 62 6c 65 20 6c 69 73 74 20 69 73 readable list is
26a0: 20 72 65 74 75 72 6e 65 64 20 70 72 6f 76 69 64 returned provid
26b0: 69 6e 67 20 61 64 64 69 74 69 6f 6e 61 6c 0a 20 ing additional.
26c0: 20 20 20 20 20 20 20 69 6e 66 6f 72 6d 61 74 69 informati
26d0: 6f 6e 20 6f 6e 20 74 68 65 20 6e 61 74 75 72 65 on on the nature
26e0: 20 6f 66 20 74 68 65 20 63 69 70 68 65 72 20 73 of the cipher s
26f0: 75 70 70 6f 72 74 2e 20 49 6e 20 65 61 63 68 0a upport. In each.
2700: 20 20 20 20 20 20 20 20 63 61 73 65 20 74 68 65 case the
2710: 20 72 65 73 75 6c 74 20 69 73 20 61 20 54 63 6c result is a Tcl
2720: 20 6c 69 73 74 2e 3c 2f 64 64 3e 0a 3c 2f 64 6c list.</dd>.</dl
2730: 3e 0a 0a 3c 64 6c 3e 0a 20 20 20 20 3c 64 74 3e >..<dl>. <dt>
2740: 3c 61 20 6e 61 6d 65 3d 22 74 6c 73 3a 3a 76 65 <a name="tls::ve
2750: 72 73 69 6f 6e 22 3e 3c 73 74 72 6f 6e 67 3e 74 rsion"><strong>t
2760: 6c 73 3a 3a 76 65 72 73 69 6f 6e 3c 2f 73 74 72 ls::version</str
2770: 6f 6e 67 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 ong></a></dt>.
2780: 20 20 3c 64 64 3e 52 65 74 75 72 6e 73 20 74 68 <dd>Returns th
2790: 65 20 76 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 e version string
27a0: 20 64 65 66 69 6e 65 64 20 62 79 20 4f 70 65 6e defined by Open
27b0: 53 53 4c 2e 3c 2f 64 64 3e 0a 3c 2f 64 6c 3e 0a SSL.</dd>.</dl>.
27c0: 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 43 41 .<h3><a name="CA
27d0: 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 3e LLBACK OPTIONS">
27e0: 43 41 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 CALLBACK OPTIONS
27f0: 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 0a 41 </a></h3>..<p>.A
2800: 73 20 69 6e 64 69 63 61 74 65 64 20 61 62 6f 76 s indicated abov
2810: 65 2c 20 69 6e 64 69 76 69 64 75 61 6c 20 63 68 e, individual ch
2820: 61 6e 6e 65 6c 73 20 63 61 6e 20 62 65 20 67 69 annels can be gi
2830: 76 65 6e 20 74 68 65 69 72 20 6f 77 6e 20 63 61 ven their own ca
2840: 6c 6c 62 61 63 6b 73 0a 74 6f 20 68 61 6e 64 6c llbacks.to handl
2850: 65 20 69 6e 74 65 72 6d 65 64 69 61 74 65 20 70 e intermediate p
2860: 72 6f 63 65 73 73 69 6e 67 20 62 79 20 74 68 65 rocessing by the
2870: 20 4f 70 65 6e 53 53 4c 20 6c 69 62 72 61 72 79 OpenSSL library
2880: 2c 20 75 73 69 6e 67 20 74 68 65 0a 3c 65 6d 3e , using the.<em>
2890: 2d 63 6f 6d 6d 61 6e 64 3c 2f 65 6d 3e 20 61 6e -command</em> an
28a0: 64 20 3c 65 6d 3e 2d 70 61 73 73 77 6f 72 64 3c d <em>-password<
28b0: 2f 65 6d 3e 20 6f 70 74 69 6f 6e 73 20 70 61 73 /em> options pas
28c0: 73 65 64 20 74 6f 20 65 69 74 68 65 72 20 6f 66 sed to either of
28d0: 0a 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 73 6f .<strong>tls::so
28e0: 63 6b 65 74 3c 2f 73 74 72 6f 6e 67 3e 20 6f 72 cket</strong> or
28f0: 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 69 6d <strong>tls::im
2900: 70 6f 72 74 3c 2f 73 74 72 6f 6e 67 3e 2e 0a 3c port</strong>..<
2910: 2f 70 3e 0a 0a 3c 70 3e 0a 52 65 66 65 72 65 6e /p>..<p>.Referen
2920: 63 65 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f ce implementatio
2930: 6e 73 20 6f 66 20 74 68 65 73 65 20 63 61 6c 6c ns of these call
2940: 62 61 63 6b 73 20 61 72 65 20 70 72 6f 76 69 64 backs are provid
2950: 65 64 20 69 6e 20 74 68 65 20 64 69 73 74 72 69 ed in the distri
2960: 62 75 74 69 6f 6e 0a 61 73 20 3c 73 74 72 6f 6e bution.as <stron
2970: 67 3e 74 6c 73 3a 3a 63 61 6c 6c 62 61 63 6b 3c g>tls::callback<
2980: 2f 73 74 72 6f 6e 67 3e 20 61 6e 64 20 3c 73 74 /strong> and <st
2990: 72 6f 6e 67 3e 74 6c 73 3a 3a 70 61 73 73 77 6f rong>tls::passwo
29a0: 72 64 3c 2f 73 74 72 6f 6e 67 3e 2e 0a 4e 6f 74 rd</strong>..Not
29b0: 65 20 74 68 61 74 20 74 68 65 73 65 20 61 72 65 e that these are
29c0: 20 3c 65 6d 3e 73 61 6d 70 6c 65 3c 2f 65 6d 3e <em>sample</em>
29d0: 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 73 implementations
29e0: 20 6f 6e 6c 79 2e 20 20 49 6e 20 61 20 6d 6f 72 only. In a mor
29f0: 65 20 72 65 61 6c 69 73 74 69 63 0a 64 65 70 6c e realistic.depl
2a00: 6f 79 6d 65 6e 74 20 79 6f 75 20 77 6f 75 6c 64 oyment you would
2a10: 20 73 75 62 73 74 69 74 75 74 65 20 79 6f 75 72 substitute your
2a20: 20 6f 77 6e 20 63 61 6c 6c 62 61 63 6b 73 2c 20 own callbacks,
2a30: 74 79 70 69 63 61 6c 6c 79 20 62 79 20 63 6f 6e typically by con
2a40: 66 69 67 75 72 69 6e 67 0a 74 68 65 20 3c 65 6d figuring.the <em
2a50: 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f 65 6d 3e 20 61 >-command</em> a
2a60: 6e 64 20 3c 65 6d 3e 2d 70 61 73 73 77 6f 72 64 nd <em>-password
2a70: 3c 2f 65 6d 3e 20 6f 70 74 69 6f 6e 73 20 6f 6e </em> options on
2a80: 20 65 61 63 68 20 63 68 61 6e 6e 65 6c 20 77 69 each channel wi
2a90: 74 68 0a 73 63 72 69 70 74 73 20 74 6f 20 62 65 th.scripts to be
2aa0: 20 65 78 65 63 75 74 65 64 20 77 68 65 6e 20 74 executed when t
2ab0: 68 65 20 63 61 6c 6c 62 61 63 6b 73 20 61 72 65 he callbacks are
2ac0: 20 69 6e 76 6f 6b 65 64 2e 0a 3c 2f 70 3e 0a 0a invoked..</p>..
2ad0: 3c 70 3e 0a 54 68 65 20 64 65 66 61 75 6c 74 20 <p>.The default
2ae0: 62 65 68 61 76 69 6f 72 20 77 68 65 6e 20 74 68 behavior when th
2af0: 65 20 3c 65 6d 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f e <em>-command</
2b00: 65 6d 3e 20 6f 70 74 69 6f 6e 20 69 73 20 6e 6f em> option is no
2b10: 74 20 73 70 65 63 69 66 69 65 64 20 69 73 20 66 t specified is f
2b20: 6f 72 0a 54 4c 53 20 74 6f 20 70 72 6f 63 65 73 or.TLS to proces
2b30: 73 20 74 68 65 20 61 73 73 6f 63 69 61 74 65 64 s the associated
2b40: 20 6c 69 62 72 61 72 79 20 63 61 6c 6c 62 61 63 library callbac
2b50: 6b 73 20 69 6e 74 65 72 6e 61 6c 6c 79 2e 0a 54 ks internally..T
2b60: 68 65 20 64 65 66 61 75 6c 74 20 62 65 68 61 76 he default behav
2b70: 69 6f 72 20 77 68 65 6e 20 74 68 65 20 3c 65 6d ior when the <em
2b80: 3e 2d 70 61 73 73 77 6f 72 64 3c 2f 65 6d 3e 20 >-password</em>
2b90: 6f 70 74 69 6f 6e 20 69 73 20 6e 6f 74 20 73 70 option is not sp
2ba0: 65 63 69 66 69 65 64 20 69 73 20 66 6f 72 0a 54 ecified is for.T
2bb0: 4c 53 20 74 6f 20 70 72 6f 63 65 73 73 20 74 68 LS to process th
2bc0: 65 20 61 73 73 6f 63 69 61 74 65 64 20 6c 69 62 e associated lib
2bd0: 72 61 72 79 20 63 61 6c 6c 62 61 63 6b 73 20 62 rary callbacks b
2be0: 79 20 61 74 74 65 6d 70 74 69 6e 67 20 74 6f 20 y attempting to
2bf0: 63 61 6c 6c 0a 3c 73 74 72 6f 6e 67 3e 74 6c 73 call.<strong>tls
2c00: 3a 3a 70 61 73 73 77 6f 72 64 3c 2f 73 74 72 6f ::password</stro
2c10: 6e 67 3e 2e 0a 54 68 65 20 64 69 66 66 65 72 65 ng>..The differe
2c20: 6e 63 65 20 62 65 74 77 65 65 6e 20 74 68 65 73 nce between thes
2c30: 65 20 74 77 6f 20 62 65 68 61 76 69 6f 72 73 20 e two behaviors
2c40: 69 73 20 61 20 63 6f 6e 73 65 71 75 65 6e 63 65 is a consequence
2c50: 20 6f 66 20 6d 61 69 6e 74 61 69 6e 69 6e 67 0a of maintaining.
2c60: 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 20 77 69 compatibility wi
2c70: 74 68 20 65 61 72 6c 69 65 72 20 69 6d 70 6c 65 th earlier imple
2c80: 6d 65 6e 74 61 74 69 6f 6e 73 2e 20 20 54 68 65 mentations. The
2c90: 20 75 73 65 20 6f 66 20 69 6d 70 6c 69 65 64 20 use of implied
2ca0: 63 61 6c 6c 62 61 63 6b 73 0a 69 73 20 6e 6f 74 callbacks.is not
2cb0: 20 72 65 63 6f 6d 6d 65 6e 64 65 64 2e 0a 3c 2f recommended..</
2cc0: 70 3e 0a 0a 3c 70 3e 0a 54 68 65 20 3c 73 74 72 p>..<p>.The <str
2cd0: 6f 6e 67 3e 74 6c 73 3a 3a 64 65 62 75 67 3c 2f ong>tls::debug</
2ce0: 73 74 72 6f 6e 67 3e 20 76 61 72 69 61 62 6c 65 strong> variable
2cf0: 20 70 72 6f 76 69 64 65 73 20 73 6f 6d 65 20 61 provides some a
2d00: 64 64 69 74 69 6f 6e 61 6c 20 63 6f 6e 74 72 6f dditional contro
2d10: 6c 0a 6f 76 65 72 20 74 68 65 20 64 65 66 61 75 l.over the defau
2d20: 6c 74 20 63 6f 6d 6d 61 6e 64 73 2e 20 20 49 74 lt commands. It
2d30: 73 20 76 61 6c 75 65 20 69 73 20 7a 65 72 6f 20 s value is zero
2d40: 62 79 20 64 65 66 61 75 6c 74 2e 20 20 48 69 67 by default. Hig
2d50: 68 65 72 20 76 61 6c 75 65 73 0a 70 72 6f 64 75 her values.produ
2d60: 63 65 20 6d 6f 72 65 20 64 69 61 67 6e 6f 73 74 ce more diagnost
2d70: 69 63 20 6f 75 74 70 75 74 2e 20 20 53 65 74 74 ic output. Sett
2d80: 69 6e 67 20 74 68 69 73 20 76 61 6c 75 65 20 67 ing this value g
2d90: 72 65 61 74 65 72 20 74 68 61 6e 20 7a 65 72 6f reater than zero
2da0: 0a 77 69 6c 6c 20 61 6c 73 6f 20 66 6f 72 63 65 .will also force
2db0: 20 74 68 65 20 64 65 66 61 75 6c 74 20 76 65 72 the default ver
2dc0: 69 66 79 20 6d 65 74 68 6f 64 20 69 6e 20 3c 73 ify method in <s
2dd0: 74 72 6f 6e 67 3e 74 6c 73 3a 3a 63 61 6c 6c 62 trong>tls::callb
2de0: 61 63 6b 3c 2f 73 74 72 6f 6e 67 3e 0a 74 6f 20 ack</strong>.to
2df0: 61 63 63 65 70 74 20 74 68 65 20 63 65 72 74 69 accept the certi
2e00: 66 69 63 61 74 65 2c 20 65 76 65 6e 20 69 66 20 ficate, even if
2e10: 69 74 20 69 73 20 69 6e 76 61 6c 69 64 2e 0a 3c it is invalid..<
2e20: 2f 70 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 /p>..<h3><a name
2e30: 3d 22 48 54 54 50 53 20 45 58 41 4d 50 4c 45 22 ="HTTPS EXAMPLE"
2e40: 3e 48 54 54 50 53 20 45 58 41 4d 50 4c 45 3c 2f >HTTPS EXAMPLE</
2e50: 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 54 68 69 73 a></h3>..<p>This
2e60: 20 65 78 61 6d 70 6c 65 20 72 65 71 75 69 72 65 example require
2e70: 73 20 61 20 70 61 74 63 68 20 74 6f 20 74 68 65 s a patch to the
2e80: 20 3c 73 74 72 6f 6e 67 3e 68 74 74 70 3c 2f 73 <strong>http</s
2e90: 74 72 6f 6e 67 3e 0a 6d 6f 64 75 6c 65 20 74 68 trong>.module th
2ea0: 61 74 20 73 68 69 70 73 20 77 69 74 68 20 54 63 at ships with Tc
2eb0: 6c 20 2d 20 74 68 69 73 20 70 61 74 63 68 20 68 l - this patch h
2ec0: 61 73 20 62 65 65 6e 20 73 75 62 6d 69 74 74 65 as been submitte
2ed0: 64 20 66 6f 72 0a 69 6e 63 6c 75 73 69 6f 6e 20 d for.inclusion
2ee0: 69 6e 20 54 63 6c 20 38 2e 32 2e 31 2c 20 62 75 in Tcl 8.2.1, bu
2ef0: 74 20 69 73 20 61 6c 73 6f 20 70 72 6f 76 69 64 t is also provid
2f00: 65 64 20 69 6e 20 74 68 65 20 74 6c 73 20 64 69 ed in the tls di
2f10: 72 65 63 74 6f 72 79 0a 69 66 20 6e 65 65 64 65 rectory.if neede
2f20: 64 2e 20 41 20 73 61 6d 70 6c 65 20 73 65 72 76 d. A sample serv
2f30: 65 72 2e 70 65 6d 20 69 73 20 70 72 6f 76 69 64 er.pem is provid
2f40: 65 64 20 77 69 74 68 20 74 68 65 20 54 4c 53 20 ed with the TLS
2f50: 72 65 6c 65 61 73 65 2c 0a 63 6f 75 72 74 65 73 release,.courtes
2f60: 79 20 6f 66 20 74 68 65 20 3c 73 74 72 6f 6e 67 y of the <strong
2f70: 3e 4f 70 65 6e 53 53 4c 3c 2f 73 74 72 6f 6e 67 >OpenSSL</strong
2f80: 3e 20 70 72 6f 6a 65 63 74 2e 3c 2f 70 3e 0a 0a > project.</p>..
2f90: 3c 70 72 65 3e 3c 63 6f 64 65 3e 70 61 63 6b 61 <pre><code>packa
2fa0: 67 65 20 72 65 71 75 69 72 65 20 68 74 74 70 0a ge require http.
2fb0: 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 package require
2fc0: 74 6c 73 0a 0a 68 74 74 70 3a 3a 72 65 67 69 73 tls..http::regis
2fd0: 74 65 72 20 68 74 74 70 73 20 34 34 33 20 5b 6c ter https 443 [l
2fe0: 69 73 74 20 3a 3a 74 6c 73 3a 3a 73 6f 63 6b 65 ist ::tls::socke
2ff0: 74 20 2d 72 65 71 75 69 72 65 20 31 20 2d 63 61 t -require 1 -ca
3000: 66 69 6c 65 20 2e 2f 73 65 72 76 65 72 2e 70 65 file ./server.pe
3010: 6d 5d 0a 0a 73 65 74 20 74 6f 6b 20 5b 68 74 74 m]..set tok [htt
3020: 70 3a 3a 67 65 74 75 72 6c 20 68 74 74 70 73 3a p::geturl https:
3030: 2f 2f 64 65 76 65 6c 6f 70 65 72 2e 6e 65 74 73 //developer.nets
3040: 63 61 70 65 2e 63 6f 6d 2f 5d 0a 3c 2f 63 6f 64 cape.com/].</cod
3050: 65 3e 3c 2f 70 72 65 3e 0a 0a 3c 68 33 3e 3c 61 e></pre>..<h3><a
3060: 20 6e 61 6d 65 3d 22 53 50 45 43 49 41 4c 20 43 name="SPECIAL C
3070: 4f 4e 53 49 44 45 52 41 54 49 4f 4e 53 22 3e 53 ONSIDERATIONS">S
3080: 50 45 43 49 41 4c 20 43 4f 4e 53 49 44 45 52 41 PECIAL CONSIDERA
3090: 54 49 4f 4e 53 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a TIONS</a></h3>..
30a0: 3c 70 3e 54 68 65 20 63 61 70 61 62 69 6c 69 74 <p>The capabilit
30b0: 69 65 73 20 6f 66 20 74 68 69 73 20 70 61 63 6b ies of this pack
30c0: 61 67 65 20 63 61 6e 20 76 61 72 79 20 65 6e 6f age can vary eno
30d0: 72 6d 6f 75 73 6c 79 20 62 61 73 65 64 0a 75 70 rmously based.up
30e0: 6f 6e 20 68 6f 77 20 79 6f 75 72 20 4f 70 65 6e on how your Open
30f0: 53 53 4c 20 6c 69 62 72 61 72 79 20 77 61 73 20 SSL library was
3100: 63 6f 6e 66 69 67 75 72 65 64 20 61 6e 64 20 62 configured and b
3110: 75 69 6c 74 2e 20 41 74 20 74 68 65 0a 6d 6f 73 uilt. At the.mos
3120: 74 20 6d 61 63 72 6f 2d 6c 65 76 65 6c 20 4f 70 t macro-level Op
3130: 65 6e 53 53 4c 20 73 75 70 70 6f 72 74 73 20 61 enSSL supports a
3140: 20 26 71 75 6f 74 3b 6e 6f 20 70 61 74 65 6e 74 "no patent
3150: 73 26 71 75 6f 74 3b 20 62 75 69 6c 64 2c 0a 77 s" build,.w
3160: 68 69 63 68 20 64 69 73 61 62 6c 65 73 20 52 53 hich disables RS
3170: 41 2c 20 49 44 45 41 2c 20 52 43 28 32 2c 34 2c A, IDEA, RC(2,4,
3180: 35 29 20 61 6e 64 20 53 53 4c 32 20 2d 20 69 66 5) and SSL2 - if
3190: 20 79 6f 75 72 20 4f 70 65 6e 53 53 4c 20 69 73 your OpenSSL is
31a0: 0a 63 6f 6e 66 69 67 75 72 65 64 20 74 68 69 73 .configured this
31b0: 20 77 61 79 20 74 68 65 6e 20 79 6f 75 20 77 69 way then you wi
31c0: 6c 6c 20 6e 65 65 64 20 74 6f 20 62 75 69 6c 64 ll need to build
31d0: 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a 2d 44 TLS with the.-D
31e0: 4e 4f 5f 50 41 54 45 4e 54 53 20 6f 70 74 69 6f NO_PATENTS optio
31f0: 6e 20 2d 20 61 6e 64 20 74 68 65 20 72 65 73 75 n - and the resu
3200: 6c 74 61 6e 74 20 6d 6f 64 75 6c 65 20 77 69 6c ltant module wil
3210: 6c 20 66 75 6e 63 74 69 6f 6e 0a 63 6f 72 72 65 l function.corre
3220: 63 74 6c 79 20 61 6e 64 20 61 6c 73 6f 20 73 75 ctly and also su
3230: 70 70 6f 72 74 20 41 44 48 20 63 65 72 74 69 66 pport ADH certif
3240: 69 63 61 74 65 2d 6c 65 73 73 20 65 6e 63 72 79 icate-less encry
3250: 70 74 69 6f 6e 2c 0a 68 6f 77 65 76 65 72 20 79 ption,.however y
3260: 6f 75 20 77 69 6c 6c 20 62 65 20 75 6e 61 62 6c ou will be unabl
3270: 65 20 74 6f 20 75 74 69 6c 69 7a 65 20 74 68 69 e to utilize thi
3280: 73 20 74 6f 20 73 70 65 61 6b 20 74 6f 20 6e 6f s to speak to no
3290: 72 6d 61 6c 20 57 65 62 0a 53 65 72 76 65 72 73 rmal Web.Servers
32a0: 2c 20 77 68 69 63 68 20 74 79 70 69 63 61 6c 6c , which typicall
32b0: 79 20 72 65 71 75 69 72 65 20 52 53 41 20 73 75 y require RSA su
32c0: 70 70 6f 72 74 2e 20 50 6c 65 61 73 65 20 73 65 pport. Please se
32d0: 65 20 3c 61 0a 68 72 65 66 3d 22 68 74 74 70 3a e <a.href="http:
32e0: 2f 2f 77 77 77 2e 6f 70 65 6e 73 73 6c 2e 6f 72 //www.openssl.or
32f0: 67 2f 22 3e 68 74 74 70 3a 2f 2f 77 77 77 2e 6f g/">http://www.o
3300: 70 65 6e 73 73 6c 2e 6f 72 67 2f 3c 2f 61 3e 20 penssl.org/</a>
3310: 66 6f 72 0a 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 for.more informa
3320: 74 69 6f 6e 20 6f 6e 20 74 68 65 20 77 68 6f 6c tion on the whol
3330: 65 20 69 73 73 75 65 20 6f 66 20 70 61 74 65 6e e issue of paten
3340: 74 73 20 61 6e 64 20 55 53 20 65 78 70 6f 72 74 ts and US export
3350: 0a 72 65 73 74 72 69 63 74 69 6f 6e 73 2e 20 3c .restrictions. <
3360: 2f 70 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 /p>..<h3><a name
3370: 3d 22 53 45 45 20 41 4c 53 4f 22 3e 53 45 45 20 ="SEE ALSO">SEE
3380: 41 4c 53 4f 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c ALSO</a></h3>..<
3390: 70 3e 3c 73 74 72 6f 6e 67 3e 73 6f 63 6b 65 74 p><strong>socket
33a0: 3c 2f 73 74 72 6f 6e 67 3e 2c 20 3c 73 74 72 6f </strong>, <stro
33b0: 6e 67 3e 66 69 6c 65 65 76 65 6e 74 2c 20 3c 2f ng>fileevent, </
33c0: 73 74 72 6f 6e 67 3e 3c 61 0a 68 72 65 66 3d 22 strong><a.href="
33d0: 68 74 74 70 3a 2f 2f 77 77 77 2e 6f 70 65 6e 73 http://www.opens
33e0: 73 6c 2e 6f 72 67 2f 22 3e 3c 73 74 72 6f 6e 67 sl.org/"><strong
33f0: 3e 4f 70 65 6e 53 53 4c 3c 2f 73 74 72 6f 6e 67 >OpenSSL</strong
3400: 3e 3c 2f 61 3e 3c 2f 70 3e 0a 0a 3c 68 72 3e 0a ></a></p>..<hr>.
3410: 0a 3c 70 72 65 3e 0a 43 6f 70 79 72 69 67 68 74 .<pre>.Copyright
3420: 20 26 63 6f 70 79 3b 20 31 39 39 39 20 4d 61 74 © 1999 Mat
3430: 74 20 4e 65 77 6d 61 6e 2e 0a 3c 2f 70 72 65 3e t Newman..</pre>
3440: 0a 3c 2f 62 6f 64 79 3e 0a 3c 2f 68 74 6d 6c 3e .</body>.</html>
3450: 0a .