Artifact
0e9024f29c1a2e92b1476b1101273ff8b23d7757:
0000: 32 30 30 34 2d 30 32 2d 31 37 20 20 44 61 6e 20 2004-02-17 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 54 4c 53 20 31 2e 35 2e s.ca>...TLS 1.5.
0040: 30 20 52 45 4c 45 41 53 45 0a 0a 32 30 30 34 2d 0 RELEASE..2004-
0050: 30 32 2d 31 32 20 20 44 61 6e 20 52 61 7a 7a 65 02-12 Dan Razze
0060: 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 ll.<research@sta
0070: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e rfishsystems.ca>
0080: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 09 41 6c 6c 6f ...* tls.c:.Allo
0090: 77 20 76 65 72 69 66 79 20 63 61 6c 6c 62 61 63 w verify callbac
00a0: 6b 20 74 6f 20 72 65 74 75 72 6e 20 65 6d 70 74 k to return empt
00b0: 79 20 72 65 73 75 6c 74 2e 0a 09 2a 20 74 6c 73 y result...* tls
00c0: 2e 68 74 6d 3a 09 44 6f 63 75 6d 65 6e 74 20 63 .htm:.Document c
00d0: 61 6c 6c 62 61 63 6b 20 62 65 68 61 76 69 6f 72 allback behavior
00e0: 73 2e 0a 0a 32 30 30 34 2d 30 32 2d 31 31 20 20 s...2004-02-11
00f0: 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 Dan Razzell.<res
0100: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
0110: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 stems.ca>...* te
0120: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a sts/tlsIO.test:.
0130: 09 2a 20 72 65 6d 6f 74 65 2e 74 63 6c 3a 09 43 .* remote.tcl:.C
0140: 6f 6d 70 6c 65 74 65 20 70 72 69 76 61 74 65 20 omplete private
0150: 6b 65 79 20 6e 61 6d 65 20 63 68 61 6e 67 65 73 key name changes
0160: 20 66 72 6f 6d 20 32 30 30 31 2d 30 36 2d 32 31 from 2001-06-21
0170: 2e 0a 0a 32 30 30 34 2d 30 32 2d 30 33 20 20 44 ...2004-02-03 D
0180: 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 an Razzell <rese
0190: 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 arch@starfishsys
01a0: 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 4d 61 6b tems.ca>...* Mak
01b0: 65 66 69 6c 65 2e 69 6e 3a 09 52 65 6d 6f 76 65 efile.in:.Remove
01c0: 64 20 63 69 72 63 75 6c 61 72 20 64 65 70 65 6e d circular depen
01d0: 64 65 6e 63 79 2e 0a 09 2a 20 74 6c 73 49 6e 74 dency...* tlsInt
01e0: 2e 68 3a 09 4d 61 6b 65 20 66 75 6e 63 74 69 6f .h:.Make functio
01f0: 6e 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 65 n declarations e
0200: 78 70 6c 69 63 69 74 2e 0a 09 2a 20 74 6c 73 2e xplicit...* tls.
0210: 63 3a 09 46 69 78 20 74 79 70 65 20 6d 61 74 63 c:.Fix type matc
0220: 68 20 61 6e 64 20 75 6e 75 73 65 64 20 76 61 72 h and unused var
0230: 69 61 62 6c 65 20 77 61 72 6e 69 6e 67 73 2e 0a iable warnings..
0240: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 09 46 69 78 .* tlsBIO.c:.Fix
0250: 20 74 79 70 65 20 6d 61 74 63 68 20 77 61 72 6e type match warn
0260: 69 6e 67 2e 0a 0a 32 30 30 33 2d 31 32 2d 31 35 ing...2003-12-15
0270: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 Dan Razzell.<r
0280: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 esearch@starfish
0290: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 systems.ca>...*
02a0: 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a pkgIndex.tcl.in:
02b0: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 ..* tls.htm:..*
02c0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
02d0: 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 69 6f : updated versio
02e0: 6e 20 74 6f 20 31 2e 35 2e 0a 0a 32 30 30 33 2d n to 1.5...2003-
02f0: 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 10-07 Dan Razze
0300: 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 ll.<research@sta
0310: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e rfishsystems.ca>
0320: 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 ...* tests/ciphe
0330: 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 rs.test: updated
0340: 20 6c 69 73 74 20 6f 66 20 74 65 73 74 65 64 20 list of tested
0350: 63 69 70 68 65 72 73 20 74 6f 20 63 6f 72 72 65 ciphers to corre
0360: 73 70 6f 6e 64 0a 09 2a 20 77 69 74 68 20 74 68 spond..* with th
0370: 6f 73 65 20 61 76 61 69 6c 61 62 6c 65 20 66 72 ose available fr
0380: 6f 6d 20 4f 70 65 6e 53 53 4c 2e 20 5b 52 65 71 om OpenSSL. [Req
0390: 75 65 73 74 20 23 38 31 31 39 38 31 5d 0a 0a 32 uest #811981]..2
03a0: 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 52 003-10-07 Dan R
03b0: 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 azzell <research
03c0: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 @starfishsystems
03d0: 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 .ca>...* tls.c:
03e0: 61 64 64 65 64 20 43 4f 4e 53 54 20 77 69 74 68 added CONST with
03f0: 20 69 6e 74 65 6e 74 20 73 69 6d 69 6c 61 72 20 intent similar
0400: 74 6f 20 74 68 6f 73 65 20 66 72 6f 6d 20 32 30 to those from 20
0410: 30 32 2d 30 32 2d 30 34 2e 0a 09 5b 52 65 71 75 02-02-04...[Requ
0420: 65 73 74 20 23 38 31 31 39 31 31 5d 0a 0a 32 30 est #811911]..20
0430: 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66 20 48 03-07-07 Jeff H
0440: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 obbs <jeffh@Act
0450: 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 iveState.com>...
0460: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 * tls.c (Tls_Ini
0470: 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c 73 3a t): added tls:
0480: 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20 70 72 :misc command pr
0490: 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74 6c 73 ovided by..* tls
04a0: 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20 20 X509.c:
04b0: 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a 61 6e Wojciech Kocjan
04c0: 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63 6a 61 (wojciech kocja
04d0: 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74 73 2f n.org)..* tests/
04e0: 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20 74 6f keytest1.tcl: to
04f0: 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c 6f 77 expose more low
0500: 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d 6d 61 -level SSL comma
0510: 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 nds..* tests/key
0520: 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30 30 33 test2.tcl:..2003
0530: 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61 7a 7a -05-15 Dan Razz
0540: 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 ell.<research@st
0550: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 arfishsystems.ca
0560: 3e 20 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 0a > ...* tls.tcl:.
0570: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 .* tlsInt.h:..*
0580: 74 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 70 6f tls.c: add suppo
0590: 72 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 20 61 rt for binding a
05a0: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 password callba
05b0: 63 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b 65 74 ck to the socket
05c0: 2e 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f 63 6b ...Now each sock
05d0: 65 74 20 63 61 6e 20 68 61 76 65 20 69 74 73 20 et can have its
05e0: 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e 64 20 own command and
05f0: 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 password callbac
0600: 6b 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 20 62 ks instead..of b
0610: 65 69 6e 67 20 66 6f 72 63 65 64 20 74 6f 20 68 eing forced to h
0620: 61 76 65 20 61 6c 6c 20 70 61 73 73 77 6f 72 64 ave all password
0630: 20 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 73 73 management pass
0640: 20 74 68 72 6f 75 67 68 20 61 20 63 6f 6d 6d 6f through a commo
0650: 6e 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 20 54 n..procedure. T
0660: 68 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 77 6f he common passwo
0670: 72 64 20 70 72 6f 63 65 64 75 72 65 20 69 73 20 rd procedure is
0680: 72 65 74 61 69 6e 65 64 20 66 6f 72 20 63 6f 6d retained for com
0690: 70 61 74 69 62 69 6c 69 74 79 0a 09 62 75 74 20 patibility..but
06a0: 69 74 73 20 75 73 65 20 73 68 6f 75 6c 64 20 62 its use should b
06b0: 65 20 44 45 50 52 45 43 41 54 45 44 2e 0a 09 41 e DEPRECATED...A
06c0: 64 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d 6d 61 dd version comma
06d0: 6e 64 20 74 6f 20 72 65 74 75 72 6e 20 4f 70 65 nd to return Ope
06e0: 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 74 72 nSSL version str
06f0: 69 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 6e 73 ing...Remove uns
0700: 74 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 6e 64 table workaround
0710: 73 20 6e 65 65 64 65 64 20 66 6f 72 20 76 65 72 s needed for ver
0720: 69 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 65 20 ify in obsolete
0730: 76 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f 70 65 versions of..Ope
0740: 6e 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f 72 nSSL...Fix memor
0750: 79 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 73 74 y leak. [Request
0760: 20 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 65 20 #640660]..More
0770: 63 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 6e 61 casts to elimina
0780: 74 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 72 6e te compiler warn
0790: 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 ings....* tls.ht
07a0: 6d 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 73 73 m: document pass
07b0: 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e 0a 09 word callback...
07c0: 43 6f 72 72 65 63 74 20 74 65 63 68 6e 69 63 61 Correct technica
07d0: 6c 20 61 6e 64 20 74 79 70 6f 67 72 61 70 68 69 l and typographi
07e0: 63 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 52 45 c errors....* RE
07f0: 41 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e 74 69 ADME.txt: identi
0800: 66 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f fy versions of O
0810: 70 65 6e 53 53 4c 20 77 68 69 63 68 20 66 69 78 penSSL which fix
0820: 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d 73 2e known problems.
0830: 0a 09 47 65 6e 65 72 61 6c 20 77 61 72 6e 69 6e ..General warnin
0840: 67 20 6f 66 20 73 65 63 75 72 69 74 79 20 70 72 g of security pr
0850: 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 72 20 oblems in older
0860: 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e versions of Open
0870: 53 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d 30 34 SSL...2002-02-04
0880: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a Jeff Hobbs <j
0890: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 effh@ActiveState
08a0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68 74 .com>...* tls.ht
08b0: 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 m:..* tls.c: add
08c0: 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6c ed support for l
08d0: 6f 63 61 6c 20 63 65 72 74 69 66 69 63 61 74 65 ocal certificate
08e0: 20 73 74 61 74 75 73 20 63 68 65 63 6b 2c 20 61 status check, a
08f0: 73 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 75 72 s well..as retur
0900: 6e 69 6e 67 20 74 68 65 20 23 20 6f 66 20 62 69 ning the # of bi
0910: 74 73 20 69 6e 20 74 68 65 20 73 65 73 73 69 6f ts in the sessio
0920: 6e 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 23 35 n key. [Patch #5
0930: 30 35 36 39 38 5d 20 28 72 6f 73 65 29 0a 0a 09 05698] (rose)...
0940: 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 * tls.c:..* tlsI
0950: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 O.c:..* tlsBIO.c
0960: 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 73 20 74 : added CONSTs t
0970: 6f 20 73 61 74 69 73 66 79 20 54 63 6c 20 38 2e o satisfy Tcl 8.
0980: 34 20 73 6f 75 72 63 65 73 2e 20 20 54 68 69 73 4 sources. This
0990: 20 6d 61 79 0a 09 67 69 76 65 20 77 61 72 6e 69 may..give warni
09a0: 6e 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 6c 65 ngs when compile
09b0: 64 20 61 67 61 69 6e 73 74 20 38 2e 33 2c 20 62 d against 8.3, b
09c0: 75 74 20 74 68 65 79 20 63 61 6e 20 62 65 20 69 ut they can be i
09d0: 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 73 74 gnored....* test
09e0: 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 s/simpleClient.t
09f0: 63 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d cl:..* tests/sim
0a00: 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 70 pleServer.tcl: p
0a10: 6f 69 6e 74 20 74 6f 20 75 70 64 61 74 65 64 20 oint to updated
0a20: 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 6b 65 client/server ke
0a30: 79 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 65 73 y files....* tes
0a40: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 ts/tlsIO.test:..
0a50: 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e * tests/ciphers.
0a60: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f test: updated to
0a70: 20 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d 20 62 load tls from b
0a80: 75 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 4d 61 uild dir....* Ma
0a90: 6b 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f 76 kefile.in: remov
0aa0: 65 64 20 73 74 72 6e 63 61 73 65 63 6d 70 20 66 ed strncasecmp f
0ab0: 72 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 6a 65 rom default obje
0ac0: 63 74 20 73 65 74 2e 20 20 54 68 69 73 0a 09 69 ct set. This..i
0ad0: 73 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 6f 6e s only needed on
0ae0: 20 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 54 63 the Mac, and Tc
0af0: 6c 20 73 74 75 62 73 20 70 72 6f 76 69 64 65 73 l stubs provides
0b00: 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 it....* configu
0b10: 72 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a 09 2a re: regen'ed...*
0b20: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 configure.in: u
0b30: 70 64 61 74 65 64 20 74 6f 20 31 2e 35 2e 30 20 pdated to 1.5.0
0b40: 66 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 73 65 for next release
0b50: 2e 0a 09 43 68 61 6e 67 65 64 20 64 65 66 61 75 ...Changed defau
0b60: 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 61 74 lt openssl locat
0b70: 69 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f 63 61 ion to /usr/loca
0b80: 6c 2f 73 73 6c 20 28 74 68 69 73 20 69 73 20 77 l/ssl (this is w
0b90: 68 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 30 2e here..openssl 0.
0ba0: 39 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 62 79 9.6c installs by
0bb0: 20 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 61 6e default)...Chan
0bc0: 67 65 64 20 74 6f 20 75 73 65 20 70 75 62 6c 69 ged to use publi
0bd0: 63 20 54 63 6c 20 68 65 61 64 65 72 73 20 28 70 c Tcl headers (p
0be0: 72 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 64 65 rivate not neede
0bf0: 64 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 31 20 d)...2001-06-21
0c00: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 Jeff Hobbs <je
0c10: 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e ffh@ActiveState.
0c20: 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e 31 com>...TLS 1.4.1
0c30: 20 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 6f 6e RELEASE...* con
0c40: 66 69 67 75 72 65 3a 20 61 64 64 65 64 20 63 6f figure: added co
0c50: 6e 66 69 67 75 72 65 20 74 6f 20 43 56 53 0a 09 nfigure to CVS..
0c60: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 * configure.in:
0c70: 6d 6f 76 65 64 20 74 6f 20 70 61 74 63 68 6c 65 moved to patchle
0c80: 76 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d 61 vel 1.4.1...* Ma
0c90: 6b 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 72 65 kefile.in: corre
0ca0: 63 74 65 64 20 27 64 69 73 74 27 20 74 61 72 67 cted 'dist' targ
0cb0: 65 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 et...* tests/cer
0cc0: 74 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a 20 ts/file.srl:..*
0cd0: 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 2e 70 tests/certs/ca.p
0ce0: 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 em:..* tests/cer
0cf0: 74 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a 09 ts/client.key:..
0d00: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c * tests/certs/cl
0d10: 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 ient.pem:..* tes
0d20: 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e ts/certs/client.
0d30: 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 req:..* tests/ce
0d40: 72 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 6d 3a rts/privkey.pem:
0d50: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
0d60: 73 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a 20 74 server.key:..* t
0d70: 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 ests/certs/serve
0d80: 72 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f r.pem:..* tests/
0d90: 63 65 72 74 73 2f 73 65 72 76 65 72 2e 72 65 71 certs/server.req
0da0: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 :..* tests/certs
0db0: 2f 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 65 70 /cacert.pem: rep
0dc0: 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 61 2e laced by new ca.
0dd0: 70 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 pem..* tests/cer
0de0: 74 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 65 70 ts/skey.pem: rep
0df0: 6c 61 63 65 64 20 62 79 20 6e 65 77 20 73 65 72 laced by new ser
0e00: 76 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 ver.key..* tests
0e10: 2f 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 6d 3a /certs/ckey.pem:
0e20: 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77 replaced by new
0e30: 20 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a 20 74 client.key..* t
0e40: 65 73 74 73 2f 63 65 72 74 73 2f 52 45 41 44 4d ests/certs/READM
0e50: 45 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 20 6f E.txt: new set o
0e60: 66 20 74 65 73 74 20 63 65 72 74 69 66 69 63 61 f test certifica
0e70: 74 65 73 20 77 69 74 68 20 73 6f 6d 65 0a 09 52 tes with some..R
0e80: 45 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 74 68 EADME info on th
0e90: 65 69 72 20 67 65 6e 65 72 61 74 69 6f 6e 2e 0a eir generation..
0ea0: 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 ..* tests/cipher
0eb0: 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 s.test: updated
0ec0: 63 69 70 68 65 72 73 20 65 78 70 65 63 74 65 64 ciphers expected
0ed0: 20 77 69 74 68 20 64 65 66 61 75 6c 74 0a 09 6f with default..o
0ee0: 70 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a 0a 09 penssl build....
0ef0: 2a 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e 74 65 * tests/tclIO.te
0f00: 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20 75 st: updated to u
0f10: 73 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 6f 72 se new names for
0f20: 20 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a 32 30 certs/keys...20
0f30: 30 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 20 48 01-03-14 Jeff H
0f40: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 67 69 6d obbs <jeffh@gim
0f50: 6c 65 74 2e 61 63 74 69 76 65 73 74 61 74 65 2e let.activestate.
0f60: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 com>...* tls.c (
0f70: 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 20 64 Tls_Init): add d
0f80: 6f 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 6e 64 o/while for rand
0f90: 6f 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 69 61 om number initia
0fa0: 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 6f 72 lization..to wor
0fb0: 6b 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 4f 53 k around some OS
0fc0: 65 73 20 71 75 69 72 6b 73 2e 20 20 28 52 61 6c es quirks. (Ral
0fd0: 70 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 65 63 ph.Billes@teltec
0fe0: 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 30 2d h.com.au)..2000-
0ff0: 30 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62 09-07 Jeff Hobb
1000: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
1010: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
1020: 49 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e 6e 65 IO.c (Tls_Channe
1030: 6c 54 79 70 65 29 3a 20 73 65 74 20 74 79 70 65 lType): set type
1040: 4e 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 63 68 Name field of ch
1050: 61 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a 09 22 annel type to.."
1060: 74 6c 73 22 20 28 74 68 69 73 20 67 6f 74 20 6c tls" (this got l
1070: 6f 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f 20 64 ost in move to d
1080: 79 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e 20 63 ynamic version c
1090: 6f 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 63 68 ompatability..ch
10a0: 65 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 2d 30 ecking)...2000-0
10b0: 38 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62 73 8-23 Jeff Hobbs
10c0: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
10d0: 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e cs.com>...TLS 1.
10e0: 34 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 20 4d 4 RELEASED...* M
10f0: 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 73 74 akefile.in (dist
1100: 29 3a 20 63 72 65 61 74 65 20 64 69 73 74 20 74 ): create dist t
1110: 61 72 67 65 74 20 66 6f 72 20 61 72 63 68 69 76 arget for archiv
1120: 65 20 64 69 73 74 72 69 62 75 74 69 6f 6e 73 0a e distributions.
1130: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
1140: 74 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e 31 29 test (tlsIO-8.1)
1150: 3a 20 61 64 64 65 64 20 61 20 64 65 6c 61 79 20 : added a delay
1160: 6f 6e 20 74 68 65 20 61 63 63 65 70 74 20 63 6c on the accept cl
1170: 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 68 65 ose..to make the
1180: 20 74 65 73 74 20 77 6f 72 6b 20 77 69 74 68 20 test work with
1190: 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e 64 6f OpenSSL on Windo
11a0: 77 73 20 28 64 6f 65 73 6e 27 74 20 61 66 66 65 ws (doesn't affe
11b0: 63 74 0a 09 6f 74 68 65 72 20 62 75 69 6c 64 73 ct..other builds
11c0: 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 )....* tls.htm:
11d0: 75 70 64 61 74 65 64 20 77 69 74 68 20 6e 6f 74 updated with not
11e0: 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 30 30 es for 1.4...200
11f0: 30 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 48 6f 0-08-21 Jeff Ho
1200: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1210: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
1220: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
1230: 20 72 65 71 75 69 72 65 20 61 74 20 6c 65 61 73 require at leas
1240: 74 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 73 74 t tls1.4 in test
1250: 20 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d 30 38 suite...2000-08
1260: 2d 31 38 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -18 Jeff Hobbs
1270: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
1280: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 s.com>...* tls.c
1290: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 (Tls_Init): add
12a0: 65 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e 44 5f ed call to RAND_
12b0: 73 65 65 64 20 74 6f 20 73 65 65 64 20 74 68 65 seed to seed the
12c0: 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75 6d SSL random..num
12d0: 62 65 72 20 67 65 6e 65 72 61 74 6f 72 2e 20 20 ber generator.
12e0: 57 69 74 68 6f 75 74 20 74 68 69 73 2c 20 4f 70 Without this, Op
12f0: 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 6f 6b enSSL 0.9.5 chok
1300: 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 0a 09 es, and in any..
1310: 63 61 73 65 20 69 74 20 69 73 20 61 20 62 69 67 case it is a big
1320: 20 73 65 63 75 72 69 74 79 20 68 6f 6c 65 20 74 security hole t
1330: 6f 20 64 6f 20 77 69 74 68 6f 75 74 20 69 74 2e o do without it.
1340: 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 ...* configure.i
1350: 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 64 64 n (OPENSSL): add
1360: 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 20 4e ed NO_IDEA and N
1370: 4f 5f 52 43 35 20 64 65 66 69 6e 65 73 20 62 79 O_RC5 defines by
1380: 0a 09 64 65 66 61 75 6c 74 20 77 68 65 6e 20 63 ..default when c
1390: 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 4f 70 ompiling with Op
13a0: 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49 6e enSSL....* tlsIn
13b0: 74 2e 68 3a 20 61 64 64 65 64 20 65 72 72 2e 68 t.h: added err.h
13c0: 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 6c 73 include...* tls
13d0: 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e BIO.c:..* tlsIO.
13e0: 63 3a 20 63 6f 72 72 65 63 74 65 64 20 70 65 64 c: corrected ped
13f0: 61 6e 74 69 63 20 63 61 73 74 20 65 72 72 6f 72 antic cast error
1400: 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 20 20 s...2000-08-16
1410: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
1420: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
1430: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 >...* tests/ciph
1440: 65 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 6f 76 ers.test: improv
1450: 65 64 20 61 62 69 6c 69 74 79 20 74 6f 20 63 68 ed ability to ch
1460: 61 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e 74 0a ange constraint.
1470: 09 73 65 74 74 69 6e 67 20 66 6f 72 20 77 68 65 .setting for whe
1480: 74 68 65 72 20 75 73 65 72 20 63 6f 6d 70 69 6c ther user compil
1490: 65 64 20 61 67 61 69 6e 73 74 20 52 53 41 20 6f ed against RSA o
14a0: 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 2e 0a r OpenSSL libs..
14b0: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 ..* tls.c (Tls_I
14c0: 6e 69 74 29 3a 20 63 6f 72 72 65 63 74 65 64 20 nit): corrected
14d0: 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e 20 6f interpretation o
14e0: 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 f version number
14f0: 0a 09 28 70 61 74 63 68 6c 65 76 65 6c 20 61 6e ..(patchlevel an
1500: 64 20 72 65 6c 65 61 73 65 2f 73 65 72 69 61 6c d release/serial
1510: 20 77 65 72 65 20 73 77 61 70 70 65 64 29 2e 0a were swapped)..
1520: 0a 32 30 30 30 2d 30 38 2d 31 35 20 20 4a 65 66 .2000-08-15 Jef
1530: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 f Hobbs <hobbs@
1540: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a scriptics.com>..
1550: 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 61 .* README.txt: a
1560: 64 64 65 64 20 6e 6f 74 65 73 20 61 62 6f 75 74 dded notes about
1570: 20 6e 65 65 64 20 74 6f 20 75 73 65 20 38 2e 32 need to use 8.2
1580: 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e .0+....* tlsInt.
1590: 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 h:..* tls.c:..*
15a0: 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 tlsIO.c: correct
15b0: 65 64 20 73 74 72 75 63 74 75 72 65 20 69 6e 69 ed structure ini
15c0: 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f 20 77 tialization to w
15d0: 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 69 6c ork when..compil
15e0: 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 20 4e ing with 8.2. N
15f0: 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 74 68 ow compiles with
1600: 20 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 65 64 8.2+ and tested
1610: 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 20 38 to work..with 8
1620: 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 63 61 .2+ and dynamica
1630: 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 74 68 lly adjust to th
1640: 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 63 6c e version of Tcl
1650: 20 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 64 20 it was..loaded
1660: 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c 6c 20 into. TLS will
1670: 66 61 69 6c 20 74 68 65 20 74 65 73 74 20 73 75 fail the test su
1680: 69 74 65 20 77 69 74 68 20 54 63 6c 20 38 2e 32 ite with Tcl 8.2
1690: 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 73 74 -8.3.1....* test
16a0: 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 65 64 s/all.tcl: added
16b0: 20 63 61 74 63 68 20 61 72 6f 75 6e 64 20 3a 3a catch around ::
16c0: 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c 69 tcltest::normali
16d0: 7a 65 50 61 74 68 0a 09 62 65 63 61 75 73 65 20 zePath..because
16e0: 69 74 20 64 6f 65 73 6e 27 74 20 65 78 69 73 74 it doesn't exist
16f0: 20 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 6c 74 in pre-8.3 tclt
1700: 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 est....* tests/s
1710: 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a impleClient.tcl:
1720: 20 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c ..* tests/simpl
1730: 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 61 64 64 eServer.tcl: add
1740: 65 64 20 73 69 6d 70 6c 65 20 63 6c 69 65 6e 74 ed simple client
1750: 2f 73 65 72 76 65 72 20 74 65 73 74 20 73 63 72 /server test scr
1760: 69 70 74 73 0a 09 74 68 61 74 20 75 73 65 20 74 ipts..that use t
1770: 65 73 74 20 63 65 72 74 73 20 61 6e 64 20 63 61 est certs and ca
1780: 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73 74 72 65 n do simple stre
1790: 73 73 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d ss tests...2000-
17a0: 30 38 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 08-14 Jeff Hobb
17b0: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
17c0: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
17d0: 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e Int.h:..* tlsIO.
17e0: 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a c:..* tlsBIO.c:.
17f0: 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61 6e 67 65 .* tls.c: change
1800: 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79 d around to only
1810: 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 38 2e working with 8.
1820: 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 72 2.0+ (8.3.2+..pr
1830: 65 66 65 72 72 65 64 29 2c 20 77 69 74 68 20 72 eferred), with r
1840: 75 6e 74 69 6d 65 20 63 68 65 63 6b 73 20 66 6f untime checks fo
1850: 72 20 70 72 65 2d 20 61 6e 64 20 70 6f 73 74 2d r pre- and post-
1860: 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a 09 2a 20 io-rewrite....*
1870: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 tls.c (Tls_Init)
1880: 3a 20 63 68 61 6e 67 65 64 20 69 74 20 74 6f 20 : changed it to
1890: 72 65 71 75 69 72 65 20 38 2e 33 2e 32 20 77 68 require 8.3.2 wh
18a0: 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74 75 62 73 en Tcl_InitStubs
18b0: 0a 09 77 61 73 20 63 61 6c 6c 65 64 20 62 65 63 ..was called bec
18c0: 61 75 73 65 20 77 65 20 64 6f 6e 27 74 20 77 61 ause we don't wa
18d0: 6e 74 20 70 65 6f 70 6c 65 20 75 73 69 6e 67 20 nt people using
18e0: 54 4c 53 20 77 69 74 68 20 74 68 65 0a 09 6f 72 TLS with the..or
18f0: 69 67 69 6e 61 6c 20 73 74 61 63 6b 65 64 20 63 iginal stacked c
1900: 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 hannel implement
1910: 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d ation...2000-07-
1920: 32 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 26 Jeff Hobbs
1930: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
1940: 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 64 .com>...* merged
1950: 20 61 6c 6c 20 63 68 61 6e 67 65 73 20 66 72 6f all changes fro
1960: 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 77 m tls-1-3-io-rew
1970: 72 69 74 65 20 62 61 63 6b 20 69 6e 74 6f 20 6d rite back into m
1980: 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09 2a 20 74 ain branch...* t
1990: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
19a0: 20 75 70 64 61 74 65 64 20 63 6f 6d 6d 65 6e 74 updated comment
19b0: 73 2c 20 66 69 78 65 64 20 61 20 70 63 43 72 61 s, fixed a pcCra
19c0: 73 68 20 63 61 73 65 20 74 68 61 74 0a 09 77 61 sh case that..wa
19d0: 73 20 64 75 65 20 74 6f 20 64 65 62 75 67 20 61 s due to debug a
19e0: 73 73 65 72 74 69 6f 6e 20 69 6e 20 57 69 6e 64 ssertion in Wind
19f0: 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 ows SSL....* tls
1a00: 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 .c (ImportObjCmd
1a10: 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e 6e 65 63 ): removed unnec
1a20: 65 73 73 61 72 79 20 75 73 65 20 6f 66 20 27 62 essary use of 'b
1a30: 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c 73 5f 49 io' arg...(Tls_I
1a40: 6e 69 74 29 3a 20 63 68 65 63 6b 20 72 65 74 75 nit): check retu
1a50: 72 6e 20 76 61 6c 75 65 20 6f 66 20 53 53 4c 5f rn value of SSL_
1a60: 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e 20 20 41 library_init. A
1a70: 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 68 69 lso lots of..whi
1a80: 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 20 tespace cleanup
1a90: 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63 6c 20 45 (more like Tcl E
1aa0: 6e 67 20 73 74 79 6c 65 20 67 75 69 64 65 29 2c ng style guide),
1ab0: 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f but not all..co
1ac0: 64 65 20 77 61 73 20 63 6c 65 61 6e 65 64 20 75 de was cleaned u
1ad0: 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a p....* tlsBIO.c:
1ae0: 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61 63 minor whitespac
1af0: 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 6c e cleanup...* tl
1b00: 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 sIO.c: minor whi
1b10: 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 2e tespace cleanup.
1b20: 0a 09 28 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c ..(TlsInputProc,
1b30: 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 29 3a TlsOutputProc):
1b40: 20 41 64 64 65 64 20 45 52 52 5f 63 6c 65 61 72 Added ERR_clear
1b50: 5f 65 72 72 6f 72 20 62 65 66 6f 72 65 20 63 61 _error before ca
1b60: 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72 65 61 64 lls..to BIO_read
1b70: 20 6f 72 20 42 49 4f 5f 77 72 69 74 65 2c 20 62 or BIO_write, b
1b80: 65 63 61 75 73 65 20 77 65 20 63 6f 75 6c 64 20 ecause we could
1b90: 6f 74 68 65 72 77 69 73 65 20 65 6e 64 20 75 70 otherwise end up
1ba0: 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20 65 72 72 ..pulling an err
1bb0: 6f 72 20 6f 66 66 20 74 68 65 20 73 74 61 63 6b or off the stack
1bc0: 20 74 68 61 74 20 64 69 64 6e 27 74 20 62 65 6c that didn't bel
1bd0: 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41 6c 73 6f ong to us. Also
1be0: 0a 09 63 6c 65 61 6e 75 70 20 75 70 20 65 78 63 ..cleanup up exc
1bf0: 65 73 73 69 76 65 20 75 73 65 20 6f 66 20 67 6f essive use of go
1c00: 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 30 tos...2000-07-20
1c10: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
1c20: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
1c30: 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c om>...* tests/tl
1c40: 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72 72 65 63 sIO.test: correc
1c50: 74 65 64 20 76 61 72 69 6f 75 73 20 74 65 73 74 ted various test
1c60: 73 20 74 6f 20 62 65 20 63 6f 72 72 65 63 74 20 s to be correct
1c70: 66 6f 72 20 54 4c 53 0a 09 73 74 61 63 6b 65 64 for TLS..stacked
1c80: 20 63 68 61 6e 6e 65 6c 73 20 28 61 73 20 6f 70 channels (as op
1c90: 70 6f 73 65 64 20 74 6f 20 74 68 65 20 73 74 61 posed to the sta
1ca0: 6e 64 61 72 64 20 73 6f 63 6b 65 74 73 20 74 68 ndard sockets th
1cb0: 65 20 74 65 73 74 0a 09 73 75 69 74 65 20 77 61 e test..suite wa
1cc0: 73 20 61 64 6f 70 74 65 64 20 66 72 6f 6d 29 2e s adopted from).
1cd0: 20 20 4b 65 79 20 64 69 66 66 65 72 65 6e 63 65 Key difference
1ce0: 73 20 61 72 65 20 74 68 61 74 20 54 4c 53 20 63 s are that TLS c
1cf0: 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74 65 20 69 annot..operate i
1d00: 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73 20 77 69 n one process wi
1d10: 74 68 6f 75 74 20 61 6c 6c 20 63 68 61 6e 6e 65 thout all channe
1d20: 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f ls being non-blo
1d30: 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68 65 20 68 cking, or..the h
1d40: 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c 20 62 6c andshake will bl
1d50: 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64 73 68 61 ock, and handsha
1d60: 6b 69 6e 67 20 6d 75 73 74 20 62 65 20 66 6f 72 king must be for
1d70: 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09 63 61 73 ced in some..cas
1d80: 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61 6e 64 73 es. Also, hands
1d90: 68 61 6b 65 73 20 64 6f 6e 27 74 20 73 65 65 6d hakes don't seem
1da0: 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20 75 6e 6c to complete unl
1db0: 65 73 73 20 74 68 65 20 63 6c 69 65 6e 74 0a 09 ess the client..
1dc0: 68 61 73 20 70 6c 61 63 65 64 20 61 74 20 6c 65 has placed at le
1dd0: 61 73 74 20 6f 6e 65 20 62 79 74 65 20 66 6f 72 ast one byte for
1de0: 20 74 68 65 20 73 65 72 76 65 72 20 74 6f 20 72 the server to r
1df0: 65 61 64 20 69 6e 20 74 68 65 20 63 68 61 6e 6e ead in the chann
1e00: 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 72 65 el....* tests/re
1e10: 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72 72 65 63 mote.tcl: correc
1e20: 74 65 64 20 74 68 65 20 66 69 6e 64 69 6e 67 20 ted the finding
1e30: 6f 66 20 74 65 73 74 73 20 63 65 72 74 69 66 69 of tests certifi
1e40: 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e cates...* tlsIO.
1e50: 63 20 28 54 6c 73 43 6c 6f 73 65 50 72 6f 63 29 c (TlsCloseProc)
1e60: 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c 65 74 69 : removed deleti
1e70: 6e 67 20 6f 66 20 74 69 6d 65 72 20 68 61 6e 64 ng of timer hand
1e80: 6c 65 72 20 61 73 0a 09 74 68 61 74 20 69 73 20 ler as..that is
1e90: 68 61 6e 64 6c 65 64 20 62 79 20 54 6c 73 5f 43 handled by Tls_C
1ea0: 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 lean....* tls.tc
1eb0: 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65 70 74 29 l (tls::_accept)
1ec0: 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 65 20 : corrected the
1ed0: 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63 65 70 74 internal _accept
1ee0: 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20 63 61 6c to..trickle cal
1ef0: 6c 62 61 63 6b 20 65 72 72 6f 72 73 20 74 6f 20 lback errors to
1f00: 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a 20 4d 61 the user....* Ma
1f10: 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 20 kefile.in: made
1f20: 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 the install-bina
1f30: 72 69 65 73 20 74 61 72 67 65 74 20 72 65 67 65 ries target rege
1f40: 6e 65 72 61 74 65 20 74 68 65 0a 09 70 6b 67 49 nerate the..pkgI
1f50: 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72 65 63 74 ndex.tcl correct
1f60: 6c 79 2e 20 20 54 68 65 20 74 65 73 74 20 74 61 ly. The test ta
1f70: 72 67 65 74 20 70 72 6f 62 61 62 6c 79 20 73 68 rget probably sh
1f80: 6f 75 6c 64 6e 27 74 20 73 63 72 65 77 0a 09 69 ouldn't screw..i
1f90: 74 20 75 70 2c 20 62 75 74 20 74 68 69 73 20 69 t up, but this i
1fa0: 73 20 74 6f 20 62 65 20 6f 6e 20 74 68 65 20 73 s to be on the s
1fb0: 61 66 65 20 73 69 64 65 2e 0a 0a 32 30 30 30 2d afe side...2000-
1fc0: 30 37 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 62 07-17 Jeff Hobb
1fd0: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
1fe0: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 ics.com>...* pkg
1ff0: 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a Index.tcl.in:..*
2000: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 configure.in: u
2010: 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 pdated version t
2020: 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30 37 2d 31 o 1.4..2000-07-1
2030: 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 3 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 65 73 74 73 2f 74 com>...* tests/t
2060: 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e 61 62 6c lsIO.test: enabl
2070: 65 64 20 74 65 73 74 73 20 32 2e 31 30 2c 20 37 ed tests 2.10, 7
2080: 2e 5b 31 32 34 35 5d 20 28 74 68 65 72 65 20 69 .[1245] (there i
2090: 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69 63 68 20 s no 3),..which
20a0: 6e 6f 77 20 70 61 73 73 2e 20 20 41 64 64 65 64 now pass. Added
20b0: 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 74 some comments t
20c0: 6f 20 6f 74 68 65 72 20 66 61 69 6c 69 6e 67 20 o other failing
20d0: 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 37 2d tests...2000-07-
20e0: 31 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 11 Jeff Hobbs
20f0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
2100: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e .com>...* tlsIO.
2110: 63 3a 20 63 68 61 6e 67 65 64 20 61 6c 6c 20 74 c: changed all t
2120: 68 65 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 he channel procs
2130: 20 74 6f 20 73 74 61 72 74 20 77 69 74 68 20 54 to start with T
2140: 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74 65 72 20 ls* for..better
2150: 70 61 72 69 74 79 20 77 68 65 6e 20 63 6f 6d 70 parity when comp
2160: 61 72 69 6e 67 20 77 69 74 68 20 54 72 61 6e 73 aring with Trans
2170: 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20 70 72 6f form channel pro
2180: 63 73 2e 0a 09 52 65 77 72 6f 74 65 20 54 6c 73 cs...Rewrote Tls
2190: 57 61 74 63 68 50 72 6f 63 2c 20 61 64 64 65 64 WatchProc, added
21a0: 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f 63 20 61 TlsNotifyProc a
21b0: 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 ccording to the
21c0: 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20 64 65 73 new..channel des
21d0: 69 67 6e 2c 20 77 68 69 63 68 20 61 6c 73 6f 20 ign, which also
21e0: 6c 65 61 76 65 73 20 54 6c 73 43 68 61 6e 6e 65 leaves TlsChanne
21f0: 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73 65 64 2e lHandler unused.
2200: 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 ...* tlsBIO.c (B
2210: 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e 67 65 64 ioCtrl): changed
2220: 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 20 BIO_CTRL_FLUSH
2230: 63 61 73 65 20 74 6f 20 75 73 65 0a 09 54 63 6c case to use..Tcl
2240: 5f 57 72 69 74 65 52 61 77 20 69 6e 73 74 65 61 _WriteRaw instea
2250: 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73 68 20 28 d of Tcl_Flush (
2260: 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e 20 63 6f to operate on co
2270: 72 72 65 63 74 20 63 68 61 6e 6e 65 6c 0a 09 69 rrect channel..i
2280: 6e 20 74 68 65 20 73 74 61 63 6b 20 69 6e 73 74 n the stack inst
2290: 65 61 64 20 6f 66 20 73 74 61 72 74 69 6e 67 20 ead of starting
22a0: 61 74 20 74 68 65 20 74 6f 70 20 61 67 61 69 6e at the top again
22b0: 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74 68 65 72 ). Would..other
22c0: 77 69 73 65 20 63 61 75 73 65 20 61 20 72 65 63 wise cause a rec
22d0: 75 72 73 69 76 65 20 73 74 61 63 6b 20 62 6f 6d ursive stack bom
22e0: 62 20 77 68 65 6e 20 69 6d 70 6c 69 63 69 74 20 b when implicit
22f0: 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09 74 6f 6f handshaking..too
2300: 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a 20 74 65 k effect....* te
2310: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 sts/tlsIO.test:
2320: 72 65 6d 6f 76 65 64 20 63 68 61 6e 67 65 73 20 removed changes
2330: 6d 61 64 65 20 74 6f 20 74 65 73 74 20 73 75 69 made to test sui
2340: 74 65 20 28 61 6c 6c 20 74 65 73 74 73 0a 09 74 te (all tests..t
2350: 68 61 74 20 72 61 6e 20 62 65 66 6f 72 65 20 6e hat ran before n
2360: 6f 77 20 70 61 73 73 20 63 6f 72 72 65 63 74 6c ow pass correctl
2370: 79 29 2c 20 61 6e 64 20 63 68 61 6e 67 65 64 20 y), and changed
2380: 73 6f 6d 65 20 61 63 63 65 70 74 20 70 72 6f 63 some accept proc
2390: 0a 09 61 72 67 73 20 74 6f 20 72 65 66 6c 65 63 ..args to reflec
23a0: 74 20 74 68 61 74 20 61 20 73 6f 63 6b 20 69 73 t that a sock is
23b0: 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20 61 20 66 an arg, not a f
23c0: 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 30 ile...2000-07-10
23d0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
23e0: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
23f0: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 om>...* tlsBIO.c
2400: 20 28 42 69 6f 57 72 69 74 65 2c 20 42 69 6f 52 (BioWrite, BioR
2410: 65 61 64 29 3a 20 63 68 61 6e 67 65 64 20 54 63 ead): changed Tc
2420: 6c 5f 52 65 61 64 2f 57 72 69 74 65 20 74 6f 0a l_Read/Write to.
2430: 09 54 63 6c 5f 52 65 61 64 52 61 77 2f 54 63 6c .Tcl_ReadRaw/Tcl
2440: 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a 20 74 6c WriteRaw....* tl
2450: 73 2e 63 3a 20 61 64 64 65 64 20 75 73 65 20 6f s.c: added use o
2460: 66 20 54 63 6c 5f 47 65 74 54 6f 70 43 68 61 6e f Tcl_GetTopChan
2470: 6e 65 6c 20 61 66 74 65 72 20 54 63 6c 5f 47 65 nel after Tcl_Ge
2480: 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f tChannel and..go
2490: 74 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 66 t return value f
24a0: 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b 43 68 61 rom Tcl_StackCha
24b0: 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f nnel....* tests/
24c0: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61 64 64 65 tlsIO.test: adde
24d0: 64 20 73 6f 6d 65 20 68 61 6e 64 73 68 61 6b 69 d some handshaki
24e0: 6e 67 20 74 68 61 74 20 73 68 6f 75 6c 64 6e 27 ng that shouldn'
24f0: 74 20 62 65 0a 09 6e 65 63 65 73 73 61 72 79 2c t be..necessary,
2500: 20 62 75 74 20 77 65 20 63 72 61 73 68 20 6f 74 but we crash ot
2510: 68 65 72 77 69 73 65 20 28 6e 65 65 64 73 20 6d herwise (needs m
2520: 6f 72 65 20 74 65 73 74 69 6e 67 29 2e 0a 0a 09 ore testing)....
2530: 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64 64 65 64 * tlsIO.c: added
2540: 20 73 75 70 70 6f 72 74 20 66 6f 72 20 22 63 6f support for "co
2550: 72 72 65 63 74 65 64 22 20 73 74 61 63 6b 65 64 rrected" stacked
2560: 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a channels. All.
2570: 09 74 68 65 20 61 62 6f 76 65 20 63 68 61 6e 6e .the above chann
2580: 65 6c 73 20 61 72 65 20 69 6e 20 54 43 4c 5f 43 els are in TCL_C
2590: 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f 32 HANNEL_VERSION_2
25a0: 20 23 69 66 64 65 66 73 2e 0a 0a 32 30 30 30 2d #ifdefs...2000-
25b0: 30 36 2d 30 35 20 20 53 63 6f 74 74 20 53 74 61 06-05 Scott Sta
25c0: 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 nton <stanton@a
25d0: 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f jubasolutions.co
25e0: 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e m>...* Makefile.
25f0: 69 6e 3a 20 46 69 78 65 64 20 62 72 6f 6b 65 6e in: Fixed broken
2600: 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 0a 09 test target....
2610: 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 0a 09 2a 20 * tlsInt.h: ..*
2620: 74 6c 73 2e 63 3a 20 43 6c 65 61 6e 65 64 20 75 tls.c: Cleaned u
2630: 70 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 6f p declarations o
2640: 66 20 54 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 61 f Tls_Clean to a
2650: 76 6f 69 64 20 65 72 72 6f 72 73 20 6f 6e 0a 09 void errors on..
2660: 57 69 6e 64 6f 77 73 20 28 6c 69 6e 74 29 2e 0a Windows (lint)..
2670: 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 42 72 65 .2000-06-05 Bre
2680: 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 nt Welch <welch@
2690: 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 ajubasolutions.c
26a0: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 om>...* tls.c, t
26b0: 6c 73 49 4f 2e 63 3a 20 20 53 70 6c 69 74 20 54 lsIO.c: Split T
26c0: 6c 73 5f 46 72 65 65 20 69 6e 74 6f 20 54 6c 73 ls_Free into Tls
26d0: 5f 43 6c 65 61 6e 2c 20 77 68 69 63 68 20 64 6f _Clean, which do
26e0: 65 73 0a 09 74 68 65 20 53 53 4c 20 63 6c 65 61 es..the SSL clea
26f0: 6e 75 70 2c 20 61 6e 64 20 74 68 65 20 54 63 6c nup, and the Tcl
2700: 5f 46 72 65 65 20 63 61 6c 6c 2e 20 20 49 74 20 _Free call. It
2710: 69 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 is important to
2720: 73 68 75 74 64 6f 77 6e 0a 09 74 68 65 20 53 53 shutdown..the SS
2730: 4c 20 73 74 61 74 65 20 22 73 79 6e 63 68 72 6f L state "synchro
2740: 6e 6f 75 73 6c 79 22 20 64 75 72 69 6e 67 20 61 nously" during a
2750: 20 73 74 61 63 6b 65 64 20 66 6c 75 73 68 2e 0a stacked flush..
2760: 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f .2000-06-01 Sco
2770: 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 tt Stanton <sta
2780: 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 nton@ajubasoluti
2790: 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ons.com>...* tls
27a0: 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 64 20 63 IO.c: Restored c
27b0: 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 all to Tcl_Notif
27c0: 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 yChannel from Ch
27d0: 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 74 6f annelHandler..to
27e0: 20 65 6e 73 75 72 65 20 74 68 61 74 20 65 76 65 ensure that eve
27f0: 6e 74 73 20 70 72 6f 70 61 67 61 74 65 20 66 72 nts propagate fr
2800: 6f 6d 20 74 68 65 20 6c 6f 77 65 72 20 64 72 69 om the lower dri
2810: 76 65 72 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 ver. This may..
2820: 72 65 73 75 6c 74 20 69 6e 20 61 6e 20 69 6e 66 result in an inf
2830: 69 6e 69 74 65 20 6c 6f 6f 70 20 69 6e 20 73 6f inite loop in so
2840: 6d 65 20 63 61 73 65 73 2c 20 73 6f 20 74 68 69 me cases, so thi
2850: 73 20 69 73 20 6e 6f 74 20 61 20 74 6f 74 61 6c s is not a total
2860: 0a 09 66 69 78 2e 20 20 54 68 69 73 20 6d 61 79 ..fix. This may
2870: 20 62 65 20 73 75 66 66 69 63 69 65 6e 74 20 66 be sufficient f
2880: 6f 72 20 6e 6f 77 2c 20 68 6f 77 65 76 65 72 2e or now, however.
2890: 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 [Bug: 5623]..20
28a0: 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 00-06-01 Scott
28b0: 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f Stanton <stanto
28c0: 6e 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e n@scriptics.com>
28d0: 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 ...* tlsIO.c: Re
28e0: 73 74 6f 72 65 20 74 68 65 20 70 72 65 76 69 6f store the previo
28f0: 75 73 20 76 65 72 73 69 6f 6e 2e 20 20 46 69 78 us version. Fix
2900: 65 64 20 74 68 65 20 43 6c 6f 73 65 50 72 6f 63 ed the CloseProc
2910: 20 73 6f 0a 09 69 74 20 75 6e 72 65 67 69 73 74 so..it unregist
2920: 65 72 73 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 ers the channel
2930: 68 61 6e 64 6c 65 72 20 6f 6e 20 74 68 65 20 73 handler on the s
2940: 75 70 65 72 63 65 64 65 64 20 63 68 61 6e 6e 65 uperceded channe
2950: 6c 0a 09 69 6e 73 74 65 61 64 20 6f 66 20 74 68 l..instead of th
2960: 65 20 75 70 70 65 72 20 63 68 61 6e 6e 65 6c 2e e upper channel.
2970: 20 41 6c 73 6f 20 72 65 6d 6f 76 65 64 20 74 68 Also removed th
2980: 65 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e e call to..Tcl_N
2990: 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 69 6e 20 otifyChannel in
29a0: 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c the ChannelHandl
29b0: 65 72 20 62 65 63 61 75 73 65 20 74 68 69 73 20 er because this
29c0: 77 69 6c 6c 20 72 65 73 75 6c 74 0a 09 69 6e 20 will result..in
29d0: 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 an infinite loop
29e0: 20 69 66 20 64 61 74 61 20 69 73 20 65 76 65 72 if data is ever
29f0: 20 62 75 66 66 65 72 65 64 20 69 6e 20 74 68 65 buffered in the
2a00: 20 42 49 4f 0a 09 73 74 72 75 63 74 75 72 65 2e BIO..structure.
2a10: 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 [Bug: 5623]..20
2a20: 30 30 2d 30 35 2d 33 31 20 20 42 72 65 6e 74 20 00-05-31 Brent
2a30: 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 73 63 72 Welch <welch@scr
2a40: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
2a50: 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20 74 68 tls.c: Change th
2a60: 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 e ChannelHandler
2a70: 20 74 6f 20 62 65 20 72 65 67 69 73 74 65 72 65 to be registere
2a80: 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a 09 63 d on the main..c
2a90: 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73 65 64 hannel as oppsed
2aa0: 20 74 6f 20 74 68 65 20 22 70 61 72 65 6e 74 22 to the "parent"
2ab0: 2c 20 6f 72 20 73 75 70 65 72 63 65 65 64 65 64 , or superceeded
2ac0: 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68 69 73 , channel. This
2ad0: 0a 09 69 73 20 62 65 63 61 75 73 65 20 74 68 65 ..is because the
2ae0: 20 73 6f 63 6b 65 74 20 64 72 69 76 65 72 20 6e socket driver n
2af0: 6f 74 69 66 69 65 73 20 74 68 65 20 6d 61 69 6e otifies the main
2b00: 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 channel, and th
2b10: 65 72 65 0a 09 61 72 65 20 74 69 6d 65 73 20 77 ere..are times w
2b20: 69 74 68 20 74 68 65 20 6d 61 69 6e 20 63 68 61 ith the main cha
2b30: 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73 65 64 nnel gets closed
2b40: 2c 20 62 75 74 20 74 68 65 20 73 75 70 65 72 63 , but the superc
2b50: 65 64 65 64 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 eded..one is not
2b60: 20 79 65 74 20 63 6c 6f 73 65 64 2e 20 20 49 66 yet closed. If
2b70: 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e the channel han
2b80: 64 6c 65 72 20 67 65 74 73 20 74 72 69 67 67 65 dler gets trigge
2b90: 72 65 64 20 69 6e 0a 09 74 68 69 73 20 68 61 6c red in..this hal
2ba0: 66 2d 6f 70 65 6e 20 73 74 61 74 65 20 69 74 20 f-open state it
2bb0: 69 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 is associated wi
2bc0: 74 68 20 74 68 65 20 73 75 70 65 72 63 65 65 64 th the superceed
2bd0: 65 64 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 62 75 ed..channedl, bu
2be0: 74 20 75 73 65 73 20 69 74 73 20 70 72 69 76 61 t uses its priva
2bf0: 74 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 te pointer to th
2c00: 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 e main channel,
2c10: 77 68 69 63 68 0a 09 69 73 20 6d 6f 73 74 6c 79 which..is mostly
2c20: 20 64 65 73 74 72 6f 79 65 64 2e 20 20 45 6c 69 destroyed. Eli
2c30: 6d 69 6e 61 74 65 64 20 74 68 65 20 72 65 64 75 minated the redu
2c40: 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 54 ndant call to..T
2c50: 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c cl_NotifyChannel
2c60: 20 66 72 6f 6d 20 54 6c 73 57 61 74 63 68 50 72 from TlsWatchPr
2c70: 6f 63 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a oc. [Bug: 5623].