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 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 ..* win/makefile
0040: 2e 76 63 3a 20 62 75 6d 70 20 76 65 72 73 69 6f .vc: bump versio
0050: 6e 20 74 6f 20 31 2e 36 0a 09 2a 20 63 6f 6e 66 n to 1.6..* conf
0060: 69 67 75 72 65 2e 69 6e 3a 20 75 73 65 20 2d 4c igure.in: use -L
0070: 20 61 6e 64 20 2d 52 20 77 68 65 72 65 20 6e 65 and -R where ne
0080: 63 65 73 73 61 72 79 2e 20 5b 42 75 67 20 31 37 cessary. [Bug 17
0090: 34 32 38 35 39 5d 0a 0a 09 2a 20 61 63 6c 6f 63 42859]...* acloc
00a0: 61 6c 2e 6d 34 3a 20 69 6d 70 72 6f 76 65 20 2d al.m4: improve -
00b0: 2d 77 69 74 68 2d 73 73 6c 2d 64 69 72 20 63 68 -with-ssl-dir ch
00c0: 65 63 6b 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 eck....* tests/t
00d0: 6c 73 49 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f lsIO.test (tlsIO
00e0: 2d 31 34 2e 2a 29 3a 20 20 20 41 64 64 20 74 6c -14.*): Add tl
00f0: 73 3a 3a 75 6e 69 6d 70 6f 72 74 20 66 6f 72 20 s::unimport for
0100: 73 79 6d 6d 65 74 72 79 0a 09 2a 20 74 6c 73 2e symmetry..* tls.
0110: 68 74 6d 2c 20 74 6c 73 2e 63 20 28 55 6e 69 6d htm, tls.c (Unim
0120: 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 74 6f 20 portObjCmd): to
0130: 74 6c 73 3a 3a 69 6d 70 6f 72 74 2e 20 5b 42 75 tls::import. [Bu
0140: 67 20 31 32 30 33 32 37 33 5d 0a 0a 09 2a 20 74 g 1203273]...* t
0150: 6c 73 2e 63 20 28 54 6c 73 5f 43 6c 65 61 6e 2c ls.c (Tls_Clean,
0160: 20 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 ImportObjCmd):
0170: 46 69 78 20 63 6c 65 61 6e 75 70 20 6d 65 6d 20 Fix cleanup mem
0180: 6c 65 61 6b 20 5b 42 75 67 20 31 34 31 34 30 34 leak [Bug 141404
0190: 35 5d 0a 09 55 73 65 20 62 65 74 74 65 72 20 45 5]..Use better E
01a0: 76 61 6c 20 41 50 49 73 2c 20 63 6c 65 61 6e 65 val APIs, cleane
01b0: 72 20 54 63 6c 5f 4f 62 6a 2d 68 61 6e 64 6c 69 r Tcl_Obj-handli
01c0: 6e 67 2e 0a 0a 32 30 30 38 2d 30 33 2d 31 39 20 ng...2008-03-19
01d0: 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 Pat Thoyts <pa
01e0: 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f tthoyts@users.so
01f0: 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a urceforge.net>..
0200: 09 2a 20 77 69 6e 2f 4d 61 6b 65 66 69 6c 65 2e .* win/Makefile.
0210: 76 63 20 20 55 70 64 61 74 65 64 20 74 68 65 20 vc Updated the
0220: 6e 6d 61 6b 65 20 62 75 69 6c 64 20 66 69 6c 65 nmake build file
0230: 73 20 77 69 74 68 20 4d 53 56 43 39 20 73 75 70 s with MSVC9 sup
0240: 70 6f 72 74 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 port..* win/rule
0250: 73 2e 76 63 3a 20 20 20 20 61 6e 64 20 66 69 78 s.vc: and fix
0260: 65 64 20 74 6f 20 72 75 6e 20 74 68 65 20 74 65 ed to run the te
0270: 73 74 2d 73 75 69 74 65 20 70 72 6f 70 65 72 6c st-suite properl
0280: 79 2e 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 y...* win/nmakeh
0290: 6c 70 2e 63 3a 0a 09 2a 20 74 6c 73 2e 74 63 6c lp.c:..* tls.tcl
02a0: 20 28 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 29 3a (tls::initlib):
02b0: 20 43 6f 72 72 65 63 74 65 64 20 6e 61 6d 65 73 Corrected names
02c0: 70 61 63 65 20 68 61 6e 64 6c 69 6e 67 2e 0a 09 pace handling...
02d0: 2a 20 74 6c 73 2e 63 3a 20 41 70 70 6c 69 65 64 * tls.c: Applied
02e0: 20 23 31 38 39 30 32 32 33 20 74 6f 20 66 69 78 #1890223 to fix
02f0: 20 68 61 6e 64 73 68 61 6b 65 20 6f 6e 20 6e 6f handshake on no
0300: 6e 2d 62 6c 6f 63 6b 69 6e 67 20 73 6f 63 6b 65 n-blocking socke
0310: 74 73 0a 0a 32 30 30 38 2d 30 33 2d 31 37 20 20 ts..2008-03-17
0320: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 Jeff Hobbs <jef
0330: 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 fh@ActiveState.c
0340: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 om>...* tls.tcl
0350: 28 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 29 3a 20 (tls::initlib):
0360: 20 20 20 20 6c 6f 61 64 20 74 6c 73 2e 74 63 6c load tls.tcl
0370: 20 66 69 72 73 74 20 61 6e 64 20 63 61 6c 6c 0a first and call.
0380: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 .* Makefile.in (
0390: 70 6b 67 49 6e 64 65 78 2e 74 63 6c 29 3a 20 74 pkgIndex.tcl): t
03a0: 6c 73 3a 3a 69 6e 69 74 6c 69 62 20 74 6f 20 6c ls::initlib to l
03b0: 6f 61 64 20 6c 69 62 72 61 72 79 20 74 6f 0a 09 oad library to..
03c0: 68 61 6e 64 6c 65 20 63 77 64 20 63 68 61 6e 67 handle cwd chang
03d0: 65 73 2e 20 5b 42 75 67 20 31 38 38 38 31 31 33 es. [Bug 1888113
03e0: 5d 0a 0a 32 30 30 37 2d 30 39 2d 30 36 20 20 50 ]..2007-09-06 P
03f0: 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 at Thoyts <patt
0400: 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 hoyts@users.sour
0410: 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a ceforge.net>...*
0420: 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20 20 tls.c:
0430: 20 20 53 69 6c 65 6e 63 65 20 36 34 20 62 69 74 Silence 64 bit
0440: 20 69 6e 74 65 67 65 72 20 63 6f 6e 76 65 72 73 integer convers
0450: 69 6f 6e 20 77 61 72 6e 69 6e 67 73 0a 09 2a 20 ion warnings..*
0460: 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a 20 win/nmakehlp.c:
0470: 20 55 70 64 61 74 65 20 62 75 69 6c 64 20 73 79 Update build sy
0480: 73 74 65 6d 20 74 6f 20 73 75 70 70 6f 72 74 20 stem to support
0490: 41 4d 44 36 34 20 74 61 72 67 65 74 0a 09 2a 20 AMD64 target..*
04a0: 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a win/makefile.vc:
04b0: 20 77 69 74 68 20 4d 53 56 43 38 0a 09 2a 20 77 with MSVC8..* w
04c0: 69 6e 2f 72 75 6c 65 73 2e 76 63 3a 0a 0a 32 30 in/rules.vc:..20
04d0: 30 37 2d 30 36 2d 32 32 20 20 4a 65 66 66 20 48 07-06-22 Jeff H
04e0: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 obbs <jeffh@Act
04f0: 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 iveState.com>...
0500: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 2c 20 * configure.in,
0510: 63 6f 6e 66 69 67 75 72 65 2c 20 77 69 6e 2f 6d configure, win/m
0520: 61 6b 65 66 69 6c 65 2e 76 63 20 28 44 4f 54 56 akefile.vc (DOTV
0530: 45 52 53 49 4f 4e 29 3a 20 62 75 6d 70 20 74 6f ERSION): bump to
0540: 20 31 2e 36 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 1.6...* tlsIO.c
0550: 20 28 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 (TlsInputProc,
0560: 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 2c 20 54 TlsOutputProc, T
0570: 6c 73 57 61 74 63 68 50 72 6f 63 29 3a 20 0a 09 lsWatchProc): ..
0580: 2a 20 74 6c 73 2e 63 20 28 56 65 72 69 66 79 43 * tls.c (VerifyC
0590: 61 6c 6c 62 61 63 6b 29 3a 20 61 64 64 20 61 6e allback): add an
05a0: 20 73 74 61 74 65 20 66 6c 61 67 20 69 6e 20 74 state flag in t
05b0: 68 65 20 76 65 72 69 66 79 20 63 61 6c 6c 62 61 he verify callba
05c0: 63 6b 0a 09 74 68 61 74 20 70 72 65 76 65 6e 74 ck..that prevent
05d0: 73 20 70 6f 73 73 69 62 6c 79 20 72 65 63 75 72 s possibly recur
05e0: 73 69 6f 6e 20 28 6f 6e 20 27 75 70 64 61 74 65 sion (on 'update
05f0: 27 29 2e 20 5b 42 75 67 20 31 36 35 32 33 38 30 '). [Bug 1652380
0600: 5d 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 ]...* tests/ciph
0610: 65 72 73 2e 74 65 73 74 3a 20 72 65 77 6f 72 6b ers.test: rework
0620: 65 64 20 74 6f 20 6d 61 6b 65 20 74 65 73 74 20 ed to make test
0630: 6f 75 74 70 75 74 20 63 6c 65 61 6e 65 72 20 74 output cleaner t
0640: 6f 0a 09 75 6e 64 65 72 73 74 61 6e 64 20 6d 69 o..understand mi
0650: 73 73 69 6e 67 20 63 69 70 68 65 72 73 20 28 69 ssing ciphers (i
0660: 66 20 61 6e 79 29 0a 0a 09 2a 20 4d 61 6b 65 66 f any)...* Makef
0670: 69 6c 65 2e 69 6e 2c 20 74 63 6c 63 6f 6e 66 69 ile.in, tclconfi
0680: 67 2f 74 63 6c 2e 6d 34 3a 20 75 70 64 61 74 65 g/tcl.m4: update
0690: 20 74 6f 20 54 45 41 20 33 2e 36 0a 09 2a 20 63 to TEA 3.6..* c
06a0: 6f 6e 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 onfigure, config
06b0: 75 72 65 2e 69 6e 3a 20 20 20 20 20 20 20 75 73 ure.in: us
06c0: 69 6e 67 20 61 75 74 6f 63 6f 6e 66 2d 32 2e 35 ing autoconf-2.5
06d0: 39 0a 0a 32 30 30 37 2d 30 32 2d 32 38 20 20 50 9..2007-02-28 P
06e0: 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 at Thoyts <patt
06f0: 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 hoyts@users.sour
0700: 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a ceforge.net>...*
0710: 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 win/makefile.vc
0720: 3a 20 52 65 62 61 73 65 20 74 68 65 20 44 4c 4c : Rebase the DLL
0730: 20 73 65 6e 73 69 62 6c 79 2e 20 41 64 64 69 74 sensibly. Addit
0740: 69 6f 6e 61 6c 20 6c 69 62 73 20 66 6f 72 20 0a ional libs for .
0750: 09 73 74 61 74 69 63 20 6c 69 6e 6b 20 6f 66 20 .static link of
0760: 6f 70 65 6e 73 73 6c 2e 0a 09 2a 20 74 6c 73 2e openssl...* tls.
0770: 74 63 6c 3a 20 62 75 67 20 23 31 35 37 39 38 33 tcl: bug #157983
0780: 37 20 2d 20 54 49 50 20 32 37 38 20 62 75 67 20 7 - TIP 278 bug
0790: 28 70 6f 73 73 69 62 6c 79 29 20 2d 20 66 69 78 (possibly) - fix
07a0: 65 64 2e 0a 0a 32 30 30 36 2d 30 33 2d 33 30 20 ed...2006-03-30
07b0: 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 Pat Thoyts <pa
07c0: 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f tthoyts@users.so
07d0: 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a urceforge.net>..
07e0: 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 2a 3a 20 .* tclconfig/*:
07f0: 20 55 70 64 61 74 65 64 20 74 6f 20 54 45 41 20 Updated to TEA
0800: 33 2e 35 20 69 6e 20 72 65 73 70 6f 6e 73 65 20 3.5 in response
0810: 74 6f 20 62 75 67 20 31 34 36 30 34 39 31 0a 09 to bug 1460491..
0820: 2a 20 63 6f 6e 66 69 67 75 72 65 2a 3a 20 20 20 * configure*:
0830: 52 65 67 65 6e 65 72 61 74 65 64 20 63 6f 6e 66 Regenerated conf
0840: 69 67 75 72 65 2e 0a 0a 32 30 30 35 2d 30 32 2d igure...2005-02-
0850: 30 38 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 08 Jeff Hobbs
0860: 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 <jeffh@ActiveSta
0870: 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 te.com>...* Make
0880: 66 69 6c 65 2e 69 6e 2c 20 74 63 6c 63 6f 6e 66 file.in, tclconf
0890: 69 67 2f 74 63 6c 2e 6d 34 3a 20 75 70 64 61 74 ig/tcl.m4: updat
08a0: 65 20 74 6f 20 54 45 41 20 33 2e 32 0a 09 2a 20 e to TEA 3.2..*
08b0: 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 configure, confi
08c0: 67 75 72 65 2e 69 6e 3a 20 20 20 20 20 20 20 75 gure.in: u
08d0: 73 69 6e 67 20 61 75 74 6f 63 6f 6e 66 2d 32 2e sing autoconf-2.
08e0: 35 39 0a 0a 32 30 30 34 2d 31 32 2d 32 33 20 20 59..2004-12-23
08f0: 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 Pat Thoyts <pat
0900: 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 thoyts@users.sou
0910: 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 rceforge.net>...
0920: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 20 * Makefile.in:
0930: 20 20 20 20 52 65 6d 6f 76 65 64 20 73 70 75 72 Removed spur
0940: 69 6f 75 73 20 63 6f 70 79 69 6e 67 20 6f 66 20 ious copying of
0950: 74 6c 73 2e 74 63 6c 20 69 6e 74 6f 20 74 68 65 tls.tcl into the
0960: 0a 09 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..
0970: 20 20 20 20 20 20 62 75 69 6c 64 20 64 69 72 65 build dire
0980: 63 74 6f 72 79 2e 0a 0a 32 30 30 34 2d 31 32 2d ctory...2004-12-
0990: 32 32 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 22 Pat Thoyts
09a0: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 <patthoyts@users
09b0: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 .sourceforge.net
09c0: 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e >...* configure.
09d0: 69 6e 3a 20 20 20 20 20 49 6e 63 72 65 6d 65 6e in: Incremen
09e0: 74 65 64 20 6d 69 6e 6f 72 20 76 65 72 73 69 6f ted minor versio
09f0: 6e 20 74 6f 20 31 2e 35 2e 31 0a 09 2a 20 63 6f n to 1.5.1..* co
0a00: 6e 66 69 67 75 72 65 3a 20 20 20 20 20 20 20 20 nfigure:
0a10: 0a 0a 32 30 30 34 2d 31 32 2d 31 37 20 20 50 61 ..2004-12-17 Pa
0a20: 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 t Thoyts <patth
0a30: 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 oyts@users.sourc
0a40: 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 eforge.net>...*
0a50: 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a win/makefile.vc:
0a60: 20 20 41 64 64 65 64 20 74 68 65 20 4d 53 56 43 Added the MSVC
0a70: 20 62 75 69 6c 64 20 73 79 73 74 65 6d 20 28 66 build system (f
0a80: 72 6f 6d 20 74 68 65 20 54 63 6c 0a 09 2a 20 77 rom the Tcl..* w
0a90: 69 6e 2f 72 75 6c 65 73 2e 76 63 3a 20 20 20 20 in/rules.vc:
0aa0: 20 73 61 6d 70 6c 65 65 78 74 65 6e 73 69 6f 6e sampleextension
0ab0: 29 2e 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 )...* win/nmakeh
0ac0: 6c 70 2e 63 3a 0a 09 2a 20 77 69 6e 2f 74 6c 73 lp.c:..* win/tls
0ad0: 2e 72 63 20 20 20 20 20 20 20 20 41 64 64 65 64 .rc Added
0ae0: 20 57 69 6e 64 6f 77 73 20 72 65 73 6f 75 72 63 Windows resourc
0af0: 65 20 66 69 6c 65 2e 0a 09 0a 09 2a 20 74 6c 73 e file.....* tls
0b00: 2e 74 63 6c 3a 20 20 20 20 20 20 20 20 20 20 46 .tcl: F
0b10: 72 6f 6d 20 70 61 74 63 68 20 23 39 34 38 31 35 rom patch #94815
0b20: 35 2c 20 61 64 64 65 64 20 73 75 70 70 6f 72 74 5, added support
0b30: 20 66 6f 72 0a 09 20 20 20 20 20 20 20 20 20 20 for..
0b40: 20 20 20 20 20 20 20 20 20 20 61 6c 74 65 72 6e altern
0b50: 61 74 65 20 73 6f 63 6b 65 74 20 63 6f 6d 6d 61 ate socket comma
0b60: 6e 64 73 2e 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 nds...* tls.c:
0b70: 20 20 20 20 20 20 20 20 20 20 51 75 69 65 74 65 Quiete
0b80: 6e 20 73 6f 6d 65 20 4d 53 56 43 20 77 61 72 6e n some MSVC warn
0b90: 69 6e 67 73 2e 20 50 72 65 66 65 72 20 63 6b 61 ings. Prefer cka
0ba0: 6c 6c 6f 63 0a 09 20 20 20 20 20 20 20 20 20 20 lloc..
0bb0: 20 20 20 20 20 20 20 20 20 20 6f 76 65 72 20 54 over T
0bc0: 63 6c 5f 41 6c 6c 6f 63 2e 20 28 44 61 76 69 64 cl_Alloc. (David
0bd0: 20 47 72 61 76 65 72 61 75 78 29 2e 0a 0a 32 30 Graveraux)...20
0be0: 30 34 2d 30 36 2d 32 39 20 20 50 61 74 20 54 68 04-06-29 Pat Th
0bf0: 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 oyts <patthoyts
0c00: 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 @users.sourcefor
0c10: 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 6c 73 2e ge.net>...* tls.
0c20: 63 3a 20 20 20 20 20 20 20 20 20 20 20 20 46 69 c: Fi
0c30: 78 75 70 20 74 6f 20 62 75 69 6c 64 20 61 67 61 xup to build aga
0c40: 69 6e 73 74 20 74 63 6c 20 38 2e 33 2e 33 2e 20 inst tcl 8.3.3.
0c50: 48 61 6e 64 6c 65 0a 09 2a 20 74 6c 73 49 4f 2e Handle..* tlsIO.
0c60: 63 3a 20 20 20 20 20 20 20 20 20 20 38 2e 34 20 c: 8.4
0c70: 63 6f 6e 73 74 69 66 69 63 61 74 69 6f 6e 2e 0a constification..
0c80: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 20 20 ..* tlsInt.h:
0c90: 20 20 20 20 20 20 41 64 64 65 64 20 68 65 61 64 Added head
0ca0: 65 72 73 20 72 65 71 75 69 72 65 64 20 77 69 74 ers required wit
0cb0: 68 20 4d 53 56 43 20 6f 6e 20 57 69 6e 33 32 2e h MSVC on Win32.
0cc0: 0a 09 2a 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 ..* tlsX509.c:
0cd0: 20 20 20 20 20 20 75 6e 64 65 66 20 6d 69 6e 20 undef min
0ce0: 61 6e 64 20 6d 61 78 20 69 66 20 64 65 66 69 6e and max if defin
0cf0: 65 64 20 28 77 69 6e 33 32 29 2e 0a 0a 09 2a 20 ed (win32)....*
0d00: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 20 20 20 Makefile.in:
0d10: 20 20 46 69 78 65 64 20 74 6f 20 62 75 69 6c 64 Fixed to build
0d20: 20 6f 6e 20 77 69 6e 33 32 20 75 73 69 6e 67 20 on win32 using
0d30: 6d 73 79 73 20 77 69 74 68 0a 09 2a 20 61 63 6c msys with..* acl
0d40: 6f 63 61 6c 2e 6d 34 3a 20 20 20 20 20 20 20 4d ocal.m4: M
0d50: 53 56 43 2e 20 41 6c 73 6f 20 66 69 78 65 64 20 SVC. Also fixed
0d60: 74 68 65 20 74 65 73 74 20 74 61 72 67 65 74 2e the test target.
0d70: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e ..* configure.in
0d80: 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 :..* configure:
0d90: 20 20 20 20 20 20 20 52 65 67 65 6e 65 72 61 74 Regenerat
0da0: 65 64 2e 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 ed...* tclconfig
0db0: 2f 74 63 6c 2e 6d 34 3a 20 55 70 64 61 74 65 64 /tcl.m4: Updated
0dc0: 20 74 6f 20 6d 6f 73 74 20 72 65 63 65 6e 74 20 to most recent
0dd0: 76 65 72 73 69 6f 6e 2e 0a 0a 32 30 30 34 2d 30 version...2004-0
0de0: 33 2d 32 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 3-23 Dan Razzel
0df0: 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 l <research@star
0e00: 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a fishsystems.ca>.
0e10: 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 .* tls.c:..* tls
0e20: 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e BIO.c:..* tlsIO.
0e30: 63 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 c:..* tlsInt.h:.
0e40: 46 69 78 65 64 20 74 79 70 65 20 6d 61 74 63 68 Fixed type match
0e50: 20 77 61 72 6e 69 6e 67 73 2e 0a 0a 32 30 30 34 warnings...2004
0e60: 2d 30 33 2d 31 39 20 20 4a 65 66 66 20 48 6f 62 -03-19 Jeff Hob
0e70: 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 bs <jeffh@Activ
0e80: 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 eState.com>...*
0e90: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 tls.c (Tls_Init)
0ea0: 3a 20 20 20 72 65 70 6c 61 63 65 64 20 6f 6c 64 : replaced old
0eb0: 65 72 20 54 45 41 20 63 6f 6e 66 69 67 20 77 69 er TEA config wi
0ec0: 74 68 20 6e 65 77 65 72 0a 09 2a 20 63 6f 6e 66 th newer..* conf
0ed0: 69 67 2f 2a 20 28 72 65 6d 6f 76 65 64 29 3a 0a ig/* (removed):.
0ee0: 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e .* pkgIndex.tcl.
0ef0: 69 6e 2c 20 73 74 72 6e 63 61 73 65 63 6d 70 2e in, strncasecmp.
0f00: 63 20 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 c (removed):..*
0f10: 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 61 63 6c Makefile.in, acl
0f20: 6f 63 61 6c 2e 6d 34 2c 20 63 6f 6e 66 69 67 75 ocal.m4, configu
0f30: 72 65 2c 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e re, configure.in
0f40: 3a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 52 :..* tclconfig/R
0f50: 45 41 44 4d 45 2e 74 78 74 2c 20 74 63 6c 63 6f EADME.txt, tclco
0f60: 6e 66 69 67 2f 69 6e 73 74 61 6c 6c 2d 73 68 2c nfig/install-sh,
0f70: 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d tclconfig/tcl.m
0f80: 34 3a 0a 0a 32 30 30 34 2d 30 33 2d 31 37 20 20 4:..2004-03-17
0f90: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 Dan Razzell <res
0fa0: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
0fb0: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c stems.ca>...* tl
0fc0: 73 58 35 30 39 2e 63 3a 09 41 64 64 20 73 75 70 sX509.c:.Add sup
0fd0: 70 6f 72 74 20 66 6f 72 20 6c 6f 6e 67 20 73 65 port for long se
0fe0: 72 69 61 6c 20 6e 75 6d 62 65 72 73 20 70 65 72 rial numbers per
0ff0: 20 52 46 43 20 33 32 38 30 2e 0a 09 09 09 46 6f RFC 3280.....Fo
1000: 72 6d 61 74 20 69 73 20 6e 6f 77 20 68 65 78 61 rmat is now hexa
1010: 64 65 63 69 6d 61 6c 2e 20 0a 09 09 09 5b 52 65 decimal. ....[Re
1020: 71 75 65 73 74 20 23 39 31 35 33 31 33 5d 0a 09 quest #915313]..
1030: 09 09 43 6f 72 72 65 63 74 6c 79 20 63 6f 6e 76 ..Correctly conv
1040: 65 72 74 20 63 65 72 74 69 66 69 63 61 74 65 20 ert certificate
1050: 44 69 73 74 69 6e 67 75 69 73 68 65 64 20 4e 61 Distinguished Na
1060: 6d 65 73 0a 09 09 09 74 6f 20 54 63 6c 20 73 74 mes....to Tcl st
1070: 72 69 6e 67 20 72 65 70 72 65 73 65 6e 74 61 74 ring representat
1080: 69 6f 6e 2e 20 20 45 6c 69 6d 69 6e 61 74 65 73 ion. Eliminates
1090: 20 75 73 65 20 6f 66 0a 09 09 09 64 65 70 72 65 use of....depre
10a0: 63 61 74 65 64 20 4f 70 65 6e 53 53 4c 20 66 75 cated OpenSSL fu
10b0: 6e 63 74 69 6f 6e 2e 20 20 46 6f 72 6d 61 74 20 nction. Format
10c0: 69 73 20 6e 6f 77 20 63 6f 6d 70 6c 69 61 6e 74 is now compliant
10d0: 0a 09 09 09 77 69 74 68 20 52 46 43 20 32 32 35 ....with RFC 225
10e0: 33 2e 20 20 5b 52 65 71 75 65 73 74 20 23 39 31 3. [Request #91
10f0: 35 33 31 35 5d 0a 0a 32 30 30 34 2d 30 32 2d 31 5315]..2004-02-1
1100: 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 7 Dan Razzell <
1110: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 research@starfis
1120: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 54 hsystems.ca>...T
1130: 4c 53 20 31 2e 35 2e 30 20 52 45 4c 45 41 53 45 LS 1.5.0 RELEASE
1140: 0a 0a 32 30 30 34 2d 30 32 2d 31 32 20 20 44 61 ..2004-02-12 Da
1150: 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 n Razzell.<resea
1160: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 rch@starfishsyst
1170: 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e ems.ca>...* tls.
1180: 63 3a 09 41 6c 6c 6f 77 20 76 65 72 69 66 79 20 c:.Allow verify
1190: 63 61 6c 6c 62 61 63 6b 20 74 6f 20 72 65 74 75 callback to retu
11a0: 72 6e 20 65 6d 70 74 79 20 72 65 73 75 6c 74 2e rn empty result.
11b0: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 09 44 6f 63 ..* tls.htm:.Doc
11c0: 75 6d 65 6e 74 20 63 61 6c 6c 62 61 63 6b 20 62 ument callback b
11d0: 65 68 61 76 69 6f 72 73 2e 0a 0a 32 30 30 34 2d ehaviors...2004-
11e0: 30 32 2d 31 31 20 20 44 61 6e 20 52 61 7a 7a 65 02-11 Dan Razze
11f0: 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 ll.<research@sta
1200: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e rfishsystems.ca>
1210: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f ...* tests/tlsIO
1220: 2e 74 65 73 74 3a 0a 09 2a 20 72 65 6d 6f 74 65 .test:..* remote
1230: 2e 74 63 6c 3a 09 43 6f 6d 70 6c 65 74 65 20 70 .tcl:.Complete p
1240: 72 69 76 61 74 65 20 6b 65 79 20 6e 61 6d 65 20 rivate key name
1250: 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 32 30 30 changes from 200
1260: 31 2d 30 36 2d 32 31 2e 0a 0a 32 30 30 34 2d 30 1-06-21...2004-0
1270: 32 2d 30 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 2-03 Dan Razzel
1280: 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 l <research@star
1290: 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a fishsystems.ca>.
12a0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a ..* Makefile.in:
12b0: 09 52 65 6d 6f 76 65 64 20 63 69 72 63 75 6c 61 .Removed circula
12c0: 72 20 64 65 70 65 6e 64 65 6e 63 79 2e 0a 09 2a r dependency...*
12d0: 20 74 6c 73 49 6e 74 2e 68 3a 09 4d 61 6b 65 20 tlsInt.h:.Make
12e0: 66 75 6e 63 74 69 6f 6e 20 64 65 63 6c 61 72 61 function declara
12f0: 74 69 6f 6e 73 20 65 78 70 6c 69 63 69 74 2e 0a tions explicit..
1300: 09 2a 20 74 6c 73 2e 63 3a 09 46 69 78 20 74 79 .* tls.c:.Fix ty
1310: 70 65 20 6d 61 74 63 68 20 61 6e 64 20 75 6e 75 pe match and unu
1320: 73 65 64 20 76 61 72 69 61 62 6c 65 20 77 61 72 sed variable war
1330: 6e 69 6e 67 73 2e 0a 09 2a 20 74 6c 73 42 49 4f nings...* tlsBIO
1340: 2e 63 3a 09 46 69 78 20 74 79 70 65 20 6d 61 74 .c:.Fix type mat
1350: 63 68 20 77 61 72 6e 69 6e 67 2e 0a 0a 32 30 30 ch warning...200
1360: 33 2d 31 32 2d 31 35 20 20 44 61 6e 20 52 61 7a 3-12-15 Dan Raz
1370: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 zell.<research@s
1380: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
1390: 61 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e a>...* pkgIndex.
13a0: 74 63 6c 2e 69 6e 3a 0a 09 2a 20 74 6c 73 2e 68 tcl.in:..* tls.h
13b0: 74 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 tm:..* tests/tls
13c0: 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 IO.test: updated
13d0: 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e version to 1.5.
13e0: 0a 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 ..2003-10-07 Da
13f0: 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 n Razzell.<resea
1400: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 rch@starfishsyst
1410: 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 ems.ca>...* test
1420: 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 s/ciphers.test:
1430: 75 70 64 61 74 65 64 20 6c 69 73 74 20 6f 66 20 updated list of
1440: 74 65 73 74 65 64 20 63 69 70 68 65 72 73 20 74 tested ciphers t
1450: 6f 20 63 6f 72 72 65 73 70 6f 6e 64 0a 09 2a 20 o correspond..*
1460: 77 69 74 68 20 74 68 6f 73 65 20 61 76 61 69 6c with those avail
1470: 61 62 6c 65 20 66 72 6f 6d 20 4f 70 65 6e 53 53 able from OpenSS
1480: 4c 2e 20 5b 52 65 71 75 65 73 74 20 23 38 31 31 L. [Request #811
1490: 39 38 31 5d 0a 0a 32 30 30 33 2d 31 30 2d 30 37 981]..2003-10-07
14a0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 Dan Razzell <r
14b0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 esearch@starfish
14c0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 systems.ca>...*
14d0: 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e tls.c: added CON
14e0: 53 54 20 77 69 74 68 20 69 6e 74 65 6e 74 20 73 ST with intent s
14f0: 69 6d 69 6c 61 72 20 74 6f 20 74 68 6f 73 65 20 imilar to those
1500: 66 72 6f 6d 20 32 30 30 32 2d 30 32 2d 30 34 2e from 2002-02-04.
1510: 0a 09 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 ..[Request #8119
1520: 31 31 5d 0a 0a 32 30 30 33 2d 30 37 2d 30 37 20 11]..2003-07-07
1530: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 Jeff Hobbs <je
1540: 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e ffh@ActiveState.
1550: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 com>...* tls.c (
1560: 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20 61 64 64 Tls_Init): add
1570: 65 64 20 74 6c 73 3a 3a 6d 69 73 63 20 63 6f 6d ed tls::misc com
1580: 6d 61 6e 64 20 70 72 6f 76 69 64 65 64 20 62 79 mand provided by
1590: 0a 09 2a 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 ..* tlsX509.c:
15a0: 20 20 20 20 20 20 20 20 57 6f 6a 63 69 65 63 68 Wojciech
15b0: 20 4b 6f 63 6a 61 6e 20 28 77 6f 6a 63 69 65 63 Kocjan (wojciec
15c0: 68 20 6b 6f 63 6a 61 6e 2e 6f 72 67 29 0a 09 2a h kocjan.org)..*
15d0: 20 74 65 73 74 73 2f 6b 65 79 74 65 73 74 31 2e tests/keytest1.
15e0: 74 63 6c 3a 20 74 6f 20 65 78 70 6f 73 65 20 6d tcl: to expose m
15f0: 6f 72 65 20 6c 6f 77 2d 6c 65 76 65 6c 20 53 53 ore low-level SS
1600: 4c 20 63 6f 6d 6d 61 6e 64 73 0a 09 2a 20 74 65 L commands..* te
1610: 73 74 73 2f 6b 65 79 74 65 73 74 32 2e 74 63 6c sts/keytest2.tcl
1620: 3a 0a 0a 32 30 30 33 2d 30 35 2d 31 35 20 20 44 :..2003-05-15 D
1630: 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 an Razzell.<rese
1640: 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 arch@starfishsys
1650: 74 65 6d 73 2e 63 61 3e 20 0a 0a 09 2a 20 74 6c tems.ca> ...* tl
1660: 73 2e 74 63 6c 3a 0a 09 2a 20 74 6c 73 49 6e 74 s.tcl:..* tlsInt
1670: 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 .h:..* tls.c: ad
1680: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 62 69 d support for bi
1690: 6e 64 69 6e 67 20 61 20 70 61 73 73 77 6f 72 64 nding a password
16a0: 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20 74 68 65 callback to the
16b0: 20 73 6f 63 6b 65 74 2e 0a 09 4e 6f 77 20 65 61 socket...Now ea
16c0: 63 68 20 73 6f 63 6b 65 74 20 63 61 6e 20 68 61 ch socket can ha
16d0: 76 65 20 69 74 73 20 6f 77 6e 20 63 6f 6d 6d 61 ve its own comma
16e0: 6e 64 20 61 6e 64 20 70 61 73 73 77 6f 72 64 20 nd and password
16f0: 63 61 6c 6c 62 61 63 6b 73 20 69 6e 73 74 65 61 callbacks instea
1700: 64 0a 09 6f 66 20 62 65 69 6e 67 20 66 6f 72 63 d..of being forc
1710: 65 64 20 74 6f 20 68 61 76 65 20 61 6c 6c 20 70 ed to have all p
1720: 61 73 73 77 6f 72 64 20 6d 61 6e 61 67 65 6d 65 assword manageme
1730: 6e 74 20 70 61 73 73 20 74 68 72 6f 75 67 68 20 nt pass through
1740: 61 20 63 6f 6d 6d 6f 6e 0a 09 70 72 6f 63 65 64 a common..proced
1750: 75 72 65 2e 20 20 54 68 65 20 63 6f 6d 6d 6f 6e ure. The common
1760: 20 70 61 73 73 77 6f 72 64 20 70 72 6f 63 65 64 password proced
1770: 75 72 65 20 69 73 20 72 65 74 61 69 6e 65 64 20 ure is retained
1780: 66 6f 72 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 for compatibilit
1790: 79 0a 09 62 75 74 20 69 74 73 20 75 73 65 20 73 y..but its use s
17a0: 68 6f 75 6c 64 20 62 65 20 44 45 50 52 45 43 41 hould be DEPRECA
17b0: 54 45 44 2e 0a 09 41 64 64 20 76 65 72 73 69 6f TED...Add versio
17c0: 6e 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 72 65 74 n command to ret
17d0: 75 72 6e 20 4f 70 65 6e 53 53 4c 20 76 65 72 73 urn OpenSSL vers
17e0: 69 6f 6e 20 73 74 72 69 6e 67 2e 0a 09 52 65 6d ion string...Rem
17f0: 6f 76 65 20 75 6e 73 74 61 62 6c 65 20 77 6f 72 ove unstable wor
1800: 6b 61 72 6f 75 6e 64 73 20 6e 65 65 64 65 64 20 karounds needed
1810: 66 6f 72 20 76 65 72 69 66 79 20 69 6e 20 6f 62 for verify in ob
1820: 73 6f 6c 65 74 65 20 76 65 72 73 69 6f 6e 73 20 solete versions
1830: 6f 66 0a 09 4f 70 65 6e 53 53 4c 2e 0a 09 46 69 of..OpenSSL...Fi
1840: 78 20 6d 65 6d 6f 72 79 20 6c 65 61 6b 2e 20 5b x memory leak. [
1850: 52 65 71 75 65 73 74 20 23 36 34 30 36 36 30 5d Request #640660]
1860: 0a 09 4d 6f 72 65 20 63 61 73 74 73 20 74 6f 20 ..More casts to
1870: 65 6c 69 6d 69 6e 61 74 65 20 63 6f 6d 70 69 6c eliminate compil
1880: 65 72 20 77 61 72 6e 69 6e 67 73 2e 0a 0a 09 2a er warnings....*
1890: 20 74 6c 73 2e 68 74 6d 3a 20 64 6f 63 75 6d 65 tls.htm: docume
18a0: 6e 74 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c nt password call
18b0: 62 61 63 6b 2e 0a 09 43 6f 72 72 65 63 74 20 74 back...Correct t
18c0: 65 63 68 6e 69 63 61 6c 20 61 6e 64 20 74 79 70 echnical and typ
18d0: 6f 67 72 61 70 68 69 63 20 65 72 72 6f 72 73 2e ographic errors.
18e0: 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a ...* README.txt:
18f0: 20 69 64 65 6e 74 69 66 79 20 76 65 72 73 69 6f identify versio
1900: 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c 20 77 68 ns of OpenSSL wh
1910: 69 63 68 20 66 69 78 20 6b 6e 6f 77 6e 20 70 72 ich fix known pr
1920: 6f 62 6c 65 6d 73 2e 0a 09 47 65 6e 65 72 61 6c oblems...General
1930: 20 77 61 72 6e 69 6e 67 20 6f 66 20 73 65 63 75 warning of secu
1940: 72 69 74 79 20 70 72 6f 62 6c 65 6d 73 20 69 6e rity problems in
1950: 20 6f 6c 64 65 72 20 76 65 72 73 69 6f 6e 73 20 older versions
1960: 6f 66 20 4f 70 65 6e 53 53 4c 2e 0a 0a 32 30 30 of OpenSSL...200
1970: 32 2d 30 32 2d 30 34 20 20 4a 65 66 66 20 48 6f 2-02-04 Jeff Ho
1980: 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 bbs <jeffh@Acti
1990: 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a veState.com>...*
19a0: 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 6c 73 tls.htm:..* tls
19b0: 2e 63 3a 20 61 64 64 65 64 20 73 75 70 70 6f 72 .c: added suppor
19c0: 74 20 66 6f 72 20 6c 6f 63 61 6c 20 63 65 72 74 t for local cert
19d0: 69 66 69 63 61 74 65 20 73 74 61 74 75 73 20 63 ificate status c
19e0: 68 65 63 6b 2c 20 61 73 20 77 65 6c 6c 0a 09 61 heck, as well..a
19f0: 73 20 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 s returning the
1a00: 23 20 6f 66 20 62 69 74 73 20 69 6e 20 74 68 65 # of bits in the
1a10: 20 73 65 73 73 69 6f 6e 20 6b 65 79 2e 20 5b 50 session key. [P
1a20: 61 74 63 68 20 23 35 30 35 36 39 38 5d 20 28 72 atch #505698] (r
1a30: 6f 73 65 29 0a 0a 09 2a 20 74 6c 73 2e 63 3a 0a ose)...* tls.c:.
1a40: 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 .* tlsIO.c:..* t
1a50: 6c 73 42 49 4f 2e 63 3a 20 61 64 64 65 64 20 43 lsBIO.c: added C
1a60: 4f 4e 53 54 73 20 74 6f 20 73 61 74 69 73 66 79 ONSTs to satisfy
1a70: 20 54 63 6c 20 38 2e 34 20 73 6f 75 72 63 65 73 Tcl 8.4 sources
1a80: 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 67 69 76 . This may..giv
1a90: 65 20 77 61 72 6e 69 6e 67 73 20 77 68 65 6e 20 e warnings when
1aa0: 63 6f 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 compiled against
1ab0: 20 38 2e 33 2c 20 62 75 74 20 74 68 65 79 20 63 8.3, but they c
1ac0: 61 6e 20 62 65 20 69 67 6e 6f 72 65 64 2e 0a 0a an be ignored...
1ad0: 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 .* tests/simpleC
1ae0: 6c 69 65 6e 74 2e 74 63 6c 3a 0a 09 2a 20 74 65 lient.tcl:..* te
1af0: 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 76 65 72 sts/simpleServer
1b00: 2e 74 63 6c 3a 20 70 6f 69 6e 74 20 74 6f 20 75 .tcl: point to u
1b10: 70 64 61 74 65 64 20 63 6c 69 65 6e 74 2f 73 65 pdated client/se
1b20: 72 76 65 72 20 6b 65 79 20 66 69 6c 65 73 2e 0a rver key files..
1b30: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
1b40: 74 65 73 74 3a 0a 09 2a 20 74 65 73 74 73 2f 63 test:..* tests/c
1b50: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 iphers.test: upd
1b60: 61 74 65 64 20 74 6f 20 6c 6f 61 64 20 74 6c 73 ated to load tls
1b70: 20 66 72 6f 6d 20 62 75 69 6c 64 20 64 69 72 2e from build dir.
1b80: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e ...* Makefile.in
1b90: 3a 20 72 65 6d 6f 76 65 64 20 73 74 72 6e 63 61 : removed strnca
1ba0: 73 65 63 6d 70 20 66 72 6f 6d 20 64 65 66 61 75 secmp from defau
1bb0: 6c 74 20 6f 62 6a 65 63 74 20 73 65 74 2e 20 20 lt object set.
1bc0: 54 68 69 73 0a 09 69 73 20 6f 6e 6c 79 20 6e 65 This..is only ne
1bd0: 65 64 65 64 20 6f 6e 20 74 68 65 20 4d 61 63 2c eded on the Mac,
1be0: 20 61 6e 64 20 54 63 6c 20 73 74 75 62 73 20 70 and Tcl stubs p
1bf0: 72 6f 76 69 64 65 73 20 69 74 2e 0a 0a 09 2a 20 rovides it....*
1c00: 63 6f 6e 66 69 67 75 72 65 3a 20 72 65 67 65 6e configure: regen
1c10: 27 65 64 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72 'ed...* configur
1c20: 65 2e 69 6e 3a 20 75 70 64 61 74 65 64 20 74 6f e.in: updated to
1c30: 20 31 2e 35 2e 30 20 66 6f 72 20 6e 65 78 74 20 1.5.0 for next
1c40: 72 65 6c 65 61 73 65 2e 0a 09 43 68 61 6e 67 65 release...Change
1c50: 64 20 64 65 66 61 75 6c 74 20 6f 70 65 6e 73 73 d default openss
1c60: 6c 20 6c 6f 63 61 74 69 6f 6e 20 74 6f 20 2f 75 l location to /u
1c70: 73 72 2f 6c 6f 63 61 6c 2f 73 73 6c 20 28 74 68 sr/local/ssl (th
1c80: 69 73 20 69 73 20 77 68 65 72 65 0a 09 6f 70 65 is is where..ope
1c90: 6e 73 73 6c 20 30 2e 39 2e 36 63 20 69 6e 73 74 nssl 0.9.6c inst
1ca0: 61 6c 6c 73 20 62 79 20 64 65 66 61 75 6c 74 29 alls by default)
1cb0: 2e 0a 09 43 68 61 6e 67 65 64 20 74 6f 20 75 73 ...Changed to us
1cc0: 65 20 70 75 62 6c 69 63 20 54 63 6c 20 68 65 61 e public Tcl hea
1cd0: 64 65 72 73 20 28 70 72 69 76 61 74 65 20 6e 6f ders (private no
1ce0: 74 20 6e 65 65 64 65 64 29 2e 0a 0a 32 30 30 31 t needed)...2001
1cf0: 2d 30 36 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 -06-21 Jeff Hob
1d00: 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 bs <jeffh@Activ
1d10: 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 54 4c eState.com>...TL
1d20: 53 20 31 2e 34 2e 31 20 52 45 4c 45 41 53 45 0a S 1.4.1 RELEASE.
1d30: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 61 ..* configure: a
1d40: 64 64 65 64 20 63 6f 6e 66 69 67 75 72 65 20 74 dded configure t
1d50: 6f 20 43 56 53 0a 09 2a 20 63 6f 6e 66 69 67 75 o CVS..* configu
1d60: 72 65 2e 69 6e 3a 20 6d 6f 76 65 64 20 74 6f 20 re.in: moved to
1d70: 70 61 74 63 68 6c 65 76 65 6c 20 31 2e 34 2e 31 patchlevel 1.4.1
1d80: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e ...* Makefile.in
1d90: 3a 20 63 6f 72 72 65 63 74 65 64 20 27 64 69 73 : corrected 'dis
1da0: 74 27 20 74 61 72 67 65 74 0a 0a 09 2a 20 74 65 t' target...* te
1db0: 73 74 73 2f 63 65 72 74 73 2f 66 69 6c 65 2e 73 sts/certs/file.s
1dc0: 72 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 rl:..* tests/cer
1dd0: 74 73 2f 63 61 2e 70 65 6d 3a 0a 09 2a 20 74 65 ts/ca.pem:..* te
1de0: 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 sts/certs/client
1df0: 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .key:..* tests/c
1e00: 65 72 74 73 2f 63 6c 69 65 6e 74 2e 70 65 6d 3a erts/client.pem:
1e10: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1e20: 63 6c 69 65 6e 74 2e 72 65 71 3a 0a 09 2a 20 74 client.req:..* t
1e30: 65 73 74 73 2f 63 65 72 74 73 2f 70 72 69 76 6b ests/certs/privk
1e40: 65 79 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 ey.pem:..* tests
1e50: 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 6b 65 /certs/server.ke
1e60: 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 y:..* tests/cert
1e70: 73 2f 73 65 72 76 65 72 2e 70 65 6d 3a 0a 09 2a s/server.pem:..*
1e80: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 tests/certs/ser
1e90: 76 65 72 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 ver.req:..* test
1ea0: 73 2f 63 65 72 74 73 2f 63 61 63 65 72 74 2e 70 s/certs/cacert.p
1eb0: 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 em: replaced by
1ec0: 6e 65 77 20 63 61 2e 70 65 6d 0a 09 2a 20 74 65 new ca.pem..* te
1ed0: 73 74 73 2f 63 65 72 74 73 2f 73 6b 65 79 2e 70 sts/certs/skey.p
1ee0: 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 em: replaced by
1ef0: 6e 65 77 20 73 65 72 76 65 72 2e 6b 65 79 0a 09 new server.key..
1f00: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6b * tests/certs/ck
1f10: 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 ey.pem: replaced
1f20: 20 62 79 20 6e 65 77 20 63 6c 69 65 6e 74 2e 6b by new client.k
1f30: 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 ey..* tests/cert
1f40: 73 2f 52 45 41 44 4d 45 2e 74 78 74 3a 20 6e 65 s/README.txt: ne
1f50: 77 20 73 65 74 20 6f 66 20 74 65 73 74 20 63 65 w set of test ce
1f60: 72 74 69 66 69 63 61 74 65 73 20 77 69 74 68 20 rtificates with
1f70: 73 6f 6d 65 0a 09 52 45 41 44 4d 45 20 69 6e 66 some..README inf
1f80: 6f 20 6f 6e 20 74 68 65 69 72 20 67 65 6e 65 72 o on their gener
1f90: 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74 65 73 74 73 ation....* tests
1fa0: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 /ciphers.test: u
1fb0: 70 64 61 74 65 64 20 63 69 70 68 65 72 73 20 65 pdated ciphers e
1fc0: 78 70 65 63 74 65 64 20 77 69 74 68 20 64 65 66 xpected with def
1fd0: 61 75 6c 74 0a 09 6f 70 65 6e 73 73 6c 20 62 75 ault..openssl bu
1fe0: 69 6c 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 ild....* tests/t
1ff0: 63 6c 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 clIO.test: updat
2000: 65 64 20 74 6f 20 75 73 65 20 6e 65 77 20 6e 61 ed to use new na
2010: 6d 65 73 20 66 6f 72 20 63 65 72 74 73 2f 6b 65 mes for certs/ke
2020: 79 73 2e 0a 0a 32 30 30 31 2d 30 33 2d 31 34 20 ys...2001-03-14
2030: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 Jeff Hobbs <je
2040: 66 66 68 40 67 69 6d 6c 65 74 2e 61 63 74 69 76 ffh@gimlet.activ
2050: 65 73 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 estate.com>...*
2060: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 tls.c (Tls_Init)
2070: 3a 20 61 64 64 20 64 6f 2f 77 68 69 6c 65 20 66 : add do/while f
2080: 6f 72 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 or random number
2090: 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 0a initialization.
20a0: 09 74 6f 20 77 6f 72 6b 20 61 72 6f 75 6e 64 20 .to work around
20b0: 73 6f 6d 65 20 4f 53 65 73 20 71 75 69 72 6b 73 some OSes quirks
20c0: 2e 20 20 28 52 61 6c 70 68 2e 42 69 6c 6c 65 73 . (Ralph.Billes
20d0: 40 74 65 6c 74 65 63 68 2e 63 6f 6d 2e 61 75 29 @teltech.com.au)
20e0: 0a 0a 32 30 30 30 2d 30 39 2d 30 37 20 20 4a 65 ..2000-09-07 Je
20f0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
2100: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
2110: 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 ..* tlsIO.c (Tls
2120: 5f 43 68 61 6e 6e 65 6c 54 79 70 65 29 3a 20 73 _ChannelType): s
2130: 65 74 20 74 79 70 65 4e 61 6d 65 20 66 69 65 6c et typeName fiel
2140: 64 20 6f 66 20 63 68 61 6e 6e 65 6c 20 74 79 70 d of channel typ
2150: 65 20 74 6f 0a 09 22 74 6c 73 22 20 28 74 68 69 e to.."tls" (thi
2160: 73 20 67 6f 74 20 6c 6f 73 74 20 69 6e 20 6d 6f s got lost in mo
2170: 76 65 20 74 6f 20 64 79 6e 61 6d 69 63 20 76 65 ve to dynamic ve
2180: 72 73 69 6f 6e 20 63 6f 6d 70 61 74 61 62 69 6c rsion compatabil
2190: 69 74 79 0a 09 63 68 65 63 6b 69 6e 67 29 2e 0a ity..checking)..
21a0: 0a 32 30 30 30 2d 30 38 2d 32 33 20 20 4a 65 66 .2000-08-23 Jef
21b0: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 f Hobbs <hobbs@
21c0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a scriptics.com>..
21d0: 09 54 4c 53 20 31 2e 34 20 52 45 4c 45 41 53 45 .TLS 1.4 RELEASE
21e0: 44 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 D...* Makefile.i
21f0: 6e 20 28 64 69 73 74 29 3a 20 63 72 65 61 74 65 n (dist): create
2200: 20 64 69 73 74 20 74 61 72 67 65 74 20 66 6f 72 dist target for
2210: 20 61 72 63 68 69 76 65 20 64 69 73 74 72 69 62 archive distrib
2220: 75 74 69 6f 6e 73 0a 0a 09 2a 20 74 65 73 74 73 utions...* tests
2230: 2f 74 6c 73 49 4f 2e 74 65 73 74 20 28 74 6c 73 /tlsIO.test (tls
2240: 49 4f 2d 38 2e 31 29 3a 20 61 64 64 65 64 20 61 IO-8.1): added a
2250: 20 64 65 6c 61 79 20 6f 6e 20 74 68 65 20 61 63 delay on the ac
2260: 63 65 70 74 20 63 6c 6f 73 65 0a 09 74 6f 20 6d cept close..to m
2270: 61 6b 65 20 74 68 65 20 74 65 73 74 20 77 6f 72 ake the test wor
2280: 6b 20 77 69 74 68 20 4f 70 65 6e 53 53 4c 20 6f k with OpenSSL o
2290: 6e 20 57 69 6e 64 6f 77 73 20 28 64 6f 65 73 6e n Windows (doesn
22a0: 27 74 20 61 66 66 65 63 74 0a 09 6f 74 68 65 72 't affect..other
22b0: 20 62 75 69 6c 64 73 29 2e 0a 0a 09 2a 20 74 6c builds)....* tl
22c0: 73 2e 68 74 6d 3a 20 75 70 64 61 74 65 64 20 77 s.htm: updated w
22d0: 69 74 68 20 6e 6f 74 65 73 20 66 6f 72 20 31 2e ith notes for 1.
22e0: 34 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 31 20 20 4...2000-08-21
22f0: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
2300: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
2310: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 >...* tests/tlsI
2320: 4f 2e 74 65 73 74 3a 20 72 65 71 75 69 72 65 20 O.test: require
2330: 61 74 20 6c 65 61 73 74 20 74 6c 73 31 2e 34 20 at least tls1.4
2340: 69 6e 20 74 65 73 74 20 73 75 69 74 65 2e 0a 0a in test suite...
2350: 32 30 30 30 2d 30 38 2d 31 38 20 20 4a 65 66 66 2000-08-18 Jeff
2360: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
2370: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
2380: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 * tls.c (Tls_Ini
2390: 74 29 3a 20 61 64 64 65 64 20 63 61 6c 6c 20 74 t): added call t
23a0: 6f 20 52 41 4e 44 5f 73 65 65 64 20 74 6f 20 73 o RAND_seed to s
23b0: 65 65 64 20 74 68 65 20 53 53 4c 20 72 61 6e 64 eed the SSL rand
23c0: 6f 6d 0a 09 6e 75 6d 62 65 72 20 67 65 6e 65 72 om..number gener
23d0: 61 74 6f 72 2e 20 20 57 69 74 68 6f 75 74 20 74 ator. Without t
23e0: 68 69 73 2c 20 4f 70 65 6e 53 53 4c 20 30 2e 39 his, OpenSSL 0.9
23f0: 2e 35 20 63 68 6f 6b 65 73 2c 20 61 6e 64 20 69 .5 chokes, and i
2400: 6e 20 61 6e 79 0a 09 63 61 73 65 20 69 74 20 69 n any..case it i
2410: 73 20 61 20 62 69 67 20 73 65 63 75 72 69 74 79 s a big security
2420: 20 68 6f 6c 65 20 74 6f 20 64 6f 20 77 69 74 68 hole to do with
2430: 6f 75 74 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 out it....* conf
2440: 69 67 75 72 65 2e 69 6e 20 28 4f 50 45 4e 53 53 igure.in (OPENSS
2450: 4c 29 3a 20 61 64 64 65 64 20 4e 4f 5f 49 44 45 L): added NO_IDE
2460: 41 20 61 6e 64 20 4e 4f 5f 52 43 35 20 64 65 66 A and NO_RC5 def
2470: 69 6e 65 73 20 62 79 0a 09 64 65 66 61 75 6c 74 ines by..default
2480: 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 when compiling
2490: 77 69 74 68 20 4f 70 65 6e 53 53 4c 2e 0a 0a 09 with OpenSSL....
24a0: 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 61 64 64 65 * tlsInt.h: adde
24b0: 64 20 65 72 72 2e 68 20 69 6e 63 6c 75 64 65 0a d err.h include.
24c0: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a ..* tlsBIO.c:..*
24d0: 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 tlsIO.c: correc
24e0: 74 65 64 20 70 65 64 61 6e 74 69 63 20 63 61 73 ted pedantic cas
24f0: 74 20 65 72 72 6f 72 73 2e 0a 0a 32 30 30 30 2d t errors...2000-
2500: 30 38 2d 31 36 20 20 4a 65 66 66 20 48 6f 62 62 08-16 Jeff Hobb
2510: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
2520: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 ics.com>...* tes
2530: 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a ts/ciphers.test:
2540: 20 69 6d 70 72 6f 76 65 64 20 61 62 69 6c 69 74 improved abilit
2550: 79 20 74 6f 20 63 68 61 6e 67 65 20 63 6f 6e 73 y to change cons
2560: 74 72 61 69 6e 74 0a 09 73 65 74 74 69 6e 67 20 traint..setting
2570: 66 6f 72 20 77 68 65 74 68 65 72 20 75 73 65 72 for whether user
2580: 20 63 6f 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 compiled agains
2590: 74 20 52 53 41 20 6f 72 20 4f 70 65 6e 53 53 4c t RSA or OpenSSL
25a0: 20 6c 69 62 73 2e 0a 0a 09 2a 20 74 6c 73 2e 63 libs....* tls.c
25b0: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 6f 72 (Tls_Init): cor
25c0: 72 65 63 74 65 64 20 69 6e 74 65 72 70 72 65 74 rected interpret
25d0: 61 74 69 6f 6e 20 6f 66 20 76 65 72 73 69 6f 6e ation of version
25e0: 20 6e 75 6d 62 65 72 0a 09 28 70 61 74 63 68 6c number..(patchl
25f0: 65 76 65 6c 20 61 6e 64 20 72 65 6c 65 61 73 65 evel and release
2600: 2f 73 65 72 69 61 6c 20 77 65 72 65 20 73 77 61 /serial were swa
2610: 70 70 65 64 29 2e 0a 0a 32 30 30 30 2d 30 38 2d pped)...2000-08-
2620: 31 35 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 15 Jeff Hobbs
2630: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
2640: 2e 63 6f 6d 3e 0a 0a 09 2a 20 52 45 41 44 4d 45 .com>...* README
2650: 2e 74 78 74 3a 20 61 64 64 65 64 20 6e 6f 74 65 .txt: added note
2660: 73 20 61 62 6f 75 74 20 6e 65 65 64 20 74 6f 20 s about need to
2670: 75 73 65 20 38 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 use 8.2.0+....*
2680: 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 tlsInt.h:..* tls
2690: 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 .c:..* tlsIO.c:
26a0: 63 6f 72 72 65 63 74 65 64 20 73 74 72 75 63 74 corrected struct
26b0: 75 72 65 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 ure initializati
26c0: 6f 6e 20 74 6f 20 77 6f 72 6b 20 77 68 65 6e 0a on to work when.
26d0: 09 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 .compiling with
26e0: 38 2e 32 2e 20 20 4e 6f 77 20 63 6f 6d 70 69 6c 8.2. Now compil
26f0: 65 73 20 77 69 74 68 20 38 2e 32 2b 20 61 6e 64 es with 8.2+ and
2700: 20 74 65 73 74 65 64 20 74 6f 20 77 6f 72 6b 0a tested to work.
2710: 09 77 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 64 .with 8.2+ and d
2720: 79 6e 61 6d 69 63 61 6c 6c 79 20 61 64 6a 75 73 ynamically adjus
2730: 74 20 74 6f 20 74 68 65 20 76 65 72 73 69 6f 6e t to the version
2740: 20 6f 66 20 54 63 6c 20 69 74 20 77 61 73 0a 09 of Tcl it was..
2750: 6c 6f 61 64 65 64 20 69 6e 74 6f 2e 20 20 54 4c loaded into. TL
2760: 53 20 77 69 6c 6c 20 66 61 69 6c 20 74 68 65 20 S will fail the
2770: 74 65 73 74 20 73 75 69 74 65 20 77 69 74 68 20 test suite with
2780: 54 63 6c 20 38 2e 32 2d 38 2e 33 2e 31 2e 0a 0a Tcl 8.2-8.3.1...
2790: 09 2a 20 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c .* tests/all.tcl
27a0: 3a 20 61 64 64 65 64 20 63 61 74 63 68 20 61 72 : added catch ar
27b0: 6f 75 6e 64 20 3a 3a 74 63 6c 74 65 73 74 3a 3a ound ::tcltest::
27c0: 6e 6f 72 6d 61 6c 69 7a 65 50 61 74 68 0a 09 62 normalizePath..b
27d0: 65 63 61 75 73 65 20 69 74 20 64 6f 65 73 6e 27 ecause it doesn'
27e0: 74 20 65 78 69 73 74 20 69 6e 20 70 72 65 2d 38 t exist in pre-8
27f0: 2e 33 20 74 63 6c 74 65 73 74 2e 0a 0a 09 2a 20 .3 tcltest....*
2800: 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 tests/simpleClie
2810: 6e 74 2e 74 63 6c 3a 20 0a 09 2a 20 74 65 73 74 nt.tcl: ..* test
2820: 73 2f 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 s/simpleServer.t
2830: 63 6c 3a 20 61 64 64 65 64 20 73 69 6d 70 6c 65 cl: added simple
2840: 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 74 client/server t
2850: 65 73 74 20 73 63 72 69 70 74 73 0a 09 74 68 61 est scripts..tha
2860: 74 20 75 73 65 20 74 65 73 74 20 63 65 72 74 73 t use test certs
2870: 20 61 6e 64 20 63 61 6e 20 64 6f 20 73 69 6d 70 and can do simp
2880: 6c 65 20 73 74 72 65 73 73 20 74 65 73 74 73 2e le stress tests.
2890: 0a 0a 32 30 30 30 2d 30 38 2d 31 34 20 20 4a 65 ..2000-08-14 Je
28a0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
28b0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
28c0: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a ..* tlsInt.h:..*
28d0: 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 tlsIO.c:..* tls
28e0: 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 2e 63 3a BIO.c:..* tls.c:
28f0: 20 63 68 61 6e 67 65 64 20 61 72 6f 75 6e 64 20 changed around
2900: 74 6f 20 6f 6e 6c 79 20 77 6f 72 6b 69 6e 67 20 to only working
2910: 77 69 74 68 20 38 2e 32 2e 30 2b 20 28 38 2e 33 with 8.2.0+ (8.3
2920: 2e 32 2b 0a 09 70 72 65 66 65 72 72 65 64 29 2c .2+..preferred),
2930: 20 77 69 74 68 20 72 75 6e 74 69 6d 65 20 63 68 with runtime ch
2940: 65 63 6b 73 20 66 6f 72 20 70 72 65 2d 20 61 6e ecks for pre- an
2950: 64 20 70 6f 73 74 2d 69 6f 2d 72 65 77 72 69 74 d post-io-rewrit
2960: 65 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c e....* tls.c (Tl
2970: 73 5f 49 6e 69 74 29 3a 20 63 68 61 6e 67 65 64 s_Init): changed
2980: 20 69 74 20 74 6f 20 72 65 71 75 69 72 65 20 38 it to require 8
2990: 2e 33 2e 32 20 77 68 65 6e 20 54 63 6c 5f 49 6e .3.2 when Tcl_In
29a0: 69 74 53 74 75 62 73 0a 09 77 61 73 20 63 61 6c itStubs..was cal
29b0: 6c 65 64 20 62 65 63 61 75 73 65 20 77 65 20 64 led because we d
29c0: 6f 6e 27 74 20 77 61 6e 74 20 70 65 6f 70 6c 65 on't want people
29d0: 20 75 73 69 6e 67 20 54 4c 53 20 77 69 74 68 20 using TLS with
29e0: 74 68 65 0a 09 6f 72 69 67 69 6e 61 6c 20 73 74 the..original st
29f0: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 20 69 6d acked channel im
2a00: 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 2e 0a 0a 32 plementation...2
2a10: 30 30 30 2d 30 37 2d 32 36 20 20 4a 65 66 66 20 000-07-26 Jeff
2a20: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
2a30: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
2a40: 20 6d 65 72 67 65 64 20 61 6c 6c 20 63 68 61 6e merged all chan
2a50: 67 65 73 20 66 72 6f 6d 20 74 6c 73 2d 31 2d 33 ges from tls-1-3
2a60: 2d 69 6f 2d 72 65 77 72 69 74 65 20 62 61 63 6b -io-rewrite back
2a70: 20 69 6e 74 6f 20 6d 61 69 6e 20 62 72 61 6e 63 into main branc
2a80: 68 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 h...* tests/tlsI
2a90: 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 O.test: updated
2aa0: 63 6f 6d 6d 65 6e 74 73 2c 20 66 69 78 65 64 20 comments, fixed
2ab0: 61 20 70 63 43 72 61 73 68 20 63 61 73 65 20 74 a pcCrash case t
2ac0: 68 61 74 0a 09 77 61 73 20 64 75 65 20 74 6f 20 hat..was due to
2ad0: 64 65 62 75 67 20 61 73 73 65 72 74 69 6f 6e 20 debug assertion
2ae0: 69 6e 20 57 69 6e 64 6f 77 73 20 53 53 4c 2e 0a in Windows SSL..
2af0: 0a 09 2a 20 74 6c 73 2e 63 20 28 49 6d 70 6f 72 ..* tls.c (Impor
2b00: 74 4f 62 6a 43 6d 64 29 3a 20 72 65 6d 6f 76 65 tObjCmd): remove
2b10: 64 20 75 6e 6e 65 63 65 73 73 61 72 79 20 75 73 d unnecessary us
2b20: 65 20 6f 66 20 27 62 69 6f 27 20 61 72 67 2e 0a e of 'bio' arg..
2b30: 09 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 65 .(Tls_Init): che
2b40: 63 6b 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 ck return value
2b50: 6f 66 20 53 53 4c 5f 6c 69 62 72 61 72 79 5f 69 of SSL_library_i
2b60: 6e 69 74 2e 20 20 41 6c 73 6f 20 6c 6f 74 73 20 nit. Also lots
2b70: 6f 66 0a 09 77 68 69 74 65 73 70 61 63 65 20 63 of..whitespace c
2b80: 6c 65 61 6e 75 70 20 28 6d 6f 72 65 20 6c 69 6b leanup (more lik
2b90: 65 20 54 63 6c 20 45 6e 67 20 73 74 79 6c 65 20 e Tcl Eng style
2ba0: 67 75 69 64 65 29 2c 20 62 75 74 20 6e 6f 74 20 guide), but not
2bb0: 61 6c 6c 0a 09 63 6f 64 65 20 77 61 73 20 63 6c all..code was cl
2bc0: 65 61 6e 65 64 20 75 70 2e 0a 0a 09 2a 20 74 6c eaned up....* tl
2bd0: 73 42 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 sBIO.c: minor wh
2be0: 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 itespace cleanup
2bf0: 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 6d 69 ...* tlsIO.c: mi
2c00: 6e 6f 72 20 77 68 69 74 65 73 70 61 63 65 20 63 nor whitespace c
2c10: 6c 65 61 6e 75 70 2e 0a 09 28 54 6c 73 49 6e 70 leanup...(TlsInp
2c20: 75 74 50 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 utProc, TlsOutpu
2c30: 74 50 72 6f 63 29 3a 20 41 64 64 65 64 20 45 52 tProc): Added ER
2c40: 52 5f 63 6c 65 61 72 5f 65 72 72 6f 72 20 62 65 R_clear_error be
2c50: 66 6f 72 65 20 63 61 6c 6c 73 0a 09 74 6f 20 42 fore calls..to B
2c60: 49 4f 5f 72 65 61 64 20 6f 72 20 42 49 4f 5f 77 IO_read or BIO_w
2c70: 72 69 74 65 2c 20 62 65 63 61 75 73 65 20 77 65 rite, because we
2c80: 20 63 6f 75 6c 64 20 6f 74 68 65 72 77 69 73 65 could otherwise
2c90: 20 65 6e 64 20 75 70 0a 09 70 75 6c 6c 69 6e 67 end up..pulling
2ca0: 20 61 6e 20 65 72 72 6f 72 20 6f 66 66 20 74 68 an error off th
2cb0: 65 20 73 74 61 63 6b 20 74 68 61 74 20 64 69 64 e stack that did
2cc0: 6e 27 74 20 62 65 6c 6f 6e 67 20 74 6f 20 75 73 n't belong to us
2cd0: 2e 20 20 41 6c 73 6f 0a 09 63 6c 65 61 6e 75 70 . Also..cleanup
2ce0: 20 75 70 20 65 78 63 65 73 73 69 76 65 20 75 73 up excessive us
2cf0: 65 20 6f 66 20 67 6f 74 6f 73 2e 0a 0a 32 30 30 e of gotos...200
2d00: 30 2d 30 37 2d 32 30 20 20 4a 65 66 66 20 48 6f 0-07-20 Jeff Ho
2d10: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
2d20: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
2d30: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
2d40: 20 63 6f 72 72 65 63 74 65 64 20 76 61 72 69 6f corrected vario
2d50: 75 73 20 74 65 73 74 73 20 74 6f 20 62 65 20 63 us tests to be c
2d60: 6f 72 72 65 63 74 20 66 6f 72 20 54 4c 53 0a 09 orrect for TLS..
2d70: 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 stacked channels
2d80: 20 28 61 73 20 6f 70 70 6f 73 65 64 20 74 6f 20 (as opposed to
2d90: 74 68 65 20 73 74 61 6e 64 61 72 64 20 73 6f 63 the standard soc
2da0: 6b 65 74 73 20 74 68 65 20 74 65 73 74 0a 09 73 kets the test..s
2db0: 75 69 74 65 20 77 61 73 20 61 64 6f 70 74 65 64 uite was adopted
2dc0: 20 66 72 6f 6d 29 2e 20 20 4b 65 79 20 64 69 66 from). Key dif
2dd0: 66 65 72 65 6e 63 65 73 20 61 72 65 20 74 68 61 ferences are tha
2de0: 74 20 54 4c 53 20 63 61 6e 6e 6f 74 0a 09 6f 70 t TLS cannot..op
2df0: 65 72 61 74 65 20 69 6e 20 6f 6e 65 20 70 72 6f erate in one pro
2e00: 63 65 73 73 20 77 69 74 68 6f 75 74 20 61 6c 6c cess without all
2e10: 20 63 68 61 6e 6e 65 6c 73 20 62 65 69 6e 67 20 channels being
2e20: 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 2c 20 6f 72 non-blocking, or
2e30: 0a 09 74 68 65 20 68 61 6e 64 73 68 61 6b 65 20 ..the handshake
2e40: 77 69 6c 6c 20 62 6c 6f 63 6b 2c 20 61 6e 64 20 will block, and
2e50: 68 61 6e 64 73 68 61 6b 69 6e 67 20 6d 75 73 74 handshaking must
2e60: 20 62 65 20 66 6f 72 63 65 64 20 69 6e 20 73 6f be forced in so
2e70: 6d 65 0a 09 63 61 73 65 73 2e 20 20 41 6c 73 6f me..cases. Also
2e80: 2c 20 68 61 6e 64 73 68 61 6b 65 73 20 64 6f 6e , handshakes don
2e90: 27 74 20 73 65 65 6d 20 74 6f 20 63 6f 6d 70 6c 't seem to compl
2ea0: 65 74 65 20 75 6e 6c 65 73 73 20 74 68 65 20 63 ete unless the c
2eb0: 6c 69 65 6e 74 0a 09 68 61 73 20 70 6c 61 63 65 lient..has place
2ec0: 64 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 62 d at least one b
2ed0: 79 74 65 20 66 6f 72 20 74 68 65 20 73 65 72 76 yte for the serv
2ee0: 65 72 20 74 6f 20 72 65 61 64 20 69 6e 20 74 68 er to read in th
2ef0: 65 20 63 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 e channel....* t
2f00: 65 73 74 73 2f 72 65 6d 6f 74 65 2e 74 63 6c 3a ests/remote.tcl:
2f10: 20 63 6f 72 72 65 63 74 65 64 20 74 68 65 20 66 corrected the f
2f20: 69 6e 64 69 6e 67 20 6f 66 20 74 65 73 74 73 20 inding of tests
2f30: 63 65 72 74 69 66 69 63 61 74 65 73 0a 0a 09 2a certificates...*
2f40: 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 43 6c 6f tlsIO.c (TlsClo
2f50: 73 65 50 72 6f 63 29 3a 20 72 65 6d 6f 76 65 64 seProc): removed
2f60: 20 64 65 6c 65 74 69 6e 67 20 6f 66 20 74 69 6d deleting of tim
2f70: 65 72 20 68 61 6e 64 6c 65 72 20 61 73 0a 09 74 er handler as..t
2f80: 68 61 74 20 69 73 20 68 61 6e 64 6c 65 64 20 62 hat is handled b
2f90: 79 20 54 6c 73 5f 43 6c 65 61 6e 2e 0a 0a 09 2a y Tls_Clean....*
2fa0: 20 74 6c 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 5f tls.tcl (tls::_
2fb0: 61 63 63 65 70 74 29 3a 20 63 6f 72 72 65 63 74 accept): correct
2fc0: 65 64 20 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 ed the internal
2fd0: 5f 61 63 63 65 70 74 20 74 6f 0a 09 74 72 69 63 _accept to..tric
2fe0: 6b 6c 65 20 63 61 6c 6c 62 61 63 6b 20 65 72 72 kle callback err
2ff0: 6f 72 73 20 74 6f 20 74 68 65 20 75 73 65 72 2e ors to the user.
3000: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e ...* Makefile.in
3010: 3a 20 6d 61 64 65 20 74 68 65 20 69 6e 73 74 61 : made the insta
3020: 6c 6c 2d 62 69 6e 61 72 69 65 73 20 74 61 72 67 ll-binaries targ
3030: 65 74 20 72 65 67 65 6e 65 72 61 74 65 20 74 68 et regenerate th
3040: 65 0a 09 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 e..pkgIndex.tcl
3050: 63 6f 72 72 65 63 74 6c 79 2e 20 20 54 68 65 20 correctly. The
3060: 74 65 73 74 20 74 61 72 67 65 74 20 70 72 6f 62 test target prob
3070: 61 62 6c 79 20 73 68 6f 75 6c 64 6e 27 74 20 73 ably shouldn't s
3080: 63 72 65 77 0a 09 69 74 20 75 70 2c 20 62 75 74 crew..it up, but
3090: 20 74 68 69 73 20 69 73 20 74 6f 20 62 65 20 6f this is to be o
30a0: 6e 20 74 68 65 20 73 61 66 65 20 73 69 64 65 2e n the safe side.
30b0: 0a 0a 32 30 30 30 2d 30 37 2d 31 37 20 20 4a 65 ..2000-07-17 Je
30c0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
30d0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
30e0: 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c ..* pkgIndex.tcl
30f0: 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 .in:..* configur
3100: 65 2e 69 6e 3a 20 75 70 64 61 74 65 64 20 76 65 e.in: updated ve
3110: 72 73 69 6f 6e 20 74 6f 20 31 2e 34 0a 0a 32 30 rsion to 1.4..20
3120: 30 30 2d 30 37 2d 31 33 20 20 4a 65 66 66 20 48 00-07-13 Jeff H
3130: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
3140: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
3150: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
3160: 3a 20 65 6e 61 62 6c 65 64 20 74 65 73 74 73 20 : enabled tests
3170: 32 2e 31 30 2c 20 37 2e 5b 31 32 34 35 5d 20 28 2.10, 7.[1245] (
3180: 74 68 65 72 65 20 69 73 20 6e 6f 20 33 29 2c 0a there is no 3),.
3190: 09 77 68 69 63 68 20 6e 6f 77 20 70 61 73 73 2e .which now pass.
31a0: 20 20 41 64 64 65 64 20 73 6f 6d 65 20 63 6f 6d Added some com
31b0: 6d 65 6e 74 73 20 74 6f 20 6f 74 68 65 72 20 66 ments to other f
31c0: 61 69 6c 69 6e 67 20 74 65 73 74 73 2e 0a 0a 32 ailing tests...2
31d0: 30 30 30 2d 30 37 2d 31 31 20 20 4a 65 66 66 20 000-07-11 Jeff
31e0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
31f0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
3200: 20 74 6c 73 49 4f 2e 63 3a 20 63 68 61 6e 67 65 tlsIO.c: change
3210: 64 20 61 6c 6c 20 74 68 65 20 63 68 61 6e 6e 65 d all the channe
3220: 6c 20 70 72 6f 63 73 20 74 6f 20 73 74 61 72 74 l procs to start
3230: 20 77 69 74 68 20 54 6c 73 2a 20 66 6f 72 0a 09 with Tls* for..
3240: 62 65 74 74 65 72 20 70 61 72 69 74 79 20 77 68 better parity wh
3250: 65 6e 20 63 6f 6d 70 61 72 69 6e 67 20 77 69 74 en comparing wit
3260: 68 20 54 72 61 6e 73 66 6f 72 6d 20 63 68 61 6e h Transform chan
3270: 6e 65 6c 20 70 72 6f 63 73 2e 0a 09 52 65 77 72 nel procs...Rewr
3280: 6f 74 65 20 54 6c 73 57 61 74 63 68 50 72 6f 63 ote TlsWatchProc
3290: 2c 20 61 64 64 65 64 20 54 6c 73 4e 6f 74 69 66 , added TlsNotif
32a0: 79 50 72 6f 63 20 61 63 63 6f 72 64 69 6e 67 20 yProc according
32b0: 74 6f 20 74 68 65 20 6e 65 77 0a 09 63 68 61 6e to the new..chan
32c0: 6e 65 6c 20 64 65 73 69 67 6e 2c 20 77 68 69 63 nel design, whic
32d0: 68 20 61 6c 73 6f 20 6c 65 61 76 65 73 20 54 6c h also leaves Tl
32e0: 73 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 sChannelHandler
32f0: 75 6e 75 73 65 64 2e 0a 0a 09 2a 20 74 6c 73 42 unused....* tlsB
3300: 49 4f 2e 63 20 28 42 69 6f 43 74 72 6c 29 3a 20 IO.c (BioCtrl):
3310: 63 68 61 6e 67 65 64 20 42 49 4f 5f 43 54 52 4c changed BIO_CTRL
3320: 5f 46 4c 55 53 48 20 63 61 73 65 20 74 6f 20 75 _FLUSH case to u
3330: 73 65 0a 09 54 63 6c 5f 57 72 69 74 65 52 61 77 se..Tcl_WriteRaw
3340: 20 69 6e 73 74 65 61 64 20 6f 66 20 54 63 6c 5f instead of Tcl_
3350: 46 6c 75 73 68 20 28 74 6f 20 6f 70 65 72 61 74 Flush (to operat
3360: 65 20 6f 6e 20 63 6f 72 72 65 63 74 20 63 68 61 e on correct cha
3370: 6e 6e 65 6c 0a 09 69 6e 20 74 68 65 20 73 74 61 nnel..in the sta
3380: 63 6b 20 69 6e 73 74 65 61 64 20 6f 66 20 73 74 ck instead of st
3390: 61 72 74 69 6e 67 20 61 74 20 74 68 65 20 74 6f arting at the to
33a0: 70 20 61 67 61 69 6e 29 2e 20 20 57 6f 75 6c 64 p again). Would
33b0: 0a 09 6f 74 68 65 72 77 69 73 65 20 63 61 75 73 ..otherwise caus
33c0: 65 20 61 20 72 65 63 75 72 73 69 76 65 20 73 74 e a recursive st
33d0: 61 63 6b 20 62 6f 6d 62 20 77 68 65 6e 20 69 6d ack bomb when im
33e0: 70 6c 69 63 69 74 20 68 61 6e 64 73 68 61 6b 69 plicit handshaki
33f0: 6e 67 0a 09 74 6f 6f 6b 20 65 66 66 65 63 74 2e ng..took effect.
3400: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f ...* tests/tlsIO
3410: 2e 74 65 73 74 3a 20 72 65 6d 6f 76 65 64 20 63 .test: removed c
3420: 68 61 6e 67 65 73 20 6d 61 64 65 20 74 6f 20 74 hanges made to t
3430: 65 73 74 20 73 75 69 74 65 20 28 61 6c 6c 20 74 est suite (all t
3440: 65 73 74 73 0a 09 74 68 61 74 20 72 61 6e 20 62 ests..that ran b
3450: 65 66 6f 72 65 20 6e 6f 77 20 70 61 73 73 20 63 efore now pass c
3460: 6f 72 72 65 63 74 6c 79 29 2c 20 61 6e 64 20 63 orrectly), and c
3470: 68 61 6e 67 65 64 20 73 6f 6d 65 20 61 63 63 65 hanged some acce
3480: 70 74 20 70 72 6f 63 0a 09 61 72 67 73 20 74 6f pt proc..args to
3490: 20 72 65 66 6c 65 63 74 20 74 68 61 74 20 61 20 reflect that a
34a0: 73 6f 63 6b 20 69 73 20 61 6e 20 61 72 67 2c 20 sock is an arg,
34b0: 6e 6f 74 20 61 20 66 69 6c 65 2e 0a 0a 32 30 30 not a file...200
34c0: 30 2d 30 37 2d 31 30 20 20 4a 65 66 66 20 48 6f 0-07-10 Jeff Ho
34d0: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
34e0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
34f0: 6c 73 42 49 4f 2e 63 20 28 42 69 6f 57 72 69 74 lsBIO.c (BioWrit
3500: 65 2c 20 42 69 6f 52 65 61 64 29 3a 20 63 68 61 e, BioRead): cha
3510: 6e 67 65 64 20 54 63 6c 5f 52 65 61 64 2f 57 72 nged Tcl_Read/Wr
3520: 69 74 65 20 74 6f 0a 09 54 63 6c 5f 52 65 61 64 ite to..Tcl_Read
3530: 52 61 77 2f 54 63 6c 57 72 69 74 65 52 61 77 2e Raw/TclWriteRaw.
3540: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 ...* tls.c: adde
3550: 64 20 75 73 65 20 6f 66 20 54 63 6c 5f 47 65 74 d use of Tcl_Get
3560: 54 6f 70 43 68 61 6e 6e 65 6c 20 61 66 74 65 72 TopChannel after
3570: 20 54 63 6c 5f 47 65 74 43 68 61 6e 6e 65 6c 20 Tcl_GetChannel
3580: 61 6e 64 0a 09 67 6f 74 20 72 65 74 75 72 6e 20 and..got return
3590: 76 61 6c 75 65 20 66 72 6f 6d 20 54 63 6c 5f 53 value from Tcl_S
35a0: 74 61 63 6b 43 68 61 6e 6e 65 6c 2e 0a 0a 09 2a tackChannel....*
35b0: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
35c0: 74 3a 20 61 64 64 65 64 20 73 6f 6d 65 20 68 61 t: added some ha
35d0: 6e 64 73 68 61 6b 69 6e 67 20 74 68 61 74 20 73 ndshaking that s
35e0: 68 6f 75 6c 64 6e 27 74 20 62 65 0a 09 6e 65 63 houldn't be..nec
35f0: 65 73 73 61 72 79 2c 20 62 75 74 20 77 65 20 63 essary, but we c
3600: 72 61 73 68 20 6f 74 68 65 72 77 69 73 65 20 28 rash otherwise (
3610: 6e 65 65 64 73 20 6d 6f 72 65 20 74 65 73 74 69 needs more testi
3620: 6e 67 29 2e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 ng)....* tlsIO.c
3630: 3a 20 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 : added support
3640: 66 6f 72 20 22 63 6f 72 72 65 63 74 65 64 22 20 for "corrected"
3650: 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 stacked channels
3660: 2e 20 20 41 6c 6c 0a 09 74 68 65 20 61 62 6f 76 . All..the abov
3670: 65 20 63 68 61 6e 6e 65 6c 73 20 61 72 65 20 69 e channels are i
3680: 6e 20 54 43 4c 5f 43 48 41 4e 4e 45 4c 5f 56 45 n TCL_CHANNEL_VE
3690: 52 53 49 4f 4e 5f 32 20 23 69 66 64 65 66 73 2e RSION_2 #ifdefs.
36a0: 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 53 63 ..2000-06-05 Sc
36b0: 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 ott Stanton <st
36c0: 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 anton@ajubasolut
36d0: 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 ions.com>...* Ma
36e0: 6b 65 66 69 6c 65 2e 69 6e 3a 20 46 69 78 65 64 kefile.in: Fixed
36f0: 20 62 72 6f 6b 65 6e 20 74 65 73 74 20 74 61 72 broken test tar
3700: 67 65 74 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e get....* tlsInt.
3710: 68 3a 20 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 6c h: ..* tls.c: Cl
3720: 65 61 6e 65 64 20 75 70 20 64 65 63 6c 61 72 61 eaned up declara
3730: 74 69 6f 6e 73 20 6f 66 20 54 6c 73 5f 43 6c 65 tions of Tls_Cle
3740: 61 6e 20 74 6f 20 61 76 6f 69 64 20 65 72 72 6f an to avoid erro
3750: 72 73 20 6f 6e 0a 09 57 69 6e 64 6f 77 73 20 28 rs on..Windows (
3760: 6c 69 6e 74 29 2e 0a 0a 32 30 30 30 2d 30 36 2d lint)...2000-06-
3770: 30 35 20 20 42 72 65 6e 74 20 57 65 6c 63 68 20 05 Brent Welch
3780: 3c 77 65 6c 63 68 40 61 6a 75 62 61 73 6f 6c 75 <welch@ajubasolu
3790: 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 tions.com>...* t
37a0: 6c 73 2e 63 2c 20 74 6c 73 49 4f 2e 63 3a 20 20 ls.c, tlsIO.c:
37b0: 53 70 6c 69 74 20 54 6c 73 5f 46 72 65 65 20 69 Split Tls_Free i
37c0: 6e 74 6f 20 54 6c 73 5f 43 6c 65 61 6e 2c 20 77 nto Tls_Clean, w
37d0: 68 69 63 68 20 64 6f 65 73 0a 09 74 68 65 20 53 hich does..the S
37e0: 53 4c 20 63 6c 65 61 6e 75 70 2c 20 61 6e 64 20 SL cleanup, and
37f0: 74 68 65 20 54 63 6c 5f 46 72 65 65 20 63 61 6c the Tcl_Free cal
3800: 6c 2e 20 20 49 74 20 69 73 20 69 6d 70 6f 72 74 l. It is import
3810: 61 6e 74 20 74 6f 20 73 68 75 74 64 6f 77 6e 0a ant to shutdown.
3820: 09 74 68 65 20 53 53 4c 20 73 74 61 74 65 20 22 .the SSL state "
3830: 73 79 6e 63 68 72 6f 6e 6f 75 73 6c 79 22 20 64 synchronously" d
3840: 75 72 69 6e 67 20 61 20 73 74 61 63 6b 65 64 20 uring a stacked
3850: 66 6c 75 73 68 2e 0a 0a 32 30 30 30 2d 30 36 2d flush...2000-06-
3860: 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 01 Scott Stanto
3870: 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 n <stanton@ajub
3880: 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a asolutions.com>.
3890: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 ..* tlsIO.c: Res
38a0: 74 6f 72 65 64 20 63 61 6c 6c 20 74 6f 20 54 63 tored call to Tc
38b0: 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 l_NotifyChannel
38c0: 66 72 6f 6d 20 43 68 61 6e 6e 65 6c 48 61 6e 64 from ChannelHand
38d0: 6c 65 72 0a 09 74 6f 20 65 6e 73 75 72 65 20 74 ler..to ensure t
38e0: 68 61 74 20 65 76 65 6e 74 73 20 70 72 6f 70 61 hat events propa
38f0: 67 61 74 65 20 66 72 6f 6d 20 74 68 65 20 6c 6f gate from the lo
3900: 77 65 72 20 64 72 69 76 65 72 2e 20 20 54 68 69 wer driver. Thi
3910: 73 20 6d 61 79 0a 09 72 65 73 75 6c 74 20 69 6e s may..result in
3920: 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f an infinite loo
3930: 70 20 69 6e 20 73 6f 6d 65 20 63 61 73 65 73 2c p in some cases,
3940: 20 73 6f 20 74 68 69 73 20 69 73 20 6e 6f 74 20 so this is not
3950: 61 20 74 6f 74 61 6c 0a 09 66 69 78 2e 20 20 54 a total..fix. T
3960: 68 69 73 20 6d 61 79 20 62 65 20 73 75 66 66 69 his may be suffi
3970: 63 69 65 6e 74 20 66 6f 72 20 6e 6f 77 2c 20 68 cient for now, h
3980: 6f 77 65 76 65 72 2e 20 5b 42 75 67 3a 20 35 36 owever. [Bug: 56
3990: 32 33 5d 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 23]..2000-06-01
39a0: 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 Scott Stanton
39b0: 3c 73 74 61 6e 74 6f 6e 40 73 63 72 69 70 74 69 <stanton@scripti
39c0: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 cs.com>...* tlsI
39d0: 4f 2e 63 3a 20 52 65 73 74 6f 72 65 20 74 68 65 O.c: Restore the
39e0: 20 70 72 65 76 69 6f 75 73 20 76 65 72 73 69 6f previous versio
39f0: 6e 2e 20 20 46 69 78 65 64 20 74 68 65 20 43 6c n. Fixed the Cl
3a00: 6f 73 65 50 72 6f 63 20 73 6f 0a 09 69 74 20 75 oseProc so..it u
3a10: 6e 72 65 67 69 73 74 65 72 73 20 74 68 65 20 63 nregisters the c
3a20: 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20 6f hannel handler o
3a30: 6e 20 74 68 65 20 73 75 70 65 72 63 65 64 65 64 n the superceded
3a40: 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 73 74 65 61 channel..instea
3a50: 64 20 6f 66 20 74 68 65 20 75 70 70 65 72 20 63 d of the upper c
3a60: 68 61 6e 6e 65 6c 2e 20 41 6c 73 6f 20 72 65 6d hannel. Also rem
3a70: 6f 76 65 64 20 74 68 65 20 63 61 6c 6c 20 74 6f oved the call to
3a80: 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e ..Tcl_NotifyChan
3a90: 6e 65 6c 20 69 6e 20 74 68 65 20 43 68 61 6e 6e nel in the Chann
3aa0: 65 6c 48 61 6e 64 6c 65 72 20 62 65 63 61 75 73 elHandler becaus
3ab0: 65 20 74 68 69 73 20 77 69 6c 6c 20 72 65 73 75 e this will resu
3ac0: 6c 74 0a 09 69 6e 20 61 6e 20 69 6e 66 69 6e 69 lt..in an infini
3ad0: 74 65 20 6c 6f 6f 70 20 69 66 20 64 61 74 61 20 te loop if data
3ae0: 69 73 20 65 76 65 72 20 62 75 66 66 65 72 65 64 is ever buffered
3af0: 20 69 6e 20 74 68 65 20 42 49 4f 0a 09 73 74 72 in the BIO..str
3b00: 75 63 74 75 72 65 2e 20 5b 42 75 67 3a 20 35 36 ucture. [Bug: 56
3b10: 32 33 5d 0a 0a 32 30 30 30 2d 30 35 2d 33 31 20 23]..2000-05-31
3b20: 20 42 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 Brent Welch <we
3b30: 6c 63 68 40 73 63 72 69 70 74 69 63 73 2e 63 6f lch@scriptics.co
3b40: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 68 m>...* tls.c: Ch
3b50: 61 6e 67 65 20 74 68 65 20 43 68 61 6e 6e 65 6c ange the Channel
3b60: 48 61 6e 64 6c 65 72 20 74 6f 20 62 65 20 72 65 Handler to be re
3b70: 67 69 73 74 65 72 65 64 20 6f 6e 20 74 68 65 20 gistered on the
3b80: 6d 61 69 6e 0a 09 63 68 61 6e 6e 65 6c 20 61 73 main..channel as
3b90: 20 6f 70 70 73 65 64 20 74 6f 20 74 68 65 20 22 oppsed to the "
3ba0: 70 61 72 65 6e 74 22 2c 20 6f 72 20 73 75 70 65 parent", or supe
3bb0: 72 63 65 65 64 65 64 2c 20 63 68 61 6e 6e 65 6c rceeded, channel
3bc0: 2e 20 20 54 68 69 73 0a 09 69 73 20 62 65 63 61 . This..is beca
3bd0: 75 73 65 20 74 68 65 20 73 6f 63 6b 65 74 20 64 use the socket d
3be0: 72 69 76 65 72 20 6e 6f 74 69 66 69 65 73 20 74 river notifies t
3bf0: 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c he main channel,
3c00: 20 61 6e 64 20 74 68 65 72 65 0a 09 61 72 65 20 and there..are
3c10: 74 69 6d 65 73 20 77 69 74 68 20 74 68 65 20 6d times with the m
3c20: 61 69 6e 20 63 68 61 6e 6e 65 6c 20 67 65 74 73 ain channel gets
3c30: 20 63 6c 6f 73 65 64 2c 20 62 75 74 20 74 68 65 closed, but the
3c40: 20 73 75 70 65 72 63 65 64 65 64 0a 09 6f 6e 65 superceded..one
3c50: 20 69 73 20 6e 6f 74 20 79 65 74 20 63 6c 6f 73 is not yet clos
3c60: 65 64 2e 20 20 49 66 20 74 68 65 20 63 68 61 6e ed. If the chan
3c70: 6e 65 6c 20 68 61 6e 64 6c 65 72 20 67 65 74 73 nel handler gets
3c80: 20 74 72 69 67 67 65 72 65 64 20 69 6e 0a 09 74 triggered in..t
3c90: 68 69 73 20 68 61 6c 66 2d 6f 70 65 6e 20 73 74 his half-open st
3ca0: 61 74 65 20 69 74 20 69 73 20 61 73 73 6f 63 69 ate it is associ
3cb0: 61 74 65 64 20 77 69 74 68 20 74 68 65 20 73 75 ated with the su
3cc0: 70 65 72 63 65 65 64 65 64 0a 09 63 68 61 6e 6e perceeded..chann
3cd0: 65 64 6c 2c 20 62 75 74 20 75 73 65 73 20 69 74 edl, but uses it
3ce0: 73 20 70 72 69 76 61 74 65 20 70 6f 69 6e 74 65 s private pointe
3cf0: 72 20 74 6f 20 74 68 65 20 6d 61 69 6e 20 63 68 r to the main ch
3d00: 61 6e 6e 65 6c 2c 20 77 68 69 63 68 0a 09 69 73 annel, which..is
3d10: 20 6d 6f 73 74 6c 79 20 64 65 73 74 72 6f 79 65 mostly destroye
3d20: 64 2e 20 20 45 6c 69 6d 69 6e 61 74 65 64 20 74 d. Eliminated t
3d30: 68 65 20 72 65 64 75 6e 64 61 6e 74 20 63 61 6c he redundant cal
3d40: 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 l to..Tcl_Notify
3d50: 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 54 6c 73 Channel from Tls
3d60: 57 61 74 63 68 50 72 6f 63 2e 20 5b 42 75 67 3a WatchProc. [Bug:
3d70: 20 35 36 32 33 5d 0a 5623].