Artifact
773f62e89b6013bf4820b45429b889de368e8117:
0000: 32 30 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66 2003-07-07 Jeff
0010: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 Hobbs <jeffh@A
0020: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a ctiveState.com>.
0030: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 ..* tls.c (Tls_I
0040: 6e 69 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c nit): added tl
0050: 73 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20 s::misc command
0060: 70 72 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74 provided by..* t
0070: 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 lsX509.c:
0080: 20 20 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a Wojciech Kocj
0090: 61 6e 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63 an (wojciech koc
00a0: 6a 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74 jan.org)..* test
00b0: 73 2f 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20 s/keytest1.tcl:
00c0: 74 6f 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c to expose more l
00d0: 6f 77 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d ow-level SSL com
00e0: 6d 61 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b mands..* tests/k
00f0: 65 79 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30 eytest2.tcl:..20
0100: 30 33 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61 03-05-15 Dan Ra
0110: 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 zzell.<research@
0120: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e starfishsystems.
0130: 63 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c ca> ...* tls.tcl
0140: 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 :..* tlsInt.h:..
0150: 2a 20 74 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 * tls.c: add sup
0160: 70 6f 72 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 port for binding
0170: 20 61 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c a password call
0180: 62 61 63 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b back to the sock
0190: 65 74 2e 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f et...Now each so
01a0: 63 6b 65 74 20 63 61 6e 20 68 61 76 65 20 69 74 cket can have it
01b0: 73 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e s own command an
01c0: 64 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 d password callb
01d0: 61 63 6b 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 acks instead..of
01e0: 20 62 65 69 6e 67 20 66 6f 72 63 65 64 20 74 6f being forced to
01f0: 20 68 61 76 65 20 61 6c 6c 20 70 61 73 73 77 6f have all passwo
0200: 72 64 20 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 rd management pa
0210: 73 73 20 74 68 72 6f 75 67 68 20 61 20 63 6f 6d ss through a com
0220: 6d 6f 6e 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 mon..procedure.
0230: 20 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 The common pass
0240: 77 6f 72 64 20 70 72 6f 63 65 64 75 72 65 20 69 word procedure i
0250: 73 20 72 65 74 61 69 6e 65 64 20 66 6f 72 20 63 s retained for c
0260: 6f 6d 70 61 74 69 62 69 6c 69 74 79 0a 09 62 75 ompatibility..bu
0270: 74 20 69 74 73 20 75 73 65 20 73 68 6f 75 6c 64 t its use should
0280: 20 62 65 20 44 45 50 52 45 43 41 54 45 44 2e 0a be DEPRECATED..
0290: 09 41 64 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d .Add version com
02a0: 6d 61 6e 64 20 74 6f 20 72 65 74 75 72 6e 20 4f mand to return O
02b0: 70 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 penSSL version s
02c0: 74 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 tring...Remove u
02d0: 6e 73 74 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 nstable workarou
02e0: 6e 64 73 20 6e 65 65 64 65 64 20 66 6f 72 20 76 nds needed for v
02f0: 65 72 69 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 erify in obsolet
0300: 65 20 76 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f e versions of..O
0310: 70 65 6e 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d penSSL...Fix mem
0320: 6f 72 79 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 ory leak. [Reque
0330: 73 74 20 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 st #640660]..Mor
0340: 65 20 63 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 e casts to elimi
0350: 6e 61 74 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 nate compiler wa
0360: 72 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e rnings....* tls.
0370: 68 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 htm: document pa
0380: 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e ssword callback.
0390: 0a 09 43 6f 72 72 65 63 74 20 74 65 63 68 6e 69 ..Correct techni
03a0: 63 61 6c 20 61 6e 64 20 74 79 70 6f 67 72 61 70 cal and typograp
03b0: 68 69 63 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 hic errors....*
03c0: 52 45 41 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e README.txt: iden
03d0: 74 69 66 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 tify versions of
03e0: 20 4f 70 65 6e 53 53 4c 20 77 68 69 63 68 20 66 OpenSSL which f
03f0: 69 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d ix known problem
0400: 73 2e 0a 09 47 65 6e 65 72 61 6c 20 77 61 72 6e s...General warn
0410: 69 6e 67 20 6f 66 20 73 65 63 75 72 69 74 79 20 ing of security
0420: 70 72 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 problems in olde
0430: 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 r versions of Op
0440: 65 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d enSSL...2002-02-
0450: 30 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 04 Jeff Hobbs
0460: 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 <jeffh@ActiveSta
0470: 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e te.com>...* tls.
0480: 68 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 htm:..* tls.c: a
0490: 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 dded support for
04a0: 20 6c 6f 63 61 6c 20 63 65 72 74 69 66 69 63 61 local certifica
04b0: 74 65 20 73 74 61 74 75 73 20 63 68 65 63 6b 2c te status check,
04c0: 20 61 73 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 as well..as ret
04d0: 75 72 6e 69 6e 67 20 74 68 65 20 23 20 6f 66 20 urning the # of
04e0: 62 69 74 73 20 69 6e 20 74 68 65 20 73 65 73 73 bits in the sess
04f0: 69 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 ion key. [Patch
0500: 23 35 30 35 36 39 38 5d 20 28 72 6f 73 65 29 0a #505698] (rose).
0510: 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c ..* tls.c:..* tl
0520: 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f sIO.c:..* tlsBIO
0530: 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 73 .c: added CONSTs
0540: 20 74 6f 20 73 61 74 69 73 66 79 20 54 63 6c 20 to satisfy Tcl
0550: 38 2e 34 20 73 6f 75 72 63 65 73 2e 20 20 54 68 8.4 sources. Th
0560: 69 73 20 6d 61 79 0a 09 67 69 76 65 20 77 61 72 is may..give war
0570: 6e 69 6e 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 nings when compi
0580: 6c 65 64 20 61 67 61 69 6e 73 74 20 38 2e 33 2c led against 8.3,
0590: 20 62 75 74 20 74 68 65 79 20 63 61 6e 20 62 65 but they can be
05a0: 20 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 ignored....* te
05b0: 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 sts/simpleClient
05c0: 2e 74 63 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 .tcl:..* tests/s
05d0: 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a impleServer.tcl:
05e0: 20 70 6f 69 6e 74 20 74 6f 20 75 70 64 61 74 65 point to update
05f0: 64 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 d client/server
0600: 6b 65 79 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 key files....* t
0610: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
0620: 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 ..* tests/cipher
0630: 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 s.test: updated
0640: 74 6f 20 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d to load tls from
0650: 20 62 75 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 build dir....*
0660: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d Makefile.in: rem
0670: 6f 76 65 64 20 73 74 72 6e 63 61 73 65 63 6d 70 oved strncasecmp
0680: 20 66 72 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 from default ob
0690: 6a 65 63 74 20 73 65 74 2e 20 20 54 68 69 73 0a ject set. This.
06a0: 09 69 73 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 .is only needed
06b0: 6f 6e 20 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 on the Mac, and
06c0: 54 63 6c 20 73 74 75 62 73 20 70 72 6f 76 69 64 Tcl stubs provid
06d0: 65 73 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 es it....* confi
06e0: 67 75 72 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a gure: regen'ed..
06f0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a .* configure.in:
0700: 20 75 70 64 61 74 65 64 20 74 6f 20 31 2e 35 2e updated to 1.5.
0710: 30 20 66 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 0 for next relea
0720: 73 65 2e 0a 09 43 68 61 6e 67 65 64 20 64 65 66 se...Changed def
0730: 61 75 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 ault openssl loc
0740: 61 74 69 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f ation to /usr/lo
0750: 63 61 6c 2f 73 73 6c 20 28 74 68 69 73 20 69 73 cal/ssl (this is
0760: 20 77 68 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 where..openssl
0770: 30 2e 39 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 0.9.6c installs
0780: 62 79 20 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 by default)...Ch
0790: 61 6e 67 65 64 20 74 6f 20 75 73 65 20 70 75 62 anged to use pub
07a0: 6c 69 63 20 54 63 6c 20 68 65 61 64 65 72 73 20 lic Tcl headers
07b0: 28 70 72 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 (private not nee
07c0: 64 65 64 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 ded)...2001-06-2
07d0: 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 1 Jeff Hobbs <
07e0: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
07f0: 65 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 e.com>...TLS 1.4
0800: 2e 31 20 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 .1 RELEASE...* c
0810: 6f 6e 66 69 67 75 72 65 3a 20 61 64 64 65 64 20 onfigure: added
0820: 63 6f 6e 66 69 67 75 72 65 20 74 6f 20 43 56 53 configure to CVS
0830: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e ..* configure.in
0840: 3a 20 6d 6f 76 65 64 20 74 6f 20 70 61 74 63 68 : moved to patch
0850: 6c 65 76 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 level 1.4.1...*
0860: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 Makefile.in: cor
0870: 72 65 63 74 65 64 20 27 64 69 73 74 27 20 74 61 rected 'dist' ta
0880: 72 67 65 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 rget...* tests/c
0890: 65 72 74 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 erts/file.srl:..
08a0: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 * tests/certs/ca
08b0: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .pem:..* tests/c
08c0: 65 72 74 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a erts/client.key:
08d0: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
08e0: 63 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 client.pem:..* t
08f0: 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e ests/certs/clien
0900: 74 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f t.req:..* tests/
0910: 63 65 72 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 certs/privkey.pe
0920: 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 m:..* tests/cert
0930: 73 2f 73 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a s/server.key:..*
0940: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 tests/certs/ser
0950: 76 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 ver.pem:..* test
0960: 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 72 s/certs/server.r
0970: 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 eq:..* tests/cer
0980: 74 73 2f 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 ts/cacert.pem: r
0990: 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 eplaced by new c
09a0: 61 2e 70 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 a.pem..* tests/c
09b0: 65 72 74 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 erts/skey.pem: r
09c0: 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 73 eplaced by new s
09d0: 65 72 76 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 erver.key..* tes
09e0: 74 73 2f 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 ts/certs/ckey.pe
09f0: 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e m: replaced by n
0a00: 65 77 20 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a ew client.key..*
0a10: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 52 45 41 tests/certs/REA
0a20: 44 4d 45 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 DME.txt: new set
0a30: 20 6f 66 20 74 65 73 74 20 63 65 72 74 69 66 69 of test certifi
0a40: 63 61 74 65 73 20 77 69 74 68 20 73 6f 6d 65 0a cates with some.
0a50: 09 52 45 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 .README info on
0a60: 74 68 65 69 72 20 67 65 6e 65 72 61 74 69 6f 6e their generation
0a70: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 ....* tests/ciph
0a80: 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 ers.test: update
0a90: 64 20 63 69 70 68 65 72 73 20 65 78 70 65 63 74 d ciphers expect
0aa0: 65 64 20 77 69 74 68 20 64 65 66 61 75 6c 74 0a ed with default.
0ab0: 09 6f 70 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a .openssl build..
0ac0: 0a 09 2a 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e ..* tests/tclIO.
0ad0: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f test: updated to
0ae0: 20 75 73 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 use new names f
0af0: 6f 72 20 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a or certs/keys...
0b00: 32 30 30 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 2001-03-14 Jeff
0b10: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 67 Hobbs <jeffh@g
0b20: 69 6d 6c 65 74 2e 61 63 74 69 76 65 73 74 61 74 imlet.activestat
0b30: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 e.com>...* tls.c
0b40: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 (Tls_Init): add
0b50: 20 64 6f 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 do/while for ra
0b60: 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 ndom number init
0b70: 69 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 ialization..to w
0b80: 6f 72 6b 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 ork around some
0b90: 4f 53 65 73 20 71 75 69 72 6b 73 2e 20 20 28 52 OSes quirks. (R
0ba0: 61 6c 70 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 alph.Billes@telt
0bb0: 65 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 ech.com.au)..200
0bc0: 30 2d 30 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 0-09-07 Jeff Ho
0bd0: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
0be0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
0bf0: 6c 73 49 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e lsIO.c (Tls_Chan
0c00: 6e 65 6c 54 79 70 65 29 3a 20 73 65 74 20 74 79 nelType): set ty
0c10: 70 65 4e 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 peName field of
0c20: 63 68 61 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a channel type to.
0c30: 09 22 74 6c 73 22 20 28 74 68 69 73 20 67 6f 74 ."tls" (this got
0c40: 20 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f lost in move to
0c50: 20 64 79 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e dynamic version
0c60: 20 63 6f 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 compatability..
0c70: 63 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 checking)...2000
0c80: 2d 30 38 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 -08-23 Jeff Hob
0c90: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
0ca0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 tics.com>...TLS
0cb0: 31 2e 34 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 1.4 RELEASED...*
0cc0: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 Makefile.in (di
0cd0: 73 74 29 3a 20 63 72 65 61 74 65 20 64 69 73 74 st): create dist
0ce0: 20 74 61 72 67 65 74 20 66 6f 72 20 61 72 63 68 target for arch
0cf0: 69 76 65 20 64 69 73 74 72 69 62 75 74 69 6f 6e ive distribution
0d00: 73 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 s...* tests/tlsI
0d10: 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e O.test (tlsIO-8.
0d20: 31 29 3a 20 61 64 64 65 64 20 61 20 64 65 6c 61 1): added a dela
0d30: 79 20 6f 6e 20 74 68 65 20 61 63 63 65 70 74 20 y on the accept
0d40: 63 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 close..to make t
0d50: 68 65 20 74 65 73 74 20 77 6f 72 6b 20 77 69 74 he test work wit
0d60: 68 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e h OpenSSL on Win
0d70: 64 6f 77 73 20 28 64 6f 65 73 6e 27 74 20 61 66 dows (doesn't af
0d80: 66 65 63 74 0a 09 6f 74 68 65 72 20 62 75 69 6c fect..other buil
0d90: 64 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d ds)....* tls.htm
0da0: 3a 20 75 70 64 61 74 65 64 20 77 69 74 68 20 6e : updated with n
0db0: 6f 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 otes for 1.4...2
0dc0: 30 30 30 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 000-08-21 Jeff
0dd0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
0de0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
0df0: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
0e00: 74 3a 20 72 65 71 75 69 72 65 20 61 74 20 6c 65 t: require at le
0e10: 61 73 74 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 ast tls1.4 in te
0e20: 73 74 20 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d st suite...2000-
0e30: 30 38 2d 31 38 20 20 4a 65 66 66 20 48 6f 62 62 08-18 Jeff Hobb
0e40: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
0e50: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
0e60: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 .c (Tls_Init): a
0e70: 64 64 65 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e dded call to RAN
0e80: 44 5f 73 65 65 64 20 74 6f 20 73 65 65 64 20 74 D_seed to seed t
0e90: 68 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e he SSL random..n
0ea0: 75 6d 62 65 72 20 67 65 6e 65 72 61 74 6f 72 2e umber generator.
0eb0: 20 20 57 69 74 68 6f 75 74 20 74 68 69 73 2c 20 Without this,
0ec0: 4f 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 OpenSSL 0.9.5 ch
0ed0: 6f 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 okes, and in any
0ee0: 0a 09 63 61 73 65 20 69 74 20 69 73 20 61 20 62 ..case it is a b
0ef0: 69 67 20 73 65 63 75 72 69 74 79 20 68 6f 6c 65 ig security hole
0f00: 20 74 6f 20 64 6f 20 77 69 74 68 6f 75 74 20 69 to do without i
0f10: 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 t....* configure
0f20: 2e 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 .in (OPENSSL): a
0f30: 64 64 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 dded NO_IDEA and
0f40: 20 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65 73 20 NO_RC5 defines
0f50: 62 79 0a 09 64 65 66 61 75 6c 74 20 77 68 65 6e by..default when
0f60: 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 compiling with
0f70: 4f 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 OpenSSL....* tls
0f80: 49 6e 74 2e 68 3a 20 61 64 64 65 64 20 65 72 72 Int.h: added err
0f90: 2e 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 .h include...* t
0fa0: 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 lsBIO.c:..* tlsI
0fb0: 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 70 O.c: corrected p
0fc0: 65 64 61 6e 74 69 63 20 63 61 73 74 20 65 72 72 edantic cast err
0fd0: 6f 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 ors...2000-08-16
0fe0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
0ff0: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
1000: 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 om>...* tests/ci
1010: 70 68 65 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 phers.test: impr
1020: 6f 76 65 64 20 61 62 69 6c 69 74 79 20 74 6f 20 oved ability to
1030: 63 68 61 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e change constrain
1040: 74 0a 09 73 65 74 74 69 6e 67 20 66 6f 72 20 77 t..setting for w
1050: 68 65 74 68 65 72 20 75 73 65 72 20 63 6f 6d 70 hether user comp
1060: 69 6c 65 64 20 61 67 61 69 6e 73 74 20 52 53 41 iled against RSA
1070: 20 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 or OpenSSL libs
1080: 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 ....* tls.c (Tls
1090: 5f 49 6e 69 74 29 3a 20 63 6f 72 72 65 63 74 65 _Init): correcte
10a0: 64 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e d interpretation
10b0: 20 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 of version numb
10c0: 65 72 0a 09 28 70 61 74 63 68 6c 65 76 65 6c 20 er..(patchlevel
10d0: 61 6e 64 20 72 65 6c 65 61 73 65 2f 73 65 72 69 and release/seri
10e0: 61 6c 20 77 65 72 65 20 73 77 61 70 70 65 64 29 al were swapped)
10f0: 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20 20 4a ...2000-08-15 J
1100: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 eff Hobbs <hobb
1110: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e s@scriptics.com>
1120: 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a ...* README.txt:
1130: 20 61 64 64 65 64 20 6e 6f 74 65 73 20 61 62 6f added notes abo
1140: 75 74 20 6e 65 65 64 20 74 6f 20 75 73 65 20 38 ut need to use 8
1150: 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e .2.0+....* tlsIn
1160: 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 t.h:..* tls.c:..
1170: 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 * tlsIO.c: corre
1180: 63 74 65 64 20 73 74 72 75 63 74 75 72 65 20 69 cted structure i
1190: 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f nitialization to
11a0: 20 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 work when..comp
11b0: 69 6c 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 iling with 8.2.
11c0: 20 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 Now compiles wi
11d0: 74 68 20 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 th 8.2+ and test
11e0: 65 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 ed to work..with
11f0: 20 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 8.2+ and dynami
1200: 63 61 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 cally adjust to
1210: 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 the version of T
1220: 63 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 cl it was..loade
1230: 64 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c d into. TLS wil
1240: 6c 20 66 61 69 6c 20 74 68 65 20 74 65 73 74 20 l fail the test
1250: 73 75 69 74 65 20 77 69 74 68 20 54 63 6c 20 38 suite with Tcl 8
1260: 2e 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 .2-8.3.1....* te
1270: 73 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 sts/all.tcl: add
1280: 65 64 20 63 61 74 63 68 20 61 72 6f 75 6e 64 20 ed catch around
1290: 3a 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 ::tcltest::norma
12a0: 6c 69 7a 65 50 61 74 68 0a 09 62 65 63 61 75 73 lizePath..becaus
12b0: 65 20 69 74 20 64 6f 65 73 6e 27 74 20 65 78 69 e it doesn't exi
12c0: 73 74 20 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 st in pre-8.3 tc
12d0: 6c 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 ltest....* tests
12e0: 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 /simpleClient.tc
12f0: 6c 3a 20 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d l: ..* tests/sim
1300: 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 61 pleServer.tcl: a
1310: 64 64 65 64 20 73 69 6d 70 6c 65 20 63 6c 69 65 dded simple clie
1320: 6e 74 2f 73 65 72 76 65 72 20 74 65 73 74 20 73 nt/server test s
1330: 63 72 69 70 74 73 0a 09 74 68 61 74 20 75 73 65 cripts..that use
1340: 20 74 65 73 74 20 63 65 72 74 73 20 61 6e 64 20 test certs and
1350: 63 61 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73 74 can do simple st
1360: 72 65 73 73 20 74 65 73 74 73 2e 0a 0a 32 30 30 ress tests...200
1370: 30 2d 30 38 2d 31 34 20 20 4a 65 66 66 20 48 6f 0-08-14 Jeff Ho
1380: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1390: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
13a0: 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 lsInt.h:..* tlsI
13b0: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 O.c:..* tlsBIO.c
13c0: 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61 6e :..* tls.c: chan
13d0: 67 65 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f 6e ged around to on
13e0: 6c 79 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 ly working with
13f0: 38 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 8.2.0+ (8.3.2+..
1400: 70 72 65 66 65 72 72 65 64 29 2c 20 77 69 74 68 preferred), with
1410: 20 72 75 6e 74 69 6d 65 20 63 68 65 63 6b 73 20 runtime checks
1420: 66 6f 72 20 70 72 65 2d 20 61 6e 64 20 70 6f 73 for pre- and pos
1430: 74 2d 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a 09 t-io-rewrite....
1440: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 * tls.c (Tls_Ini
1450: 74 29 3a 20 63 68 61 6e 67 65 64 20 69 74 20 74 t): changed it t
1460: 6f 20 72 65 71 75 69 72 65 20 38 2e 33 2e 32 20 o require 8.3.2
1470: 77 68 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74 75 when Tcl_InitStu
1480: 62 73 0a 09 77 61 73 20 63 61 6c 6c 65 64 20 62 bs..was called b
1490: 65 63 61 75 73 65 20 77 65 20 64 6f 6e 27 74 20 ecause we don't
14a0: 77 61 6e 74 20 70 65 6f 70 6c 65 20 75 73 69 6e want people usin
14b0: 67 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a 09 g TLS with the..
14c0: 6f 72 69 67 69 6e 61 6c 20 73 74 61 63 6b 65 64 original stacked
14d0: 20 63 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 channel impleme
14e0: 6e 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 ntation...2000-0
14f0: 37 2d 32 36 20 20 4a 65 66 66 20 48 6f 62 62 73 7-26 Jeff Hobbs
1500: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
1510: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 cs.com>...* merg
1520: 65 64 20 61 6c 6c 20 63 68 61 6e 67 65 73 20 66 ed all changes f
1530: 72 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 rom tls-1-3-io-r
1540: 65 77 72 69 74 65 20 62 61 63 6b 20 69 6e 74 6f ewrite back into
1550: 20 6d 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09 2a main branch...*
1560: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
1570: 74 3a 20 75 70 64 61 74 65 64 20 63 6f 6d 6d 65 t: updated comme
1580: 6e 74 73 2c 20 66 69 78 65 64 20 61 20 70 63 43 nts, fixed a pcC
1590: 72 61 73 68 20 63 61 73 65 20 74 68 61 74 0a 09 rash case that..
15a0: 77 61 73 20 64 75 65 20 74 6f 20 64 65 62 75 67 was due to debug
15b0: 20 61 73 73 65 72 74 69 6f 6e 20 69 6e 20 57 69 assertion in Wi
15c0: 6e 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 ndows SSL....* t
15d0: 6c 73 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a 43 ls.c (ImportObjC
15e0: 6d 64 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e 6e md): removed unn
15f0: 65 63 65 73 73 61 72 79 20 75 73 65 20 6f 66 20 ecessary use of
1600: 27 62 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c 73 'bio' arg...(Tls
1610: 5f 49 6e 69 74 29 3a 20 63 68 65 63 6b 20 72 65 _Init): check re
1620: 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 20 53 53 turn value of SS
1630: 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e 20 L_library_init.
1640: 20 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 Also lots of..w
1650: 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 hitespace cleanu
1660: 70 20 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63 6c p (more like Tcl
1670: 20 45 6e 67 20 73 74 79 6c 65 20 67 75 69 64 65 Eng style guide
1680: 29 2c 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 ), but not all..
1690: 63 6f 64 65 20 77 61 73 20 63 6c 65 61 6e 65 64 code was cleaned
16a0: 20 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e up....* tlsBIO.
16b0: 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 c: minor whitesp
16c0: 61 63 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 ace cleanup...*
16d0: 74 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 tlsIO.c: minor w
16e0: 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 hitespace cleanu
16f0: 70 2e 0a 09 28 54 6c 73 49 6e 70 75 74 50 72 6f p...(TlsInputPro
1700: 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 c, TlsOutputProc
1710: 29 3a 20 41 64 64 65 64 20 45 52 52 5f 63 6c 65 ): Added ERR_cle
1720: 61 72 5f 65 72 72 6f 72 20 62 65 66 6f 72 65 20 ar_error before
1730: 63 61 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72 65 calls..to BIO_re
1740: 61 64 20 6f 72 20 42 49 4f 5f 77 72 69 74 65 2c ad or BIO_write,
1750: 20 62 65 63 61 75 73 65 20 77 65 20 63 6f 75 6c because we coul
1760: 64 20 6f 74 68 65 72 77 69 73 65 20 65 6e 64 20 d otherwise end
1770: 75 70 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20 65 up..pulling an e
1780: 72 72 6f 72 20 6f 66 66 20 74 68 65 20 73 74 61 rror off the sta
1790: 63 6b 20 74 68 61 74 20 64 69 64 6e 27 74 20 62 ck that didn't b
17a0: 65 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41 6c elong to us. Al
17b0: 73 6f 0a 09 63 6c 65 61 6e 75 70 20 75 70 20 65 so..cleanup up e
17c0: 78 63 65 73 73 69 76 65 20 75 73 65 20 6f 66 20 xcessive use of
17d0: 67 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37 2d gotos...2000-07-
17e0: 32 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 20 Jeff Hobbs
17f0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
1800: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f .com>...* tests/
1810: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72 72 tlsIO.test: corr
1820: 65 63 74 65 64 20 76 61 72 69 6f 75 73 20 74 65 ected various te
1830: 73 74 73 20 74 6f 20 62 65 20 63 6f 72 72 65 63 sts to be correc
1840: 74 20 66 6f 72 20 54 4c 53 0a 09 73 74 61 63 6b t for TLS..stack
1850: 65 64 20 63 68 61 6e 6e 65 6c 73 20 28 61 73 20 ed channels (as
1860: 6f 70 70 6f 73 65 64 20 74 6f 20 74 68 65 20 73 opposed to the s
1870: 74 61 6e 64 61 72 64 20 73 6f 63 6b 65 74 73 20 tandard sockets
1880: 74 68 65 20 74 65 73 74 0a 09 73 75 69 74 65 20 the test..suite
1890: 77 61 73 20 61 64 6f 70 74 65 64 20 66 72 6f 6d was adopted from
18a0: 29 2e 20 20 4b 65 79 20 64 69 66 66 65 72 65 6e ). Key differen
18b0: 63 65 73 20 61 72 65 20 74 68 61 74 20 54 4c 53 ces are that TLS
18c0: 20 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74 65 cannot..operate
18d0: 20 69 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73 20 in one process
18e0: 77 69 74 68 6f 75 74 20 61 6c 6c 20 63 68 61 6e without all chan
18f0: 6e 65 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 nels being non-b
1900: 6c 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68 65 locking, or..the
1910: 20 68 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c 20 handshake will
1920: 62 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64 73 block, and hands
1930: 68 61 6b 69 6e 67 20 6d 75 73 74 20 62 65 20 66 haking must be f
1940: 6f 72 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09 63 orced in some..c
1950: 61 73 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61 6e ases. Also, han
1960: 64 73 68 61 6b 65 73 20 64 6f 6e 27 74 20 73 65 dshakes don't se
1970: 65 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20 75 em to complete u
1980: 6e 6c 65 73 73 20 74 68 65 20 63 6c 69 65 6e 74 nless the client
1990: 0a 09 68 61 73 20 70 6c 61 63 65 64 20 61 74 20 ..has placed at
19a0: 6c 65 61 73 74 20 6f 6e 65 20 62 79 74 65 20 66 least one byte f
19b0: 6f 72 20 74 68 65 20 73 65 72 76 65 72 20 74 6f or the server to
19c0: 20 72 65 61 64 20 69 6e 20 74 68 65 20 63 68 61 read in the cha
19d0: 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f nnel....* tests/
19e0: 72 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72 72 remote.tcl: corr
19f0: 65 63 74 65 64 20 74 68 65 20 66 69 6e 64 69 6e ected the findin
1a00: 67 20 6f 66 20 74 65 73 74 73 20 63 65 72 74 69 g of tests certi
1a10: 66 69 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73 49 ficates...* tlsI
1a20: 4f 2e 63 20 28 54 6c 73 43 6c 6f 73 65 50 72 6f O.c (TlsClosePro
1a30: 63 29 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c 65 c): removed dele
1a40: 74 69 6e 67 20 6f 66 20 74 69 6d 65 72 20 68 61 ting of timer ha
1a50: 6e 64 6c 65 72 20 61 73 0a 09 74 68 61 74 20 69 ndler as..that i
1a60: 73 20 68 61 6e 64 6c 65 64 20 62 79 20 54 6c 73 s handled by Tls
1a70: 5f 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e _Clean....* tls.
1a80: 74 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65 70 tcl (tls::_accep
1a90: 74 29 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 t): corrected th
1aa0: 65 20 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63 65 e internal _acce
1ab0: 70 74 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20 63 pt to..trickle c
1ac0: 61 6c 6c 62 61 63 6b 20 65 72 72 6f 72 73 20 74 allback errors t
1ad0: 6f 20 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a 20 o the user....*
1ae0: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 Makefile.in: mad
1af0: 65 20 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62 69 e the install-bi
1b00: 6e 61 72 69 65 73 20 74 61 72 67 65 74 20 72 65 naries target re
1b10: 67 65 6e 65 72 61 74 65 20 74 68 65 0a 09 70 6b generate the..pk
1b20: 67 49 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72 65 gIndex.tcl corre
1b30: 63 74 6c 79 2e 20 20 54 68 65 20 74 65 73 74 20 ctly. The test
1b40: 74 61 72 67 65 74 20 70 72 6f 62 61 62 6c 79 20 target probably
1b50: 73 68 6f 75 6c 64 6e 27 74 20 73 63 72 65 77 0a shouldn't screw.
1b60: 09 69 74 20 75 70 2c 20 62 75 74 20 74 68 69 73 .it up, but this
1b70: 20 69 73 20 74 6f 20 62 65 20 6f 6e 20 74 68 65 is to be on the
1b80: 20 73 61 66 65 20 73 69 64 65 2e 0a 0a 32 30 30 safe side...200
1b90: 30 2d 30 37 2d 31 37 20 20 4a 65 66 66 20 48 6f 0-07-17 Jeff Ho
1ba0: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1bb0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 ptics.com>...* p
1bc0: 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a kgIndex.tcl.in:.
1bd0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a .* configure.in:
1be0: 20 75 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e updated version
1bf0: 20 74 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30 37 to 1.4..2000-07
1c00: 2d 31 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -13 Jeff Hobbs
1c10: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
1c20: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 s.com>...* tests
1c30: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e 61 /tlsIO.test: ena
1c40: 62 6c 65 64 20 74 65 73 74 73 20 32 2e 31 30 2c bled tests 2.10,
1c50: 20 37 2e 5b 31 32 34 35 5d 20 28 74 68 65 72 65 7.[1245] (there
1c60: 20 69 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69 63 is no 3),..whic
1c70: 68 20 6e 6f 77 20 70 61 73 73 2e 20 20 41 64 64 h now pass. Add
1c80: 65 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 ed some comments
1c90: 20 74 6f 20 6f 74 68 65 72 20 66 61 69 6c 69 6e to other failin
1ca0: 67 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 g tests...2000-0
1cb0: 37 2d 31 31 20 20 4a 65 66 66 20 48 6f 62 62 73 7-11 Jeff Hobbs
1cc0: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
1cd0: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 cs.com>...* tlsI
1ce0: 4f 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 6c 6c O.c: changed all
1cf0: 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 70 72 6f the channel pro
1d00: 63 73 20 74 6f 20 73 74 61 72 74 20 77 69 74 68 cs to start with
1d10: 20 54 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74 65 Tls* for..bette
1d20: 72 20 70 61 72 69 74 79 20 77 68 65 6e 20 63 6f r parity when co
1d30: 6d 70 61 72 69 6e 67 20 77 69 74 68 20 54 72 61 mparing with Tra
1d40: 6e 73 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20 70 nsform channel p
1d50: 72 6f 63 73 2e 0a 09 52 65 77 72 6f 74 65 20 54 rocs...Rewrote T
1d60: 6c 73 57 61 74 63 68 50 72 6f 63 2c 20 61 64 64 lsWatchProc, add
1d70: 65 64 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f 63 ed TlsNotifyProc
1d80: 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 according to th
1d90: 65 20 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20 64 e new..channel d
1da0: 65 73 69 67 6e 2c 20 77 68 69 63 68 20 61 6c 73 esign, which als
1db0: 6f 20 6c 65 61 76 65 73 20 54 6c 73 43 68 61 6e o leaves TlsChan
1dc0: 6e 65 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73 65 nelHandler unuse
1dd0: 64 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 d....* tlsBIO.c
1de0: 28 42 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e 67 (BioCtrl): chang
1df0: 65 64 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 ed BIO_CTRL_FLUS
1e00: 48 20 63 61 73 65 20 74 6f 20 75 73 65 0a 09 54 H case to use..T
1e10: 63 6c 5f 57 72 69 74 65 52 61 77 20 69 6e 73 74 cl_WriteRaw inst
1e20: 65 61 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73 68 ead of Tcl_Flush
1e30: 20 28 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e 20 (to operate on
1e40: 63 6f 72 72 65 63 74 20 63 68 61 6e 6e 65 6c 0a correct channel.
1e50: 09 69 6e 20 74 68 65 20 73 74 61 63 6b 20 69 6e .in the stack in
1e60: 73 74 65 61 64 20 6f 66 20 73 74 61 72 74 69 6e stead of startin
1e70: 67 20 61 74 20 74 68 65 20 74 6f 70 20 61 67 61 g at the top aga
1e80: 69 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74 68 in). Would..oth
1e90: 65 72 77 69 73 65 20 63 61 75 73 65 20 61 20 72 erwise cause a r
1ea0: 65 63 75 72 73 69 76 65 20 73 74 61 63 6b 20 62 ecursive stack b
1eb0: 6f 6d 62 20 77 68 65 6e 20 69 6d 70 6c 69 63 69 omb when implici
1ec0: 74 20 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09 74 t handshaking..t
1ed0: 6f 6f 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a 20 ook effect....*
1ee0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
1ef0: 3a 20 72 65 6d 6f 76 65 64 20 63 68 61 6e 67 65 : removed change
1f00: 73 20 6d 61 64 65 20 74 6f 20 74 65 73 74 20 73 s made to test s
1f10: 75 69 74 65 20 28 61 6c 6c 20 74 65 73 74 73 0a uite (all tests.
1f20: 09 74 68 61 74 20 72 61 6e 20 62 65 66 6f 72 65 .that ran before
1f30: 20 6e 6f 77 20 70 61 73 73 20 63 6f 72 72 65 63 now pass correc
1f40: 74 6c 79 29 2c 20 61 6e 64 20 63 68 61 6e 67 65 tly), and change
1f50: 64 20 73 6f 6d 65 20 61 63 63 65 70 74 20 70 72 d some accept pr
1f60: 6f 63 0a 09 61 72 67 73 20 74 6f 20 72 65 66 6c oc..args to refl
1f70: 65 63 74 20 74 68 61 74 20 61 20 73 6f 63 6b 20 ect that a sock
1f80: 69 73 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20 61 is an arg, not a
1f90: 20 66 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37 2d file...2000-07-
1fa0: 31 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 10 Jeff Hobbs
1fb0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
1fc0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f .com>...* tlsBIO
1fd0: 2e 63 20 28 42 69 6f 57 72 69 74 65 2c 20 42 69 .c (BioWrite, Bi
1fe0: 6f 52 65 61 64 29 3a 20 63 68 61 6e 67 65 64 20 oRead): changed
1ff0: 54 63 6c 5f 52 65 61 64 2f 57 72 69 74 65 20 74 Tcl_Read/Write t
2000: 6f 0a 09 54 63 6c 5f 52 65 61 64 52 61 77 2f 54 o..Tcl_ReadRaw/T
2010: 63 6c 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a 20 clWriteRaw....*
2020: 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 75 73 65 tls.c: added use
2030: 20 6f 66 20 54 63 6c 5f 47 65 74 54 6f 70 43 68 of Tcl_GetTopCh
2040: 61 6e 6e 65 6c 20 61 66 74 65 72 20 54 63 6c 5f annel after Tcl_
2050: 47 65 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 GetChannel and..
2060: 67 6f 74 20 72 65 74 75 72 6e 20 76 61 6c 75 65 got return value
2070: 20 66 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b 43 from Tcl_StackC
2080: 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 hannel....* test
2090: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61 64 s/tlsIO.test: ad
20a0: 64 65 64 20 73 6f 6d 65 20 68 61 6e 64 73 68 61 ded some handsha
20b0: 6b 69 6e 67 20 74 68 61 74 20 73 68 6f 75 6c 64 king that should
20c0: 6e 27 74 20 62 65 0a 09 6e 65 63 65 73 73 61 72 n't be..necessar
20d0: 79 2c 20 62 75 74 20 77 65 20 63 72 61 73 68 20 y, but we crash
20e0: 6f 74 68 65 72 77 69 73 65 20 28 6e 65 65 64 73 otherwise (needs
20f0: 20 6d 6f 72 65 20 74 65 73 74 69 6e 67 29 2e 0a more testing)..
2100: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64 64 ..* tlsIO.c: add
2110: 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 22 ed support for "
2120: 63 6f 72 72 65 63 74 65 64 22 20 73 74 61 63 6b corrected" stack
2130: 65 64 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41 6c ed channels. Al
2140: 6c 0a 09 74 68 65 20 61 62 6f 76 65 20 63 68 61 l..the above cha
2150: 6e 6e 65 6c 73 20 61 72 65 20 69 6e 20 54 43 4c nnels are in TCL
2160: 5f 43 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e _CHANNEL_VERSION
2170: 5f 32 20 23 69 66 64 65 66 73 2e 0a 0a 32 30 30 _2 #ifdefs...200
2180: 30 2d 30 36 2d 30 35 20 20 53 63 6f 74 74 20 53 0-06-05 Scott S
2190: 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e tanton <stanton
21a0: 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e @ajubasolutions.
21b0: 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c com>...* Makefil
21c0: 65 2e 69 6e 3a 20 46 69 78 65 64 20 62 72 6f 6b e.in: Fixed brok
21d0: 65 6e 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a en test target..
21e0: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 0a 09 ..* tlsInt.h: ..
21f0: 2a 20 74 6c 73 2e 63 3a 20 43 6c 65 61 6e 65 64 * tls.c: Cleaned
2200: 20 75 70 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 up declarations
2210: 20 6f 66 20 54 6c 73 5f 43 6c 65 61 6e 20 74 6f of Tls_Clean to
2220: 20 61 76 6f 69 64 20 65 72 72 6f 72 73 20 6f 6e avoid errors on
2230: 0a 09 57 69 6e 64 6f 77 73 20 28 6c 69 6e 74 29 ..Windows (lint)
2240: 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 42 ...2000-06-05 B
2250: 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 rent Welch <welc
2260: 68 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 h@ajubasolutions
2270: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c .com>...* tls.c,
2280: 20 74 6c 73 49 4f 2e 63 3a 20 20 53 70 6c 69 74 tlsIO.c: Split
2290: 20 54 6c 73 5f 46 72 65 65 20 69 6e 74 6f 20 54 Tls_Free into T
22a0: 6c 73 5f 43 6c 65 61 6e 2c 20 77 68 69 63 68 20 ls_Clean, which
22b0: 64 6f 65 73 0a 09 74 68 65 20 53 53 4c 20 63 6c does..the SSL cl
22c0: 65 61 6e 75 70 2c 20 61 6e 64 20 74 68 65 20 54 eanup, and the T
22d0: 63 6c 5f 46 72 65 65 20 63 61 6c 6c 2e 20 20 49 cl_Free call. I
22e0: 74 20 69 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 t is important t
22f0: 6f 20 73 68 75 74 64 6f 77 6e 0a 09 74 68 65 20 o shutdown..the
2300: 53 53 4c 20 73 74 61 74 65 20 22 73 79 6e 63 68 SSL state "synch
2310: 72 6f 6e 6f 75 73 6c 79 22 20 64 75 72 69 6e 67 ronously" during
2320: 20 61 20 73 74 61 63 6b 65 64 20 66 6c 75 73 68 a stacked flush
2330: 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 ...2000-06-01 S
2340: 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 cott Stanton <s
2350: 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 tanton@ajubasolu
2360: 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 tions.com>...* t
2370: 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 64 lsIO.c: Restored
2380: 20 63 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 call to Tcl_Not
2390: 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 ifyChannel from
23a0: 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 ChannelHandler..
23b0: 74 6f 20 65 6e 73 75 72 65 20 74 68 61 74 20 65 to ensure that e
23c0: 76 65 6e 74 73 20 70 72 6f 70 61 67 61 74 65 20 vents propagate
23d0: 66 72 6f 6d 20 74 68 65 20 6c 6f 77 65 72 20 64 from the lower d
23e0: 72 69 76 65 72 2e 20 20 54 68 69 73 20 6d 61 79 river. This may
23f0: 0a 09 72 65 73 75 6c 74 20 69 6e 20 61 6e 20 69 ..result in an i
2400: 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 6e 20 nfinite loop in
2410: 73 6f 6d 65 20 63 61 73 65 73 2c 20 73 6f 20 74 some cases, so t
2420: 68 69 73 20 69 73 20 6e 6f 74 20 61 20 74 6f 74 his is not a tot
2430: 61 6c 0a 09 66 69 78 2e 20 20 54 68 69 73 20 6d al..fix. This m
2440: 61 79 20 62 65 20 73 75 66 66 69 63 69 65 6e 74 ay be sufficient
2450: 20 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 65 76 65 for now, howeve
2460: 72 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a r. [Bug: 5623]..
2470: 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 2000-06-01 Scot
2480: 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e t Stanton <stan
2490: 74 6f 6e 40 73 63 72 69 70 74 69 63 73 2e 63 6f ton@scriptics.co
24a0: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 m>...* tlsIO.c:
24b0: 52 65 73 74 6f 72 65 20 74 68 65 20 70 72 65 76 Restore the prev
24c0: 69 6f 75 73 20 76 65 72 73 69 6f 6e 2e 20 20 46 ious version. F
24d0: 69 78 65 64 20 74 68 65 20 43 6c 6f 73 65 50 72 ixed the ClosePr
24e0: 6f 63 20 73 6f 0a 09 69 74 20 75 6e 72 65 67 69 oc so..it unregi
24f0: 73 74 65 72 73 20 74 68 65 20 63 68 61 6e 6e 65 sters the channe
2500: 6c 20 68 61 6e 64 6c 65 72 20 6f 6e 20 74 68 65 l handler on the
2510: 20 73 75 70 65 72 63 65 64 65 64 20 63 68 61 6e superceded chan
2520: 6e 65 6c 0a 09 69 6e 73 74 65 61 64 20 6f 66 20 nel..instead of
2530: 74 68 65 20 75 70 70 65 72 20 63 68 61 6e 6e 65 the upper channe
2540: 6c 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 65 64 20 l. Also removed
2550: 74 68 65 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c the call to..Tcl
2560: 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 69 _NotifyChannel i
2570: 6e 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e n the ChannelHan
2580: 64 6c 65 72 20 62 65 63 61 75 73 65 20 74 68 69 dler because thi
2590: 73 20 77 69 6c 6c 20 72 65 73 75 6c 74 0a 09 69 s will result..i
25a0: 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f n an infinite lo
25b0: 6f 70 20 69 66 20 64 61 74 61 20 69 73 20 65 76 op if data is ev
25c0: 65 72 20 62 75 66 66 65 72 65 64 20 69 6e 20 74 er buffered in t
25d0: 68 65 20 42 49 4f 0a 09 73 74 72 75 63 74 75 72 he BIO..structur
25e0: 65 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a e. [Bug: 5623]..
25f0: 32 30 30 30 2d 30 35 2d 33 31 20 20 42 72 65 6e 2000-05-31 Bren
2600: 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 73 t Welch <welch@s
2610: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
2620: 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20 * tls.c: Change
2630: 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c the ChannelHandl
2640: 65 72 20 74 6f 20 62 65 20 72 65 67 69 73 74 65 er to be registe
2650: 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a red on the main.
2660: 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73 .channel as opps
2670: 65 64 20 74 6f 20 74 68 65 20 22 70 61 72 65 6e ed to the "paren
2680: 74 22 2c 20 6f 72 20 73 75 70 65 72 63 65 65 64 t", or superceed
2690: 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68 ed, channel. Th
26a0: 69 73 0a 09 69 73 20 62 65 63 61 75 73 65 20 74 is..is because t
26b0: 68 65 20 73 6f 63 6b 65 74 20 64 72 69 76 65 72 he socket driver
26c0: 20 6e 6f 74 69 66 69 65 73 20 74 68 65 20 6d 61 notifies the ma
26d0: 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 in channel, and
26e0: 74 68 65 72 65 0a 09 61 72 65 20 74 69 6d 65 73 there..are times
26f0: 20 77 69 74 68 20 74 68 65 20 6d 61 69 6e 20 63 with the main c
2700: 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73 hannel gets clos
2710: 65 64 2c 20 62 75 74 20 74 68 65 20 73 75 70 65 ed, but the supe
2720: 72 63 65 64 65 64 0a 09 6f 6e 65 20 69 73 20 6e rceded..one is n
2730: 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 2e 20 20 ot yet closed.
2740: 49 66 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 If the channel h
2750: 61 6e 64 6c 65 72 20 67 65 74 73 20 74 72 69 67 andler gets trig
2760: 67 65 72 65 64 20 69 6e 0a 09 74 68 69 73 20 68 gered in..this h
2770: 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65 20 69 alf-open state i
2780: 74 20 69 73 20 61 73 73 6f 63 69 61 74 65 64 20 t is associated
2790: 77 69 74 68 20 74 68 65 20 73 75 70 65 72 63 65 with the superce
27a0: 65 64 65 64 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 eded..channedl,
27b0: 62 75 74 20 75 73 65 73 20 69 74 73 20 70 72 69 but uses its pri
27c0: 76 61 74 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 vate pointer to
27d0: 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c the main channel
27e0: 2c 20 77 68 69 63 68 0a 09 69 73 20 6d 6f 73 74 , which..is most
27f0: 6c 79 20 64 65 73 74 72 6f 79 65 64 2e 20 20 45 ly destroyed. E
2800: 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 20 72 65 liminated the re
2810: 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f 0a dundant call to.
2820: 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e .Tcl_NotifyChann
2830: 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74 63 68 el from TlsWatch
2840: 50 72 6f 63 2e 20 5b 42 75 67 3a 20 35 36 32 33 Proc. [Bug: 5623
2850: 5d 0a ].