Artifact
1c55330554af90c9cda66e72ff209f98bfeccedf:
0000: 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 2003-10-07 Dan
0010: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 Razzell <researc
0020: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
0030: 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a s.ca>...* tls.c:
0040: 20 61 64 64 65 64 20 43 4f 4e 53 54 20 77 69 74 added CONST wit
0050: 68 20 69 6e 74 65 6e 74 20 73 69 6d 69 6c 61 72 h intent similar
0060: 20 74 6f 20 74 68 6f 73 65 20 66 72 6f 6d 20 32 to those from 2
0070: 30 30 32 2d 30 32 2d 30 34 2e 0a 09 5b 52 65 71 002-02-04...[Req
0080: 75 65 73 74 20 23 38 31 31 39 31 31 5d 0a 0a 32 uest #811911]..2
0090: 30 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66 20 003-07-07 Jeff
00a0: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 Hobbs <jeffh@Ac
00b0: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a tiveState.com>..
00c0: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e .* tls.c (Tls_In
00d0: 69 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c 73 it): added tls
00e0: 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20 70 ::misc command p
00f0: 72 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74 6c rovided by..* tl
0100: 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20 sX509.c:
0110: 20 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a 61 Wojciech Kocja
0120: 6e 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63 6a n (wojciech kocj
0130: 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74 73 an.org)..* tests
0140: 2f 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20 74 /keytest1.tcl: t
0150: 6f 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c 6f o expose more lo
0160: 77 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d 6d w-level SSL comm
0170: 61 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b 65 ands..* tests/ke
0180: 79 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30 30 ytest2.tcl:..200
0190: 33 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61 7a 3-05-15 Dan Raz
01a0: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 zell.<research@s
01b0: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
01c0: 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a a> ...* tls.tcl:
01d0: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a ..* tlsInt.h:..*
01e0: 20 74 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 70 tls.c: add supp
01f0: 6f 72 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 20 ort for binding
0200: 61 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 a password callb
0210: 61 63 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b 65 ack to the socke
0220: 74 2e 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f 63 t...Now each soc
0230: 6b 65 74 20 63 61 6e 20 68 61 76 65 20 69 74 73 ket can have its
0240: 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e 64 own command and
0250: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 password callba
0260: 63 6b 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 20 cks instead..of
0270: 62 65 69 6e 67 20 66 6f 72 63 65 64 20 74 6f 20 being forced to
0280: 68 61 76 65 20 61 6c 6c 20 70 61 73 73 77 6f 72 have all passwor
0290: 64 20 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 73 d management pas
02a0: 73 20 74 68 72 6f 75 67 68 20 61 20 63 6f 6d 6d s through a comm
02b0: 6f 6e 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 20 on..procedure.
02c0: 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 77 The common passw
02d0: 6f 72 64 20 70 72 6f 63 65 64 75 72 65 20 69 73 ord procedure is
02e0: 20 72 65 74 61 69 6e 65 64 20 66 6f 72 20 63 6f retained for co
02f0: 6d 70 61 74 69 62 69 6c 69 74 79 0a 09 62 75 74 mpatibility..but
0300: 20 69 74 73 20 75 73 65 20 73 68 6f 75 6c 64 20 its use should
0310: 62 65 20 44 45 50 52 45 43 41 54 45 44 2e 0a 09 be DEPRECATED...
0320: 41 64 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d 6d Add version comm
0330: 61 6e 64 20 74 6f 20 72 65 74 75 72 6e 20 4f 70 and to return Op
0340: 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 74 enSSL version st
0350: 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 6e ring...Remove un
0360: 73 74 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 6e stable workaroun
0370: 64 73 20 6e 65 65 64 65 64 20 66 6f 72 20 76 65 ds needed for ve
0380: 72 69 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 65 rify in obsolete
0390: 20 76 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f 70 versions of..Op
03a0: 65 6e 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f enSSL...Fix memo
03b0: 72 79 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 73 ry leak. [Reques
03c0: 74 20 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 65 t #640660]..More
03d0: 20 63 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 6e casts to elimin
03e0: 61 74 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 72 ate compiler war
03f0: 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68 nings....* tls.h
0400: 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 73 tm: document pas
0410: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e 0a sword callback..
0420: 09 43 6f 72 72 65 63 74 20 74 65 63 68 6e 69 63 .Correct technic
0430: 61 6c 20 61 6e 64 20 74 79 70 6f 67 72 61 70 68 al and typograph
0440: 69 63 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 52 ic errors....* R
0450: 45 41 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e 74 EADME.txt: ident
0460: 69 66 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 ify versions of
0470: 4f 70 65 6e 53 53 4c 20 77 68 69 63 68 20 66 69 OpenSSL which fi
0480: 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d 73 x known problems
0490: 2e 0a 09 47 65 6e 65 72 61 6c 20 77 61 72 6e 69 ...General warni
04a0: 6e 67 20 6f 66 20 73 65 63 75 72 69 74 79 20 70 ng of security p
04b0: 72 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 72 roblems in older
04c0: 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 versions of Ope
04d0: 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d 30 nSSL...2002-02-0
04e0: 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 4 Jeff Hobbs <
04f0: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
0500: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68 e.com>...* tls.h
0510: 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 tm:..* tls.c: ad
0520: 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 ded support for
0530: 6c 6f 63 61 6c 20 63 65 72 74 69 66 69 63 61 74 local certificat
0540: 65 20 73 74 61 74 75 73 20 63 68 65 63 6b 2c 20 e status check,
0550: 61 73 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 75 as well..as retu
0560: 72 6e 69 6e 67 20 74 68 65 20 23 20 6f 66 20 62 rning the # of b
0570: 69 74 73 20 69 6e 20 74 68 65 20 73 65 73 73 69 its in the sessi
0580: 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 23 on key. [Patch #
0590: 35 30 35 36 39 38 5d 20 28 72 6f 73 65 29 0a 0a 505698] (rose)..
05a0: 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 .* tls.c:..* tls
05b0: 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e IO.c:..* tlsBIO.
05c0: 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 73 20 c: added CONSTs
05d0: 74 6f 20 73 61 74 69 73 66 79 20 54 63 6c 20 38 to satisfy Tcl 8
05e0: 2e 34 20 73 6f 75 72 63 65 73 2e 20 20 54 68 69 .4 sources. Thi
05f0: 73 20 6d 61 79 0a 09 67 69 76 65 20 77 61 72 6e s may..give warn
0600: 69 6e 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 6c ings when compil
0610: 65 64 20 61 67 61 69 6e 73 74 20 38 2e 33 2c 20 ed against 8.3,
0620: 62 75 74 20 74 68 65 79 20 63 61 6e 20 62 65 20 but they can be
0630: 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 73 ignored....* tes
0640: 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e ts/simpleClient.
0650: 74 63 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 69 tcl:..* tests/si
0660: 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 mpleServer.tcl:
0670: 70 6f 69 6e 74 20 74 6f 20 75 70 64 61 74 65 64 point to updated
0680: 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 6b client/server k
0690: 65 79 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 65 ey files....* te
06a0: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a sts/tlsIO.test:.
06b0: 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 .* tests/ciphers
06c0: 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 .test: updated t
06d0: 6f 20 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d 20 o load tls from
06e0: 62 75 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 4d build dir....* M
06f0: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f akefile.in: remo
0700: 76 65 64 20 73 74 72 6e 63 61 73 65 63 6d 70 20 ved strncasecmp
0710: 66 72 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 6a from default obj
0720: 65 63 74 20 73 65 74 2e 20 20 54 68 69 73 0a 09 ect set. This..
0730: 69 73 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 6f is only needed o
0740: 6e 20 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 54 n the Mac, and T
0750: 63 6c 20 73 74 75 62 73 20 70 72 6f 76 69 64 65 cl stubs provide
0760: 73 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 s it....* config
0770: 75 72 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a 09 ure: regen'ed...
0780: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 * configure.in:
0790: 75 70 64 61 74 65 64 20 74 6f 20 31 2e 35 2e 30 updated to 1.5.0
07a0: 20 66 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 73 for next releas
07b0: 65 2e 0a 09 43 68 61 6e 67 65 64 20 64 65 66 61 e...Changed defa
07c0: 75 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 61 ult openssl loca
07d0: 74 69 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f 63 tion to /usr/loc
07e0: 61 6c 2f 73 73 6c 20 28 74 68 69 73 20 69 73 20 al/ssl (this is
07f0: 77 68 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 30 where..openssl 0
0800: 2e 39 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 62 .9.6c installs b
0810: 79 20 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 61 y default)...Cha
0820: 6e 67 65 64 20 74 6f 20 75 73 65 20 70 75 62 6c nged to use publ
0830: 69 63 20 54 63 6c 20 68 65 61 64 65 72 73 20 28 ic Tcl headers (
0840: 70 72 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 64 private not need
0850: 65 64 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 31 ed)...2001-06-21
0860: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a Jeff Hobbs <j
0870: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 effh@ActiveState
0880: 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e .com>...TLS 1.4.
0890: 31 20 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 6f 1 RELEASE...* co
08a0: 6e 66 69 67 75 72 65 3a 20 61 64 64 65 64 20 63 nfigure: added c
08b0: 6f 6e 66 69 67 75 72 65 20 74 6f 20 43 56 53 0a onfigure to CVS.
08c0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a .* configure.in:
08d0: 20 6d 6f 76 65 64 20 74 6f 20 70 61 74 63 68 6c moved to patchl
08e0: 65 76 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d evel 1.4.1...* M
08f0: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 72 akefile.in: corr
0900: 65 63 74 65 64 20 27 64 69 73 74 27 20 74 61 72 ected 'dist' tar
0910: 67 65 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 65 get...* tests/ce
0920: 72 74 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a rts/file.srl:..*
0930: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 2e tests/certs/ca.
0940: 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 pem:..* tests/ce
0950: 72 74 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a rts/client.key:.
0960: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 .* tests/certs/c
0970: 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 65 lient.pem:..* te
0980: 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 sts/certs/client
0990: 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .req:..* tests/c
09a0: 65 72 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 6d erts/privkey.pem
09b0: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 :..* tests/certs
09c0: 2f 73 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a 20 /server.key:..*
09d0: 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 tests/certs/serv
09e0: 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 er.pem:..* tests
09f0: 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 72 65 /certs/server.re
0a00: 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 q:..* tests/cert
0a10: 73 2f 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 65 s/cacert.pem: re
0a20: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 61 placed by new ca
0a30: 2e 70 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 65 .pem..* tests/ce
0a40: 72 74 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 65 rts/skey.pem: re
0a50: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 73 65 placed by new se
0a60: 72 76 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 74 rver.key..* test
0a70: 73 2f 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 6d s/certs/ckey.pem
0a80: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
0a90: 77 20 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a 20 w client.key..*
0aa0: 74 65 73 74 73 2f 63 65 72 74 73 2f 52 45 41 44 tests/certs/READ
0ab0: 4d 45 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 20 ME.txt: new set
0ac0: 6f 66 20 74 65 73 74 20 63 65 72 74 69 66 69 63 of test certific
0ad0: 61 74 65 73 20 77 69 74 68 20 73 6f 6d 65 0a 09 ates with some..
0ae0: 52 45 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 74 README info on t
0af0: 68 65 69 72 20 67 65 6e 65 72 61 74 69 6f 6e 2e heir generation.
0b00: 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 ...* tests/ciphe
0b10: 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 rs.test: updated
0b20: 20 63 69 70 68 65 72 73 20 65 78 70 65 63 74 65 ciphers expecte
0b30: 64 20 77 69 74 68 20 64 65 66 61 75 6c 74 0a 09 d with default..
0b40: 6f 70 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a 0a openssl build...
0b50: 09 2a 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e 74 .* tests/tclIO.t
0b60: 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20 est: updated to
0b70: 75 73 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 6f use new names fo
0b80: 72 20 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a 32 r certs/keys...2
0b90: 30 30 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 20 001-03-14 Jeff
0ba0: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 67 69 Hobbs <jeffh@gi
0bb0: 6d 6c 65 74 2e 61 63 74 69 76 65 73 74 61 74 65 mlet.activestate
0bc0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 .com>...* tls.c
0bd0: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 20 (Tls_Init): add
0be0: 64 6f 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 6e do/while for ran
0bf0: 64 6f 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 69 dom number initi
0c00: 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 6f alization..to wo
0c10: 72 6b 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 4f rk around some O
0c20: 53 65 73 20 71 75 69 72 6b 73 2e 20 20 28 52 61 Ses quirks. (Ra
0c30: 6c 70 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 65 lph.Billes@telte
0c40: 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 30 ch.com.au)..2000
0c50: 2d 30 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 -09-07 Jeff Hob
0c60: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
0c70: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tics.com>...* tl
0c80: 73 49 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e 6e sIO.c (Tls_Chann
0c90: 65 6c 54 79 70 65 29 3a 20 73 65 74 20 74 79 70 elType): set typ
0ca0: 65 4e 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 63 eName field of c
0cb0: 68 61 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a 09 hannel type to..
0cc0: 22 74 6c 73 22 20 28 74 68 69 73 20 67 6f 74 20 "tls" (this got
0cd0: 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f 20 lost in move to
0ce0: 64 79 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e 20 dynamic version
0cf0: 63 6f 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 63 compatability..c
0d00: 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 2d hecking)...2000-
0d10: 30 38 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62 08-23 Jeff Hobb
0d20: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
0d30: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 ics.com>...TLS 1
0d40: 2e 34 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 20 .4 RELEASED...*
0d50: 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 73 Makefile.in (dis
0d60: 74 29 3a 20 63 72 65 61 74 65 20 64 69 73 74 20 t): create dist
0d70: 74 61 72 67 65 74 20 66 6f 72 20 61 72 63 68 69 target for archi
0d80: 76 65 20 64 69 73 74 72 69 62 75 74 69 6f 6e 73 ve distributions
0d90: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f ...* tests/tlsIO
0da0: 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e 31 .test (tlsIO-8.1
0db0: 29 3a 20 61 64 64 65 64 20 61 20 64 65 6c 61 79 ): added a delay
0dc0: 20 6f 6e 20 74 68 65 20 61 63 63 65 70 74 20 63 on the accept c
0dd0: 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 68 lose..to make th
0de0: 65 20 74 65 73 74 20 77 6f 72 6b 20 77 69 74 68 e test work with
0df0: 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e 64 OpenSSL on Wind
0e00: 6f 77 73 20 28 64 6f 65 73 6e 27 74 20 61 66 66 ows (doesn't aff
0e10: 65 63 74 0a 09 6f 74 68 65 72 20 62 75 69 6c 64 ect..other build
0e20: 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a s)....* tls.htm:
0e30: 20 75 70 64 61 74 65 64 20 77 69 74 68 20 6e 6f updated with no
0e40: 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 30 tes for 1.4...20
0e50: 30 30 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 48 00-08-21 Jeff H
0e60: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
0e70: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
0e80: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
0e90: 3a 20 72 65 71 75 69 72 65 20 61 74 20 6c 65 61 : require at lea
0ea0: 73 74 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 73 st tls1.4 in tes
0eb0: 74 20 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d 30 t suite...2000-0
0ec0: 38 2d 31 38 20 20 4a 65 66 66 20 48 6f 62 62 73 8-18 Jeff Hobbs
0ed0: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
0ee0: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e cs.com>...* tls.
0ef0: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 c (Tls_Init): ad
0f00: 64 65 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e 44 ded call to RAND
0f10: 5f 73 65 65 64 20 74 6f 20 73 65 65 64 20 74 68 _seed to seed th
0f20: 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75 e SSL random..nu
0f30: 6d 62 65 72 20 67 65 6e 65 72 61 74 6f 72 2e 20 mber generator.
0f40: 20 57 69 74 68 6f 75 74 20 74 68 69 73 2c 20 4f Without this, O
0f50: 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 6f penSSL 0.9.5 cho
0f60: 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 0a kes, and in any.
0f70: 09 63 61 73 65 20 69 74 20 69 73 20 61 20 62 69 .case it is a bi
0f80: 67 20 73 65 63 75 72 69 74 79 20 68 6f 6c 65 20 g security hole
0f90: 74 6f 20 64 6f 20 77 69 74 68 6f 75 74 20 69 74 to do without it
0fa0: 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e ....* configure.
0fb0: 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 64 in (OPENSSL): ad
0fc0: 64 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 20 ded NO_IDEA and
0fd0: 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65 73 20 62 NO_RC5 defines b
0fe0: 79 0a 09 64 65 66 61 75 6c 74 20 77 68 65 6e 20 y..default when
0ff0: 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 4f compiling with O
1000: 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49 penSSL....* tlsI
1010: 6e 74 2e 68 3a 20 61 64 64 65 64 20 65 72 72 2e nt.h: added err.
1020: 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 6c h include...* tl
1030: 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f sBIO.c:..* tlsIO
1040: 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 70 65 .c: corrected pe
1050: 64 61 6e 74 69 63 20 63 61 73 74 20 65 72 72 6f dantic cast erro
1060: 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 20 rs...2000-08-16
1070: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
1080: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
1090: 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 m>...* tests/cip
10a0: 68 65 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 6f hers.test: impro
10b0: 76 65 64 20 61 62 69 6c 69 74 79 20 74 6f 20 63 ved ability to c
10c0: 68 61 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e 74 hange constraint
10d0: 0a 09 73 65 74 74 69 6e 67 20 66 6f 72 20 77 68 ..setting for wh
10e0: 65 74 68 65 72 20 75 73 65 72 20 63 6f 6d 70 69 ether user compi
10f0: 6c 65 64 20 61 67 61 69 6e 73 74 20 52 53 41 20 led against RSA
1100: 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 2e or OpenSSL libs.
1110: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
1120: 49 6e 69 74 29 3a 20 63 6f 72 72 65 63 74 65 64 Init): corrected
1130: 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e 20 interpretation
1140: 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 of version numbe
1150: 72 0a 09 28 70 61 74 63 68 6c 65 76 65 6c 20 61 r..(patchlevel a
1160: 6e 64 20 72 65 6c 65 61 73 65 2f 73 65 72 69 61 nd release/seria
1170: 6c 20 77 65 72 65 20 73 77 61 70 70 65 64 29 2e l were swapped).
1180: 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20 20 4a 65 ..2000-08-15 Je
1190: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
11a0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
11b0: 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 ..* README.txt:
11c0: 61 64 64 65 64 20 6e 6f 74 65 73 20 61 62 6f 75 added notes abou
11d0: 74 20 6e 65 65 64 20 74 6f 20 75 73 65 20 38 2e t need to use 8.
11e0: 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2.0+....* tlsInt
11f0: 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a .h:..* tls.c:..*
1200: 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 tlsIO.c: correc
1210: 74 65 64 20 73 74 72 75 63 74 75 72 65 20 69 6e ted structure in
1220: 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f 20 itialization to
1230: 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 69 work when..compi
1240: 6c 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 20 ling with 8.2.
1250: 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 74 Now compiles wit
1260: 68 20 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 65 h 8.2+ and teste
1270: 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 20 d to work..with
1280: 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 63 8.2+ and dynamic
1290: 61 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 74 ally adjust to t
12a0: 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 63 he version of Tc
12b0: 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 64 l it was..loaded
12c0: 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c 6c into. TLS will
12d0: 20 66 61 69 6c 20 74 68 65 20 74 65 73 74 20 73 fail the test s
12e0: 75 69 74 65 20 77 69 74 68 20 54 63 6c 20 38 2e uite with Tcl 8.
12f0: 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 73 2-8.3.1....* tes
1300: 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 65 ts/all.tcl: adde
1310: 64 20 63 61 74 63 68 20 61 72 6f 75 6e 64 20 3a d catch around :
1320: 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c :tcltest::normal
1330: 69 7a 65 50 61 74 68 0a 09 62 65 63 61 75 73 65 izePath..because
1340: 20 69 74 20 64 6f 65 73 6e 27 74 20 65 78 69 73 it doesn't exis
1350: 74 20 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 6c t in pre-8.3 tcl
1360: 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f test....* tests/
1370: 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c simpleClient.tcl
1380: 3a 20 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 : ..* tests/simp
1390: 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 61 64 leServer.tcl: ad
13a0: 64 65 64 20 73 69 6d 70 6c 65 20 63 6c 69 65 6e ded simple clien
13b0: 74 2f 73 65 72 76 65 72 20 74 65 73 74 20 73 63 t/server test sc
13c0: 72 69 70 74 73 0a 09 74 68 61 74 20 75 73 65 20 ripts..that use
13d0: 74 65 73 74 20 63 65 72 74 73 20 61 6e 64 20 63 test certs and c
13e0: 61 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73 74 72 an do simple str
13f0: 65 73 73 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 ess tests...2000
1400: 2d 30 38 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 -08-14 Jeff Hob
1410: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
1420: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tics.com>...* tl
1430: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f sInt.h:..* tlsIO
1440: 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a .c:..* tlsBIO.c:
1450: 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61 6e 67 ..* tls.c: chang
1460: 65 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c ed around to onl
1470: 79 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 38 y working with 8
1480: 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 .2.0+ (8.3.2+..p
1490: 72 65 66 65 72 72 65 64 29 2c 20 77 69 74 68 20 referred), with
14a0: 72 75 6e 74 69 6d 65 20 63 68 65 63 6b 73 20 66 runtime checks f
14b0: 6f 72 20 70 72 65 2d 20 61 6e 64 20 70 6f 73 74 or pre- and post
14c0: 2d 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a 09 2a -io-rewrite....*
14d0: 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 tls.c (Tls_Init
14e0: 29 3a 20 63 68 61 6e 67 65 64 20 69 74 20 74 6f ): changed it to
14f0: 20 72 65 71 75 69 72 65 20 38 2e 33 2e 32 20 77 require 8.3.2 w
1500: 68 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74 75 62 hen Tcl_InitStub
1510: 73 0a 09 77 61 73 20 63 61 6c 6c 65 64 20 62 65 s..was called be
1520: 63 61 75 73 65 20 77 65 20 64 6f 6e 27 74 20 77 cause we don't w
1530: 61 6e 74 20 70 65 6f 70 6c 65 20 75 73 69 6e 67 ant people using
1540: 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a 09 6f TLS with the..o
1550: 72 69 67 69 6e 61 6c 20 73 74 61 63 6b 65 64 20 riginal stacked
1560: 63 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e channel implemen
1570: 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 tation...2000-07
1580: 2d 32 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -26 Jeff Hobbs
1590: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
15a0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 s.com>...* merge
15b0: 64 20 61 6c 6c 20 63 68 61 6e 67 65 73 20 66 72 d all changes fr
15c0: 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 om tls-1-3-io-re
15d0: 77 72 69 74 65 20 62 61 63 6b 20 69 6e 74 6f 20 write back into
15e0: 6d 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09 2a 20 main branch...*
15f0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
1600: 3a 20 75 70 64 61 74 65 64 20 63 6f 6d 6d 65 6e : updated commen
1610: 74 73 2c 20 66 69 78 65 64 20 61 20 70 63 43 72 ts, fixed a pcCr
1620: 61 73 68 20 63 61 73 65 20 74 68 61 74 0a 09 77 ash case that..w
1630: 61 73 20 64 75 65 20 74 6f 20 64 65 62 75 67 20 as due to debug
1640: 61 73 73 65 72 74 69 6f 6e 20 69 6e 20 57 69 6e assertion in Win
1650: 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c dows SSL....* tl
1660: 73 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a 43 6d s.c (ImportObjCm
1670: 64 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e 6e 65 d): removed unne
1680: 63 65 73 73 61 72 79 20 75 73 65 20 6f 66 20 27 cessary use of '
1690: 62 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c 73 5f bio' arg...(Tls_
16a0: 49 6e 69 74 29 3a 20 63 68 65 63 6b 20 72 65 74 Init): check ret
16b0: 75 72 6e 20 76 61 6c 75 65 20 6f 66 20 53 53 4c urn value of SSL
16c0: 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e 20 20 _library_init.
16d0: 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 68 Also lots of..wh
16e0: 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 itespace cleanup
16f0: 20 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63 6c 20 (more like Tcl
1700: 45 6e 67 20 73 74 79 6c 65 20 67 75 69 64 65 29 Eng style guide)
1710: 2c 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 , but not all..c
1720: 6f 64 65 20 77 61 73 20 63 6c 65 61 6e 65 64 20 ode was cleaned
1730: 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 up....* tlsBIO.c
1740: 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61 : minor whitespa
1750: 63 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 ce cleanup...* t
1760: 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 lsIO.c: minor wh
1770: 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 itespace cleanup
1780: 2e 0a 09 28 54 6c 73 49 6e 70 75 74 50 72 6f 63 ...(TlsInputProc
1790: 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 29 , TlsOutputProc)
17a0: 3a 20 41 64 64 65 64 20 45 52 52 5f 63 6c 65 61 : Added ERR_clea
17b0: 72 5f 65 72 72 6f 72 20 62 65 66 6f 72 65 20 63 r_error before c
17c0: 61 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72 65 61 alls..to BIO_rea
17d0: 64 20 6f 72 20 42 49 4f 5f 77 72 69 74 65 2c 20 d or BIO_write,
17e0: 62 65 63 61 75 73 65 20 77 65 20 63 6f 75 6c 64 because we could
17f0: 20 6f 74 68 65 72 77 69 73 65 20 65 6e 64 20 75 otherwise end u
1800: 70 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20 65 72 p..pulling an er
1810: 72 6f 72 20 6f 66 66 20 74 68 65 20 73 74 61 63 ror off the stac
1820: 6b 20 74 68 61 74 20 64 69 64 6e 27 74 20 62 65 k that didn't be
1830: 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41 6c 73 long to us. Als
1840: 6f 0a 09 63 6c 65 61 6e 75 70 20 75 70 20 65 78 o..cleanup up ex
1850: 63 65 73 73 69 76 65 20 75 73 65 20 6f 66 20 67 cessive use of g
1860: 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 otos...2000-07-2
1870: 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 0 Jeff Hobbs <
1880: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
1890: 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 com>...* tests/t
18a0: 6c 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72 72 65 lsIO.test: corre
18b0: 63 74 65 64 20 76 61 72 69 6f 75 73 20 74 65 73 cted various tes
18c0: 74 73 20 74 6f 20 62 65 20 63 6f 72 72 65 63 74 ts to be correct
18d0: 20 66 6f 72 20 54 4c 53 0a 09 73 74 61 63 6b 65 for TLS..stacke
18e0: 64 20 63 68 61 6e 6e 65 6c 73 20 28 61 73 20 6f d channels (as o
18f0: 70 70 6f 73 65 64 20 74 6f 20 74 68 65 20 73 74 pposed to the st
1900: 61 6e 64 61 72 64 20 73 6f 63 6b 65 74 73 20 74 andard sockets t
1910: 68 65 20 74 65 73 74 0a 09 73 75 69 74 65 20 77 he test..suite w
1920: 61 73 20 61 64 6f 70 74 65 64 20 66 72 6f 6d 29 as adopted from)
1930: 2e 20 20 4b 65 79 20 64 69 66 66 65 72 65 6e 63 . Key differenc
1940: 65 73 20 61 72 65 20 74 68 61 74 20 54 4c 53 20 es are that TLS
1950: 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74 65 20 cannot..operate
1960: 69 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73 20 77 in one process w
1970: 69 74 68 6f 75 74 20 61 6c 6c 20 63 68 61 6e 6e ithout all chann
1980: 65 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c els being non-bl
1990: 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68 65 20 ocking, or..the
19a0: 68 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c 20 62 handshake will b
19b0: 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64 73 68 lock, and handsh
19c0: 61 6b 69 6e 67 20 6d 75 73 74 20 62 65 20 66 6f aking must be fo
19d0: 72 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09 63 61 rced in some..ca
19e0: 73 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61 6e 64 ses. Also, hand
19f0: 73 68 61 6b 65 73 20 64 6f 6e 27 74 20 73 65 65 shakes don't see
1a00: 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20 75 6e m to complete un
1a10: 6c 65 73 73 20 74 68 65 20 63 6c 69 65 6e 74 0a less the client.
1a20: 09 68 61 73 20 70 6c 61 63 65 64 20 61 74 20 6c .has placed at l
1a30: 65 61 73 74 20 6f 6e 65 20 62 79 74 65 20 66 6f east one byte fo
1a40: 72 20 74 68 65 20 73 65 72 76 65 72 20 74 6f 20 r the server to
1a50: 72 65 61 64 20 69 6e 20 74 68 65 20 63 68 61 6e read in the chan
1a60: 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 72 nel....* tests/r
1a70: 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72 72 65 emote.tcl: corre
1a80: 63 74 65 64 20 74 68 65 20 66 69 6e 64 69 6e 67 cted the finding
1a90: 20 6f 66 20 74 65 73 74 73 20 63 65 72 74 69 66 of tests certif
1aa0: 69 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73 49 4f icates...* tlsIO
1ab0: 2e 63 20 28 54 6c 73 43 6c 6f 73 65 50 72 6f 63 .c (TlsCloseProc
1ac0: 29 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c 65 74 ): removed delet
1ad0: 69 6e 67 20 6f 66 20 74 69 6d 65 72 20 68 61 6e ing of timer han
1ae0: 64 6c 65 72 20 61 73 0a 09 74 68 61 74 20 69 73 dler as..that is
1af0: 20 68 61 6e 64 6c 65 64 20 62 79 20 54 6c 73 5f handled by Tls_
1b00: 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 Clean....* tls.t
1b10: 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65 70 74 cl (tls::_accept
1b20: 29 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 65 ): corrected the
1b30: 20 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63 65 70 internal _accep
1b40: 74 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20 63 61 t to..trickle ca
1b50: 6c 6c 62 61 63 6b 20 65 72 72 6f 72 73 20 74 6f llback errors to
1b60: 20 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a 20 4d the user....* M
1b70: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 akefile.in: made
1b80: 20 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62 69 6e the install-bin
1b90: 61 72 69 65 73 20 74 61 72 67 65 74 20 72 65 67 aries target reg
1ba0: 65 6e 65 72 61 74 65 20 74 68 65 0a 09 70 6b 67 enerate the..pkg
1bb0: 49 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72 65 63 Index.tcl correc
1bc0: 74 6c 79 2e 20 20 54 68 65 20 74 65 73 74 20 74 tly. The test t
1bd0: 61 72 67 65 74 20 70 72 6f 62 61 62 6c 79 20 73 arget probably s
1be0: 68 6f 75 6c 64 6e 27 74 20 73 63 72 65 77 0a 09 houldn't screw..
1bf0: 69 74 20 75 70 2c 20 62 75 74 20 74 68 69 73 20 it up, but this
1c00: 69 73 20 74 6f 20 62 65 20 6f 6e 20 74 68 65 20 is to be on the
1c10: 73 61 66 65 20 73 69 64 65 2e 0a 0a 32 30 30 30 safe side...2000
1c20: 2d 30 37 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 -07-17 Jeff Hob
1c30: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
1c40: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b tics.com>...* pk
1c50: 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 gIndex.tcl.in:..
1c60: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 * configure.in:
1c70: 75 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 updated version
1c80: 74 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30 37 2d to 1.4..2000-07-
1c90: 31 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 13 Jeff Hobbs
1ca0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
1cb0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f .com>...* tests/
1cc0: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e 61 62 tlsIO.test: enab
1cd0: 6c 65 64 20 74 65 73 74 73 20 32 2e 31 30 2c 20 led tests 2.10,
1ce0: 37 2e 5b 31 32 34 35 5d 20 28 74 68 65 72 65 20 7.[1245] (there
1cf0: 69 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69 63 68 is no 3),..which
1d00: 20 6e 6f 77 20 70 61 73 73 2e 20 20 41 64 64 65 now pass. Adde
1d10: 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 d some comments
1d20: 74 6f 20 6f 74 68 65 72 20 66 61 69 6c 69 6e 67 to other failing
1d30: 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 37 tests...2000-07
1d40: 2d 31 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -11 Jeff Hobbs
1d50: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
1d60: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f s.com>...* tlsIO
1d70: 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 6c 6c 20 .c: changed all
1d80: 74 68 65 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 the channel proc
1d90: 73 20 74 6f 20 73 74 61 72 74 20 77 69 74 68 20 s to start with
1da0: 54 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74 65 72 Tls* for..better
1db0: 20 70 61 72 69 74 79 20 77 68 65 6e 20 63 6f 6d parity when com
1dc0: 70 61 72 69 6e 67 20 77 69 74 68 20 54 72 61 6e paring with Tran
1dd0: 73 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20 70 72 sform channel pr
1de0: 6f 63 73 2e 0a 09 52 65 77 72 6f 74 65 20 54 6c ocs...Rewrote Tl
1df0: 73 57 61 74 63 68 50 72 6f 63 2c 20 61 64 64 65 sWatchProc, adde
1e00: 64 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f 63 20 d TlsNotifyProc
1e10: 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 according to the
1e20: 20 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20 64 65 new..channel de
1e30: 73 69 67 6e 2c 20 77 68 69 63 68 20 61 6c 73 6f sign, which also
1e40: 20 6c 65 61 76 65 73 20 54 6c 73 43 68 61 6e 6e leaves TlsChann
1e50: 65 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73 65 64 elHandler unused
1e60: 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 ....* tlsBIO.c (
1e70: 42 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e 67 65 BioCtrl): change
1e80: 64 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 d BIO_CTRL_FLUSH
1e90: 20 63 61 73 65 20 74 6f 20 75 73 65 0a 09 54 63 case to use..Tc
1ea0: 6c 5f 57 72 69 74 65 52 61 77 20 69 6e 73 74 65 l_WriteRaw inste
1eb0: 61 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73 68 20 ad of Tcl_Flush
1ec0: 28 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e 20 63 (to operate on c
1ed0: 6f 72 72 65 63 74 20 63 68 61 6e 6e 65 6c 0a 09 orrect channel..
1ee0: 69 6e 20 74 68 65 20 73 74 61 63 6b 20 69 6e 73 in the stack ins
1ef0: 74 65 61 64 20 6f 66 20 73 74 61 72 74 69 6e 67 tead of starting
1f00: 20 61 74 20 74 68 65 20 74 6f 70 20 61 67 61 69 at the top agai
1f10: 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74 68 65 n). Would..othe
1f20: 72 77 69 73 65 20 63 61 75 73 65 20 61 20 72 65 rwise cause a re
1f30: 63 75 72 73 69 76 65 20 73 74 61 63 6b 20 62 6f cursive stack bo
1f40: 6d 62 20 77 68 65 6e 20 69 6d 70 6c 69 63 69 74 mb when implicit
1f50: 20 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09 74 6f handshaking..to
1f60: 6f 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a 20 74 ok effect....* t
1f70: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
1f80: 20 72 65 6d 6f 76 65 64 20 63 68 61 6e 67 65 73 removed changes
1f90: 20 6d 61 64 65 20 74 6f 20 74 65 73 74 20 73 75 made to test su
1fa0: 69 74 65 20 28 61 6c 6c 20 74 65 73 74 73 0a 09 ite (all tests..
1fb0: 74 68 61 74 20 72 61 6e 20 62 65 66 6f 72 65 20 that ran before
1fc0: 6e 6f 77 20 70 61 73 73 20 63 6f 72 72 65 63 74 now pass correct
1fd0: 6c 79 29 2c 20 61 6e 64 20 63 68 61 6e 67 65 64 ly), and changed
1fe0: 20 73 6f 6d 65 20 61 63 63 65 70 74 20 70 72 6f some accept pro
1ff0: 63 0a 09 61 72 67 73 20 74 6f 20 72 65 66 6c 65 c..args to refle
2000: 63 74 20 74 68 61 74 20 61 20 73 6f 63 6b 20 69 ct that a sock i
2010: 73 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20 61 20 s an arg, not a
2020: 66 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 file...2000-07-1
2030: 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 0 Jeff Hobbs <
2040: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
2050: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e com>...* tlsBIO.
2060: 63 20 28 42 69 6f 57 72 69 74 65 2c 20 42 69 6f c (BioWrite, Bio
2070: 52 65 61 64 29 3a 20 63 68 61 6e 67 65 64 20 54 Read): changed T
2080: 63 6c 5f 52 65 61 64 2f 57 72 69 74 65 20 74 6f cl_Read/Write to
2090: 0a 09 54 63 6c 5f 52 65 61 64 52 61 77 2f 54 63 ..Tcl_ReadRaw/Tc
20a0: 6c 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a 20 74 lWriteRaw....* t
20b0: 6c 73 2e 63 3a 20 61 64 64 65 64 20 75 73 65 20 ls.c: added use
20c0: 6f 66 20 54 63 6c 5f 47 65 74 54 6f 70 43 68 61 of Tcl_GetTopCha
20d0: 6e 6e 65 6c 20 61 66 74 65 72 20 54 63 6c 5f 47 nnel after Tcl_G
20e0: 65 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 etChannel and..g
20f0: 6f 74 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 ot return value
2100: 66 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b 43 68 from Tcl_StackCh
2110: 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 annel....* tests
2120: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61 64 64 /tlsIO.test: add
2130: 65 64 20 73 6f 6d 65 20 68 61 6e 64 73 68 61 6b ed some handshak
2140: 69 6e 67 20 74 68 61 74 20 73 68 6f 75 6c 64 6e ing that shouldn
2150: 27 74 20 62 65 0a 09 6e 65 63 65 73 73 61 72 79 't be..necessary
2160: 2c 20 62 75 74 20 77 65 20 63 72 61 73 68 20 6f , but we crash o
2170: 74 68 65 72 77 69 73 65 20 28 6e 65 65 64 73 20 therwise (needs
2180: 6d 6f 72 65 20 74 65 73 74 69 6e 67 29 2e 0a 0a more testing)...
2190: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64 64 65 .* tlsIO.c: adde
21a0: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 22 63 d support for "c
21b0: 6f 72 72 65 63 74 65 64 22 20 73 74 61 63 6b 65 orrected" stacke
21c0: 64 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c d channels. All
21d0: 0a 09 74 68 65 20 61 62 6f 76 65 20 63 68 61 6e ..the above chan
21e0: 6e 65 6c 73 20 61 72 65 20 69 6e 20 54 43 4c 5f nels are in TCL_
21f0: 43 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f CHANNEL_VERSION_
2200: 32 20 23 69 66 64 65 66 73 2e 0a 0a 32 30 30 30 2 #ifdefs...2000
2210: 2d 30 36 2d 30 35 20 20 53 63 6f 74 74 20 53 74 -06-05 Scott St
2220: 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 anton <stanton@
2230: 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 ajubasolutions.c
2240: 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 om>...* Makefile
2250: 2e 69 6e 3a 20 46 69 78 65 64 20 62 72 6f 6b 65 .in: Fixed broke
2260: 6e 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 0a n test target...
2270: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 0a 09 2a .* tlsInt.h: ..*
2280: 20 74 6c 73 2e 63 3a 20 43 6c 65 61 6e 65 64 20 tls.c: Cleaned
2290: 75 70 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 up declarations
22a0: 6f 66 20 54 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 of Tls_Clean to
22b0: 61 76 6f 69 64 20 65 72 72 6f 72 73 20 6f 6e 0a avoid errors on.
22c0: 09 57 69 6e 64 6f 77 73 20 28 6c 69 6e 74 29 2e .Windows (lint).
22d0: 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 42 72 ..2000-06-05 Br
22e0: 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 ent Welch <welch
22f0: 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e @ajubasolutions.
2300: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 com>...* tls.c,
2310: 74 6c 73 49 4f 2e 63 3a 20 20 53 70 6c 69 74 20 tlsIO.c: Split
2320: 54 6c 73 5f 46 72 65 65 20 69 6e 74 6f 20 54 6c Tls_Free into Tl
2330: 73 5f 43 6c 65 61 6e 2c 20 77 68 69 63 68 20 64 s_Clean, which d
2340: 6f 65 73 0a 09 74 68 65 20 53 53 4c 20 63 6c 65 oes..the SSL cle
2350: 61 6e 75 70 2c 20 61 6e 64 20 74 68 65 20 54 63 anup, and the Tc
2360: 6c 5f 46 72 65 65 20 63 61 6c 6c 2e 20 20 49 74 l_Free call. It
2370: 20 69 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f is important to
2380: 20 73 68 75 74 64 6f 77 6e 0a 09 74 68 65 20 53 shutdown..the S
2390: 53 4c 20 73 74 61 74 65 20 22 73 79 6e 63 68 72 SL state "synchr
23a0: 6f 6e 6f 75 73 6c 79 22 20 64 75 72 69 6e 67 20 onously" during
23b0: 61 20 73 74 61 63 6b 65 64 20 66 6c 75 73 68 2e a stacked flush.
23c0: 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63 ..2000-06-01 Sc
23d0: 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 ott Stanton <st
23e0: 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 anton@ajubasolut
23f0: 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c ions.com>...* tl
2400: 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 64 20 sIO.c: Restored
2410: 63 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 call to Tcl_Noti
2420: 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 fyChannel from C
2430: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 74 hannelHandler..t
2440: 6f 20 65 6e 73 75 72 65 20 74 68 61 74 20 65 76 o ensure that ev
2450: 65 6e 74 73 20 70 72 6f 70 61 67 61 74 65 20 66 ents propagate f
2460: 72 6f 6d 20 74 68 65 20 6c 6f 77 65 72 20 64 72 rom the lower dr
2470: 69 76 65 72 2e 20 20 54 68 69 73 20 6d 61 79 0a iver. This may.
2480: 09 72 65 73 75 6c 74 20 69 6e 20 61 6e 20 69 6e .result in an in
2490: 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 6e 20 73 finite loop in s
24a0: 6f 6d 65 20 63 61 73 65 73 2c 20 73 6f 20 74 68 ome cases, so th
24b0: 69 73 20 69 73 20 6e 6f 74 20 61 20 74 6f 74 61 is is not a tota
24c0: 6c 0a 09 66 69 78 2e 20 20 54 68 69 73 20 6d 61 l..fix. This ma
24d0: 79 20 62 65 20 73 75 66 66 69 63 69 65 6e 74 20 y be sufficient
24e0: 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 65 76 65 72 for now, however
24f0: 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 . [Bug: 5623]..2
2500: 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 000-06-01 Scott
2510: 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 Stanton <stant
2520: 6f 6e 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d on@scriptics.com
2530: 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 >...* tlsIO.c: R
2540: 65 73 74 6f 72 65 20 74 68 65 20 70 72 65 76 69 estore the previ
2550: 6f 75 73 20 76 65 72 73 69 6f 6e 2e 20 20 46 69 ous version. Fi
2560: 78 65 64 20 74 68 65 20 43 6c 6f 73 65 50 72 6f xed the ClosePro
2570: 63 20 73 6f 0a 09 69 74 20 75 6e 72 65 67 69 73 c so..it unregis
2580: 74 65 72 73 20 74 68 65 20 63 68 61 6e 6e 65 6c ters the channel
2590: 20 68 61 6e 64 6c 65 72 20 6f 6e 20 74 68 65 20 handler on the
25a0: 73 75 70 65 72 63 65 64 65 64 20 63 68 61 6e 6e superceded chann
25b0: 65 6c 0a 09 69 6e 73 74 65 61 64 20 6f 66 20 74 el..instead of t
25c0: 68 65 20 75 70 70 65 72 20 63 68 61 6e 6e 65 6c he upper channel
25d0: 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 65 64 20 74 . Also removed t
25e0: 68 65 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f he call to..Tcl_
25f0: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 69 6e NotifyChannel in
2600: 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 the ChannelHand
2610: 6c 65 72 20 62 65 63 61 75 73 65 20 74 68 69 73 ler because this
2620: 20 77 69 6c 6c 20 72 65 73 75 6c 74 0a 09 69 6e will result..in
2630: 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f an infinite loo
2640: 70 20 69 66 20 64 61 74 61 20 69 73 20 65 76 65 p if data is eve
2650: 72 20 62 75 66 66 65 72 65 64 20 69 6e 20 74 68 r buffered in th
2660: 65 20 42 49 4f 0a 09 73 74 72 75 63 74 75 72 65 e BIO..structure
2670: 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 . [Bug: 5623]..2
2680: 30 30 30 2d 30 35 2d 33 31 20 20 42 72 65 6e 74 000-05-31 Brent
2690: 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 73 63 Welch <welch@sc
26a0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
26b0: 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20 74 tls.c: Change t
26c0: 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 he ChannelHandle
26d0: 72 20 74 6f 20 62 65 20 72 65 67 69 73 74 65 72 r to be register
26e0: 65 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a 09 ed on the main..
26f0: 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73 65 channel as oppse
2700: 64 20 74 6f 20 74 68 65 20 22 70 61 72 65 6e 74 d to the "parent
2710: 22 2c 20 6f 72 20 73 75 70 65 72 63 65 65 64 65 ", or superceede
2720: 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68 69 d, channel. Thi
2730: 73 0a 09 69 73 20 62 65 63 61 75 73 65 20 74 68 s..is because th
2740: 65 20 73 6f 63 6b 65 74 20 64 72 69 76 65 72 20 e socket driver
2750: 6e 6f 74 69 66 69 65 73 20 74 68 65 20 6d 61 69 notifies the mai
2760: 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 n channel, and t
2770: 68 65 72 65 0a 09 61 72 65 20 74 69 6d 65 73 20 here..are times
2780: 77 69 74 68 20 74 68 65 20 6d 61 69 6e 20 63 68 with the main ch
2790: 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73 65 annel gets close
27a0: 64 2c 20 62 75 74 20 74 68 65 20 73 75 70 65 72 d, but the super
27b0: 63 65 64 65 64 0a 09 6f 6e 65 20 69 73 20 6e 6f ceded..one is no
27c0: 74 20 79 65 74 20 63 6c 6f 73 65 64 2e 20 20 49 t yet closed. I
27d0: 66 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 f the channel ha
27e0: 6e 64 6c 65 72 20 67 65 74 73 20 74 72 69 67 67 ndler gets trigg
27f0: 65 72 65 64 20 69 6e 0a 09 74 68 69 73 20 68 61 ered in..this ha
2800: 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65 20 69 74 lf-open state it
2810: 20 69 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 is associated w
2820: 69 74 68 20 74 68 65 20 73 75 70 65 72 63 65 65 ith the supercee
2830: 64 65 64 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 62 ded..channedl, b
2840: 75 74 20 75 73 65 73 20 69 74 73 20 70 72 69 76 ut uses its priv
2850: 61 74 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 ate pointer to t
2860: 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c he main channel,
2870: 20 77 68 69 63 68 0a 09 69 73 20 6d 6f 73 74 6c which..is mostl
2880: 79 20 64 65 73 74 72 6f 79 65 64 2e 20 20 45 6c y destroyed. El
2890: 69 6d 69 6e 61 74 65 64 20 74 68 65 20 72 65 64 iminated the red
28a0: 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 undant call to..
28b0: 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 Tcl_NotifyChanne
28c0: 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74 63 68 50 l from TlsWatchP
28d0: 72 6f 63 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d roc. [Bug: 5623]
28e0: 0a .