Artifact
7fc836074278d9e8d1dc4abe0d907592889965db:
0000: 32 30 30 30 2d 30 38 2d 32 33 20 20 4a 65 66 66 2000-08-23 Jeff
0010: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
0020: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
0030: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 * tests/tlsIO.te
0040: 73 74 20 28 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 st (tlsIO-8.1):
0050: 61 64 64 65 64 20 61 20 64 65 6c 61 79 20 6f 6e added a delay on
0060: 20 74 68 65 20 61 63 63 65 70 74 20 63 6c 6f 73 the accept clos
0070: 65 0a 09 74 6f 20 6d 61 6b 65 20 74 68 65 20 74 e..to make the t
0080: 65 73 74 20 77 6f 72 6b 20 77 69 74 68 20 4f 70 est work with Op
0090: 65 6e 53 53 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 enSSL on Windows
00a0: 20 28 64 6f 65 73 6e 27 74 20 61 66 66 65 63 74 (doesn't affect
00b0: 0a 09 6f 74 68 65 72 20 62 75 69 6c 64 73 29 2e ..other builds).
00c0: 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 75 70 ...* tls.htm: up
00d0: 64 61 74 65 64 20 77 69 74 68 20 6e 6f 74 65 73 dated with notes
00e0: 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 30 30 30 2d for 1.4...2000-
00f0: 30 38 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 08-21 Jeff Hobb
0100: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
0110: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 ics.com>...* tes
0120: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 ts/tlsIO.test: r
0130: 65 71 75 69 72 65 20 61 74 20 6c 65 61 73 74 20 equire at least
0140: 74 6c 73 31 2e 34 20 69 6e 20 74 65 73 74 20 73 tls1.4 in test s
0150: 75 69 74 65 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 uite...2000-08-1
0160: 38 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 8 Jeff Hobbs <
0170: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
0180: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 com>...* tls.c (
0190: 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 65 64 Tls_Init): added
01a0: 20 63 61 6c 6c 20 74 6f 20 52 41 4e 44 5f 73 65 call to RAND_se
01b0: 65 64 20 74 6f 20 73 65 65 64 20 74 68 65 20 53 ed to seed the S
01c0: 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 SL random..numbe
01d0: 72 20 67 65 6e 65 72 61 74 6f 72 2e 20 20 57 69 r generator. Wi
01e0: 74 68 6f 75 74 20 74 68 69 73 2c 20 4f 70 65 6e thout this, Open
01f0: 53 53 4c 20 30 2e 39 2e 35 20 63 68 6f 6b 65 73 SSL 0.9.5 chokes
0200: 2c 20 61 6e 64 20 69 6e 20 61 6e 79 0a 09 63 61 , and in any..ca
0210: 73 65 20 69 74 20 69 73 20 61 20 62 69 67 20 73 se it is a big s
0220: 65 63 75 72 69 74 79 20 68 6f 6c 65 20 74 6f 20 ecurity hole to
0230: 64 6f 20 77 69 74 68 6f 75 74 20 69 74 2e 0a 0a do without it...
0240: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 .* configure.in
0250: 28 4f 50 45 4e 53 53 4c 29 3a 20 61 64 64 65 64 (OPENSSL): added
0260: 20 4e 4f 5f 49 44 45 41 20 61 6e 64 20 4e 4f 5f NO_IDEA and NO_
0270: 52 43 35 20 64 65 66 69 6e 65 73 20 62 79 0a 09 RC5 defines by..
0280: 64 65 66 61 75 6c 74 20 77 68 65 6e 20 63 6f 6d default when com
0290: 70 69 6c 69 6e 67 20 77 69 74 68 20 4f 70 65 6e piling with Open
02a0: 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e SSL....* tlsInt.
02b0: 68 3a 20 61 64 64 65 64 20 65 72 72 2e 68 20 69 h: added err.h i
02c0: 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 6c 73 42 49 nclude...* tlsBI
02d0: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a O.c:..* tlsIO.c:
02e0: 20 63 6f 72 72 65 63 74 65 64 20 70 65 64 61 6e corrected pedan
02f0: 74 69 63 20 63 61 73 74 20 65 72 72 6f 72 73 2e tic cast errors.
0300: 0a 0a 32 30 30 30 2d 30 38 2d 31 36 20 20 4a 65 ..2000-08-16 Je
0310: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
0320: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
0330: 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 ..* tests/cipher
0340: 73 2e 74 65 73 74 3a 20 69 6d 70 72 6f 76 65 64 s.test: improved
0350: 20 61 62 69 6c 69 74 79 20 74 6f 20 63 68 61 6e ability to chan
0360: 67 65 20 63 6f 6e 73 74 72 61 69 6e 74 0a 09 73 ge constraint..s
0370: 65 74 74 69 6e 67 20 66 6f 72 20 77 68 65 74 68 etting for wheth
0380: 65 72 20 75 73 65 72 20 63 6f 6d 70 69 6c 65 64 er user compiled
0390: 20 61 67 61 69 6e 73 74 20 52 53 41 20 6f 72 20 against RSA or
03a0: 4f 70 65 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 OpenSSL libs....
03b0: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 * tls.c (Tls_Ini
03c0: 74 29 3a 20 63 6f 72 72 65 63 74 65 64 20 69 6e t): corrected in
03d0: 74 65 72 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 terpretation of
03e0: 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 version number..
03f0: 28 70 61 74 63 68 6c 65 76 65 6c 20 61 6e 64 20 (patchlevel and
0400: 72 65 6c 65 61 73 65 2f 73 65 72 69 61 6c 20 77 release/serial w
0410: 65 72 65 20 73 77 61 70 70 65 64 29 2e 0a 0a 32 ere swapped)...2
0420: 30 30 30 2d 30 38 2d 31 35 20 20 4a 65 66 66 20 000-08-15 Jeff
0430: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
0440: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
0450: 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 61 64 64 README.txt: add
0460: 65 64 20 6e 6f 74 65 73 20 61 62 6f 75 74 20 6e ed notes about n
0470: 65 65 64 20 74 6f 20 75 73 65 20 38 2e 32 2e 30 eed to use 8.2.0
0480: 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a +....* tlsInt.h:
0490: 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c ..* tls.c:..* tl
04a0: 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 sIO.c: corrected
04b0: 20 73 74 72 75 63 74 75 72 65 20 69 6e 69 74 69 structure initi
04c0: 61 6c 69 7a 61 74 69 6f 6e 20 74 6f 20 77 6f 72 alization to wor
04d0: 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e k when..compilin
04e0: 67 20 77 69 74 68 20 38 2e 32 2e 20 20 4e 6f 77 g with 8.2. Now
04f0: 20 63 6f 6d 70 69 6c 65 73 20 77 69 74 68 20 38 compiles with 8
0500: 2e 32 2b 20 61 6e 64 20 74 65 73 74 65 64 20 74 .2+ and tested t
0510: 6f 20 77 6f 72 6b 0a 09 77 69 74 68 20 38 2e 32 o work..with 8.2
0520: 2b 20 61 6e 64 20 64 79 6e 61 6d 69 63 61 6c 6c + and dynamicall
0530: 79 20 61 64 6a 75 73 74 20 74 6f 20 74 68 65 20 y adjust to the
0540: 76 65 72 73 69 6f 6e 20 6f 66 20 54 63 6c 20 69 version of Tcl i
0550: 74 20 77 61 73 0a 09 6c 6f 61 64 65 64 20 69 6e t was..loaded in
0560: 74 6f 2e 20 20 54 4c 53 20 77 69 6c 6c 20 66 61 to. TLS will fa
0570: 69 6c 20 74 68 65 20 74 65 73 74 20 73 75 69 74 il the test suit
0580: 65 20 77 69 74 68 20 54 63 6c 20 38 2e 32 2d 38 e with Tcl 8.2-8
0590: 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 73 74 73 2f .3.1....* tests/
05a0: 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 65 64 20 63 all.tcl: added c
05b0: 61 74 63 68 20 61 72 6f 75 6e 64 20 3a 3a 74 63 atch around ::tc
05c0: 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 ltest::normalize
05d0: 50 61 74 68 0a 09 62 65 63 61 75 73 65 20 69 74 Path..because it
05e0: 20 64 6f 65 73 6e 27 74 20 65 78 69 73 74 20 69 doesn't exist i
05f0: 6e 20 70 72 65 2d 38 2e 33 20 74 63 6c 74 65 73 n pre-8.3 tcltes
0600: 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d t....* tests/sim
0610: 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a pleClient.tcl: .
0620: 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 .* tests/simpleS
0630: 65 72 76 65 72 2e 74 63 6c 3a 20 61 64 64 65 64 erver.tcl: added
0640: 20 73 69 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73 simple client/s
0650: 65 72 76 65 72 20 74 65 73 74 20 73 63 72 69 70 erver test scrip
0660: 74 73 0a 09 74 68 61 74 20 75 73 65 20 74 65 73 ts..that use tes
0670: 74 20 63 65 72 74 73 20 61 6e 64 20 63 61 6e 20 t certs and can
0680: 64 6f 20 73 69 6d 70 6c 65 20 73 74 72 65 73 73 do simple stress
0690: 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38 tests...2000-08
06a0: 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -14 Jeff Hobbs
06b0: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
06c0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e s.com>...* tlsIn
06d0: 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a t.h:..* tlsIO.c:
06e0: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a ..* tlsBIO.c:..*
06f0: 20 74 6c 73 2e 63 3a 20 63 68 61 6e 67 65 64 20 tls.c: changed
0700: 61 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 around to only w
0710: 6f 72 6b 69 6e 67 20 77 69 74 68 20 38 2e 32 2e orking with 8.2.
0720: 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66 0+ (8.3.2+..pref
0730: 65 72 72 65 64 29 2c 20 77 69 74 68 20 72 75 6e erred), with run
0740: 74 69 6d 65 20 63 68 65 63 6b 73 20 66 6f 72 20 time checks for
0750: 70 72 65 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f pre- and post-io
0760: 2d 72 65 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c -rewrite....* tl
0770: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
0780: 63 68 61 6e 67 65 64 20 69 74 20 74 6f 20 72 65 changed it to re
0790: 71 75 69 72 65 20 38 2e 33 2e 32 20 77 68 65 6e quire 8.3.2 when
07a0: 20 54 63 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09 Tcl_InitStubs..
07b0: 77 61 73 20 63 61 6c 6c 65 64 20 62 65 63 61 75 was called becau
07c0: 73 65 20 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 se we don't want
07d0: 20 70 65 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c people using TL
07e0: 53 20 77 69 74 68 20 74 68 65 0a 09 6f 72 69 67 S with the..orig
07f0: 69 6e 61 6c 20 73 74 61 63 6b 65 64 20 63 68 61 inal stacked cha
0800: 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 nnel implementat
0810: 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36 ion...2000-07-26
0820: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
0830: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
0840: 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61 om>...* merged a
0850: 6c 6c 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 ll changes from
0860: 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69 tls-1-3-io-rewri
0870: 74 65 20 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69 te back into mai
0880: 6e 20 62 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73 n branch...* tes
0890: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 ts/tlsIO.test: u
08a0: 70 64 61 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c pdated comments,
08b0: 20 66 69 78 65 64 20 61 20 70 63 43 72 61 73 68 fixed a pcCrash
08c0: 20 63 61 73 65 20 74 68 61 74 0a 09 77 61 73 20 case that..was
08d0: 64 75 65 20 74 6f 20 64 65 62 75 67 20 61 73 73 due to debug ass
08e0: 65 72 74 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 ertion in Window
08f0: 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 s SSL....* tls.c
0900: 20 28 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a (ImportObjCmd):
0910: 20 72 65 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73 removed unneces
0920: 73 61 72 79 20 75 73 65 20 6f 66 20 27 62 69 6f sary use of 'bio
0930: 27 20 61 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 ' arg...(Tls_Ini
0940: 74 29 3a 20 63 68 65 63 6b 20 72 65 74 75 72 6e t): check return
0950: 20 76 61 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69 value of SSL_li
0960: 62 72 61 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73 brary_init. Als
0970: 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 68 69 74 65 o lots of..white
0980: 73 70 61 63 65 20 63 6c 65 61 6e 75 70 20 28 6d space cleanup (m
0990: 6f 72 65 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67 ore like Tcl Eng
09a0: 20 73 74 79 6c 65 20 67 75 69 64 65 29 2c 20 62 style guide), b
09b0: 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 ut not all..code
09c0: 20 77 61 73 20 63 6c 65 61 6e 65 64 20 75 70 2e was cleaned up.
09d0: 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d ...* tlsBIO.c: m
09e0: 69 6e 6f 72 20 77 68 69 74 65 73 70 61 63 65 20 inor whitespace
09f0: 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 cleanup...* tlsI
0a00: 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 O.c: minor white
0a10: 73 70 61 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09 space cleanup...
0a20: 28 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 (TlsInputProc, T
0a30: 6c 73 4f 75 74 70 75 74 50 72 6f 63 29 3a 20 41 lsOutputProc): A
0a40: 64 64 65 64 20 45 52 52 5f 63 6c 65 61 72 5f 65 dded ERR_clear_e
0a50: 72 72 6f 72 20 62 65 66 6f 72 65 20 63 61 6c 6c rror before call
0a60: 73 0a 09 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f s..to BIO_read o
0a70: 72 20 42 49 4f 5f 77 72 69 74 65 2c 20 62 65 63 r BIO_write, bec
0a80: 61 75 73 65 20 77 65 20 63 6f 75 6c 64 20 6f 74 ause we could ot
0a90: 68 65 72 77 69 73 65 20 65 6e 64 20 75 70 0a 09 herwise end up..
0aa0: 70 75 6c 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72 pulling an error
0ab0: 20 6f 66 66 20 74 68 65 20 73 74 61 63 6b 20 74 off the stack t
0ac0: 68 61 74 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e hat didn't belon
0ad0: 67 20 74 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09 g to us. Also..
0ae0: 63 6c 65 61 6e 75 70 20 75 70 20 65 78 63 65 73 cleanup up exces
0af0: 73 69 76 65 20 75 73 65 20 6f 66 20 67 6f 74 6f sive use of goto
0b00: 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 30 20 20 s...2000-07-20
0b10: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
0b20: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
0b30: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 >...* tests/tlsI
0b40: 4f 2e 74 65 73 74 3a 20 63 6f 72 72 65 63 74 65 O.test: correcte
0b50: 64 20 76 61 72 69 6f 75 73 20 74 65 73 74 73 20 d various tests
0b60: 74 6f 20 62 65 20 63 6f 72 72 65 63 74 20 66 6f to be correct fo
0b70: 72 20 54 4c 53 0a 09 73 74 61 63 6b 65 64 20 63 r TLS..stacked c
0b80: 68 61 6e 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f hannels (as oppo
0b90: 73 65 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 sed to the stand
0ba0: 61 72 64 20 73 6f 63 6b 65 74 73 20 74 68 65 20 ard sockets the
0bb0: 74 65 73 74 0a 09 73 75 69 74 65 20 77 61 73 20 test..suite was
0bc0: 61 64 6f 70 74 65 64 20 66 72 6f 6d 29 2e 20 20 adopted from).
0bd0: 4b 65 79 20 64 69 66 66 65 72 65 6e 63 65 73 20 Key differences
0be0: 61 72 65 20 74 68 61 74 20 54 4c 53 20 63 61 6e are that TLS can
0bf0: 6e 6f 74 0a 09 6f 70 65 72 61 74 65 20 69 6e 20 not..operate in
0c00: 6f 6e 65 20 70 72 6f 63 65 73 73 20 77 69 74 68 one process with
0c10: 6f 75 74 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 out all channels
0c20: 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b being non-block
0c30: 69 6e 67 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e ing, or..the han
0c40: 64 73 68 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 dshake will bloc
0c50: 6b 2c 20 61 6e 64 20 68 61 6e 64 73 68 61 6b 69 k, and handshaki
0c60: 6e 67 20 6d 75 73 74 20 62 65 20 66 6f 72 63 65 ng must be force
0c70: 64 20 69 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73 d in some..cases
0c80: 2e 20 20 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61 . Also, handsha
0c90: 6b 65 73 20 64 6f 6e 27 74 20 73 65 65 6d 20 74 kes don't seem t
0ca0: 6f 20 63 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73 o complete unles
0cb0: 73 20 74 68 65 20 63 6c 69 65 6e 74 0a 09 68 61 s the client..ha
0cc0: 73 20 70 6c 61 63 65 64 20 61 74 20 6c 65 61 73 s placed at leas
0cd0: 74 20 6f 6e 65 20 62 79 74 65 20 66 6f 72 20 74 t one byte for t
0ce0: 68 65 20 73 65 72 76 65 72 20 74 6f 20 72 65 61 he server to rea
0cf0: 64 20 69 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c d in the channel
0d00: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f ....* tests/remo
0d10: 74 65 2e 74 63 6c 3a 20 63 6f 72 72 65 63 74 65 te.tcl: correcte
0d20: 64 20 74 68 65 20 66 69 6e 64 69 6e 67 20 6f 66 d the finding of
0d30: 20 74 65 73 74 73 20 63 65 72 74 69 66 69 63 61 tests certifica
0d40: 74 65 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 tes...* tlsIO.c
0d50: 28 54 6c 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20 (TlsCloseProc):
0d60: 72 65 6d 6f 76 65 64 20 64 65 6c 65 74 69 6e 67 removed deleting
0d70: 20 6f 66 20 74 69 6d 65 72 20 68 61 6e 64 6c 65 of timer handle
0d80: 72 20 61 73 0a 09 74 68 61 74 20 69 73 20 68 61 r as..that is ha
0d90: 6e 64 6c 65 64 20 62 79 20 54 6c 73 5f 43 6c 65 ndled by Tls_Cle
0da0: 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 an....* tls.tcl
0db0: 28 74 6c 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20 (tls::_accept):
0dc0: 63 6f 72 72 65 63 74 65 64 20 74 68 65 20 69 6e corrected the in
0dd0: 74 65 72 6e 61 6c 20 5f 61 63 63 65 70 74 20 74 ternal _accept t
0de0: 6f 0a 09 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62 o..trickle callb
0df0: 61 63 6b 20 65 72 72 6f 72 73 20 74 6f 20 74 68 ack errors to th
0e00: 65 20 75 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 e user....* Make
0e10: 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68 file.in: made th
0e20: 65 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 e install-binari
0e30: 65 73 20 74 61 72 67 65 74 20 72 65 67 65 6e 65 es target regene
0e40: 72 61 74 65 20 74 68 65 0a 09 70 6b 67 49 6e 64 rate the..pkgInd
0e50: 65 78 2e 74 63 6c 20 63 6f 72 72 65 63 74 6c 79 ex.tcl correctly
0e60: 2e 20 20 54 68 65 20 74 65 73 74 20 74 61 72 67 . The test targ
0e70: 65 74 20 70 72 6f 62 61 62 6c 79 20 73 68 6f 75 et probably shou
0e80: 6c 64 6e 27 74 20 73 63 72 65 77 0a 09 69 74 20 ldn't screw..it
0e90: 75 70 2c 20 62 75 74 20 74 68 69 73 20 69 73 20 up, but this is
0ea0: 74 6f 20 62 65 20 6f 6e 20 74 68 65 20 73 61 66 to be on the saf
0eb0: 65 20 73 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37 e side...2000-07
0ec0: 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -17 Jeff Hobbs
0ed0: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
0ee0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e s.com>...* pkgIn
0ef0: 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 dex.tcl.in:..* c
0f00: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 onfigure.in: upd
0f10: 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 ated version to
0f20: 31 2e 34 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20 1.4..2000-07-13
0f30: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
0f40: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
0f50: 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 m>...* tests/tls
0f60: 49 4f 2e 74 65 73 74 3a 20 65 6e 61 62 6c 65 64 IO.test: enabled
0f70: 20 74 65 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b tests 2.10, 7.[
0f80: 31 32 34 35 5d 20 28 74 68 65 72 65 20 69 73 20 1245] (there is
0f90: 6e 6f 20 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f no 3),..which no
0fa0: 77 20 70 61 73 73 2e 20 20 41 64 64 65 64 20 73 w pass. Added s
0fb0: 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 ome comments to
0fc0: 6f 74 68 65 72 20 66 61 69 6c 69 6e 67 20 74 65 other failing te
0fd0: 73 74 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31 sts...2000-07-11
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 6c 73 49 4f 2e 63 3a om>...* tlsIO.c:
1010: 20 63 68 61 6e 67 65 64 20 61 6c 6c 20 74 68 65 changed all the
1020: 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74 channel procs t
1030: 6f 20 73 74 61 72 74 20 77 69 74 68 20 54 6c 73 o start with Tls
1040: 2a 20 66 6f 72 0a 09 62 65 74 74 65 72 20 70 61 * for..better pa
1050: 72 69 74 79 20 77 68 65 6e 20 63 6f 6d 70 61 72 rity when compar
1060: 69 6e 67 20 77 69 74 68 20 54 72 61 6e 73 66 6f ing with Transfo
1070: 72 6d 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 rm channel procs
1080: 2e 0a 09 52 65 77 72 6f 74 65 20 54 6c 73 57 61 ...Rewrote TlsWa
1090: 74 63 68 50 72 6f 63 2c 20 61 64 64 65 64 20 54 tchProc, added T
10a0: 6c 73 4e 6f 74 69 66 79 50 72 6f 63 20 61 63 63 lsNotifyProc acc
10b0: 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 ording to the ne
10c0: 77 0a 09 63 68 61 6e 6e 65 6c 20 64 65 73 69 67 w..channel desig
10d0: 6e 2c 20 77 68 69 63 68 20 61 6c 73 6f 20 6c 65 n, which also le
10e0: 61 76 65 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48 aves TlsChannelH
10f0: 61 6e 64 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a andler unused...
1100: 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f .* tlsBIO.c (Bio
1110: 43 74 72 6c 29 3a 20 63 68 61 6e 67 65 64 20 42 Ctrl): changed B
1120: 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 20 63 61 IO_CTRL_FLUSH ca
1130: 73 65 20 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57 se to use..Tcl_W
1140: 72 69 74 65 52 61 77 20 69 6e 73 74 65 61 64 20 riteRaw instead
1150: 6f 66 20 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f of Tcl_Flush (to
1160: 20 6f 70 65 72 61 74 65 20 6f 6e 20 63 6f 72 72 operate on corr
1170: 65 63 74 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 ect channel..in
1180: 74 68 65 20 73 74 61 63 6b 20 69 6e 73 74 65 61 the stack instea
1190: 64 20 6f 66 20 73 74 61 72 74 69 6e 67 20 61 74 d of starting at
11a0: 20 74 68 65 20 74 6f 70 20 61 67 61 69 6e 29 2e the top again).
11b0: 20 20 57 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69 Would..otherwi
11c0: 73 65 20 63 61 75 73 65 20 61 20 72 65 63 75 72 se cause a recur
11d0: 73 69 76 65 20 73 74 61 63 6b 20 62 6f 6d 62 20 sive stack bomb
11e0: 77 68 65 6e 20 69 6d 70 6c 69 63 69 74 20 68 61 when implicit ha
11f0: 6e 64 73 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 ndshaking..took
1200: 65 66 66 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74 effect....* test
1210: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 s/tlsIO.test: re
1220: 6d 6f 76 65 64 20 63 68 61 6e 67 65 73 20 6d 61 moved changes ma
1230: 64 65 20 74 6f 20 74 65 73 74 20 73 75 69 74 65 de to test suite
1240: 20 28 61 6c 6c 20 74 65 73 74 73 0a 09 74 68 61 (all tests..tha
1250: 74 20 72 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77 t ran before now
1260: 20 70 61 73 73 20 63 6f 72 72 65 63 74 6c 79 29 pass correctly)
1270: 2c 20 61 6e 64 20 63 68 61 6e 67 65 64 20 73 6f , and changed so
1280: 6d 65 20 61 63 63 65 70 74 20 70 72 6f 63 0a 09 me accept proc..
1290: 61 72 67 73 20 74 6f 20 72 65 66 6c 65 63 74 20 args to reflect
12a0: 74 68 61 74 20 61 20 73 6f 63 6b 20 69 73 20 61 that a sock is a
12b0: 6e 20 61 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c n arg, not a fil
12c0: 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 30 20 20 e...2000-07-10
12d0: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
12e0: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
12f0: 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 >...* tlsBIO.c (
1300: 42 69 6f 57 72 69 74 65 2c 20 42 69 6f 52 65 61 BioWrite, BioRea
1310: 64 29 3a 20 63 68 61 6e 67 65 64 20 54 63 6c 5f d): changed Tcl_
1320: 52 65 61 64 2f 57 72 69 74 65 20 74 6f 0a 09 54 Read/Write to..T
1330: 63 6c 5f 52 65 61 64 52 61 77 2f 54 63 6c 57 72 cl_ReadRaw/TclWr
1340: 69 74 65 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e iteRaw....* tls.
1350: 63 3a 20 61 64 64 65 64 20 75 73 65 20 6f 66 20 c: added use of
1360: 54 63 6c 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65 Tcl_GetTopChanne
1370: 6c 20 61 66 74 65 72 20 54 63 6c 5f 47 65 74 43 l after Tcl_GetC
1380: 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20 hannel and..got
1390: 72 65 74 75 72 6e 20 76 61 6c 75 65 20 66 72 6f return value fro
13a0: 6d 20 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e m Tcl_StackChann
13b0: 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c el....* tests/tl
13c0: 73 49 4f 2e 74 65 73 74 3a 20 61 64 64 65 64 20 sIO.test: added
13d0: 73 6f 6d 65 20 68 61 6e 64 73 68 61 6b 69 6e 67 some handshaking
13e0: 20 74 68 61 74 20 73 68 6f 75 6c 64 6e 27 74 20 that shouldn't
13f0: 62 65 0a 09 6e 65 63 65 73 73 61 72 79 2c 20 62 be..necessary, b
1400: 75 74 20 77 65 20 63 72 61 73 68 20 6f 74 68 65 ut we crash othe
1410: 72 77 69 73 65 20 28 6e 65 65 64 73 20 6d 6f 72 rwise (needs mor
1420: 65 20 74 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 e testing)....*
1430: 74 6c 73 49 4f 2e 63 3a 20 61 64 64 65 64 20 73 tlsIO.c: added s
1440: 75 70 70 6f 72 74 20 66 6f 72 20 22 63 6f 72 72 upport for "corr
1450: 65 63 74 65 64 22 20 73 74 61 63 6b 65 64 20 63 ected" stacked c
1460: 68 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 hannels. All..t
1470: 68 65 20 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c he above channel
1480: 73 20 61 72 65 20 69 6e 20 54 43 4c 5f 43 48 41 s are in TCL_CHA
1490: 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23 NNEL_VERSION_2 #
14a0: 69 66 64 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36 ifdefs...2000-06
14b0: 2d 30 35 20 20 53 63 6f 74 74 20 53 74 61 6e 74 -05 Scott Stant
14c0: 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 on <stanton@aju
14d0: 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e basolutions.com>
14e0: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e ...* Makefile.in
14f0: 3a 20 46 69 78 65 64 20 62 72 6f 6b 65 6e 20 74 : Fixed broken t
1500: 65 73 74 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20 est target....*
1510: 74 6c 73 49 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c tlsInt.h: ..* tl
1520: 73 2e 63 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 s.c: Cleaned up
1530: 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 declarations of
1540: 54 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f Tls_Clean to avo
1550: 69 64 20 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 id errors on..Wi
1560: 6e 64 6f 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 ndows (lint)...2
1570: 30 30 30 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 000-06-05 Brent
1580: 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a Welch <welch@aj
1590: 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d ubasolutions.com
15a0: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 >...* tls.c, tls
15b0: 49 4f 2e 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 IO.c: Split Tls
15c0: 5f 46 72 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 _Free into Tls_C
15d0: 6c 65 61 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 lean, which does
15e0: 0a 09 74 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 ..the SSL cleanu
15f0: 70 2c 20 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 p, and the Tcl_F
1600: 72 65 65 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 ree call. It is
1610: 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 important to sh
1620: 75 74 64 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 utdown..the SSL
1630: 73 74 61 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f state "synchrono
1640: 75 73 6c 79 22 20 64 75 72 69 6e 67 20 61 20 73 usly" during a s
1650: 74 61 63 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 tacked flush...2
1660: 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 000-06-01 Scott
1670: 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 Stanton <stant
1680: 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e on@ajubasolution
1690: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f s.com>...* tlsIO
16a0: 2e 63 3a 20 52 65 73 74 6f 72 65 64 20 63 61 6c .c: Restored cal
16b0: 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 l to Tcl_NotifyC
16c0: 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e hannel from Chan
16d0: 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 nelHandler..to e
16e0: 6e 73 75 72 65 20 74 68 61 74 20 65 76 65 6e 74 nsure that event
16f0: 73 20 70 72 6f 70 61 67 61 74 65 20 66 72 6f 6d s propagate from
1700: 20 74 68 65 20 6c 6f 77 65 72 20 64 72 69 76 65 the lower drive
1710: 72 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 72 65 r. This may..re
1720: 73 75 6c 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e sult in an infin
1730: 69 74 65 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 ite loop in some
1740: 20 63 61 73 65 73 2c 20 73 6f 20 74 68 69 73 20 cases, so this
1750: 69 73 20 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 is not a total..
1760: 66 69 78 2e 20 20 54 68 69 73 20 6d 61 79 20 62 fix. This may b
1770: 65 20 73 75 66 66 69 63 69 65 6e 74 20 66 6f 72 e sufficient for
1780: 20 6e 6f 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b now, however. [
1790: 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 Bug: 5623]..2000
17a0: 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 -06-01 Scott St
17b0: 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 anton <stanton@
17c0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a scriptics.com>..
17d0: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 .* tlsIO.c: Rest
17e0: 6f 72 65 20 74 68 65 20 70 72 65 76 69 6f 75 73 ore the previous
17f0: 20 76 65 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 version. Fixed
1800: 20 74 68 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 the CloseProc s
1810: 6f 0a 09 69 74 20 75 6e 72 65 67 69 73 74 65 72 o..it unregister
1820: 73 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 s the channel ha
1830: 6e 64 6c 65 72 20 6f 6e 20 74 68 65 20 73 75 70 ndler on the sup
1840: 65 72 63 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a erceded channel.
1850: 09 69 6e 73 74 65 61 64 20 6f 66 20 74 68 65 20 .instead of the
1860: 75 70 70 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 upper channel. A
1870: 6c 73 6f 20 72 65 6d 6f 76 65 64 20 74 68 65 20 lso removed the
1880: 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 call to..Tcl_Not
1890: 69 66 79 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 ifyChannel in th
18a0: 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 e ChannelHandler
18b0: 20 62 65 63 61 75 73 65 20 74 68 69 73 20 77 69 because this wi
18c0: 6c 6c 20 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e ll result..in an
18d0: 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 infinite loop i
18e0: 66 20 64 61 74 61 20 69 73 20 65 76 65 72 20 62 f data is ever b
18f0: 75 66 66 65 72 65 64 20 69 6e 20 74 68 65 20 42 uffered in the B
1900: 49 4f 0a 09 73 74 72 75 63 74 75 72 65 2e 20 5b IO..structure. [
1910: 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 Bug: 5623]..2000
1920: 2d 30 35 2d 33 31 20 20 42 72 65 6e 74 20 57 65 -05-31 Brent We
1930: 6c 63 68 20 3c 77 65 6c 63 68 40 73 63 72 69 70 lch <welch@scrip
1940: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tics.com>...* tl
1950: 73 2e 63 3a 20 43 68 61 6e 67 65 20 74 68 65 20 s.c: Change the
1960: 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 ChannelHandler t
1970: 6f 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20 o be registered
1980: 6f 6e 20 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 on the main..cha
1990: 6e 6e 65 6c 20 61 73 20 6f 70 70 73 65 64 20 74 nnel as oppsed t
19a0: 6f 20 74 68 65 20 22 70 61 72 65 6e 74 22 2c 20 o the "parent",
19b0: 6f 72 20 73 75 70 65 72 63 65 65 64 65 64 2c 20 or superceeded,
19c0: 63 68 61 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 channel. This..
19d0: 69 73 20 62 65 63 61 75 73 65 20 74 68 65 20 73 is because the s
19e0: 6f 63 6b 65 74 20 64 72 69 76 65 72 20 6e 6f 74 ocket driver not
19f0: 69 66 69 65 73 20 74 68 65 20 6d 61 69 6e 20 63 ifies the main c
1a00: 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 hannel, and ther
1a10: 65 0a 09 61 72 65 20 74 69 6d 65 73 20 77 69 74 e..are times wit
1a20: 68 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e h the main chann
1a30: 65 6c 20 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 el gets closed,
1a40: 62 75 74 20 74 68 65 20 73 75 70 65 72 63 65 64 but the superced
1a50: 65 64 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 ed..one is not y
1a60: 65 74 20 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 et closed. If t
1a70: 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c he channel handl
1a80: 65 72 20 67 65 74 73 20 74 72 69 67 67 65 72 65 er gets triggere
1a90: 64 20 69 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d d in..this half-
1aa0: 6f 70 65 6e 20 73 74 61 74 65 20 69 74 20 69 73 open state it is
1ab0: 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 associated with
1ac0: 20 74 68 65 20 73 75 70 65 72 63 65 65 64 65 64 the superceeded
1ad0: 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 ..channedl, but
1ae0: 75 73 65 73 20 69 74 73 20 70 72 69 76 61 74 65 uses its private
1af0: 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 pointer to the
1b00: 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 main channel, wh
1b10: 69 63 68 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 ich..is mostly d
1b20: 65 73 74 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 estroyed. Elimi
1b30: 6e 61 74 65 64 20 74 68 65 20 72 65 64 75 6e 64 nated the redund
1b40: 61 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c ant call to..Tcl
1b50: 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 _NotifyChannel f
1b60: 72 6f 6d 20 54 6c 73 57 61 74 63 68 50 72 6f 63 rom TlsWatchProc
1b70: 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a . [Bug: 5623].