0000: 32 30 30 38 2d 30 33 2d 31 39 20 20 4a 65 66 66 2008-03-19 Jeff
0010: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 Hobbs <jeffh@A
0020: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a ctiveState.com>.
0030: 0a 09 2a 2a 2a 20 54 4c 53 20 31 2e 36 20 54 41 ..*** TLS 1.6 TA
0040: 47 47 45 44 20 2a 2a 2a 0a 0a 09 2a 20 4d 61 6b GGED ***...* Mak
0050: 65 66 69 6c 65 2e 69 6e 20 28 64 69 73 74 29 3a efile.in (dist):
0060: 20 75 70 64 61 74 65 20 74 6f 20 69 6e 63 6c 75 update to inclu
0070: 64 65 20 77 69 6e 2f 20 61 6e 64 20 66 69 6c 65 de win/ and file
0080: 2e 73 72 6c 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b .srl...* win/mak
0090: 65 66 69 6c 65 2e 76 63 3a 20 62 75 6d 70 20 76 efile.vc: bump v
00a0: 65 72 73 69 6f 6e 20 74 6f 20 31 2e 36 0a 09 2a ersion to 1.6..*
00b0: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 configure.in: u
00c0: 73 65 20 2d 4c 20 61 6e 64 20 2d 52 20 77 68 65 se -L and -R whe
00d0: 72 65 20 6e 65 63 65 73 73 61 72 79 2e 20 5b 42 re necessary. [B
00e0: 75 67 20 31 37 34 32 38 35 39 5d 0a 0a 09 2a 20 ug 1742859]...*
00f0: 61 63 6c 6f 63 61 6c 2e 6d 34 3a 20 69 6d 70 72 aclocal.m4: impr
0100: 6f 76 65 20 2d 2d 77 69 74 68 2d 73 73 6c 2d 64 ove --with-ssl-d
0110: 69 72 20 63 68 65 63 6b 2e 0a 0a 09 2a 20 74 65 ir check....* te
0120: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 20 28 sts/tlsIO.test (
0130: 74 6c 73 49 4f 2d 31 34 2e 2a 29 3a 20 20 20 41 tlsIO-14.*): A
0140: 64 64 20 74 6c 73 3a 3a 75 6e 69 6d 70 6f 72 74 dd tls::unimport
0150: 20 66 6f 72 20 73 79 6d 6d 65 74 72 79 0a 09 2a for symmetry..*
0160: 20 74 6c 73 2e 68 74 6d 2c 20 74 6c 73 2e 63 20 tls.htm, tls.c
0170: 28 55 6e 69 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 (UnimportObjCmd)
0180: 3a 20 74 6f 20 74 6c 73 3a 3a 69 6d 70 6f 72 74 : to tls::import
0190: 2e 20 5b 42 75 67 20 31 32 30 33 32 37 33 5d 0a . [Bug 1203273].
01a0: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 43 ..* tls.c (Tls_C
01b0: 6c 65 61 6e 2c 20 49 6d 70 6f 72 74 4f 62 6a 43 lean, ImportObjC
01c0: 6d 64 29 3a 20 46 69 78 20 63 6c 65 61 6e 75 70 md): Fix cleanup
01d0: 20 6d 65 6d 20 6c 65 61 6b 20 5b 42 75 67 20 31 mem leak [Bug 1
01e0: 34 31 34 30 34 35 5d 0a 09 55 73 65 20 62 65 74 414045]..Use bet
01f0: 74 65 72 20 45 76 61 6c 20 41 50 49 73 2c 20 63 ter Eval APIs, c
0200: 6c 65 61 6e 65 72 20 54 63 6c 5f 4f 62 6a 2d 68 leaner Tcl_Obj-h
0210: 61 6e 64 6c 69 6e 67 2e 0a 0a 32 30 30 38 2d 30 andling...2008-0
0220: 33 2d 31 39 20 20 50 61 74 20 54 68 6f 79 74 73 3-19 Pat Thoyts
0230: 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 <patthoyts@use
0240: 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e rs.sourceforge.n
0250: 65 74 3e 0a 0a 09 2a 20 77 69 6e 2f 4d 61 6b 65 et>...* win/Make
0260: 66 69 6c 65 2e 76 63 20 20 55 70 64 61 74 65 64 file.vc Updated
0270: 20 74 68 65 20 6e 6d 61 6b 65 20 62 75 69 6c 64 the nmake build
0280: 20 66 69 6c 65 73 20 77 69 74 68 20 4d 53 56 43 files with MSVC
0290: 39 20 73 75 70 70 6f 72 74 0a 09 2a 20 77 69 6e 9 support..* win
02a0: 2f 72 75 6c 65 73 2e 76 63 3a 20 20 20 20 61 6e /rules.vc: an
02b0: 64 20 66 69 78 65 64 20 74 6f 20 72 75 6e 20 74 d fixed to run t
02c0: 68 65 20 74 65 73 74 2d 73 75 69 74 65 20 70 72 he test-suite pr
02d0: 6f 70 65 72 6c 79 2e 0a 09 2a 20 77 69 6e 2f 6e operly...* win/n
02e0: 6d 61 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 74 6c makehlp.c:..* tl
02f0: 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 s.tcl (tls::init
0300: 6c 69 62 29 3a 20 43 6f 72 72 65 63 74 65 64 20 lib): Corrected
0310: 6e 61 6d 65 73 70 61 63 65 20 68 61 6e 64 6c 69 namespace handli
0320: 6e 67 2e 0a 09 2a 20 74 6c 73 2e 63 3a 20 41 70 ng...* tls.c: Ap
0330: 70 6c 69 65 64 20 23 31 38 39 30 32 32 33 20 74 plied #1890223 t
0340: 6f 20 66 69 78 20 68 61 6e 64 73 68 61 6b 65 20 o fix handshake
0350: 6f 6e 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 20 on non-blocking
0360: 73 6f 63 6b 65 74 73 0a 0a 32 30 30 38 2d 30 33 sockets..2008-03
0370: 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -17 Jeff Hobbs
0380: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 <jeffh@ActiveSt
0390: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ate.com>...* tls
03a0: 2e 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 6c .tcl (tls::initl
03b0: 69 62 29 3a 20 20 20 20 20 6c 6f 61 64 20 74 6c ib): load tl
03c0: 73 2e 74 63 6c 20 66 69 72 73 74 20 61 6e 64 20 s.tcl first and
03d0: 63 61 6c 6c 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 call..* Makefile
03e0: 2e 69 6e 20 28 70 6b 67 49 6e 64 65 78 2e 74 63 .in (pkgIndex.tc
03f0: 6c 29 3a 20 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 l): tls::initlib
0400: 20 74 6f 20 6c 6f 61 64 20 6c 69 62 72 61 72 79 to load library
0410: 20 74 6f 0a 09 68 61 6e 64 6c 65 20 63 77 64 20 to..handle cwd
0420: 63 68 61 6e 67 65 73 2e 20 5b 42 75 67 20 31 38 changes. [Bug 18
0430: 38 38 31 31 33 5d 0a 0a 32 30 30 37 2d 30 39 2d 88113]..2007-09-
0440: 30 36 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 06 Pat Thoyts
0450: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 <patthoyts@users
0460: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 .sourceforge.net
0470: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20 >...* tls.c:
0480: 20 20 20 20 20 20 20 53 69 6c 65 6e 63 65 20 36 Silence 6
0490: 34 20 62 69 74 20 69 6e 74 65 67 65 72 20 63 6f 4 bit integer co
04a0: 6e 76 65 72 73 69 6f 6e 20 77 61 72 6e 69 6e 67 nversion warning
04b0: 73 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c s..* win/nmakehl
04c0: 70 2e 63 3a 20 20 55 70 64 61 74 65 20 62 75 69 p.c: Update bui
04d0: 6c 64 20 73 79 73 74 65 6d 20 74 6f 20 73 75 70 ld system to sup
04e0: 70 6f 72 74 20 41 4d 44 36 34 20 74 61 72 67 65 port AMD64 targe
04f0: 74 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c t..* win/makefil
0500: 65 2e 76 63 3a 20 77 69 74 68 20 4d 53 56 43 38 e.vc: with MSVC8
0510: 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63 ..* win/rules.vc
0520: 3a 0a 0a 32 30 30 37 2d 30 36 2d 32 32 20 20 4a :..2007-06-22 J
0530: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
0540: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f h@ActiveState.co
0550: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 m>...* tlsIO.c (
0560: 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c TlsInputProc, Tl
0570: 73 4f 75 74 70 75 74 50 72 6f 63 2c 20 54 6c 73 sOutputProc, Tls
0580: 57 61 74 63 68 50 72 6f 63 29 3a 20 0a 09 2a 20 WatchProc): ..*
0590: 74 6c 73 2e 63 20 28 56 65 72 69 66 79 43 61 6c tls.c (VerifyCal
05a0: 6c 62 61 63 6b 29 3a 20 61 64 64 20 61 6e 20 73 lback): add an s
05b0: 74 61 74 65 20 66 6c 61 67 20 69 6e 20 74 68 65 tate flag in the
05c0: 20 76 65 72 69 66 79 20 63 61 6c 6c 62 61 63 6b verify callback
05d0: 0a 09 74 68 61 74 20 70 72 65 76 65 6e 74 73 20 ..that prevents
05e0: 70 6f 73 73 69 62 6c 79 20 72 65 63 75 72 73 69 possibly recursi
05f0: 6f 6e 20 28 6f 6e 20 27 75 70 64 61 74 65 27 29 on (on 'update')
0600: 2e 20 5b 42 75 67 20 31 36 35 32 33 38 30 5d 0a . [Bug 1652380].
0610: 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 ..* tests/cipher
0620: 73 2e 74 65 73 74 3a 20 72 65 77 6f 72 6b 65 64 s.test: reworked
0630: 20 74 6f 20 6d 61 6b 65 20 74 65 73 74 20 6f 75 to make test ou
0640: 74 70 75 74 20 63 6c 65 61 6e 65 72 20 74 6f 0a tput cleaner to.
0650: 09 75 6e 64 65 72 73 74 61 6e 64 20 6d 69 73 73 .understand miss
0660: 69 6e 67 20 63 69 70 68 65 72 73 20 28 69 66 20 ing ciphers (if
0670: 61 6e 79 29 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c any)...* Makefil
0680: 65 2e 69 6e 2c 20 74 63 6c 63 6f 6e 66 69 67 2f e.in, tclconfig/
0690: 74 63 6c 2e 6d 34 3a 20 75 70 64 61 74 65 20 74 tcl.m4: update t
06a0: 6f 20 54 45 41 20 33 2e 36 0a 09 2a 20 63 6f 6e o TEA 3.6..* con
06b0: 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 72 figure, configur
06c0: 65 2e 69 6e 3a 20 20 20 20 20 20 20 75 73 69 6e e.in: usin
06d0: 67 20 61 75 74 6f 63 6f 6e 66 2d 32 2e 35 39 0a g autoconf-2.59.
06e0: 0a 32 30 30 37 2d 30 32 2d 32 38 20 20 50 61 74 .2007-02-28 Pat
06f0: 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f Thoyts <pattho
0700: 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 yts@users.source
0710: 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 forge.net>...* w
0720: 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 in/makefile.vc:
0730: 52 65 62 61 73 65 20 74 68 65 20 44 4c 4c 20 73 Rebase the DLL s
0740: 65 6e 73 69 62 6c 79 2e 20 41 64 64 69 74 69 6f ensibly. Additio
0750: 6e 61 6c 20 6c 69 62 73 20 66 6f 72 20 0a 09 73 nal libs for ..s
0760: 74 61 74 69 63 20 6c 69 6e 6b 20 6f 66 20 6f 70 tatic link of op
0770: 65 6e 73 73 6c 2e 0a 09 2a 20 74 6c 73 2e 74 63 enssl...* tls.tc
0780: 6c 3a 20 62 75 67 20 23 31 35 37 39 38 33 37 20 l: bug #1579837
0790: 2d 20 54 49 50 20 32 37 38 20 62 75 67 20 28 70 - TIP 278 bug (p
07a0: 6f 73 73 69 62 6c 79 29 20 2d 20 66 69 78 65 64 ossibly) - fixed
07b0: 2e 0a 0a 32 30 30 36 2d 30 33 2d 33 30 20 20 50 ...2006-03-30 P
07c0: 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 at Thoyts <patt
07d0: 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 hoyts@users.sour
07e0: 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a ceforge.net>...*
07f0: 20 74 63 6c 63 6f 6e 66 69 67 2f 2a 3a 20 20 55 tclconfig/*: U
0800: 70 64 61 74 65 64 20 74 6f 20 54 45 41 20 33 2e pdated to TEA 3.
0810: 35 20 69 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 5 in response to
0820: 20 62 75 67 20 31 34 36 30 34 39 31 0a 09 2a 20 bug 1460491..*
0830: 63 6f 6e 66 69 67 75 72 65 2a 3a 20 20 20 52 65 configure*: Re
0840: 67 65 6e 65 72 61 74 65 64 20 63 6f 6e 66 69 67 generated config
0850: 75 72 65 2e 0a 0a 32 30 30 35 2d 30 32 2d 30 38 ure...2005-02-08
0860: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a Jeff Hobbs <j
0870: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 effh@ActiveState
0880: 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 .com>...* Makefi
0890: 6c 65 2e 69 6e 2c 20 74 63 6c 63 6f 6e 66 69 67 le.in, tclconfig
08a0: 2f 74 63 6c 2e 6d 34 3a 20 75 70 64 61 74 65 20 /tcl.m4: update
08b0: 74 6f 20 54 45 41 20 33 2e 32 0a 09 2a 20 63 6f to TEA 3.2..* co
08c0: 6e 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 nfigure, configu
08d0: 72 65 2e 69 6e 3a 20 20 20 20 20 20 20 75 73 69 re.in: usi
08e0: 6e 67 20 61 75 74 6f 63 6f 6e 66 2d 32 2e 35 39 ng autoconf-2.59
08f0: 0a 0a 32 30 30 34 2d 31 32 2d 32 33 20 20 50 61 ..2004-12-23 Pa
0900: 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 t Thoyts <patth
0910: 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 oyts@users.sourc
0920: 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 eforge.net>...*
0930: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 20 20 20 Makefile.in:
0940: 20 20 52 65 6d 6f 76 65 64 20 73 70 75 72 69 6f Removed spurio
0950: 75 73 20 63 6f 70 79 69 6e 67 20 6f 66 20 74 6c us copying of tl
0960: 73 2e 74 63 6c 20 69 6e 74 6f 20 74 68 65 0a 09 s.tcl into the..
0970: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0980: 20 20 20 20 62 75 69 6c 64 20 64 69 72 65 63 74 build direct
0990: 6f 72 79 2e 0a 0a 32 30 30 34 2d 31 32 2d 32 32 ory...2004-12-22
09a0: 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 Pat Thoyts <p
09b0: 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 atthoyts@users.s
09c0: 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a ourceforge.net>.
09d0: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e ..* configure.in
09e0: 3a 20 20 20 20 20 49 6e 63 72 65 6d 65 6e 74 65 : Incremente
09f0: 64 20 6d 69 6e 6f 72 20 76 65 72 73 69 6f 6e 20 d minor version
0a00: 74 6f 20 31 2e 35 2e 31 0a 09 2a 20 63 6f 6e 66 to 1.5.1..* conf
0a10: 69 67 75 72 65 3a 20 20 20 20 20 20 20 20 0a 0a igure: ..
0a20: 32 30 30 34 2d 31 32 2d 31 37 20 20 50 61 74 20 2004-12-17 Pat
0a30: 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 Thoyts <patthoy
0a40: 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 ts@users.sourcef
0a50: 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 orge.net>...* wi
0a60: 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 20 n/makefile.vc:
0a70: 41 64 64 65 64 20 74 68 65 20 4d 53 56 43 20 62 Added the MSVC b
0a80: 75 69 6c 64 20 73 79 73 74 65 6d 20 28 66 72 6f uild system (fro
0a90: 6d 20 74 68 65 20 54 63 6c 0a 09 2a 20 77 69 6e m the Tcl..* win
0aa0: 2f 72 75 6c 65 73 2e 76 63 3a 20 20 20 20 20 73 /rules.vc: s
0ab0: 61 6d 70 6c 65 65 78 74 65 6e 73 69 6f 6e 29 2e ampleextension).
0ac0: 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 ..* win/nmakehlp
0ad0: 2e 63 3a 0a 09 2a 20 77 69 6e 2f 74 6c 73 2e 72 .c:..* win/tls.r
0ae0: 63 20 20 20 20 20 20 20 20 41 64 64 65 64 20 57 c Added W
0af0: 69 6e 64 6f 77 73 20 72 65 73 6f 75 72 63 65 20 indows resource
0b00: 66 69 6c 65 2e 0a 09 0a 09 2a 20 74 6c 73 2e 74 file.....* tls.t
0b10: 63 6c 3a 20 20 20 20 20 20 20 20 20 20 46 72 6f cl: Fro
0b20: 6d 20 70 61 74 63 68 20 23 39 34 38 31 35 35 2c m patch #948155,
0b30: 20 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 added support f
0b40: 6f 72 0a 09 20 20 20 20 20 20 20 20 20 20 20 20 or..
0b50: 20 20 20 20 20 20 20 20 61 6c 74 65 72 6e 61 74 alternat
0b60: 65 20 73 6f 63 6b 65 74 20 63 6f 6d 6d 61 6e 64 e socket command
0b70: 73 2e 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20 s...* tls.c:
0b80: 20 20 20 20 20 20 20 20 51 75 69 65 74 65 6e 20 Quieten
0b90: 73 6f 6d 65 20 4d 53 56 43 20 77 61 72 6e 69 6e some MSVC warnin
0ba0: 67 73 2e 20 50 72 65 66 65 72 20 63 6b 61 6c 6c gs. Prefer ckall
0bb0: 6f 63 0a 09 20 20 20 20 20 20 20 20 20 20 20 20 oc..
0bc0: 20 20 20 20 20 20 20 20 6f 76 65 72 20 54 63 6c over Tcl
0bd0: 5f 41 6c 6c 6f 63 2e 20 28 44 61 76 69 64 20 47 _Alloc. (David G
0be0: 72 61 76 65 72 61 75 78 29 2e 0a 0a 32 30 30 34 raveraux)...2004
0bf0: 2d 30 36 2d 32 39 20 20 50 61 74 20 54 68 6f 79 -06-29 Pat Thoy
0c00: 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 ts <patthoyts@u
0c10: 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 sers.sourceforge
0c20: 2e 6e 65 74 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a .net>...* tls.c:
0c30: 20 20 20 20 20 20 20 20 20 20 20 20 46 69 78 75 Fixu
0c40: 70 20 74 6f 20 62 75 69 6c 64 20 61 67 61 69 6e p to build again
0c50: 73 74 20 74 63 6c 20 38 2e 33 2e 33 2e 20 48 61 st tcl 8.3.3. Ha
0c60: 6e 64 6c 65 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a ndle..* tlsIO.c:
0c70: 20 20 20 20 20 20 20 20 20 20 38 2e 34 20 63 6f 8.4 co
0c80: 6e 73 74 69 66 69 63 61 74 69 6f 6e 2e 0a 0a 09 nstification....
0c90: 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 20 20 20 20 * tlsInt.h:
0ca0: 20 20 20 20 41 64 64 65 64 20 68 65 61 64 65 72 Added header
0cb0: 73 20 72 65 71 75 69 72 65 64 20 77 69 74 68 20 s required with
0cc0: 4d 53 56 43 20 6f 6e 20 57 69 6e 33 32 2e 0a 09 MSVC on Win32...
0cd0: 2a 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 * tlsX509.c:
0ce0: 20 20 20 20 75 6e 64 65 66 20 6d 69 6e 20 61 6e undef min an
0cf0: 64 20 6d 61 78 20 69 66 20 64 65 66 69 6e 65 64 d max if defined
0d00: 20 28 77 69 6e 33 32 29 2e 0a 0a 09 2a 20 4d 61 (win32)....* Ma
0d10: 6b 65 66 69 6c 65 2e 69 6e 3a 20 20 20 20 20 20 kefile.in:
0d20: 46 69 78 65 64 20 74 6f 20 62 75 69 6c 64 20 6f Fixed to build o
0d30: 6e 20 77 69 6e 33 32 20 75 73 69 6e 67 20 6d 73 n win32 using ms
0d40: 79 73 20 77 69 74 68 0a 09 2a 20 61 63 6c 6f 63 ys with..* acloc
0d50: 61 6c 2e 6d 34 3a 20 20 20 20 20 20 20 4d 53 56 al.m4: MSV
0d60: 43 2e 20 41 6c 73 6f 20 66 69 78 65 64 20 74 68 C. Also fixed th
0d70: 65 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 09 e test target...
0d80: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a * configure.in:.
0d90: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 .* configure:
0da0: 20 20 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 Regenerated
0db0: 2e 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 74 ...* tclconfig/t
0dc0: 63 6c 2e 6d 34 3a 20 55 70 64 61 74 65 64 20 74 cl.m4: Updated t
0dd0: 6f 20 6d 6f 73 74 20 72 65 63 65 6e 74 20 76 65 o most recent ve
0de0: 72 73 69 6f 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d rsion...2004-03-
0df0: 32 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 23 Dan Razzell
0e00: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
0e10: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 09 2a shsystems.ca>..*
0e20: 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 tls.c:..* tlsBI
0e30: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a O.c:..* tlsIO.c:
0e40: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 46 69 ..* tlsInt.h:.Fi
0e50: 78 65 64 20 74 79 70 65 20 6d 61 74 63 68 20 77 xed type match w
0e60: 61 72 6e 69 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 arnings...2004-0
0e70: 33 2d 31 39 20 20 4a 65 66 66 20 48 6f 62 62 73 3-19 Jeff Hobbs
0e80: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 <jeffh@ActiveS
0e90: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tate.com>...* tl
0ea0: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
0eb0: 20 20 72 65 70 6c 61 63 65 64 20 6f 6c 64 65 72 replaced older
0ec0: 20 54 45 41 20 63 6f 6e 66 69 67 20 77 69 74 68 TEA config with
0ed0: 20 6e 65 77 65 72 0a 09 2a 20 63 6f 6e 66 69 67 newer..* config
0ee0: 2f 2a 20 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a /* (removed):..*
0ef0: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e pkgIndex.tcl.in
0f00: 2c 20 73 74 72 6e 63 61 73 65 63 6d 70 2e 63 20 , strncasecmp.c
0f10: 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 (removed):..* Ma
0f20: 6b 65 66 69 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 kefile.in, acloc
0f30: 61 6c 2e 6d 34 2c 20 63 6f 6e 66 69 67 75 72 65 al.m4, configure
0f40: 2c 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a , configure.in:.
0f50: 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 52 45 41 .* tclconfig/REA
0f60: 44 4d 45 2e 74 78 74 2c 20 74 63 6c 63 6f 6e 66 DME.txt, tclconf
0f70: 69 67 2f 69 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 ig/install-sh, t
0f80: 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a clconfig/tcl.m4:
0f90: 0a 0a 32 30 30 34 2d 30 33 2d 31 37 20 20 44 61 ..2004-03-17 Da
0fa0: 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 n Razzell <resea
0fb0: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 rch@starfishsyst
0fc0: 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 ems.ca>...* tlsX
0fd0: 35 30 39 2e 63 3a 09 41 64 64 20 73 75 70 70 6f 509.c:.Add suppo
0fe0: 72 74 20 66 6f 72 20 6c 6f 6e 67 20 73 65 72 69 rt for long seri
0ff0: 61 6c 20 6e 75 6d 62 65 72 73 20 70 65 72 20 52 al numbers per R
1000: 46 43 20 33 32 38 30 2e 0a 09 09 09 46 6f 72 6d FC 3280.....Form
1010: 61 74 20 69 73 20 6e 6f 77 20 68 65 78 61 64 65 at is now hexade
1020: 63 69 6d 61 6c 2e 20 0a 09 09 09 5b 52 65 71 75 cimal. ....[Requ
1030: 65 73 74 20 23 39 31 35 33 31 33 5d 0a 09 09 09 est #915313]....
1040: 43 6f 72 72 65 63 74 6c 79 20 63 6f 6e 76 65 72 Correctly conver
1050: 74 20 63 65 72 74 69 66 69 63 61 74 65 20 44 69 t certificate Di
1060: 73 74 69 6e 67 75 69 73 68 65 64 20 4e 61 6d 65 stinguished Name
1070: 73 0a 09 09 09 74 6f 20 54 63 6c 20 73 74 72 69 s....to Tcl stri
1080: 6e 67 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f ng representatio
1090: 6e 2e 20 20 45 6c 69 6d 69 6e 61 74 65 73 20 75 n. Eliminates u
10a0: 73 65 20 6f 66 0a 09 09 09 64 65 70 72 65 63 61 se of....depreca
10b0: 74 65 64 20 4f 70 65 6e 53 53 4c 20 66 75 6e 63 ted OpenSSL func
10c0: 74 69 6f 6e 2e 20 20 46 6f 72 6d 61 74 20 69 73 tion. Format is
10d0: 20 6e 6f 77 20 63 6f 6d 70 6c 69 61 6e 74 0a 09 now compliant..
10e0: 09 09 77 69 74 68 20 52 46 43 20 32 32 35 33 2e ..with RFC 2253.
10f0: 20 20 5b 52 65 71 75 65 73 74 20 23 39 31 35 33 [Request #9153
1100: 31 35 5d 0a 0a 32 30 30 34 2d 30 32 2d 31 37 20 15]..2004-02-17
1110: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 Dan Razzell <re
1120: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
1130: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 54 4c 53 ystems.ca>...TLS
1140: 20 31 2e 35 2e 30 20 52 45 4c 45 41 53 45 0a 0a 1.5.0 RELEASE..
1150: 32 30 30 34 2d 30 32 2d 31 32 20 20 44 61 6e 20 2004-02-12 Dan
1160: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 Razzell.<researc
1170: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
1180: 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a s.ca>...* tls.c:
1190: 09 41 6c 6c 6f 77 20 76 65 72 69 66 79 20 63 61 .Allow verify ca
11a0: 6c 6c 62 61 63 6b 20 74 6f 20 72 65 74 75 72 6e llback to return
11b0: 20 65 6d 70 74 79 20 72 65 73 75 6c 74 2e 0a 09 empty result...
11c0: 2a 20 74 6c 73 2e 68 74 6d 3a 09 44 6f 63 75 6d * tls.htm:.Docum
11d0: 65 6e 74 20 63 61 6c 6c 62 61 63 6b 20 62 65 68 ent callback beh
11e0: 61 76 69 6f 72 73 2e 0a 0a 32 30 30 34 2d 30 32 aviors...2004-02
11f0: 2d 31 31 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c -11 Dan Razzell
1200: 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 .<research@starf
1210: 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a ishsystems.ca>..
1220: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
1230: 65 73 74 3a 0a 09 2a 20 72 65 6d 6f 74 65 2e 74 est:..* remote.t
1240: 63 6c 3a 09 43 6f 6d 70 6c 65 74 65 20 70 72 69 cl:.Complete pri
1250: 76 61 74 65 20 6b 65 79 20 6e 61 6d 65 20 63 68 vate key name ch
1260: 61 6e 67 65 73 20 66 72 6f 6d 20 32 30 30 31 2d anges from 2001-
1270: 30 36 2d 32 31 2e 0a 0a 32 30 30 34 2d 30 32 2d 06-21...2004-02-
1280: 30 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 03 Dan Razzell
1290: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
12a0: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 shsystems.ca>...
12b0: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 09 52 * Makefile.in:.R
12c0: 65 6d 6f 76 65 64 20 63 69 72 63 75 6c 61 72 20 emoved circular
12d0: 64 65 70 65 6e 64 65 6e 63 79 2e 0a 09 2a 20 74 dependency...* t
12e0: 6c 73 49 6e 74 2e 68 3a 09 4d 61 6b 65 20 66 75 lsInt.h:.Make fu
12f0: 6e 63 74 69 6f 6e 20 64 65 63 6c 61 72 61 74 69 nction declarati
1300: 6f 6e 73 20 65 78 70 6c 69 63 69 74 2e 0a 09 2a ons explicit...*
1310: 20 74 6c 73 2e 63 3a 09 46 69 78 20 74 79 70 65 tls.c:.Fix type
1320: 20 6d 61 74 63 68 20 61 6e 64 20 75 6e 75 73 65 match and unuse
1330: 64 20 76 61 72 69 61 62 6c 65 20 77 61 72 6e 69 d variable warni
1340: 6e 67 73 2e 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 ngs...* tlsBIO.c
1350: 3a 09 46 69 78 20 74 79 70 65 20 6d 61 74 63 68 :.Fix type match
1360: 20 77 61 72 6e 69 6e 67 2e 0a 0a 32 30 30 33 2d warning...2003-
1370: 31 32 2d 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 12-15 Dan Razze
1380: 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 ll.<research@sta
1390: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e rfishsystems.ca>
13a0: 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 ...* pkgIndex.tc
13b0: 6c 2e 69 6e 3a 0a 09 2a 20 74 6c 73 2e 68 74 6d l.in:..* tls.htm
13c0: 3a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f :..* tests/tlsIO
13d0: 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 76 .test: updated v
13e0: 65 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 0a 0a ersion to 1.5...
13f0: 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 2003-10-07 Dan
1400: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 Razzell.<researc
1410: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
1420: 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f s.ca>...* tests/
1430: 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 ciphers.test: up
1440: 64 61 74 65 64 20 6c 69 73 74 20 6f 66 20 74 65 dated list of te
1450: 73 74 65 64 20 63 69 70 68 65 72 73 20 74 6f 20 sted ciphers to
1460: 63 6f 72 72 65 73 70 6f 6e 64 0a 09 2a 20 77 69 correspond..* wi
1470: 74 68 20 74 68 6f 73 65 20 61 76 61 69 6c 61 62 th those availab
1480: 6c 65 20 66 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e le from OpenSSL.
1490: 20 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 38 [Request #81198
14a0: 31 5d 0a 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 1]..2003-10-07
14b0: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 Dan Razzell <res
14c0: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
14d0: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c stems.ca>...* tl
14e0: 73 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 s.c: added CONST
14f0: 20 77 69 74 68 20 69 6e 74 65 6e 74 20 73 69 6d with intent sim
1500: 69 6c 61 72 20 74 6f 20 74 68 6f 73 65 20 66 72 ilar to those fr
1510: 6f 6d 20 32 30 30 32 2d 30 32 2d 30 34 2e 0a 09 om 2002-02-04...
1520: 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 31 31 [Request #811911
1530: 5d 0a 0a 32 30 30 33 2d 30 37 2d 30 37 20 20 4a ]..2003-07-07 J
1540: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
1550: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f h@ActiveState.co
1560: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c m>...* tls.c (Tl
1570: 73 5f 49 6e 69 74 29 3a 20 20 20 61 64 64 65 64 s_Init): added
1580: 20 74 6c 73 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 tls::misc comma
1590: 6e 64 20 70 72 6f 76 69 64 65 64 20 62 79 0a 09 nd provided by..
15a0: 2a 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 * tlsX509.c:
15b0: 20 20 20 20 20 20 57 6f 6a 63 69 65 63 68 20 4b Wojciech K
15c0: 6f 63 6a 61 6e 20 28 77 6f 6a 63 69 65 63 68 20 ocjan (wojciech
15d0: 6b 6f 63 6a 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 kocjan.org)..* t
15e0: 65 73 74 73 2f 6b 65 79 74 65 73 74 31 2e 74 63 ests/keytest1.tc
15f0: 6c 3a 20 74 6f 20 65 78 70 6f 73 65 20 6d 6f 72 l: to expose mor
1600: 65 20 6c 6f 77 2d 6c 65 76 65 6c 20 53 53 4c 20 e low-level SSL
1610: 63 6f 6d 6d 61 6e 64 73 0a 09 2a 20 74 65 73 74 commands..* test
1620: 73 2f 6b 65 79 74 65 73 74 32 2e 74 63 6c 3a 0a s/keytest2.tcl:.
1630: 0a 32 30 30 33 2d 30 35 2d 31 35 20 20 44 61 6e .2003-05-15 Dan
1640: 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 Razzell.<resear
1650: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 ch@starfishsyste
1660: 6d 73 2e 63 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e ms.ca> ...* tls.
1670: 74 63 6c 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 tcl:..* tlsInt.h
1680: 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 20 :..* tls.c: add
1690: 73 75 70 70 6f 72 74 20 66 6f 72 20 62 69 6e 64 support for bind
16a0: 69 6e 67 20 61 20 70 61 73 73 77 6f 72 64 20 63 ing a password c
16b0: 61 6c 6c 62 61 63 6b 20 74 6f 20 74 68 65 20 73 allback to the s
16c0: 6f 63 6b 65 74 2e 0a 09 4e 6f 77 20 65 61 63 68 ocket...Now each
16d0: 20 73 6f 63 6b 65 74 20 63 61 6e 20 68 61 76 65 socket can have
16e0: 20 69 74 73 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 its own command
16f0: 20 61 6e 64 20 70 61 73 73 77 6f 72 64 20 63 61 and password ca
1700: 6c 6c 62 61 63 6b 73 20 69 6e 73 74 65 61 64 0a llbacks instead.
1710: 09 6f 66 20 62 65 69 6e 67 20 66 6f 72 63 65 64 .of being forced
1720: 20 74 6f 20 68 61 76 65 20 61 6c 6c 20 70 61 73 to have all pas
1730: 73 77 6f 72 64 20 6d 61 6e 61 67 65 6d 65 6e 74 sword management
1740: 20 70 61 73 73 20 74 68 72 6f 75 67 68 20 61 20 pass through a
1750: 63 6f 6d 6d 6f 6e 0a 09 70 72 6f 63 65 64 75 72 common..procedur
1760: 65 2e 20 20 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 e. The common p
1770: 61 73 73 77 6f 72 64 20 70 72 6f 63 65 64 75 72 assword procedur
1780: 65 20 69 73 20 72 65 74 61 69 6e 65 64 20 66 6f e is retained fo
1790: 72 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 0a r compatibility.
17a0: 09 62 75 74 20 69 74 73 20 75 73 65 20 73 68 6f .but its use sho
17b0: 75 6c 64 20 62 65 20 44 45 50 52 45 43 41 54 45 uld be DEPRECATE
17c0: 44 2e 0a 09 41 64 64 20 76 65 72 73 69 6f 6e 20 D...Add version
17d0: 63 6f 6d 6d 61 6e 64 20 74 6f 20 72 65 74 75 72 command to retur
17e0: 6e 20 4f 70 65 6e 53 53 4c 20 76 65 72 73 69 6f n OpenSSL versio
17f0: 6e 20 73 74 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 n string...Remov
1800: 65 20 75 6e 73 74 61 62 6c 65 20 77 6f 72 6b 61 e unstable worka
1810: 72 6f 75 6e 64 73 20 6e 65 65 64 65 64 20 66 6f rounds needed fo
1820: 72 20 76 65 72 69 66 79 20 69 6e 20 6f 62 73 6f r verify in obso
1830: 6c 65 74 65 20 76 65 72 73 69 6f 6e 73 20 6f 66 lete versions of
1840: 0a 09 4f 70 65 6e 53 53 4c 2e 0a 09 46 69 78 20 ..OpenSSL...Fix
1850: 6d 65 6d 6f 72 79 20 6c 65 61 6b 2e 20 5b 52 65 memory leak. [Re
1860: 71 75 65 73 74 20 23 36 34 30 36 36 30 5d 0a 09 quest #640660]..
1870: 4d 6f 72 65 20 63 61 73 74 73 20 74 6f 20 65 6c More casts to el
1880: 69 6d 69 6e 61 74 65 20 63 6f 6d 70 69 6c 65 72 iminate compiler
1890: 20 77 61 72 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 warnings....* t
18a0: 6c 73 2e 68 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 ls.htm: document
18b0: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 password callba
18c0: 63 6b 2e 0a 09 43 6f 72 72 65 63 74 20 74 65 63 ck...Correct tec
18d0: 68 6e 69 63 61 6c 20 61 6e 64 20 74 79 70 6f 67 hnical and typog
18e0: 72 61 70 68 69 63 20 65 72 72 6f 72 73 2e 0a 0a raphic errors...
18f0: 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 69 .* README.txt: i
1900: 64 65 6e 74 69 66 79 20 76 65 72 73 69 6f 6e 73 dentify versions
1910: 20 6f 66 20 4f 70 65 6e 53 53 4c 20 77 68 69 63 of OpenSSL whic
1920: 68 20 66 69 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 h fix known prob
1930: 6c 65 6d 73 2e 0a 09 47 65 6e 65 72 61 6c 20 77 lems...General w
1940: 61 72 6e 69 6e 67 20 6f 66 20 73 65 63 75 72 69 arning of securi
1950: 74 79 20 70 72 6f 62 6c 65 6d 73 20 69 6e 20 6f ty problems in o
1960: 6c 64 65 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 lder versions of
1970: 20 4f 70 65 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d OpenSSL...2002-
1980: 30 32 2d 30 34 20 20 4a 65 66 66 20 48 6f 62 62 02-04 Jeff Hobb
1990: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 s <jeffh@Active
19a0: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 State.com>...* t
19b0: 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 ls.htm:..* tls.c
19c0: 3a 20 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 : added support
19d0: 66 6f 72 20 6c 6f 63 61 6c 20 63 65 72 74 69 66 for local certif
19e0: 69 63 61 74 65 20 73 74 61 74 75 73 20 63 68 65 icate status che
19f0: 63 6b 2c 20 61 73 20 77 65 6c 6c 0a 09 61 73 20 ck, as well..as
1a00: 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 23 20 returning the #
1a10: 6f 66 20 62 69 74 73 20 69 6e 20 74 68 65 20 73 of bits in the s
1a20: 65 73 73 69 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 ession key. [Pat
1a30: 63 68 20 23 35 30 35 36 39 38 5d 20 28 72 6f 73 ch #505698] (ros
1a40: 65 29 0a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a e)...* tls.c:..*
1a50: 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 tlsIO.c:..* tls
1a60: 42 49 4f 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e BIO.c: added CON
1a70: 53 54 73 20 74 6f 20 73 61 74 69 73 66 79 20 54 STs to satisfy T
1a80: 63 6c 20 38 2e 34 20 73 6f 75 72 63 65 73 2e 20 cl 8.4 sources.
1a90: 20 54 68 69 73 20 6d 61 79 0a 09 67 69 76 65 20 This may..give
1aa0: 77 61 72 6e 69 6e 67 73 20 77 68 65 6e 20 63 6f warnings when co
1ab0: 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 38 mpiled against 8
1ac0: 2e 33 2c 20 62 75 74 20 74 68 65 79 20 63 61 6e .3, but they can
1ad0: 20 62 65 20 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a be ignored....*
1ae0: 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 tests/simpleCli
1af0: 65 6e 74 2e 74 63 6c 3a 0a 09 2a 20 74 65 73 74 ent.tcl:..* test
1b00: 73 2f 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 s/simpleServer.t
1b10: 63 6c 3a 20 70 6f 69 6e 74 20 74 6f 20 75 70 64 cl: point to upd
1b20: 61 74 65 64 20 63 6c 69 65 6e 74 2f 73 65 72 76 ated client/serv
1b30: 65 72 20 6b 65 79 20 66 69 6c 65 73 2e 0a 0a 09 er key files....
1b40: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 * tests/tlsIO.te
1b50: 73 74 3a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 st:..* tests/cip
1b60: 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 hers.test: updat
1b70: 65 64 20 74 6f 20 6c 6f 61 64 20 74 6c 73 20 66 ed to load tls f
1b80: 72 6f 6d 20 62 75 69 6c 64 20 64 69 72 2e 0a 0a rom build dir...
1b90: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
1ba0: 72 65 6d 6f 76 65 64 20 73 74 72 6e 63 61 73 65 removed strncase
1bb0: 63 6d 70 20 66 72 6f 6d 20 64 65 66 61 75 6c 74 cmp from default
1bc0: 20 6f 62 6a 65 63 74 20 73 65 74 2e 20 20 54 68 object set. Th
1bd0: 69 73 0a 09 69 73 20 6f 6e 6c 79 20 6e 65 65 64 is..is only need
1be0: 65 64 20 6f 6e 20 74 68 65 20 4d 61 63 2c 20 61 ed on the Mac, a
1bf0: 6e 64 20 54 63 6c 20 73 74 75 62 73 20 70 72 6f nd Tcl stubs pro
1c00: 76 69 64 65 73 20 69 74 2e 0a 0a 09 2a 20 63 6f vides it....* co
1c10: 6e 66 69 67 75 72 65 3a 20 72 65 67 65 6e 27 65 nfigure: regen'e
1c20: 64 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e d...* configure.
1c30: 69 6e 3a 20 75 70 64 61 74 65 64 20 74 6f 20 31 in: updated to 1
1c40: 2e 35 2e 30 20 66 6f 72 20 6e 65 78 74 20 72 65 .5.0 for next re
1c50: 6c 65 61 73 65 2e 0a 09 43 68 61 6e 67 65 64 20 lease...Changed
1c60: 64 65 66 61 75 6c 74 20 6f 70 65 6e 73 73 6c 20 default openssl
1c70: 6c 6f 63 61 74 69 6f 6e 20 74 6f 20 2f 75 73 72 location to /usr
1c80: 2f 6c 6f 63 61 6c 2f 73 73 6c 20 28 74 68 69 73 /local/ssl (this
1c90: 20 69 73 20 77 68 65 72 65 0a 09 6f 70 65 6e 73 is where..opens
1ca0: 73 6c 20 30 2e 39 2e 36 63 20 69 6e 73 74 61 6c sl 0.9.6c instal
1cb0: 6c 73 20 62 79 20 64 65 66 61 75 6c 74 29 2e 0a ls by default)..
1cc0: 09 43 68 61 6e 67 65 64 20 74 6f 20 75 73 65 20 .Changed to use
1cd0: 70 75 62 6c 69 63 20 54 63 6c 20 68 65 61 64 65 public Tcl heade
1ce0: 72 73 20 28 70 72 69 76 61 74 65 20 6e 6f 74 20 rs (private not
1cf0: 6e 65 65 64 65 64 29 2e 0a 0a 32 30 30 31 2d 30 needed)...2001-0
1d00: 36 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 6-21 Jeff Hobbs
1d10: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 <jeffh@ActiveS
1d20: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 tate.com>...TLS
1d30: 31 2e 34 2e 31 20 52 45 4c 45 41 53 45 0a 0a 09 1.4.1 RELEASE...
1d40: 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 61 64 64 * configure: add
1d50: 65 64 20 63 6f 6e 66 69 67 75 72 65 20 74 6f 20 ed configure to
1d60: 43 56 53 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 CVS..* configure
1d70: 2e 69 6e 3a 20 6d 6f 76 65 64 20 74 6f 20 70 61 .in: moved to pa
1d80: 74 63 68 6c 65 76 65 6c 20 31 2e 34 2e 31 0a 0a tchlevel 1.4.1..
1d90: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
1da0: 63 6f 72 72 65 63 74 65 64 20 27 64 69 73 74 27 corrected 'dist'
1db0: 20 74 61 72 67 65 74 0a 0a 09 2a 20 74 65 73 74 target...* test
1dc0: 73 2f 63 65 72 74 73 2f 66 69 6c 65 2e 73 72 6c s/certs/file.srl
1dd0: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 :..* tests/certs
1de0: 2f 63 61 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 /ca.pem:..* test
1df0: 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 6b s/certs/client.k
1e00: 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 ey:..* tests/cer
1e10: 74 73 2f 63 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 ts/client.pem:..
1e20: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c * tests/certs/cl
1e30: 69 65 6e 74 2e 72 65 71 3a 0a 09 2a 20 74 65 73 ient.req:..* tes
1e40: 74 73 2f 63 65 72 74 73 2f 70 72 69 76 6b 65 79 ts/certs/privkey
1e50: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .pem:..* tests/c
1e60: 65 72 74 73 2f 73 65 72 76 65 72 2e 6b 65 79 3a erts/server.key:
1e70: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1e80: 73 65 72 76 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 server.pem:..* t
1e90: 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 ests/certs/serve
1ea0: 72 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f r.req:..* tests/
1eb0: 63 65 72 74 73 2f 63 61 63 65 72 74 2e 70 65 6d certs/cacert.pem
1ec0: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
1ed0: 77 20 63 61 2e 70 65 6d 0a 09 2a 20 74 65 73 74 w ca.pem..* test
1ee0: 73 2f 63 65 72 74 73 2f 73 6b 65 79 2e 70 65 6d s/certs/skey.pem
1ef0: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
1f00: 77 20 73 65 72 76 65 72 2e 6b 65 79 0a 09 2a 20 w server.key..*
1f10: 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6b 65 79 tests/certs/ckey
1f20: 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 .pem: replaced b
1f30: 79 20 6e 65 77 20 63 6c 69 65 6e 74 2e 6b 65 79 y new client.key
1f40: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1f50: 52 45 41 44 4d 45 2e 74 78 74 3a 20 6e 65 77 20 README.txt: new
1f60: 73 65 74 20 6f 66 20 74 65 73 74 20 63 65 72 74 set of test cert
1f70: 69 66 69 63 61 74 65 73 20 77 69 74 68 20 73 6f ificates with so
1f80: 6d 65 0a 09 52 45 41 44 4d 45 20 69 6e 66 6f 20 me..README info
1f90: 6f 6e 20 74 68 65 69 72 20 67 65 6e 65 72 61 74 on their generat
1fa0: 69 6f 6e 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 ion....* tests/c
1fb0: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 iphers.test: upd
1fc0: 61 74 65 64 20 63 69 70 68 65 72 73 20 65 78 70 ated ciphers exp
1fd0: 65 63 74 65 64 20 77 69 74 68 20 64 65 66 61 75 ected with defau
1fe0: 6c 74 0a 09 6f 70 65 6e 73 73 6c 20 62 75 69 6c lt..openssl buil
1ff0: 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 63 6c d....* tests/tcl
2000: 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 IO.test: updated
2010: 20 74 6f 20 75 73 65 20 6e 65 77 20 6e 61 6d 65 to use new name
2020: 73 20 66 6f 72 20 63 65 72 74 73 2f 6b 65 79 73 s for certs/keys
2030: 2e 0a 0a 32 30 30 31 2d 30 33 2d 31 34 20 20 4a ...2001-03-14 J
2040: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
2050: 68 40 67 69 6d 6c 65 74 2e 61 63 74 69 76 65 73 h@gimlet.actives
2060: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tate.com>...* tl
2070: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
2080: 61 64 64 20 64 6f 2f 77 68 69 6c 65 20 66 6f 72 add do/while for
2090: 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 69 random number i
20a0: 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 nitialization..t
20b0: 6f 20 77 6f 72 6b 20 61 72 6f 75 6e 64 20 73 6f o work around so
20c0: 6d 65 20 4f 53 65 73 20 71 75 69 72 6b 73 2e 20 me OSes quirks.
20d0: 20 28 52 61 6c 70 68 2e 42 69 6c 6c 65 73 40 74 (Ralph.Billes@t
20e0: 65 6c 74 65 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a eltech.com.au)..
20f0: 32 30 30 30 2d 30 39 2d 30 37 20 20 4a 65 66 66 2000-09-07 Jeff
2100: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
2110: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
2120: 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 5f 43 * tlsIO.c (Tls_C
2130: 68 61 6e 6e 65 6c 54 79 70 65 29 3a 20 73 65 74 hannelType): set
2140: 20 74 79 70 65 4e 61 6d 65 20 66 69 65 6c 64 20 typeName field
2150: 6f 66 20 63 68 61 6e 6e 65 6c 20 74 79 70 65 20 of channel type
2160: 74 6f 0a 09 22 74 6c 73 22 20 28 74 68 69 73 20 to.."tls" (this
2170: 67 6f 74 20 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 got lost in move
2180: 20 74 6f 20 64 79 6e 61 6d 69 63 20 76 65 72 73 to dynamic vers
2190: 69 6f 6e 20 63 6f 6d 70 61 74 61 62 69 6c 69 74 ion compatabilit
21a0: 79 0a 09 63 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 y..checking)...2
21b0: 30 30 30 2d 30 38 2d 32 33 20 20 4a 65 66 66 20 000-08-23 Jeff
21c0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
21d0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 riptics.com>...T
21e0: 4c 53 20 31 2e 34 20 52 45 4c 45 41 53 45 44 0a LS 1.4 RELEASED.
21f0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 ..* Makefile.in
2200: 28 64 69 73 74 29 3a 20 63 72 65 61 74 65 20 64 (dist): create d
2210: 69 73 74 20 74 61 72 67 65 74 20 66 6f 72 20 61 ist target for a
2220: 72 63 68 69 76 65 20 64 69 73 74 72 69 62 75 74 rchive distribut
2230: 69 6f 6e 73 0a 0a 09 2a 20 74 65 73 74 73 2f 74 ions...* tests/t
2240: 6c 73 49 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f lsIO.test (tlsIO
2250: 2d 38 2e 31 29 3a 20 61 64 64 65 64 20 61 20 64 -8.1): added a d
2260: 65 6c 61 79 20 6f 6e 20 74 68 65 20 61 63 63 65 elay on the acce
2270: 70 74 20 63 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b pt close..to mak
2280: 65 20 74 68 65 20 74 65 73 74 20 77 6f 72 6b 20 e the test work
2290: 77 69 74 68 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 with OpenSSL on
22a0: 57 69 6e 64 6f 77 73 20 28 64 6f 65 73 6e 27 74 Windows (doesn't
22b0: 20 61 66 66 65 63 74 0a 09 6f 74 68 65 72 20 62 affect..other b
22c0: 75 69 6c 64 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e uilds)....* tls.
22d0: 68 74 6d 3a 20 75 70 64 61 74 65 64 20 77 69 74 htm: updated wit
22e0: 68 20 6e 6f 74 65 73 20 66 6f 72 20 31 2e 34 2e h notes for 1.4.
22f0: 0a 0a 32 30 30 30 2d 30 38 2d 32 31 20 20 4a 65 ..2000-08-21 Je
2300: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
2310: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
2320: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
2330: 74 65 73 74 3a 20 72 65 71 75 69 72 65 20 61 74 test: require at
2340: 20 6c 65 61 73 74 20 74 6c 73 31 2e 34 20 69 6e least tls1.4 in
2350: 20 74 65 73 74 20 73 75 69 74 65 2e 0a 0a 32 30 test suite...20
2360: 30 30 2d 30 38 2d 31 38 20 20 4a 65 66 66 20 48 00-08-18 Jeff H
2370: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
2380: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
2390: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 tls.c (Tls_Init)
23a0: 3a 20 61 64 64 65 64 20 63 61 6c 6c 20 74 6f 20 : added call to
23b0: 52 41 4e 44 5f 73 65 65 64 20 74 6f 20 73 65 65 RAND_seed to see
23c0: 64 20 74 68 65 20 53 53 4c 20 72 61 6e 64 6f 6d d the SSL random
23d0: 0a 09 6e 75 6d 62 65 72 20 67 65 6e 65 72 61 74 ..number generat
23e0: 6f 72 2e 20 20 57 69 74 68 6f 75 74 20 74 68 69 or. Without thi
23f0: 73 2c 20 4f 70 65 6e 53 53 4c 20 30 2e 39 2e 35 s, OpenSSL 0.9.5
2400: 20 63 68 6f 6b 65 73 2c 20 61 6e 64 20 69 6e 20 chokes, and in
2410: 61 6e 79 0a 09 63 61 73 65 20 69 74 20 69 73 20 any..case it is
2420: 61 20 62 69 67 20 73 65 63 75 72 69 74 79 20 68 a big security h
2430: 6f 6c 65 20 74 6f 20 64 6f 20 77 69 74 68 6f 75 ole to do withou
2440: 74 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 t it....* config
2450: 75 72 65 2e 69 6e 20 28 4f 50 45 4e 53 53 4c 29 ure.in (OPENSSL)
2460: 3a 20 61 64 64 65 64 20 4e 4f 5f 49 44 45 41 20 : added NO_IDEA
2470: 61 6e 64 20 4e 4f 5f 52 43 35 20 64 65 66 69 6e and NO_RC5 defin
2480: 65 73 20 62 79 0a 09 64 65 66 61 75 6c 74 20 77 es by..default w
2490: 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 hen compiling wi
24a0: 74 68 20 4f 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 th OpenSSL....*
24b0: 74 6c 73 49 6e 74 2e 68 3a 20 61 64 64 65 64 20 tlsInt.h: added
24c0: 65 72 72 2e 68 20 69 6e 63 6c 75 64 65 0a 0a 09 err.h include...
24d0: 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 * tlsBIO.c:..* t
24e0: 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 lsIO.c: correcte
24f0: 64 20 70 65 64 61 6e 74 69 63 20 63 61 73 74 20 d pedantic cast
2500: 65 72 72 6f 72 73 2e 0a 0a 32 30 30 30 2d 30 38 errors...2000-08
2510: 2d 31 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -16 Jeff Hobbs
2520: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
2530: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 s.com>...* tests
2540: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 69 /ciphers.test: i
2550: 6d 70 72 6f 76 65 64 20 61 62 69 6c 69 74 79 20 mproved ability
2560: 74 6f 20 63 68 61 6e 67 65 20 63 6f 6e 73 74 72 to change constr
2570: 61 69 6e 74 0a 09 73 65 74 74 69 6e 67 20 66 6f aint..setting fo
2580: 72 20 77 68 65 74 68 65 72 20 75 73 65 72 20 63 r whether user c
2590: 6f 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 ompiled against
25a0: 52 53 41 20 6f 72 20 4f 70 65 6e 53 53 4c 20 6c RSA or OpenSSL l
25b0: 69 62 73 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 ibs....* tls.c (
25c0: 54 6c 73 5f 49 6e 69 74 29 3a 20 63 6f 72 72 65 Tls_Init): corre
25d0: 63 74 65 64 20 69 6e 74 65 72 70 72 65 74 61 74 cted interpretat
25e0: 69 6f 6e 20 6f 66 20 76 65 72 73 69 6f 6e 20 6e ion of version n
25f0: 75 6d 62 65 72 0a 09 28 70 61 74 63 68 6c 65 76 umber..(patchlev
2600: 65 6c 20 61 6e 64 20 72 65 6c 65 61 73 65 2f 73 el and release/s
2610: 65 72 69 61 6c 20 77 65 72 65 20 73 77 61 70 70 erial were swapp
2620: 65 64 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 35 ed)...2000-08-15
2630: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
2640: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
2650: 6f 6d 3e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 om>...* README.t
2660: 78 74 3a 20 61 64 64 65 64 20 6e 6f 74 65 73 20 xt: added notes
2670: 61 62 6f 75 74 20 6e 65 65 64 20 74 6f 20 75 73 about need to us
2680: 65 20 38 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c e 8.2.0+....* tl
2690: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 sInt.h:..* tls.c
26a0: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f :..* tlsIO.c: co
26b0: 72 72 65 63 74 65 64 20 73 74 72 75 63 74 75 72 rrected structur
26c0: 65 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e e initialization
26d0: 20 74 6f 20 77 6f 72 6b 20 77 68 65 6e 0a 09 63 to work when..c
26e0: 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 38 2e ompiling with 8.
26f0: 32 2e 20 20 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 2. Now compiles
2700: 20 77 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 74 with 8.2+ and t
2710: 65 73 74 65 64 20 74 6f 20 77 6f 72 6b 0a 09 77 ested to work..w
2720: 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 64 79 6e ith 8.2+ and dyn
2730: 61 6d 69 63 61 6c 6c 79 20 61 64 6a 75 73 74 20 amically adjust
2740: 74 6f 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f to the version o
2750: 66 20 54 63 6c 20 69 74 20 77 61 73 0a 09 6c 6f f Tcl it was..lo
2760: 61 64 65 64 20 69 6e 74 6f 2e 20 20 54 4c 53 20 aded into. TLS
2770: 77 69 6c 6c 20 66 61 69 6c 20 74 68 65 20 74 65 will fail the te
2780: 73 74 20 73 75 69 74 65 20 77 69 74 68 20 54 63 st suite with Tc
2790: 6c 20 38 2e 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a l 8.2-8.3.1....*
27a0: 20 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 tests/all.tcl:
27b0: 61 64 64 65 64 20 63 61 74 63 68 20 61 72 6f 75 added catch arou
27c0: 6e 64 20 3a 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f nd ::tcltest::no
27d0: 72 6d 61 6c 69 7a 65 50 61 74 68 0a 09 62 65 63 rmalizePath..bec
27e0: 61 75 73 65 20 69 74 20 64 6f 65 73 6e 27 74 20 ause it doesn't
27f0: 65 78 69 73 74 20 69 6e 20 70 72 65 2d 38 2e 33 exist in pre-8.3
2800: 20 74 63 6c 74 65 73 74 2e 0a 0a 09 2a 20 74 65 tcltest....* te
2810: 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 sts/simpleClient
2820: 2e 74 63 6c 3a 20 0a 09 2a 20 74 65 73 74 73 2f .tcl: ..* tests/
2830: 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c simpleServer.tcl
2840: 3a 20 61 64 64 65 64 20 73 69 6d 70 6c 65 20 63 : added simple c
2850: 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 74 65 73 lient/server tes
2860: 74 20 73 63 72 69 70 74 73 0a 09 74 68 61 74 20 t scripts..that
2870: 75 73 65 20 74 65 73 74 20 63 65 72 74 73 20 61 use test certs a
2880: 6e 64 20 63 61 6e 20 64 6f 20 73 69 6d 70 6c 65 nd can do simple
2890: 20 73 74 72 65 73 73 20 74 65 73 74 73 2e 0a 0a stress tests...
28a0: 32 30 30 30 2d 30 38 2d 31 34 20 20 4a 65 66 66 2000-08-14 Jeff
28b0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
28c0: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
28d0: 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 * tlsInt.h:..* t
28e0: 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 lsIO.c:..* tlsBI
28f0: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 O.c:..* tls.c: c
2900: 68 61 6e 67 65 64 20 61 72 6f 75 6e 64 20 74 6f hanged around to
2910: 20 6f 6e 6c 79 20 77 6f 72 6b 69 6e 67 20 77 69 only working wi
2920: 74 68 20 38 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 th 8.2.0+ (8.3.2
2930: 2b 0a 09 70 72 65 66 65 72 72 65 64 29 2c 20 77 +..preferred), w
2940: 69 74 68 20 72 75 6e 74 69 6d 65 20 63 68 65 63 ith runtime chec
2950: 6b 73 20 66 6f 72 20 70 72 65 2d 20 61 6e 64 20 ks for pre- and
2960: 70 6f 73 74 2d 69 6f 2d 72 65 77 72 69 74 65 2e post-io-rewrite.
2970: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
2980: 49 6e 69 74 29 3a 20 63 68 61 6e 67 65 64 20 69 Init): changed i
2990: 74 20 74 6f 20 72 65 71 75 69 72 65 20 38 2e 33 t to require 8.3
29a0: 2e 32 20 77 68 65 6e 20 54 63 6c 5f 49 6e 69 74 .2 when Tcl_Init
29b0: 53 74 75 62 73 0a 09 77 61 73 20 63 61 6c 6c 65 Stubs..was calle
29c0: 64 20 62 65 63 61 75 73 65 20 77 65 20 64 6f 6e d because we don
29d0: 27 74 20 77 61 6e 74 20 70 65 6f 70 6c 65 20 75 't want people u
29e0: 73 69 6e 67 20 54 4c 53 20 77 69 74 68 20 74 68 sing TLS with th
29f0: 65 0a 09 6f 72 69 67 69 6e 61 6c 20 73 74 61 63 e..original stac
2a00: 6b 65 64 20 63 68 61 6e 6e 65 6c 20 69 6d 70 6c ked channel impl
2a10: 65 6d 65 6e 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 ementation...200
2a20: 30 2d 30 37 2d 32 36 20 20 4a 65 66 66 20 48 6f 0-07-26 Jeff Ho
2a30: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
2a40: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d ptics.com>...* m
2a50: 65 72 67 65 64 20 61 6c 6c 20 63 68 61 6e 67 65 erged all change
2a60: 73 20 66 72 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 s from tls-1-3-i
2a70: 6f 2d 72 65 77 72 69 74 65 20 62 61 63 6b 20 69 o-rewrite back i
2a80: 6e 74 6f 20 6d 61 69 6e 20 62 72 61 6e 63 68 0a nto main branch.
2a90: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
2aa0: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 63 6f test: updated co
2ab0: 6d 6d 65 6e 74 73 2c 20 66 69 78 65 64 20 61 20 mments, fixed a
2ac0: 70 63 43 72 61 73 68 20 63 61 73 65 20 74 68 61 pcCrash case tha
2ad0: 74 0a 09 77 61 73 20 64 75 65 20 74 6f 20 64 65 t..was due to de
2ae0: 62 75 67 20 61 73 73 65 72 74 69 6f 6e 20 69 6e bug assertion in
2af0: 20 57 69 6e 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 Windows SSL....
2b00: 2a 20 74 6c 73 2e 63 20 28 49 6d 70 6f 72 74 4f * tls.c (ImportO
2b10: 62 6a 43 6d 64 29 3a 20 72 65 6d 6f 76 65 64 20 bjCmd): removed
2b20: 75 6e 6e 65 63 65 73 73 61 72 79 20 75 73 65 20 unnecessary use
2b30: 6f 66 20 27 62 69 6f 27 20 61 72 67 2e 0a 09 28 of 'bio' arg...(
2b40: 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 65 63 6b Tls_Init): check
2b50: 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 return value of
2b60: 20 53 53 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 SSL_library_ini
2b70: 74 2e 20 20 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 t. Also lots of
2b80: 0a 09 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 ..whitespace cle
2b90: 61 6e 75 70 20 28 6d 6f 72 65 20 6c 69 6b 65 20 anup (more like
2ba0: 54 63 6c 20 45 6e 67 20 73 74 79 6c 65 20 67 75 Tcl Eng style gu
2bb0: 69 64 65 29 2c 20 62 75 74 20 6e 6f 74 20 61 6c ide), but not al
2bc0: 6c 0a 09 63 6f 64 65 20 77 61 73 20 63 6c 65 61 l..code was clea
2bd0: 6e 65 64 20 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 ned up....* tlsB
2be0: 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 IO.c: minor whit
2bf0: 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 0a 0a espace cleanup..
2c00: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f .* tlsIO.c: mino
2c10: 72 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 r whitespace cle
2c20: 61 6e 75 70 2e 0a 09 28 54 6c 73 49 6e 70 75 74 anup...(TlsInput
2c30: 50 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 Proc, TlsOutputP
2c40: 72 6f 63 29 3a 20 41 64 64 65 64 20 45 52 52 5f roc): Added ERR_
2c50: 63 6c 65 61 72 5f 65 72 72 6f 72 20 62 65 66 6f clear_error befo
2c60: 72 65 20 63 61 6c 6c 73 0a 09 74 6f 20 42 49 4f re calls..to BIO
2c70: 5f 72 65 61 64 20 6f 72 20 42 49 4f 5f 77 72 69 _read or BIO_wri
2c80: 74 65 2c 20 62 65 63 61 75 73 65 20 77 65 20 63 te, because we c
2c90: 6f 75 6c 64 20 6f 74 68 65 72 77 69 73 65 20 65 ould otherwise e
2ca0: 6e 64 20 75 70 0a 09 70 75 6c 6c 69 6e 67 20 61 nd up..pulling a
2cb0: 6e 20 65 72 72 6f 72 20 6f 66 66 20 74 68 65 20 n error off the
2cc0: 73 74 61 63 6b 20 74 68 61 74 20 64 69 64 6e 27 stack that didn'
2cd0: 74 20 62 65 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 t belong to us.
2ce0: 20 41 6c 73 6f 0a 09 63 6c 65 61 6e 75 70 20 75 Also..cleanup u
2cf0: 70 20 65 78 63 65 73 73 69 76 65 20 75 73 65 20 p excessive use
2d00: 6f 66 20 67 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d of gotos...2000-
2d10: 30 37 2d 32 30 20 20 4a 65 66 66 20 48 6f 62 62 07-20 Jeff Hobb
2d20: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
2d30: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 ics.com>...* tes
2d40: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 63 ts/tlsIO.test: c
2d50: 6f 72 72 65 63 74 65 64 20 76 61 72 69 6f 75 73 orrected various
2d60: 20 74 65 73 74 73 20 74 6f 20 62 65 20 63 6f 72 tests to be cor
2d70: 72 65 63 74 20 66 6f 72 20 54 4c 53 0a 09 73 74 rect for TLS..st
2d80: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 20 28 acked channels (
2d90: 61 73 20 6f 70 70 6f 73 65 64 20 74 6f 20 74 68 as opposed to th
2da0: 65 20 73 74 61 6e 64 61 72 64 20 73 6f 63 6b 65 e standard socke
2db0: 74 73 20 74 68 65 20 74 65 73 74 0a 09 73 75 69 ts the test..sui
2dc0: 74 65 20 77 61 73 20 61 64 6f 70 74 65 64 20 66 te was adopted f
2dd0: 72 6f 6d 29 2e 20 20 4b 65 79 20 64 69 66 66 65 rom). Key diffe
2de0: 72 65 6e 63 65 73 20 61 72 65 20 74 68 61 74 20 rences are that
2df0: 54 4c 53 20 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 TLS cannot..oper
2e00: 61 74 65 20 69 6e 20 6f 6e 65 20 70 72 6f 63 65 ate in one proce
2e10: 73 73 20 77 69 74 68 6f 75 74 20 61 6c 6c 20 63 ss without all c
2e20: 68 61 6e 6e 65 6c 73 20 62 65 69 6e 67 20 6e 6f hannels being no
2e30: 6e 2d 62 6c 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 n-blocking, or..
2e40: 74 68 65 20 68 61 6e 64 73 68 61 6b 65 20 77 69 the handshake wi
2e50: 6c 6c 20 62 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 ll block, and ha
2e60: 6e 64 73 68 61 6b 69 6e 67 20 6d 75 73 74 20 62 ndshaking must b
2e70: 65 20 66 6f 72 63 65 64 20 69 6e 20 73 6f 6d 65 e forced in some
2e80: 0a 09 63 61 73 65 73 2e 20 20 41 6c 73 6f 2c 20 ..cases. Also,
2e90: 68 61 6e 64 73 68 61 6b 65 73 20 64 6f 6e 27 74 handshakes don't
2ea0: 20 73 65 65 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 seem to complet
2eb0: 65 20 75 6e 6c 65 73 73 20 74 68 65 20 63 6c 69 e unless the cli
2ec0: 65 6e 74 0a 09 68 61 73 20 70 6c 61 63 65 64 20 ent..has placed
2ed0: 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 62 79 74 at least one byt
2ee0: 65 20 66 6f 72 20 74 68 65 20 73 65 72 76 65 72 e for the server
2ef0: 20 74 6f 20 72 65 61 64 20 69 6e 20 74 68 65 20 to read in the
2f00: 63 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 channel....* tes
2f10: 74 73 2f 72 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 ts/remote.tcl: c
2f20: 6f 72 72 65 63 74 65 64 20 74 68 65 20 66 69 6e orrected the fin
2f30: 64 69 6e 67 20 6f 66 20 74 65 73 74 73 20 63 65 ding of tests ce
2f40: 72 74 69 66 69 63 61 74 65 73 0a 0a 09 2a 20 74 rtificates...* t
2f50: 6c 73 49 4f 2e 63 20 28 54 6c 73 43 6c 6f 73 65 lsIO.c (TlsClose
2f60: 50 72 6f 63 29 3a 20 72 65 6d 6f 76 65 64 20 64 Proc): removed d
2f70: 65 6c 65 74 69 6e 67 20 6f 66 20 74 69 6d 65 72 eleting of timer
2f80: 20 68 61 6e 64 6c 65 72 20 61 73 0a 09 74 68 61 handler as..tha
2f90: 74 20 69 73 20 68 61 6e 64 6c 65 64 20 62 79 20 t is handled by
2fa0: 54 6c 73 5f 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 Tls_Clean....* t
2fb0: 6c 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 ls.tcl (tls::_ac
2fc0: 63 65 70 74 29 3a 20 63 6f 72 72 65 63 74 65 64 cept): corrected
2fd0: 20 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 5f 61 the internal _a
2fe0: 63 63 65 70 74 20 74 6f 0a 09 74 72 69 63 6b 6c ccept to..trickl
2ff0: 65 20 63 61 6c 6c 62 61 63 6b 20 65 72 72 6f 72 e callback error
3000: 73 20 74 6f 20 74 68 65 20 75 73 65 72 2e 0a 0a s to the user...
3010: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
3020: 6d 61 64 65 20 74 68 65 20 69 6e 73 74 61 6c 6c made the install
3030: 2d 62 69 6e 61 72 69 65 73 20 74 61 72 67 65 74 -binaries target
3040: 20 72 65 67 65 6e 65 72 61 74 65 20 74 68 65 0a regenerate the.
3050: 09 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 63 6f .pkgIndex.tcl co
3060: 72 72 65 63 74 6c 79 2e 20 20 54 68 65 20 74 65 rrectly. The te
3070: 73 74 20 74 61 72 67 65 74 20 70 72 6f 62 61 62 st target probab
3080: 6c 79 20 73 68 6f 75 6c 64 6e 27 74 20 73 63 72 ly shouldn't scr
3090: 65 77 0a 09 69 74 20 75 70 2c 20 62 75 74 20 74 ew..it up, but t
30a0: 68 69 73 20 69 73 20 74 6f 20 62 65 20 6f 6e 20 his is to be on
30b0: 74 68 65 20 73 61 66 65 20 73 69 64 65 2e 0a 0a the safe side...
30c0: 32 30 30 30 2d 30 37 2d 31 37 20 20 4a 65 66 66 2000-07-17 Jeff
30d0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
30e0: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
30f0: 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 * pkgIndex.tcl.i
3100: 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e n:..* configure.
3110: 69 6e 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 in: updated vers
3120: 69 6f 6e 20 74 6f 20 31 2e 34 0a 0a 32 30 30 30 ion to 1.4..2000
3130: 2d 30 37 2d 31 33 20 20 4a 65 66 66 20 48 6f 62 -07-13 Jeff Hob
3140: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
3150: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 tics.com>...* te
3160: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 sts/tlsIO.test:
3170: 65 6e 61 62 6c 65 64 20 74 65 73 74 73 20 32 2e enabled tests 2.
3180: 31 30 2c 20 37 2e 5b 31 32 34 35 5d 20 28 74 68 10, 7.[1245] (th
3190: 65 72 65 20 69 73 20 6e 6f 20 33 29 2c 0a 09 77 ere is no 3),..w
31a0: 68 69 63 68 20 6e 6f 77 20 70 61 73 73 2e 20 20 hich now pass.
31b0: 41 64 64 65 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 Added some comme
31c0: 6e 74 73 20 74 6f 20 6f 74 68 65 72 20 66 61 69 nts to other fai
31d0: 6c 69 6e 67 20 74 65 73 74 73 2e 0a 0a 32 30 30 ling tests...200
31e0: 30 2d 30 37 2d 31 31 20 20 4a 65 66 66 20 48 6f 0-07-11 Jeff Ho
31f0: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
3200: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
3210: 6c 73 49 4f 2e 63 3a 20 63 68 61 6e 67 65 64 20 lsIO.c: changed
3220: 61 6c 6c 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 all the channel
3230: 70 72 6f 63 73 20 74 6f 20 73 74 61 72 74 20 77 procs to start w
3240: 69 74 68 20 54 6c 73 2a 20 66 6f 72 0a 09 62 65 ith Tls* for..be
3250: 74 74 65 72 20 70 61 72 69 74 79 20 77 68 65 6e tter parity when
3260: 20 63 6f 6d 70 61 72 69 6e 67 20 77 69 74 68 20 comparing with
3270: 54 72 61 6e 73 66 6f 72 6d 20 63 68 61 6e 6e 65 Transform channe
3280: 6c 20 70 72 6f 63 73 2e 0a 09 52 65 77 72 6f 74 l procs...Rewrot
3290: 65 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2c 20 e TlsWatchProc,
32a0: 61 64 64 65 64 20 54 6c 73 4e 6f 74 69 66 79 50 added TlsNotifyP
32b0: 72 6f 63 20 61 63 63 6f 72 64 69 6e 67 20 74 6f roc according to
32c0: 20 74 68 65 20 6e 65 77 0a 09 63 68 61 6e 6e 65 the new..channe
32d0: 6c 20 64 65 73 69 67 6e 2c 20 77 68 69 63 68 20 l design, which
32e0: 61 6c 73 6f 20 6c 65 61 76 65 73 20 54 6c 73 43 also leaves TlsC
32f0: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 75 6e hannelHandler un
3300: 75 73 65 64 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f used....* tlsBIO
3310: 2e 63 20 28 42 69 6f 43 74 72 6c 29 3a 20 63 68 .c (BioCtrl): ch
3320: 61 6e 67 65 64 20 42 49 4f 5f 43 54 52 4c 5f 46 anged BIO_CTRL_F
3330: 4c 55 53 48 20 63 61 73 65 20 74 6f 20 75 73 65 LUSH case to use
3340: 0a 09 54 63 6c 5f 57 72 69 74 65 52 61 77 20 69 ..Tcl_WriteRaw i
3350: 6e 73 74 65 61 64 20 6f 66 20 54 63 6c 5f 46 6c nstead of Tcl_Fl
3360: 75 73 68 20 28 74 6f 20 6f 70 65 72 61 74 65 20 ush (to operate
3370: 6f 6e 20 63 6f 72 72 65 63 74 20 63 68 61 6e 6e on correct chann
3380: 65 6c 0a 09 69 6e 20 74 68 65 20 73 74 61 63 6b el..in the stack
3390: 20 69 6e 73 74 65 61 64 20 6f 66 20 73 74 61 72 instead of star
33a0: 74 69 6e 67 20 61 74 20 74 68 65 20 74 6f 70 20 ting at the top
33b0: 61 67 61 69 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 again). Would..
33c0: 6f 74 68 65 72 77 69 73 65 20 63 61 75 73 65 20 otherwise cause
33d0: 61 20 72 65 63 75 72 73 69 76 65 20 73 74 61 63 a recursive stac
33e0: 6b 20 62 6f 6d 62 20 77 68 65 6e 20 69 6d 70 6c k bomb when impl
33f0: 69 63 69 74 20 68 61 6e 64 73 68 61 6b 69 6e 67 icit handshaking
3400: 0a 09 74 6f 6f 6b 20 65 66 66 65 63 74 2e 0a 0a ..took effect...
3410: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
3420: 65 73 74 3a 20 72 65 6d 6f 76 65 64 20 63 68 61 est: removed cha
3430: 6e 67 65 73 20 6d 61 64 65 20 74 6f 20 74 65 73 nges made to tes
3440: 74 20 73 75 69 74 65 20 28 61 6c 6c 20 74 65 73 t suite (all tes
3450: 74 73 0a 09 74 68 61 74 20 72 61 6e 20 62 65 66 ts..that ran bef
3460: 6f 72 65 20 6e 6f 77 20 70 61 73 73 20 63 6f 72 ore now pass cor
3470: 72 65 63 74 6c 79 29 2c 20 61 6e 64 20 63 68 61 rectly), and cha
3480: 6e 67 65 64 20 73 6f 6d 65 20 61 63 63 65 70 74 nged some accept
3490: 20 70 72 6f 63 0a 09 61 72 67 73 20 74 6f 20 72 proc..args to r
34a0: 65 66 6c 65 63 74 20 74 68 61 74 20 61 20 73 6f eflect that a so
34b0: 63 6b 20 69 73 20 61 6e 20 61 72 67 2c 20 6e 6f ck is an arg, no
34c0: 74 20 61 20 66 69 6c 65 2e 0a 0a 32 30 30 30 2d t a file...2000-
34d0: 30 37 2d 31 30 20 20 4a 65 66 66 20 48 6f 62 62 07-10 Jeff Hobb
34e0: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
34f0: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
3500: 42 49 4f 2e 63 20 28 42 69 6f 57 72 69 74 65 2c BIO.c (BioWrite,
3510: 20 42 69 6f 52 65 61 64 29 3a 20 63 68 61 6e 67 BioRead): chang
3520: 65 64 20 54 63 6c 5f 52 65 61 64 2f 57 72 69 74 ed Tcl_Read/Writ
3530: 65 20 74 6f 0a 09 54 63 6c 5f 52 65 61 64 52 61 e to..Tcl_ReadRa
3540: 77 2f 54 63 6c 57 72 69 74 65 52 61 77 2e 0a 0a w/TclWriteRaw...
3550: 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 .* tls.c: added
3560: 75 73 65 20 6f 66 20 54 63 6c 5f 47 65 74 54 6f use of Tcl_GetTo
3570: 70 43 68 61 6e 6e 65 6c 20 61 66 74 65 72 20 54 pChannel after T
3580: 63 6c 5f 47 65 74 43 68 61 6e 6e 65 6c 20 61 6e cl_GetChannel an
3590: 64 0a 09 67 6f 74 20 72 65 74 75 72 6e 20 76 61 d..got return va
35a0: 6c 75 65 20 66 72 6f 6d 20 54 63 6c 5f 53 74 61 lue from Tcl_Sta
35b0: 63 6b 43 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 ckChannel....* t
35c0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
35d0: 20 61 64 64 65 64 20 73 6f 6d 65 20 68 61 6e 64 added some hand
35e0: 73 68 61 6b 69 6e 67 20 74 68 61 74 20 73 68 6f shaking that sho
35f0: 75 6c 64 6e 27 74 20 62 65 0a 09 6e 65 63 65 73 uldn't be..neces
3600: 73 61 72 79 2c 20 62 75 74 20 77 65 20 63 72 61 sary, but we cra
3610: 73 68 20 6f 74 68 65 72 77 69 73 65 20 28 6e 65 sh otherwise (ne
3620: 65 64 73 20 6d 6f 72 65 20 74 65 73 74 69 6e 67 eds more testing
3630: 29 2e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 )....* tlsIO.c:
3640: 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f added support fo
3650: 72 20 22 63 6f 72 72 65 63 74 65 64 22 20 73 74 r "corrected" st
3660: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 2e 20 acked channels.
3670: 20 41 6c 6c 0a 09 74 68 65 20 61 62 6f 76 65 20 All..the above
3680: 63 68 61 6e 6e 65 6c 73 20 61 72 65 20 69 6e 20 channels are in
3690: 54 43 4c 5f 43 48 41 4e 4e 45 4c 5f 56 45 52 53 TCL_CHANNEL_VERS
36a0: 49 4f 4e 5f 32 20 23 69 66 64 65 66 73 2e 0a 0a ION_2 #ifdefs...
36b0: 32 30 30 30 2d 30 36 2d 30 35 20 20 53 63 6f 74 2000-06-05 Scot
36c0: 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e t Stanton <stan
36d0: 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f ton@ajubasolutio
36e0: 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 ns.com>...* Make
36f0: 66 69 6c 65 2e 69 6e 3a 20 46 69 78 65 64 20 62 file.in: Fixed b
3700: 72 6f 6b 65 6e 20 74 65 73 74 20 74 61 72 67 65 roken test targe
3710: 74 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a t....* tlsInt.h:
3720: 20 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 6c 65 61 ..* tls.c: Clea
3730: 6e 65 64 20 75 70 20 64 65 63 6c 61 72 61 74 69 ned up declarati
3740: 6f 6e 73 20 6f 66 20 54 6c 73 5f 43 6c 65 61 6e ons of Tls_Clean
3750: 20 74 6f 20 61 76 6f 69 64 20 65 72 72 6f 72 73 to avoid errors
3760: 20 6f 6e 0a 09 57 69 6e 64 6f 77 73 20 28 6c 69 on..Windows (li
3770: 6e 74 29 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 nt)...2000-06-05
3780: 20 20 42 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 Brent Welch <w
3790: 65 6c 63 68 40 61 6a 75 62 61 73 6f 6c 75 74 69 elch@ajubasoluti
37a0: 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ons.com>...* tls
37b0: 2e 63 2c 20 74 6c 73 49 4f 2e 63 3a 20 20 53 70 .c, tlsIO.c: Sp
37c0: 6c 69 74 20 54 6c 73 5f 46 72 65 65 20 69 6e 74 lit Tls_Free int
37d0: 6f 20 54 6c 73 5f 43 6c 65 61 6e 2c 20 77 68 69 o Tls_Clean, whi
37e0: 63 68 20 64 6f 65 73 0a 09 74 68 65 20 53 53 4c ch does..the SSL
37f0: 20 63 6c 65 61 6e 75 70 2c 20 61 6e 64 20 74 68 cleanup, and th
3800: 65 20 54 63 6c 5f 46 72 65 65 20 63 61 6c 6c 2e e Tcl_Free call.
3810: 20 20 49 74 20 69 73 20 69 6d 70 6f 72 74 61 6e It is importan
3820: 74 20 74 6f 20 73 68 75 74 64 6f 77 6e 0a 09 74 t to shutdown..t
3830: 68 65 20 53 53 4c 20 73 74 61 74 65 20 22 73 79 he SSL state "sy
3840: 6e 63 68 72 6f 6e 6f 75 73 6c 79 22 20 64 75 72 nchronously" dur
3850: 69 6e 67 20 61 20 73 74 61 63 6b 65 64 20 66 6c ing a stacked fl
3860: 75 73 68 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 31 ush...2000-06-01
3870: 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 Scott Stanton
3880: 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 <stanton@ajubas
3890: 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 olutions.com>...
38a0: 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f * tlsIO.c: Resto
38b0: 72 65 64 20 63 61 6c 6c 20 74 6f 20 54 63 6c 5f red call to Tcl_
38c0: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 NotifyChannel fr
38d0: 6f 6d 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 om ChannelHandle
38e0: 72 0a 09 74 6f 20 65 6e 73 75 72 65 20 74 68 61 r..to ensure tha
38f0: 74 20 65 76 65 6e 74 73 20 70 72 6f 70 61 67 61 t events propaga
3900: 74 65 20 66 72 6f 6d 20 74 68 65 20 6c 6f 77 65 te from the lowe
3910: 72 20 64 72 69 76 65 72 2e 20 20 54 68 69 73 20 r driver. This
3920: 6d 61 79 0a 09 72 65 73 75 6c 74 20 69 6e 20 61 may..result in a
3930: 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 n infinite loop
3940: 69 6e 20 73 6f 6d 65 20 63 61 73 65 73 2c 20 73 in some cases, s
3950: 6f 20 74 68 69 73 20 69 73 20 6e 6f 74 20 61 20 o this is not a
3960: 74 6f 74 61 6c 0a 09 66 69 78 2e 20 20 54 68 69 total..fix. Thi
3970: 73 20 6d 61 79 20 62 65 20 73 75 66 66 69 63 69 s may be suffici
3980: 65 6e 74 20 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 ent for now, how
3990: 65 76 65 72 2e 20 5b 42 75 67 3a 20 35 36 32 33 ever. [Bug: 5623
39a0: 5d 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 ]..2000-06-01 S
39b0: 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 cott Stanton <s
39c0: 74 61 6e 74 6f 6e 40 73 63 72 69 70 74 69 63 73 tanton@scriptics
39d0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e .com>...* tlsIO.
39e0: 63 3a 20 52 65 73 74 6f 72 65 20 74 68 65 20 70 c: Restore the p
39f0: 72 65 76 69 6f 75 73 20 76 65 72 73 69 6f 6e 2e revious version.
3a00: 20 20 46 69 78 65 64 20 74 68 65 20 43 6c 6f 73 Fixed the Clos
3a10: 65 50 72 6f 63 20 73 6f 0a 09 69 74 20 75 6e 72 eProc so..it unr
3a20: 65 67 69 73 74 65 72 73 20 74 68 65 20 63 68 61 egisters the cha
3a30: 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20 6f 6e 20 nnel handler on
3a40: 74 68 65 20 73 75 70 65 72 63 65 64 65 64 20 63 the superceded c
3a50: 68 61 6e 6e 65 6c 0a 09 69 6e 73 74 65 61 64 20 hannel..instead
3a60: 6f 66 20 74 68 65 20 75 70 70 65 72 20 63 68 61 of the upper cha
3a70: 6e 6e 65 6c 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 nnel. Also remov
3a80: 65 64 20 74 68 65 20 63 61 6c 6c 20 74 6f 0a 09 ed the call to..
3a90: 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 Tcl_NotifyChanne
3aa0: 6c 20 69 6e 20 74 68 65 20 43 68 61 6e 6e 65 6c l in the Channel
3ab0: 48 61 6e 64 6c 65 72 20 62 65 63 61 75 73 65 20 Handler because
3ac0: 74 68 69 73 20 77 69 6c 6c 20 72 65 73 75 6c 74 this will result
3ad0: 0a 09 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 ..in an infinite
3ae0: 20 6c 6f 6f 70 20 69 66 20 64 61 74 61 20 69 73 loop if data is
3af0: 20 65 76 65 72 20 62 75 66 66 65 72 65 64 20 69 ever buffered i
3b00: 6e 20 74 68 65 20 42 49 4f 0a 09 73 74 72 75 63 n the BIO..struc
3b10: 74 75 72 65 2e 20 5b 42 75 67 3a 20 35 36 32 33 ture. [Bug: 5623
3b20: 5d 0a 0a 32 30 30 30 2d 30 35 2d 33 31 20 20 42 ]..2000-05-31 B
3b30: 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 rent Welch <welc
3b40: 68 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e h@scriptics.com>
3b50: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e ...* tls.c: Chan
3b60: 67 65 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 ge the ChannelHa
3b70: 6e 64 6c 65 72 20 74 6f 20 62 65 20 72 65 67 69 ndler to be regi
3b80: 73 74 65 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 stered on the ma
3b90: 69 6e 0a 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f in..channel as o
3ba0: 70 70 73 65 64 20 74 6f 20 74 68 65 20 22 70 61 ppsed to the "pa
3bb0: 72 65 6e 74 22 2c 20 6f 72 20 73 75 70 65 72 63 rent", or superc
3bc0: 65 65 64 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 eeded, channel.
3bd0: 20 54 68 69 73 0a 09 69 73 20 62 65 63 61 75 73 This..is becaus
3be0: 65 20 74 68 65 20 73 6f 63 6b 65 74 20 64 72 69 e the socket dri
3bf0: 76 65 72 20 6e 6f 74 69 66 69 65 73 20 74 68 65 ver notifies the
3c00: 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 main channel, a
3c10: 6e 64 20 74 68 65 72 65 0a 09 61 72 65 20 74 69 nd there..are ti
3c20: 6d 65 73 20 77 69 74 68 20 74 68 65 20 6d 61 69 mes with the mai
3c30: 6e 20 63 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 n channel gets c
3c40: 6c 6f 73 65 64 2c 20 62 75 74 20 74 68 65 20 73 losed, but the s
3c50: 75 70 65 72 63 65 64 65 64 0a 09 6f 6e 65 20 69 uperceded..one i
3c60: 73 20 6e 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 s not yet closed
3c70: 2e 20 20 49 66 20 74 68 65 20 63 68 61 6e 6e 65 . If the channe
3c80: 6c 20 68 61 6e 64 6c 65 72 20 67 65 74 73 20 74 l handler gets t
3c90: 72 69 67 67 65 72 65 64 20 69 6e 0a 09 74 68 69 riggered in..thi
3ca0: 73 20 68 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 s half-open stat
3cb0: 65 20 69 74 20 69 73 20 61 73 73 6f 63 69 61 74 e it is associat
3cc0: 65 64 20 77 69 74 68 20 74 68 65 20 73 75 70 65 ed with the supe
3cd0: 72 63 65 65 64 65 64 0a 09 63 68 61 6e 6e 65 64 rceeded..channed
3ce0: 6c 2c 20 62 75 74 20 75 73 65 73 20 69 74 73 20 l, but uses its
3cf0: 70 72 69 76 61 74 65 20 70 6f 69 6e 74 65 72 20 private pointer
3d00: 74 6f 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e to the main chan
3d10: 6e 65 6c 2c 20 77 68 69 63 68 0a 09 69 73 20 6d nel, which..is m
3d20: 6f 73 74 6c 79 20 64 65 73 74 72 6f 79 65 64 2e ostly destroyed.
3d30: 20 20 45 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 Eliminated the
3d40: 20 72 65 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 redundant call
3d50: 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 to..Tcl_NotifyCh
3d60: 61 6e 6e 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 annel from TlsWa
3d70: 74 63 68 50 72 6f 63 2e 20 5b 42 75 67 3a 20 35 tchProc. [Bug: 5
3d80: 36 32 33 5d 0a 623].