Artifact
3bd42b9d3759bcf2ce053bca9ba0c203d34a2805:
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 09 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 65 73 74 73 2f s.ca>...* tests/
0040: 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 ciphers.test: up
0050: 64 61 74 65 64 20 6c 69 73 74 20 6f 66 20 74 65 dated list of te
0060: 73 74 65 64 20 63 69 70 68 65 72 73 20 74 6f 20 sted ciphers to
0070: 63 6f 72 72 65 73 70 6f 6e 64 0a 09 2a 20 77 69 correspond..* wi
0080: 74 68 20 74 68 6f 73 65 20 61 76 61 69 6c 61 62 th those availab
0090: 6c 65 20 66 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e le from OpenSSL.
00a0: 20 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 38 [Request #81198
00b0: 31 5d 0a 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 1]..2003-10-07
00c0: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 Dan Razzell <res
00d0: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
00e0: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c stems.ca>...* tl
00f0: 73 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 s.c: added CONST
0100: 20 77 69 74 68 20 69 6e 74 65 6e 74 20 73 69 6d with intent sim
0110: 69 6c 61 72 20 74 6f 20 74 68 6f 73 65 20 66 72 ilar to those fr
0120: 6f 6d 20 32 30 30 32 2d 30 32 2d 30 34 2e 0a 09 om 2002-02-04...
0130: 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 31 31 [Request #811911
0140: 5d 0a 0a 32 30 30 33 2d 30 37 2d 30 37 20 20 4a ]..2003-07-07 J
0150: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
0160: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f h@ActiveState.co
0170: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c m>...* tls.c (Tl
0180: 73 5f 49 6e 69 74 29 3a 20 20 20 61 64 64 65 64 s_Init): added
0190: 20 74 6c 73 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 tls::misc comma
01a0: 6e 64 20 70 72 6f 76 69 64 65 64 20 62 79 0a 09 nd provided by..
01b0: 2a 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 * tlsX509.c:
01c0: 20 20 20 20 20 20 57 6f 6a 63 69 65 63 68 20 4b Wojciech K
01d0: 6f 63 6a 61 6e 20 28 77 6f 6a 63 69 65 63 68 20 ocjan (wojciech
01e0: 6b 6f 63 6a 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 kocjan.org)..* t
01f0: 65 73 74 73 2f 6b 65 79 74 65 73 74 31 2e 74 63 ests/keytest1.tc
0200: 6c 3a 20 74 6f 20 65 78 70 6f 73 65 20 6d 6f 72 l: to expose mor
0210: 65 20 6c 6f 77 2d 6c 65 76 65 6c 20 53 53 4c 20 e low-level SSL
0220: 63 6f 6d 6d 61 6e 64 73 0a 09 2a 20 74 65 73 74 commands..* test
0230: 73 2f 6b 65 79 74 65 73 74 32 2e 74 63 6c 3a 0a s/keytest2.tcl:.
0240: 0a 32 30 30 33 2d 30 35 2d 31 35 20 20 44 61 6e .2003-05-15 Dan
0250: 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 Razzell.<resear
0260: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 ch@starfishsyste
0270: 6d 73 2e 63 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e ms.ca> ...* tls.
0280: 74 63 6c 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 tcl:..* tlsInt.h
0290: 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 20 :..* tls.c: add
02a0: 73 75 70 70 6f 72 74 20 66 6f 72 20 62 69 6e 64 support for bind
02b0: 69 6e 67 20 61 20 70 61 73 73 77 6f 72 64 20 63 ing a password c
02c0: 61 6c 6c 62 61 63 6b 20 74 6f 20 74 68 65 20 73 allback to the s
02d0: 6f 63 6b 65 74 2e 0a 09 4e 6f 77 20 65 61 63 68 ocket...Now each
02e0: 20 73 6f 63 6b 65 74 20 63 61 6e 20 68 61 76 65 socket can have
02f0: 20 69 74 73 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 its own command
0300: 20 61 6e 64 20 70 61 73 73 77 6f 72 64 20 63 61 and password ca
0310: 6c 6c 62 61 63 6b 73 20 69 6e 73 74 65 61 64 0a llbacks instead.
0320: 09 6f 66 20 62 65 69 6e 67 20 66 6f 72 63 65 64 .of being forced
0330: 20 74 6f 20 68 61 76 65 20 61 6c 6c 20 70 61 73 to have all pas
0340: 73 77 6f 72 64 20 6d 61 6e 61 67 65 6d 65 6e 74 sword management
0350: 20 70 61 73 73 20 74 68 72 6f 75 67 68 20 61 20 pass through a
0360: 63 6f 6d 6d 6f 6e 0a 09 70 72 6f 63 65 64 75 72 common..procedur
0370: 65 2e 20 20 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 e. The common p
0380: 61 73 73 77 6f 72 64 20 70 72 6f 63 65 64 75 72 assword procedur
0390: 65 20 69 73 20 72 65 74 61 69 6e 65 64 20 66 6f e is retained fo
03a0: 72 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 0a r compatibility.
03b0: 09 62 75 74 20 69 74 73 20 75 73 65 20 73 68 6f .but its use sho
03c0: 75 6c 64 20 62 65 20 44 45 50 52 45 43 41 54 45 uld be DEPRECATE
03d0: 44 2e 0a 09 41 64 64 20 76 65 72 73 69 6f 6e 20 D...Add version
03e0: 63 6f 6d 6d 61 6e 64 20 74 6f 20 72 65 74 75 72 command to retur
03f0: 6e 20 4f 70 65 6e 53 53 4c 20 76 65 72 73 69 6f n OpenSSL versio
0400: 6e 20 73 74 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 n string...Remov
0410: 65 20 75 6e 73 74 61 62 6c 65 20 77 6f 72 6b 61 e unstable worka
0420: 72 6f 75 6e 64 73 20 6e 65 65 64 65 64 20 66 6f rounds needed fo
0430: 72 20 76 65 72 69 66 79 20 69 6e 20 6f 62 73 6f r verify in obso
0440: 6c 65 74 65 20 76 65 72 73 69 6f 6e 73 20 6f 66 lete versions of
0450: 0a 09 4f 70 65 6e 53 53 4c 2e 0a 09 46 69 78 20 ..OpenSSL...Fix
0460: 6d 65 6d 6f 72 79 20 6c 65 61 6b 2e 20 5b 52 65 memory leak. [Re
0470: 71 75 65 73 74 20 23 36 34 30 36 36 30 5d 0a 09 quest #640660]..
0480: 4d 6f 72 65 20 63 61 73 74 73 20 74 6f 20 65 6c More casts to el
0490: 69 6d 69 6e 61 74 65 20 63 6f 6d 70 69 6c 65 72 iminate compiler
04a0: 20 77 61 72 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 warnings....* t
04b0: 6c 73 2e 68 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 ls.htm: document
04c0: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 password callba
04d0: 63 6b 2e 0a 09 43 6f 72 72 65 63 74 20 74 65 63 ck...Correct tec
04e0: 68 6e 69 63 61 6c 20 61 6e 64 20 74 79 70 6f 67 hnical and typog
04f0: 72 61 70 68 69 63 20 65 72 72 6f 72 73 2e 0a 0a raphic errors...
0500: 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 69 .* README.txt: i
0510: 64 65 6e 74 69 66 79 20 76 65 72 73 69 6f 6e 73 dentify versions
0520: 20 6f 66 20 4f 70 65 6e 53 53 4c 20 77 68 69 63 of OpenSSL whic
0530: 68 20 66 69 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 h fix known prob
0540: 6c 65 6d 73 2e 0a 09 47 65 6e 65 72 61 6c 20 77 lems...General w
0550: 61 72 6e 69 6e 67 20 6f 66 20 73 65 63 75 72 69 arning of securi
0560: 74 79 20 70 72 6f 62 6c 65 6d 73 20 69 6e 20 6f ty problems in o
0570: 6c 64 65 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 lder versions of
0580: 20 4f 70 65 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d OpenSSL...2002-
0590: 30 32 2d 30 34 20 20 4a 65 66 66 20 48 6f 62 62 02-04 Jeff Hobb
05a0: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 s <jeffh@Active
05b0: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 State.com>...* t
05c0: 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 ls.htm:..* tls.c
05d0: 3a 20 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 : added support
05e0: 66 6f 72 20 6c 6f 63 61 6c 20 63 65 72 74 69 66 for local certif
05f0: 69 63 61 74 65 20 73 74 61 74 75 73 20 63 68 65 icate status che
0600: 63 6b 2c 20 61 73 20 77 65 6c 6c 0a 09 61 73 20 ck, as well..as
0610: 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 23 20 returning the #
0620: 6f 66 20 62 69 74 73 20 69 6e 20 74 68 65 20 73 of bits in the s
0630: 65 73 73 69 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 ession key. [Pat
0640: 63 68 20 23 35 30 35 36 39 38 5d 20 28 72 6f 73 ch #505698] (ros
0650: 65 29 0a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a e)...* tls.c:..*
0660: 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 tlsIO.c:..* tls
0670: 42 49 4f 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e BIO.c: added CON
0680: 53 54 73 20 74 6f 20 73 61 74 69 73 66 79 20 54 STs to satisfy T
0690: 63 6c 20 38 2e 34 20 73 6f 75 72 63 65 73 2e 20 cl 8.4 sources.
06a0: 20 54 68 69 73 20 6d 61 79 0a 09 67 69 76 65 20 This may..give
06b0: 77 61 72 6e 69 6e 67 73 20 77 68 65 6e 20 63 6f warnings when co
06c0: 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 38 mpiled against 8
06d0: 2e 33 2c 20 62 75 74 20 74 68 65 79 20 63 61 6e .3, but they can
06e0: 20 62 65 20 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a be ignored....*
06f0: 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 tests/simpleCli
0700: 65 6e 74 2e 74 63 6c 3a 0a 09 2a 20 74 65 73 74 ent.tcl:..* test
0710: 73 2f 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 s/simpleServer.t
0720: 63 6c 3a 20 70 6f 69 6e 74 20 74 6f 20 75 70 64 cl: point to upd
0730: 61 74 65 64 20 63 6c 69 65 6e 74 2f 73 65 72 76 ated client/serv
0740: 65 72 20 6b 65 79 20 66 69 6c 65 73 2e 0a 0a 09 er key files....
0750: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 * tests/tlsIO.te
0760: 73 74 3a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 st:..* tests/cip
0770: 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 hers.test: updat
0780: 65 64 20 74 6f 20 6c 6f 61 64 20 74 6c 73 20 66 ed to load tls f
0790: 72 6f 6d 20 62 75 69 6c 64 20 64 69 72 2e 0a 0a rom build dir...
07a0: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
07b0: 72 65 6d 6f 76 65 64 20 73 74 72 6e 63 61 73 65 removed strncase
07c0: 63 6d 70 20 66 72 6f 6d 20 64 65 66 61 75 6c 74 cmp from default
07d0: 20 6f 62 6a 65 63 74 20 73 65 74 2e 20 20 54 68 object set. Th
07e0: 69 73 0a 09 69 73 20 6f 6e 6c 79 20 6e 65 65 64 is..is only need
07f0: 65 64 20 6f 6e 20 74 68 65 20 4d 61 63 2c 20 61 ed on the Mac, a
0800: 6e 64 20 54 63 6c 20 73 74 75 62 73 20 70 72 6f nd Tcl stubs pro
0810: 76 69 64 65 73 20 69 74 2e 0a 0a 09 2a 20 63 6f vides it....* co
0820: 6e 66 69 67 75 72 65 3a 20 72 65 67 65 6e 27 65 nfigure: regen'e
0830: 64 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e d...* configure.
0840: 69 6e 3a 20 75 70 64 61 74 65 64 20 74 6f 20 31 in: updated to 1
0850: 2e 35 2e 30 20 66 6f 72 20 6e 65 78 74 20 72 65 .5.0 for next re
0860: 6c 65 61 73 65 2e 0a 09 43 68 61 6e 67 65 64 20 lease...Changed
0870: 64 65 66 61 75 6c 74 20 6f 70 65 6e 73 73 6c 20 default openssl
0880: 6c 6f 63 61 74 69 6f 6e 20 74 6f 20 2f 75 73 72 location to /usr
0890: 2f 6c 6f 63 61 6c 2f 73 73 6c 20 28 74 68 69 73 /local/ssl (this
08a0: 20 69 73 20 77 68 65 72 65 0a 09 6f 70 65 6e 73 is where..opens
08b0: 73 6c 20 30 2e 39 2e 36 63 20 69 6e 73 74 61 6c sl 0.9.6c instal
08c0: 6c 73 20 62 79 20 64 65 66 61 75 6c 74 29 2e 0a ls by default)..
08d0: 09 43 68 61 6e 67 65 64 20 74 6f 20 75 73 65 20 .Changed to use
08e0: 70 75 62 6c 69 63 20 54 63 6c 20 68 65 61 64 65 public Tcl heade
08f0: 72 73 20 28 70 72 69 76 61 74 65 20 6e 6f 74 20 rs (private not
0900: 6e 65 65 64 65 64 29 2e 0a 0a 32 30 30 31 2d 30 needed)...2001-0
0910: 36 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 6-21 Jeff Hobbs
0920: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 <jeffh@ActiveS
0930: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 tate.com>...TLS
0940: 31 2e 34 2e 31 20 52 45 4c 45 41 53 45 0a 0a 09 1.4.1 RELEASE...
0950: 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 61 64 64 * configure: add
0960: 65 64 20 63 6f 6e 66 69 67 75 72 65 20 74 6f 20 ed configure to
0970: 43 56 53 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 CVS..* configure
0980: 2e 69 6e 3a 20 6d 6f 76 65 64 20 74 6f 20 70 61 .in: moved to pa
0990: 74 63 68 6c 65 76 65 6c 20 31 2e 34 2e 31 0a 0a tchlevel 1.4.1..
09a0: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
09b0: 63 6f 72 72 65 63 74 65 64 20 27 64 69 73 74 27 corrected 'dist'
09c0: 20 74 61 72 67 65 74 0a 0a 09 2a 20 74 65 73 74 target...* test
09d0: 73 2f 63 65 72 74 73 2f 66 69 6c 65 2e 73 72 6c s/certs/file.srl
09e0: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 :..* tests/certs
09f0: 2f 63 61 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 /ca.pem:..* test
0a00: 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 6b s/certs/client.k
0a10: 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 ey:..* tests/cer
0a20: 74 73 2f 63 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 ts/client.pem:..
0a30: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c * tests/certs/cl
0a40: 69 65 6e 74 2e 72 65 71 3a 0a 09 2a 20 74 65 73 ient.req:..* tes
0a50: 74 73 2f 63 65 72 74 73 2f 70 72 69 76 6b 65 79 ts/certs/privkey
0a60: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .pem:..* tests/c
0a70: 65 72 74 73 2f 73 65 72 76 65 72 2e 6b 65 79 3a erts/server.key:
0a80: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
0a90: 73 65 72 76 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 server.pem:..* t
0aa0: 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 ests/certs/serve
0ab0: 72 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f r.req:..* tests/
0ac0: 63 65 72 74 73 2f 63 61 63 65 72 74 2e 70 65 6d certs/cacert.pem
0ad0: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
0ae0: 77 20 63 61 2e 70 65 6d 0a 09 2a 20 74 65 73 74 w ca.pem..* test
0af0: 73 2f 63 65 72 74 73 2f 73 6b 65 79 2e 70 65 6d s/certs/skey.pem
0b00: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
0b10: 77 20 73 65 72 76 65 72 2e 6b 65 79 0a 09 2a 20 w server.key..*
0b20: 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6b 65 79 tests/certs/ckey
0b30: 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 .pem: replaced b
0b40: 79 20 6e 65 77 20 63 6c 69 65 6e 74 2e 6b 65 79 y new client.key
0b50: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
0b60: 52 45 41 44 4d 45 2e 74 78 74 3a 20 6e 65 77 20 README.txt: new
0b70: 73 65 74 20 6f 66 20 74 65 73 74 20 63 65 72 74 set of test cert
0b80: 69 66 69 63 61 74 65 73 20 77 69 74 68 20 73 6f ificates with so
0b90: 6d 65 0a 09 52 45 41 44 4d 45 20 69 6e 66 6f 20 me..README info
0ba0: 6f 6e 20 74 68 65 69 72 20 67 65 6e 65 72 61 74 on their generat
0bb0: 69 6f 6e 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 ion....* tests/c
0bc0: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 iphers.test: upd
0bd0: 61 74 65 64 20 63 69 70 68 65 72 73 20 65 78 70 ated ciphers exp
0be0: 65 63 74 65 64 20 77 69 74 68 20 64 65 66 61 75 ected with defau
0bf0: 6c 74 0a 09 6f 70 65 6e 73 73 6c 20 62 75 69 6c lt..openssl buil
0c00: 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 63 6c d....* tests/tcl
0c10: 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 IO.test: updated
0c20: 20 74 6f 20 75 73 65 20 6e 65 77 20 6e 61 6d 65 to use new name
0c30: 73 20 66 6f 72 20 63 65 72 74 73 2f 6b 65 79 73 s for certs/keys
0c40: 2e 0a 0a 32 30 30 31 2d 30 33 2d 31 34 20 20 4a ...2001-03-14 J
0c50: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
0c60: 68 40 67 69 6d 6c 65 74 2e 61 63 74 69 76 65 73 h@gimlet.actives
0c70: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tate.com>...* tl
0c80: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
0c90: 61 64 64 20 64 6f 2f 77 68 69 6c 65 20 66 6f 72 add do/while for
0ca0: 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 69 random number i
0cb0: 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 nitialization..t
0cc0: 6f 20 77 6f 72 6b 20 61 72 6f 75 6e 64 20 73 6f o work around so
0cd0: 6d 65 20 4f 53 65 73 20 71 75 69 72 6b 73 2e 20 me OSes quirks.
0ce0: 20 28 52 61 6c 70 68 2e 42 69 6c 6c 65 73 40 74 (Ralph.Billes@t
0cf0: 65 6c 74 65 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a eltech.com.au)..
0d00: 32 30 30 30 2d 30 39 2d 30 37 20 20 4a 65 66 66 2000-09-07 Jeff
0d10: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
0d20: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
0d30: 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 5f 43 * tlsIO.c (Tls_C
0d40: 68 61 6e 6e 65 6c 54 79 70 65 29 3a 20 73 65 74 hannelType): set
0d50: 20 74 79 70 65 4e 61 6d 65 20 66 69 65 6c 64 20 typeName field
0d60: 6f 66 20 63 68 61 6e 6e 65 6c 20 74 79 70 65 20 of channel type
0d70: 74 6f 0a 09 22 74 6c 73 22 20 28 74 68 69 73 20 to.."tls" (this
0d80: 67 6f 74 20 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 got lost in move
0d90: 20 74 6f 20 64 79 6e 61 6d 69 63 20 76 65 72 73 to dynamic vers
0da0: 69 6f 6e 20 63 6f 6d 70 61 74 61 62 69 6c 69 74 ion compatabilit
0db0: 79 0a 09 63 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 y..checking)...2
0dc0: 30 30 30 2d 30 38 2d 32 33 20 20 4a 65 66 66 20 000-08-23 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 54 riptics.com>...T
0df0: 4c 53 20 31 2e 34 20 52 45 4c 45 41 53 45 44 0a LS 1.4 RELEASED.
0e00: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 ..* Makefile.in
0e10: 28 64 69 73 74 29 3a 20 63 72 65 61 74 65 20 64 (dist): create d
0e20: 69 73 74 20 74 61 72 67 65 74 20 66 6f 72 20 61 ist target for a
0e30: 72 63 68 69 76 65 20 64 69 73 74 72 69 62 75 74 rchive distribut
0e40: 69 6f 6e 73 0a 0a 09 2a 20 74 65 73 74 73 2f 74 ions...* tests/t
0e50: 6c 73 49 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f lsIO.test (tlsIO
0e60: 2d 38 2e 31 29 3a 20 61 64 64 65 64 20 61 20 64 -8.1): added a d
0e70: 65 6c 61 79 20 6f 6e 20 74 68 65 20 61 63 63 65 elay on the acce
0e80: 70 74 20 63 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b pt close..to mak
0e90: 65 20 74 68 65 20 74 65 73 74 20 77 6f 72 6b 20 e the test work
0ea0: 77 69 74 68 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 with OpenSSL on
0eb0: 57 69 6e 64 6f 77 73 20 28 64 6f 65 73 6e 27 74 Windows (doesn't
0ec0: 20 61 66 66 65 63 74 0a 09 6f 74 68 65 72 20 62 affect..other b
0ed0: 75 69 6c 64 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e uilds)....* tls.
0ee0: 68 74 6d 3a 20 75 70 64 61 74 65 64 20 77 69 74 htm: updated wit
0ef0: 68 20 6e 6f 74 65 73 20 66 6f 72 20 31 2e 34 2e h notes for 1.4.
0f00: 0a 0a 32 30 30 30 2d 30 38 2d 32 31 20 20 4a 65 ..2000-08-21 Je
0f10: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
0f20: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
0f30: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
0f40: 74 65 73 74 3a 20 72 65 71 75 69 72 65 20 61 74 test: require at
0f50: 20 6c 65 61 73 74 20 74 6c 73 31 2e 34 20 69 6e least tls1.4 in
0f60: 20 74 65 73 74 20 73 75 69 74 65 2e 0a 0a 32 30 test suite...20
0f70: 30 30 2d 30 38 2d 31 38 20 20 4a 65 66 66 20 48 00-08-18 Jeff H
0f80: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
0f90: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
0fa0: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 tls.c (Tls_Init)
0fb0: 3a 20 61 64 64 65 64 20 63 61 6c 6c 20 74 6f 20 : added call to
0fc0: 52 41 4e 44 5f 73 65 65 64 20 74 6f 20 73 65 65 RAND_seed to see
0fd0: 64 20 74 68 65 20 53 53 4c 20 72 61 6e 64 6f 6d d the SSL random
0fe0: 0a 09 6e 75 6d 62 65 72 20 67 65 6e 65 72 61 74 ..number generat
0ff0: 6f 72 2e 20 20 57 69 74 68 6f 75 74 20 74 68 69 or. Without thi
1000: 73 2c 20 4f 70 65 6e 53 53 4c 20 30 2e 39 2e 35 s, OpenSSL 0.9.5
1010: 20 63 68 6f 6b 65 73 2c 20 61 6e 64 20 69 6e 20 chokes, and in
1020: 61 6e 79 0a 09 63 61 73 65 20 69 74 20 69 73 20 any..case it is
1030: 61 20 62 69 67 20 73 65 63 75 72 69 74 79 20 68 a big security h
1040: 6f 6c 65 20 74 6f 20 64 6f 20 77 69 74 68 6f 75 ole to do withou
1050: 74 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 t it....* config
1060: 75 72 65 2e 69 6e 20 28 4f 50 45 4e 53 53 4c 29 ure.in (OPENSSL)
1070: 3a 20 61 64 64 65 64 20 4e 4f 5f 49 44 45 41 20 : added NO_IDEA
1080: 61 6e 64 20 4e 4f 5f 52 43 35 20 64 65 66 69 6e and NO_RC5 defin
1090: 65 73 20 62 79 0a 09 64 65 66 61 75 6c 74 20 77 es by..default w
10a0: 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 hen compiling wi
10b0: 74 68 20 4f 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 th OpenSSL....*
10c0: 74 6c 73 49 6e 74 2e 68 3a 20 61 64 64 65 64 20 tlsInt.h: added
10d0: 65 72 72 2e 68 20 69 6e 63 6c 75 64 65 0a 0a 09 err.h include...
10e0: 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 * tlsBIO.c:..* t
10f0: 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 lsIO.c: correcte
1100: 64 20 70 65 64 61 6e 74 69 63 20 63 61 73 74 20 d pedantic cast
1110: 65 72 72 6f 72 73 2e 0a 0a 32 30 30 30 2d 30 38 errors...2000-08
1120: 2d 31 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -16 Jeff Hobbs
1130: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
1140: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 s.com>...* tests
1150: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 69 /ciphers.test: i
1160: 6d 70 72 6f 76 65 64 20 61 62 69 6c 69 74 79 20 mproved ability
1170: 74 6f 20 63 68 61 6e 67 65 20 63 6f 6e 73 74 72 to change constr
1180: 61 69 6e 74 0a 09 73 65 74 74 69 6e 67 20 66 6f aint..setting fo
1190: 72 20 77 68 65 74 68 65 72 20 75 73 65 72 20 63 r whether user c
11a0: 6f 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 ompiled against
11b0: 52 53 41 20 6f 72 20 4f 70 65 6e 53 53 4c 20 6c RSA or OpenSSL l
11c0: 69 62 73 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 ibs....* tls.c (
11d0: 54 6c 73 5f 49 6e 69 74 29 3a 20 63 6f 72 72 65 Tls_Init): corre
11e0: 63 74 65 64 20 69 6e 74 65 72 70 72 65 74 61 74 cted interpretat
11f0: 69 6f 6e 20 6f 66 20 76 65 72 73 69 6f 6e 20 6e ion of version n
1200: 75 6d 62 65 72 0a 09 28 70 61 74 63 68 6c 65 76 umber..(patchlev
1210: 65 6c 20 61 6e 64 20 72 65 6c 65 61 73 65 2f 73 el and release/s
1220: 65 72 69 61 6c 20 77 65 72 65 20 73 77 61 70 70 erial were swapp
1230: 65 64 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 35 ed)...2000-08-15
1240: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
1250: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
1260: 6f 6d 3e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 om>...* README.t
1270: 78 74 3a 20 61 64 64 65 64 20 6e 6f 74 65 73 20 xt: added notes
1280: 61 62 6f 75 74 20 6e 65 65 64 20 74 6f 20 75 73 about need to us
1290: 65 20 38 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c e 8.2.0+....* tl
12a0: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 sInt.h:..* tls.c
12b0: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f :..* tlsIO.c: co
12c0: 72 72 65 63 74 65 64 20 73 74 72 75 63 74 75 72 rrected structur
12d0: 65 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e e initialization
12e0: 20 74 6f 20 77 6f 72 6b 20 77 68 65 6e 0a 09 63 to work when..c
12f0: 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 38 2e ompiling with 8.
1300: 32 2e 20 20 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 2. Now compiles
1310: 20 77 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 74 with 8.2+ and t
1320: 65 73 74 65 64 20 74 6f 20 77 6f 72 6b 0a 09 77 ested to work..w
1330: 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 64 79 6e ith 8.2+ and dyn
1340: 61 6d 69 63 61 6c 6c 79 20 61 64 6a 75 73 74 20 amically adjust
1350: 74 6f 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f to the version o
1360: 66 20 54 63 6c 20 69 74 20 77 61 73 0a 09 6c 6f f Tcl it was..lo
1370: 61 64 65 64 20 69 6e 74 6f 2e 20 20 54 4c 53 20 aded into. TLS
1380: 77 69 6c 6c 20 66 61 69 6c 20 74 68 65 20 74 65 will fail the te
1390: 73 74 20 73 75 69 74 65 20 77 69 74 68 20 54 63 st suite with Tc
13a0: 6c 20 38 2e 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a l 8.2-8.3.1....*
13b0: 20 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 tests/all.tcl:
13c0: 61 64 64 65 64 20 63 61 74 63 68 20 61 72 6f 75 added catch arou
13d0: 6e 64 20 3a 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f nd ::tcltest::no
13e0: 72 6d 61 6c 69 7a 65 50 61 74 68 0a 09 62 65 63 rmalizePath..bec
13f0: 61 75 73 65 20 69 74 20 64 6f 65 73 6e 27 74 20 ause it doesn't
1400: 65 78 69 73 74 20 69 6e 20 70 72 65 2d 38 2e 33 exist in pre-8.3
1410: 20 74 63 6c 74 65 73 74 2e 0a 0a 09 2a 20 74 65 tcltest....* te
1420: 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 sts/simpleClient
1430: 2e 74 63 6c 3a 20 0a 09 2a 20 74 65 73 74 73 2f .tcl: ..* tests/
1440: 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c simpleServer.tcl
1450: 3a 20 61 64 64 65 64 20 73 69 6d 70 6c 65 20 63 : added simple c
1460: 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 74 65 73 lient/server tes
1470: 74 20 73 63 72 69 70 74 73 0a 09 74 68 61 74 20 t scripts..that
1480: 75 73 65 20 74 65 73 74 20 63 65 72 74 73 20 61 use test certs a
1490: 6e 64 20 63 61 6e 20 64 6f 20 73 69 6d 70 6c 65 nd can do simple
14a0: 20 73 74 72 65 73 73 20 74 65 73 74 73 2e 0a 0a stress tests...
14b0: 32 30 30 30 2d 30 38 2d 31 34 20 20 4a 65 66 66 2000-08-14 Jeff
14c0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
14d0: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
14e0: 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 * tlsInt.h:..* t
14f0: 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 lsIO.c:..* tlsBI
1500: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 O.c:..* tls.c: c
1510: 68 61 6e 67 65 64 20 61 72 6f 75 6e 64 20 74 6f hanged around to
1520: 20 6f 6e 6c 79 20 77 6f 72 6b 69 6e 67 20 77 69 only working wi
1530: 74 68 20 38 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 th 8.2.0+ (8.3.2
1540: 2b 0a 09 70 72 65 66 65 72 72 65 64 29 2c 20 77 +..preferred), w
1550: 69 74 68 20 72 75 6e 74 69 6d 65 20 63 68 65 63 ith runtime chec
1560: 6b 73 20 66 6f 72 20 70 72 65 2d 20 61 6e 64 20 ks for pre- and
1570: 70 6f 73 74 2d 69 6f 2d 72 65 77 72 69 74 65 2e post-io-rewrite.
1580: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
1590: 49 6e 69 74 29 3a 20 63 68 61 6e 67 65 64 20 69 Init): changed i
15a0: 74 20 74 6f 20 72 65 71 75 69 72 65 20 38 2e 33 t to require 8.3
15b0: 2e 32 20 77 68 65 6e 20 54 63 6c 5f 49 6e 69 74 .2 when Tcl_Init
15c0: 53 74 75 62 73 0a 09 77 61 73 20 63 61 6c 6c 65 Stubs..was calle
15d0: 64 20 62 65 63 61 75 73 65 20 77 65 20 64 6f 6e d because we don
15e0: 27 74 20 77 61 6e 74 20 70 65 6f 70 6c 65 20 75 't want people u
15f0: 73 69 6e 67 20 54 4c 53 20 77 69 74 68 20 74 68 sing TLS with th
1600: 65 0a 09 6f 72 69 67 69 6e 61 6c 20 73 74 61 63 e..original stac
1610: 6b 65 64 20 63 68 61 6e 6e 65 6c 20 69 6d 70 6c ked channel impl
1620: 65 6d 65 6e 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 ementation...200
1630: 30 2d 30 37 2d 32 36 20 20 4a 65 66 66 20 48 6f 0-07-26 Jeff Ho
1640: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1650: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d ptics.com>...* m
1660: 65 72 67 65 64 20 61 6c 6c 20 63 68 61 6e 67 65 erged all change
1670: 73 20 66 72 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 s from tls-1-3-i
1680: 6f 2d 72 65 77 72 69 74 65 20 62 61 63 6b 20 69 o-rewrite back i
1690: 6e 74 6f 20 6d 61 69 6e 20 62 72 61 6e 63 68 0a nto main branch.
16a0: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
16b0: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 63 6f test: updated co
16c0: 6d 6d 65 6e 74 73 2c 20 66 69 78 65 64 20 61 20 mments, fixed a
16d0: 70 63 43 72 61 73 68 20 63 61 73 65 20 74 68 61 pcCrash case tha
16e0: 74 0a 09 77 61 73 20 64 75 65 20 74 6f 20 64 65 t..was due to de
16f0: 62 75 67 20 61 73 73 65 72 74 69 6f 6e 20 69 6e bug assertion in
1700: 20 57 69 6e 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 Windows SSL....
1710: 2a 20 74 6c 73 2e 63 20 28 49 6d 70 6f 72 74 4f * tls.c (ImportO
1720: 62 6a 43 6d 64 29 3a 20 72 65 6d 6f 76 65 64 20 bjCmd): removed
1730: 75 6e 6e 65 63 65 73 73 61 72 79 20 75 73 65 20 unnecessary use
1740: 6f 66 20 27 62 69 6f 27 20 61 72 67 2e 0a 09 28 of 'bio' arg...(
1750: 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 65 63 6b Tls_Init): check
1760: 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 return value of
1770: 20 53 53 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 SSL_library_ini
1780: 74 2e 20 20 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 t. Also lots of
1790: 0a 09 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 ..whitespace cle
17a0: 61 6e 75 70 20 28 6d 6f 72 65 20 6c 69 6b 65 20 anup (more like
17b0: 54 63 6c 20 45 6e 67 20 73 74 79 6c 65 20 67 75 Tcl Eng style gu
17c0: 69 64 65 29 2c 20 62 75 74 20 6e 6f 74 20 61 6c ide), but not al
17d0: 6c 0a 09 63 6f 64 65 20 77 61 73 20 63 6c 65 61 l..code was clea
17e0: 6e 65 64 20 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 ned up....* tlsB
17f0: 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 IO.c: minor whit
1800: 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 0a 0a espace cleanup..
1810: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f .* tlsIO.c: mino
1820: 72 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 r whitespace cle
1830: 61 6e 75 70 2e 0a 09 28 54 6c 73 49 6e 70 75 74 anup...(TlsInput
1840: 50 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 Proc, TlsOutputP
1850: 72 6f 63 29 3a 20 41 64 64 65 64 20 45 52 52 5f roc): Added ERR_
1860: 63 6c 65 61 72 5f 65 72 72 6f 72 20 62 65 66 6f clear_error befo
1870: 72 65 20 63 61 6c 6c 73 0a 09 74 6f 20 42 49 4f re calls..to BIO
1880: 5f 72 65 61 64 20 6f 72 20 42 49 4f 5f 77 72 69 _read or BIO_wri
1890: 74 65 2c 20 62 65 63 61 75 73 65 20 77 65 20 63 te, because we c
18a0: 6f 75 6c 64 20 6f 74 68 65 72 77 69 73 65 20 65 ould otherwise e
18b0: 6e 64 20 75 70 0a 09 70 75 6c 6c 69 6e 67 20 61 nd up..pulling a
18c0: 6e 20 65 72 72 6f 72 20 6f 66 66 20 74 68 65 20 n error off the
18d0: 73 74 61 63 6b 20 74 68 61 74 20 64 69 64 6e 27 stack that didn'
18e0: 74 20 62 65 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 t belong to us.
18f0: 20 41 6c 73 6f 0a 09 63 6c 65 61 6e 75 70 20 75 Also..cleanup u
1900: 70 20 65 78 63 65 73 73 69 76 65 20 75 73 65 20 p excessive use
1910: 6f 66 20 67 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d of gotos...2000-
1920: 30 37 2d 32 30 20 20 4a 65 66 66 20 48 6f 62 62 07-20 Jeff Hobb
1930: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
1940: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 ics.com>...* tes
1950: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 63 ts/tlsIO.test: c
1960: 6f 72 72 65 63 74 65 64 20 76 61 72 69 6f 75 73 orrected various
1970: 20 74 65 73 74 73 20 74 6f 20 62 65 20 63 6f 72 tests to be cor
1980: 72 65 63 74 20 66 6f 72 20 54 4c 53 0a 09 73 74 rect for TLS..st
1990: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 20 28 acked channels (
19a0: 61 73 20 6f 70 70 6f 73 65 64 20 74 6f 20 74 68 as opposed to th
19b0: 65 20 73 74 61 6e 64 61 72 64 20 73 6f 63 6b 65 e standard socke
19c0: 74 73 20 74 68 65 20 74 65 73 74 0a 09 73 75 69 ts the test..sui
19d0: 74 65 20 77 61 73 20 61 64 6f 70 74 65 64 20 66 te was adopted f
19e0: 72 6f 6d 29 2e 20 20 4b 65 79 20 64 69 66 66 65 rom). Key diffe
19f0: 72 65 6e 63 65 73 20 61 72 65 20 74 68 61 74 20 rences are that
1a00: 54 4c 53 20 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 TLS cannot..oper
1a10: 61 74 65 20 69 6e 20 6f 6e 65 20 70 72 6f 63 65 ate in one proce
1a20: 73 73 20 77 69 74 68 6f 75 74 20 61 6c 6c 20 63 ss without all c
1a30: 68 61 6e 6e 65 6c 73 20 62 65 69 6e 67 20 6e 6f hannels being no
1a40: 6e 2d 62 6c 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 n-blocking, or..
1a50: 74 68 65 20 68 61 6e 64 73 68 61 6b 65 20 77 69 the handshake wi
1a60: 6c 6c 20 62 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 ll block, and ha
1a70: 6e 64 73 68 61 6b 69 6e 67 20 6d 75 73 74 20 62 ndshaking must b
1a80: 65 20 66 6f 72 63 65 64 20 69 6e 20 73 6f 6d 65 e forced in some
1a90: 0a 09 63 61 73 65 73 2e 20 20 41 6c 73 6f 2c 20 ..cases. Also,
1aa0: 68 61 6e 64 73 68 61 6b 65 73 20 64 6f 6e 27 74 handshakes don't
1ab0: 20 73 65 65 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 seem to complet
1ac0: 65 20 75 6e 6c 65 73 73 20 74 68 65 20 63 6c 69 e unless the cli
1ad0: 65 6e 74 0a 09 68 61 73 20 70 6c 61 63 65 64 20 ent..has placed
1ae0: 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 62 79 74 at least one byt
1af0: 65 20 66 6f 72 20 74 68 65 20 73 65 72 76 65 72 e for the server
1b00: 20 74 6f 20 72 65 61 64 20 69 6e 20 74 68 65 20 to read in the
1b10: 63 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 channel....* tes
1b20: 74 73 2f 72 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 ts/remote.tcl: c
1b30: 6f 72 72 65 63 74 65 64 20 74 68 65 20 66 69 6e orrected the fin
1b40: 64 69 6e 67 20 6f 66 20 74 65 73 74 73 20 63 65 ding of tests ce
1b50: 72 74 69 66 69 63 61 74 65 73 0a 0a 09 2a 20 74 rtificates...* t
1b60: 6c 73 49 4f 2e 63 20 28 54 6c 73 43 6c 6f 73 65 lsIO.c (TlsClose
1b70: 50 72 6f 63 29 3a 20 72 65 6d 6f 76 65 64 20 64 Proc): removed d
1b80: 65 6c 65 74 69 6e 67 20 6f 66 20 74 69 6d 65 72 eleting of timer
1b90: 20 68 61 6e 64 6c 65 72 20 61 73 0a 09 74 68 61 handler as..tha
1ba0: 74 20 69 73 20 68 61 6e 64 6c 65 64 20 62 79 20 t is handled by
1bb0: 54 6c 73 5f 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 Tls_Clean....* t
1bc0: 6c 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 ls.tcl (tls::_ac
1bd0: 63 65 70 74 29 3a 20 63 6f 72 72 65 63 74 65 64 cept): corrected
1be0: 20 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 5f 61 the internal _a
1bf0: 63 63 65 70 74 20 74 6f 0a 09 74 72 69 63 6b 6c ccept to..trickl
1c00: 65 20 63 61 6c 6c 62 61 63 6b 20 65 72 72 6f 72 e callback error
1c10: 73 20 74 6f 20 74 68 65 20 75 73 65 72 2e 0a 0a s to the user...
1c20: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
1c30: 6d 61 64 65 20 74 68 65 20 69 6e 73 74 61 6c 6c made the install
1c40: 2d 62 69 6e 61 72 69 65 73 20 74 61 72 67 65 74 -binaries target
1c50: 20 72 65 67 65 6e 65 72 61 74 65 20 74 68 65 0a regenerate the.
1c60: 09 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 63 6f .pkgIndex.tcl co
1c70: 72 72 65 63 74 6c 79 2e 20 20 54 68 65 20 74 65 rrectly. The te
1c80: 73 74 20 74 61 72 67 65 74 20 70 72 6f 62 61 62 st target probab
1c90: 6c 79 20 73 68 6f 75 6c 64 6e 27 74 20 73 63 72 ly shouldn't scr
1ca0: 65 77 0a 09 69 74 20 75 70 2c 20 62 75 74 20 74 ew..it up, but t
1cb0: 68 69 73 20 69 73 20 74 6f 20 62 65 20 6f 6e 20 his is to be on
1cc0: 74 68 65 20 73 61 66 65 20 73 69 64 65 2e 0a 0a the safe side...
1cd0: 32 30 30 30 2d 30 37 2d 31 37 20 20 4a 65 66 66 2000-07-17 Jeff
1ce0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
1cf0: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
1d00: 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 * pkgIndex.tcl.i
1d10: 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e n:..* configure.
1d20: 69 6e 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 in: updated vers
1d30: 69 6f 6e 20 74 6f 20 31 2e 34 0a 0a 32 30 30 30 ion to 1.4..2000
1d40: 2d 30 37 2d 31 33 20 20 4a 65 66 66 20 48 6f 62 -07-13 Jeff Hob
1d50: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
1d60: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 tics.com>...* te
1d70: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 sts/tlsIO.test:
1d80: 65 6e 61 62 6c 65 64 20 74 65 73 74 73 20 32 2e enabled tests 2.
1d90: 31 30 2c 20 37 2e 5b 31 32 34 35 5d 20 28 74 68 10, 7.[1245] (th
1da0: 65 72 65 20 69 73 20 6e 6f 20 33 29 2c 0a 09 77 ere is no 3),..w
1db0: 68 69 63 68 20 6e 6f 77 20 70 61 73 73 2e 20 20 hich now pass.
1dc0: 41 64 64 65 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 Added some comme
1dd0: 6e 74 73 20 74 6f 20 6f 74 68 65 72 20 66 61 69 nts to other fai
1de0: 6c 69 6e 67 20 74 65 73 74 73 2e 0a 0a 32 30 30 ling tests...200
1df0: 30 2d 30 37 2d 31 31 20 20 4a 65 66 66 20 48 6f 0-07-11 Jeff Ho
1e00: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1e10: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
1e20: 6c 73 49 4f 2e 63 3a 20 63 68 61 6e 67 65 64 20 lsIO.c: changed
1e30: 61 6c 6c 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 all the channel
1e40: 70 72 6f 63 73 20 74 6f 20 73 74 61 72 74 20 77 procs to start w
1e50: 69 74 68 20 54 6c 73 2a 20 66 6f 72 0a 09 62 65 ith Tls* for..be
1e60: 74 74 65 72 20 70 61 72 69 74 79 20 77 68 65 6e tter parity when
1e70: 20 63 6f 6d 70 61 72 69 6e 67 20 77 69 74 68 20 comparing with
1e80: 54 72 61 6e 73 66 6f 72 6d 20 63 68 61 6e 6e 65 Transform channe
1e90: 6c 20 70 72 6f 63 73 2e 0a 09 52 65 77 72 6f 74 l procs...Rewrot
1ea0: 65 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2c 20 e TlsWatchProc,
1eb0: 61 64 64 65 64 20 54 6c 73 4e 6f 74 69 66 79 50 added TlsNotifyP
1ec0: 72 6f 63 20 61 63 63 6f 72 64 69 6e 67 20 74 6f roc according to
1ed0: 20 74 68 65 20 6e 65 77 0a 09 63 68 61 6e 6e 65 the new..channe
1ee0: 6c 20 64 65 73 69 67 6e 2c 20 77 68 69 63 68 20 l design, which
1ef0: 61 6c 73 6f 20 6c 65 61 76 65 73 20 54 6c 73 43 also leaves TlsC
1f00: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 75 6e hannelHandler un
1f10: 75 73 65 64 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f used....* tlsBIO
1f20: 2e 63 20 28 42 69 6f 43 74 72 6c 29 3a 20 63 68 .c (BioCtrl): ch
1f30: 61 6e 67 65 64 20 42 49 4f 5f 43 54 52 4c 5f 46 anged BIO_CTRL_F
1f40: 4c 55 53 48 20 63 61 73 65 20 74 6f 20 75 73 65 LUSH case to use
1f50: 0a 09 54 63 6c 5f 57 72 69 74 65 52 61 77 20 69 ..Tcl_WriteRaw i
1f60: 6e 73 74 65 61 64 20 6f 66 20 54 63 6c 5f 46 6c nstead of Tcl_Fl
1f70: 75 73 68 20 28 74 6f 20 6f 70 65 72 61 74 65 20 ush (to operate
1f80: 6f 6e 20 63 6f 72 72 65 63 74 20 63 68 61 6e 6e on correct chann
1f90: 65 6c 0a 09 69 6e 20 74 68 65 20 73 74 61 63 6b el..in the stack
1fa0: 20 69 6e 73 74 65 61 64 20 6f 66 20 73 74 61 72 instead of star
1fb0: 74 69 6e 67 20 61 74 20 74 68 65 20 74 6f 70 20 ting at the top
1fc0: 61 67 61 69 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 again). Would..
1fd0: 6f 74 68 65 72 77 69 73 65 20 63 61 75 73 65 20 otherwise cause
1fe0: 61 20 72 65 63 75 72 73 69 76 65 20 73 74 61 63 a recursive stac
1ff0: 6b 20 62 6f 6d 62 20 77 68 65 6e 20 69 6d 70 6c k bomb when impl
2000: 69 63 69 74 20 68 61 6e 64 73 68 61 6b 69 6e 67 icit handshaking
2010: 0a 09 74 6f 6f 6b 20 65 66 66 65 63 74 2e 0a 0a ..took effect...
2020: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
2030: 65 73 74 3a 20 72 65 6d 6f 76 65 64 20 63 68 61 est: removed cha
2040: 6e 67 65 73 20 6d 61 64 65 20 74 6f 20 74 65 73 nges made to tes
2050: 74 20 73 75 69 74 65 20 28 61 6c 6c 20 74 65 73 t suite (all tes
2060: 74 73 0a 09 74 68 61 74 20 72 61 6e 20 62 65 66 ts..that ran bef
2070: 6f 72 65 20 6e 6f 77 20 70 61 73 73 20 63 6f 72 ore now pass cor
2080: 72 65 63 74 6c 79 29 2c 20 61 6e 64 20 63 68 61 rectly), and cha
2090: 6e 67 65 64 20 73 6f 6d 65 20 61 63 63 65 70 74 nged some accept
20a0: 20 70 72 6f 63 0a 09 61 72 67 73 20 74 6f 20 72 proc..args to r
20b0: 65 66 6c 65 63 74 20 74 68 61 74 20 61 20 73 6f eflect that a so
20c0: 63 6b 20 69 73 20 61 6e 20 61 72 67 2c 20 6e 6f ck is an arg, no
20d0: 74 20 61 20 66 69 6c 65 2e 0a 0a 32 30 30 30 2d t a file...2000-
20e0: 30 37 2d 31 30 20 20 4a 65 66 66 20 48 6f 62 62 07-10 Jeff Hobb
20f0: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
2100: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
2110: 42 49 4f 2e 63 20 28 42 69 6f 57 72 69 74 65 2c BIO.c (BioWrite,
2120: 20 42 69 6f 52 65 61 64 29 3a 20 63 68 61 6e 67 BioRead): chang
2130: 65 64 20 54 63 6c 5f 52 65 61 64 2f 57 72 69 74 ed Tcl_Read/Writ
2140: 65 20 74 6f 0a 09 54 63 6c 5f 52 65 61 64 52 61 e to..Tcl_ReadRa
2150: 77 2f 54 63 6c 57 72 69 74 65 52 61 77 2e 0a 0a w/TclWriteRaw...
2160: 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 .* tls.c: added
2170: 75 73 65 20 6f 66 20 54 63 6c 5f 47 65 74 54 6f use of Tcl_GetTo
2180: 70 43 68 61 6e 6e 65 6c 20 61 66 74 65 72 20 54 pChannel after T
2190: 63 6c 5f 47 65 74 43 68 61 6e 6e 65 6c 20 61 6e cl_GetChannel an
21a0: 64 0a 09 67 6f 74 20 72 65 74 75 72 6e 20 76 61 d..got return va
21b0: 6c 75 65 20 66 72 6f 6d 20 54 63 6c 5f 53 74 61 lue from Tcl_Sta
21c0: 63 6b 43 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 ckChannel....* t
21d0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
21e0: 20 61 64 64 65 64 20 73 6f 6d 65 20 68 61 6e 64 added some hand
21f0: 73 68 61 6b 69 6e 67 20 74 68 61 74 20 73 68 6f shaking that sho
2200: 75 6c 64 6e 27 74 20 62 65 0a 09 6e 65 63 65 73 uldn't be..neces
2210: 73 61 72 79 2c 20 62 75 74 20 77 65 20 63 72 61 sary, but we cra
2220: 73 68 20 6f 74 68 65 72 77 69 73 65 20 28 6e 65 sh otherwise (ne
2230: 65 64 73 20 6d 6f 72 65 20 74 65 73 74 69 6e 67 eds more testing
2240: 29 2e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 )....* tlsIO.c:
2250: 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f added support fo
2260: 72 20 22 63 6f 72 72 65 63 74 65 64 22 20 73 74 r "corrected" st
2270: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 2e 20 acked channels.
2280: 20 41 6c 6c 0a 09 74 68 65 20 61 62 6f 76 65 20 All..the above
2290: 63 68 61 6e 6e 65 6c 73 20 61 72 65 20 69 6e 20 channels are in
22a0: 54 43 4c 5f 43 48 41 4e 4e 45 4c 5f 56 45 52 53 TCL_CHANNEL_VERS
22b0: 49 4f 4e 5f 32 20 23 69 66 64 65 66 73 2e 0a 0a ION_2 #ifdefs...
22c0: 32 30 30 30 2d 30 36 2d 30 35 20 20 53 63 6f 74 2000-06-05 Scot
22d0: 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e t Stanton <stan
22e0: 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f ton@ajubasolutio
22f0: 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 ns.com>...* Make
2300: 66 69 6c 65 2e 69 6e 3a 20 46 69 78 65 64 20 62 file.in: Fixed b
2310: 72 6f 6b 65 6e 20 74 65 73 74 20 74 61 72 67 65 roken test targe
2320: 74 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a t....* tlsInt.h:
2330: 20 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 6c 65 61 ..* tls.c: Clea
2340: 6e 65 64 20 75 70 20 64 65 63 6c 61 72 61 74 69 ned up declarati
2350: 6f 6e 73 20 6f 66 20 54 6c 73 5f 43 6c 65 61 6e ons of Tls_Clean
2360: 20 74 6f 20 61 76 6f 69 64 20 65 72 72 6f 72 73 to avoid errors
2370: 20 6f 6e 0a 09 57 69 6e 64 6f 77 73 20 28 6c 69 on..Windows (li
2380: 6e 74 29 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 nt)...2000-06-05
2390: 20 20 42 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 Brent Welch <w
23a0: 65 6c 63 68 40 61 6a 75 62 61 73 6f 6c 75 74 69 elch@ajubasoluti
23b0: 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ons.com>...* tls
23c0: 2e 63 2c 20 74 6c 73 49 4f 2e 63 3a 20 20 53 70 .c, tlsIO.c: Sp
23d0: 6c 69 74 20 54 6c 73 5f 46 72 65 65 20 69 6e 74 lit Tls_Free int
23e0: 6f 20 54 6c 73 5f 43 6c 65 61 6e 2c 20 77 68 69 o Tls_Clean, whi
23f0: 63 68 20 64 6f 65 73 0a 09 74 68 65 20 53 53 4c ch does..the SSL
2400: 20 63 6c 65 61 6e 75 70 2c 20 61 6e 64 20 74 68 cleanup, and th
2410: 65 20 54 63 6c 5f 46 72 65 65 20 63 61 6c 6c 2e e Tcl_Free call.
2420: 20 20 49 74 20 69 73 20 69 6d 70 6f 72 74 61 6e It is importan
2430: 74 20 74 6f 20 73 68 75 74 64 6f 77 6e 0a 09 74 t to shutdown..t
2440: 68 65 20 53 53 4c 20 73 74 61 74 65 20 22 73 79 he SSL state "sy
2450: 6e 63 68 72 6f 6e 6f 75 73 6c 79 22 20 64 75 72 nchronously" dur
2460: 69 6e 67 20 61 20 73 74 61 63 6b 65 64 20 66 6c ing a stacked fl
2470: 75 73 68 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 31 ush...2000-06-01
2480: 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 Scott Stanton
2490: 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 <stanton@ajubas
24a0: 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 olutions.com>...
24b0: 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f * tlsIO.c: Resto
24c0: 72 65 64 20 63 61 6c 6c 20 74 6f 20 54 63 6c 5f red call to Tcl_
24d0: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 NotifyChannel fr
24e0: 6f 6d 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 om ChannelHandle
24f0: 72 0a 09 74 6f 20 65 6e 73 75 72 65 20 74 68 61 r..to ensure tha
2500: 74 20 65 76 65 6e 74 73 20 70 72 6f 70 61 67 61 t events propaga
2510: 74 65 20 66 72 6f 6d 20 74 68 65 20 6c 6f 77 65 te from the lowe
2520: 72 20 64 72 69 76 65 72 2e 20 20 54 68 69 73 20 r driver. This
2530: 6d 61 79 0a 09 72 65 73 75 6c 74 20 69 6e 20 61 may..result in a
2540: 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 n infinite loop
2550: 69 6e 20 73 6f 6d 65 20 63 61 73 65 73 2c 20 73 in some cases, s
2560: 6f 20 74 68 69 73 20 69 73 20 6e 6f 74 20 61 20 o this is not a
2570: 74 6f 74 61 6c 0a 09 66 69 78 2e 20 20 54 68 69 total..fix. Thi
2580: 73 20 6d 61 79 20 62 65 20 73 75 66 66 69 63 69 s may be suffici
2590: 65 6e 74 20 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 ent for now, how
25a0: 65 76 65 72 2e 20 5b 42 75 67 3a 20 35 36 32 33 ever. [Bug: 5623
25b0: 5d 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 ]..2000-06-01 S
25c0: 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 cott Stanton <s
25d0: 74 61 6e 74 6f 6e 40 73 63 72 69 70 74 69 63 73 tanton@scriptics
25e0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e .com>...* tlsIO.
25f0: 63 3a 20 52 65 73 74 6f 72 65 20 74 68 65 20 70 c: Restore the p
2600: 72 65 76 69 6f 75 73 20 76 65 72 73 69 6f 6e 2e revious version.
2610: 20 20 46 69 78 65 64 20 74 68 65 20 43 6c 6f 73 Fixed the Clos
2620: 65 50 72 6f 63 20 73 6f 0a 09 69 74 20 75 6e 72 eProc so..it unr
2630: 65 67 69 73 74 65 72 73 20 74 68 65 20 63 68 61 egisters the cha
2640: 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20 6f 6e 20 nnel handler on
2650: 74 68 65 20 73 75 70 65 72 63 65 64 65 64 20 63 the superceded c
2660: 68 61 6e 6e 65 6c 0a 09 69 6e 73 74 65 61 64 20 hannel..instead
2670: 6f 66 20 74 68 65 20 75 70 70 65 72 20 63 68 61 of the upper cha
2680: 6e 6e 65 6c 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 nnel. Also remov
2690: 65 64 20 74 68 65 20 63 61 6c 6c 20 74 6f 0a 09 ed the call to..
26a0: 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 Tcl_NotifyChanne
26b0: 6c 20 69 6e 20 74 68 65 20 43 68 61 6e 6e 65 6c l in the Channel
26c0: 48 61 6e 64 6c 65 72 20 62 65 63 61 75 73 65 20 Handler because
26d0: 74 68 69 73 20 77 69 6c 6c 20 72 65 73 75 6c 74 this will result
26e0: 0a 09 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 ..in an infinite
26f0: 20 6c 6f 6f 70 20 69 66 20 64 61 74 61 20 69 73 loop if data is
2700: 20 65 76 65 72 20 62 75 66 66 65 72 65 64 20 69 ever buffered i
2710: 6e 20 74 68 65 20 42 49 4f 0a 09 73 74 72 75 63 n the BIO..struc
2720: 74 75 72 65 2e 20 5b 42 75 67 3a 20 35 36 32 33 ture. [Bug: 5623
2730: 5d 0a 0a 32 30 30 30 2d 30 35 2d 33 31 20 20 42 ]..2000-05-31 B
2740: 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 rent Welch <welc
2750: 68 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e h@scriptics.com>
2760: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e ...* tls.c: Chan
2770: 67 65 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 ge the ChannelHa
2780: 6e 64 6c 65 72 20 74 6f 20 62 65 20 72 65 67 69 ndler to be regi
2790: 73 74 65 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 stered on the ma
27a0: 69 6e 0a 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f in..channel as o
27b0: 70 70 73 65 64 20 74 6f 20 74 68 65 20 22 70 61 ppsed to the "pa
27c0: 72 65 6e 74 22 2c 20 6f 72 20 73 75 70 65 72 63 rent", or superc
27d0: 65 65 64 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 eeded, channel.
27e0: 20 54 68 69 73 0a 09 69 73 20 62 65 63 61 75 73 This..is becaus
27f0: 65 20 74 68 65 20 73 6f 63 6b 65 74 20 64 72 69 e the socket dri
2800: 76 65 72 20 6e 6f 74 69 66 69 65 73 20 74 68 65 ver notifies the
2810: 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 main channel, a
2820: 6e 64 20 74 68 65 72 65 0a 09 61 72 65 20 74 69 nd there..are ti
2830: 6d 65 73 20 77 69 74 68 20 74 68 65 20 6d 61 69 mes with the mai
2840: 6e 20 63 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 n channel gets c
2850: 6c 6f 73 65 64 2c 20 62 75 74 20 74 68 65 20 73 losed, but the s
2860: 75 70 65 72 63 65 64 65 64 0a 09 6f 6e 65 20 69 uperceded..one i
2870: 73 20 6e 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 s not yet closed
2880: 2e 20 20 49 66 20 74 68 65 20 63 68 61 6e 6e 65 . If the channe
2890: 6c 20 68 61 6e 64 6c 65 72 20 67 65 74 73 20 74 l handler gets t
28a0: 72 69 67 67 65 72 65 64 20 69 6e 0a 09 74 68 69 riggered in..thi
28b0: 73 20 68 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 s half-open stat
28c0: 65 20 69 74 20 69 73 20 61 73 73 6f 63 69 61 74 e it is associat
28d0: 65 64 20 77 69 74 68 20 74 68 65 20 73 75 70 65 ed with the supe
28e0: 72 63 65 65 64 65 64 0a 09 63 68 61 6e 6e 65 64 rceeded..channed
28f0: 6c 2c 20 62 75 74 20 75 73 65 73 20 69 74 73 20 l, but uses its
2900: 70 72 69 76 61 74 65 20 70 6f 69 6e 74 65 72 20 private pointer
2910: 74 6f 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e to the main chan
2920: 6e 65 6c 2c 20 77 68 69 63 68 0a 09 69 73 20 6d nel, which..is m
2930: 6f 73 74 6c 79 20 64 65 73 74 72 6f 79 65 64 2e ostly destroyed.
2940: 20 20 45 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 Eliminated the
2950: 20 72 65 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 redundant call
2960: 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 to..Tcl_NotifyCh
2970: 61 6e 6e 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 annel from TlsWa
2980: 74 63 68 50 72 6f 63 2e 20 5b 42 75 67 3a 20 35 tchProc. [Bug: 5
2990: 36 32 33 5d 0a 623].