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 63 6f 6e 66 69 67 75 72 65 m>...* configure
0560: 2e 69 6e 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20 .in, configure,
0570: 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 20 win/makefile.vc
0580: 28 44 4f 54 56 45 52 53 49 4f 4e 29 3a 20 62 75 (DOTVERSION): bu
0590: 6d 70 20 74 6f 20 31 2e 36 0a 0a 09 2a 20 74 6c mp to 1.6...* tl
05a0: 73 49 4f 2e 63 20 28 54 6c 73 49 6e 70 75 74 50 sIO.c (TlsInputP
05b0: 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 roc, TlsOutputPr
05c0: 6f 63 2c 20 54 6c 73 57 61 74 63 68 50 72 6f 63 oc, TlsWatchProc
05d0: 29 3a 20 0a 09 2a 20 74 6c 73 2e 63 20 28 56 65 ): ..* tls.c (Ve
05e0: 72 69 66 79 43 61 6c 6c 62 61 63 6b 29 3a 20 61 rifyCallback): a
05f0: 64 64 20 61 6e 20 73 74 61 74 65 20 66 6c 61 67 dd an state flag
0600: 20 69 6e 20 74 68 65 20 76 65 72 69 66 79 20 63 in the verify c
0610: 61 6c 6c 62 61 63 6b 0a 09 74 68 61 74 20 70 72 allback..that pr
0620: 65 76 65 6e 74 73 20 70 6f 73 73 69 62 6c 79 20 events possibly
0630: 72 65 63 75 72 73 69 6f 6e 20 28 6f 6e 20 27 75 recursion (on 'u
0640: 70 64 61 74 65 27 29 2e 20 5b 42 75 67 20 31 36 pdate'). [Bug 16
0650: 35 32 33 38 30 5d 0a 0a 09 2a 20 74 65 73 74 73 52380]...* tests
0660: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 72 /ciphers.test: r
0670: 65 77 6f 72 6b 65 64 20 74 6f 20 6d 61 6b 65 20 eworked to make
0680: 74 65 73 74 20 6f 75 74 70 75 74 20 63 6c 65 61 test output clea
0690: 6e 65 72 20 74 6f 0a 09 75 6e 64 65 72 73 74 61 ner to..understa
06a0: 6e 64 20 6d 69 73 73 69 6e 67 20 63 69 70 68 65 nd missing ciphe
06b0: 72 73 20 28 69 66 20 61 6e 79 29 0a 0a 09 2a 20 rs (if any)...*
06c0: 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c Makefile.in, tcl
06d0: 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75 config/tcl.m4: u
06e0: 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e 36 pdate to TEA 3.6
06f0: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 ..* configure, c
0700: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20 onfigure.in:
0710: 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e using autocon
0720: 66 2d 32 2e 35 39 0a 0a 32 30 30 37 2d 30 32 2d f-2.59..2007-02-
0730: 32 38 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 28 Pat Thoyts
0740: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 <patthoyts@users
0750: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 .sourceforge.net
0760: 3e 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 >...* win/makefi
0770: 6c 65 2e 76 63 3a 20 52 65 62 61 73 65 20 74 68 le.vc: Rebase th
0780: 65 20 44 4c 4c 20 73 65 6e 73 69 62 6c 79 2e 20 e DLL sensibly.
0790: 41 64 64 69 74 69 6f 6e 61 6c 20 6c 69 62 73 20 Additional libs
07a0: 66 6f 72 20 0a 09 73 74 61 74 69 63 20 6c 69 6e for ..static lin
07b0: 6b 20 6f 66 20 6f 70 65 6e 73 73 6c 2e 0a 09 2a k of openssl...*
07c0: 20 74 6c 73 2e 74 63 6c 3a 20 62 75 67 20 23 31 tls.tcl: bug #1
07d0: 35 37 39 38 33 37 20 2d 20 54 49 50 20 32 37 38 579837 - TIP 278
07e0: 20 62 75 67 20 28 70 6f 73 73 69 62 6c 79 29 20 bug (possibly)
07f0: 2d 20 66 69 78 65 64 2e 0a 0a 32 30 30 36 2d 30 - fixed...2006-0
0800: 33 2d 33 30 20 20 50 61 74 20 54 68 6f 79 74 73 3-30 Pat Thoyts
0810: 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 <patthoyts@use
0820: 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e rs.sourceforge.n
0830: 65 74 3e 0a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 et>...* tclconfi
0840: 67 2f 2a 3a 20 20 55 70 64 61 74 65 64 20 74 6f g/*: Updated to
0850: 20 54 45 41 20 33 2e 35 20 69 6e 20 72 65 73 70 TEA 3.5 in resp
0860: 6f 6e 73 65 20 74 6f 20 62 75 67 20 31 34 36 30 onse to bug 1460
0870: 34 39 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 491..* configure
0880: 2a 3a 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 *: Regenerated
0890: 20 63 6f 6e 66 69 67 75 72 65 2e 0a 0a 32 30 30 configure...200
08a0: 35 2d 30 32 2d 30 38 20 20 4a 65 66 66 20 48 6f 5-02-08 Jeff Ho
08b0: 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 bbs <jeffh@Acti
08c0: 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a veState.com>...*
08d0: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 Makefile.in, tc
08e0: 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 lconfig/tcl.m4:
08f0: 75 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e update to TEA 3.
0900: 32 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 2..* configure,
0910: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 configure.in:
0920: 20 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f using autoco
0930: 6e 66 2d 32 2e 35 39 0a 0a 32 30 30 34 2d 31 32 nf-2.59..2004-12
0940: 2d 32 33 20 20 50 61 74 20 54 68 6f 79 74 73 20 -23 Pat Thoyts
0950: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 <patthoyts@user
0960: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 s.sourceforge.ne
0970: 74 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e t>...* Makefile.
0980: 69 6e 3a 20 20 20 20 20 20 52 65 6d 6f 76 65 64 in: Removed
0990: 20 73 70 75 72 69 6f 75 73 20 63 6f 70 79 69 6e spurious copyin
09a0: 67 20 6f 66 20 74 6c 73 2e 74 63 6c 20 69 6e 74 g of tls.tcl int
09b0: 6f 20 74 68 65 0a 09 20 20 20 20 20 20 20 20 20 o the..
09c0: 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 build
09d0: 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 32 30 30 directory...200
09e0: 34 2d 31 32 2d 32 32 20 20 50 61 74 20 54 68 6f 4-12-22 Pat Tho
09f0: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 yts <patthoyts@
0a00: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 users.sourceforg
0a10: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 63 6f 6e 66 69 e.net>...* confi
0a20: 67 75 72 65 2e 69 6e 3a 20 20 20 20 20 49 6e 63 gure.in: Inc
0a30: 72 65 6d 65 6e 74 65 64 20 6d 69 6e 6f 72 20 76 remented minor v
0a40: 65 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 31 0a ersion to 1.5.1.
0a50: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 .* configure:
0a60: 20 20 20 20 20 0a 0a 32 30 30 34 2d 31 32 2d 31 ..2004-12-1
0a70: 37 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 7 Pat Thoyts <
0a80: 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e patthoyts@users.
0a90: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e sourceforge.net>
0aa0: 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c ...* win/makefil
0ab0: 65 2e 76 63 3a 20 20 41 64 64 65 64 20 74 68 65 e.vc: Added the
0ac0: 20 4d 53 56 43 20 62 75 69 6c 64 20 73 79 73 74 MSVC build syst
0ad0: 65 6d 20 28 66 72 6f 6d 20 74 68 65 20 54 63 6c em (from the Tcl
0ae0: 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63 ..* win/rules.vc
0af0: 3a 20 20 20 20 20 73 61 6d 70 6c 65 65 78 74 65 : sampleexte
0b00: 6e 73 69 6f 6e 29 2e 0a 09 2a 20 77 69 6e 2f 6e nsion)...* win/n
0b10: 6d 61 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 77 69 makehlp.c:..* wi
0b20: 6e 2f 74 6c 73 2e 72 63 20 20 20 20 20 20 20 20 n/tls.rc
0b30: 41 64 64 65 64 20 57 69 6e 64 6f 77 73 20 72 65 Added Windows re
0b40: 73 6f 75 72 63 65 20 66 69 6c 65 2e 0a 09 0a 09 source file.....
0b50: 2a 20 74 6c 73 2e 74 63 6c 3a 20 20 20 20 20 20 * tls.tcl:
0b60: 20 20 20 20 46 72 6f 6d 20 70 61 74 63 68 20 23 From patch #
0b70: 39 34 38 31 35 35 2c 20 61 64 64 65 64 20 73 75 948155, added su
0b80: 70 70 6f 72 74 20 66 6f 72 0a 09 20 20 20 20 20 pport for..
0b90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 a
0ba0: 6c 74 65 72 6e 61 74 65 20 73 6f 63 6b 65 74 20 lternate socket
0bb0: 63 6f 6d 6d 61 6e 64 73 2e 0a 09 2a 20 74 6c 73 commands...* tls
0bc0: 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20 20 51 .c: Q
0bd0: 75 69 65 74 65 6e 20 73 6f 6d 65 20 4d 53 56 43 uieten some MSVC
0be0: 20 77 61 72 6e 69 6e 67 73 2e 20 50 72 65 66 65 warnings. Prefe
0bf0: 72 20 63 6b 61 6c 6c 6f 63 0a 09 20 20 20 20 20 r ckalloc..
0c00: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f o
0c10: 76 65 72 20 54 63 6c 5f 41 6c 6c 6f 63 2e 20 28 ver Tcl_Alloc. (
0c20: 44 61 76 69 64 20 47 72 61 76 65 72 61 75 78 29 David Graveraux)
0c30: 2e 0a 0a 32 30 30 34 2d 30 36 2d 32 39 20 20 50 ...2004-06-29 P
0c40: 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 at Thoyts <patt
0c50: 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 hoyts@users.sour
0c60: 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a ceforge.net>...*
0c70: 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20 20 tls.c:
0c80: 20 20 20 46 69 78 75 70 20 74 6f 20 62 75 69 6c Fixup to buil
0c90: 64 20 61 67 61 69 6e 73 74 20 74 63 6c 20 38 2e d against tcl 8.
0ca0: 33 2e 33 2e 20 48 61 6e 64 6c 65 0a 09 2a 20 74 3.3. Handle..* t
0cb0: 6c 73 49 4f 2e 63 3a 20 20 20 20 20 20 20 20 20 lsIO.c:
0cc0: 20 38 2e 34 20 63 6f 6e 73 74 69 66 69 63 61 74 8.4 constificat
0cd0: 69 6f 6e 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e ion....* tlsInt.
0ce0: 68 3a 20 20 20 20 20 20 20 20 20 41 64 64 65 64 h: Added
0cf0: 20 68 65 61 64 65 72 73 20 72 65 71 75 69 72 65 headers require
0d00: 64 20 77 69 74 68 20 4d 53 56 43 20 6f 6e 20 57 d with MSVC on W
0d10: 69 6e 33 32 2e 0a 09 2a 20 74 6c 73 58 35 30 39 in32...* tlsX509
0d20: 2e 63 3a 20 20 20 20 20 20 20 20 75 6e 64 65 66 .c: undef
0d30: 20 6d 69 6e 20 61 6e 64 20 6d 61 78 20 69 66 20 min and max if
0d40: 64 65 66 69 6e 65 64 20 28 77 69 6e 33 32 29 2e defined (win32).
0d50: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e ...* Makefile.in
0d60: 3a 20 20 20 20 20 20 46 69 78 65 64 20 74 6f 20 : Fixed to
0d70: 62 75 69 6c 64 20 6f 6e 20 77 69 6e 33 32 20 75 build on win32 u
0d80: 73 69 6e 67 20 6d 73 79 73 20 77 69 74 68 0a 09 sing msys with..
0d90: 2a 20 61 63 6c 6f 63 61 6c 2e 6d 34 3a 20 20 20 * aclocal.m4:
0da0: 20 20 20 20 4d 53 56 43 2e 20 41 6c 73 6f 20 66 MSVC. Also f
0db0: 69 78 65 64 20 74 68 65 20 74 65 73 74 20 74 61 ixed the test ta
0dc0: 72 67 65 74 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 rget...* configu
0dd0: 72 65 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 re.in:..* config
0de0: 75 72 65 3a 20 20 20 20 20 20 20 20 52 65 67 65 ure: Rege
0df0: 6e 65 72 61 74 65 64 2e 0a 09 2a 20 74 63 6c 63 nerated...* tclc
0e00: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 55 70 onfig/tcl.m4: Up
0e10: 64 61 74 65 64 20 74 6f 20 6d 6f 73 74 20 72 65 dated to most re
0e20: 63 65 6e 74 20 76 65 72 73 69 6f 6e 2e 0a 0a 32 cent version...2
0e30: 30 30 34 2d 30 33 2d 32 33 20 20 44 61 6e 20 52 004-03-23 Dan R
0e40: 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 azzell <research
0e50: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 @starfishsystems
0e60: 2e 63 61 3e 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 .ca>..* tls.c:..
0e70: 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 * tlsBIO.c:..* t
0e80: 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 6e lsIO.c:..* tlsIn
0e90: 74 2e 68 3a 09 46 69 78 65 64 20 74 79 70 65 20 t.h:.Fixed type
0ea0: 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 73 2e 0a match warnings..
0eb0: 0a 32 30 30 34 2d 30 33 2d 31 39 20 20 4a 65 66 .2004-03-19 Jef
0ec0: 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 f Hobbs <jeffh@
0ed0: 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e ActiveState.com>
0ee0: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
0ef0: 49 6e 69 74 29 3a 20 20 20 72 65 70 6c 61 63 65 Init): replace
0f00: 64 20 6f 6c 64 65 72 20 54 45 41 20 63 6f 6e 66 d older TEA conf
0f10: 69 67 20 77 69 74 68 20 6e 65 77 65 72 0a 09 2a ig with newer..*
0f20: 20 63 6f 6e 66 69 67 2f 2a 20 28 72 65 6d 6f 76 config/* (remov
0f30: 65 64 29 3a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 ed):..* pkgIndex
0f40: 2e 74 63 6c 2e 69 6e 2c 20 73 74 72 6e 63 61 73 .tcl.in, strncas
0f50: 65 63 6d 70 2e 63 20 28 72 65 6d 6f 76 65 64 29 ecmp.c (removed)
0f60: 3a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e :..* Makefile.in
0f70: 2c 20 61 63 6c 6f 63 61 6c 2e 6d 34 2c 20 63 6f , aclocal.m4, co
0f80: 6e 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 nfigure, configu
0f90: 72 65 2e 69 6e 3a 0a 09 2a 20 74 63 6c 63 6f 6e re.in:..* tclcon
0fa0: 66 69 67 2f 52 45 41 44 4d 45 2e 74 78 74 2c 20 fig/README.txt,
0fb0: 74 63 6c 63 6f 6e 66 69 67 2f 69 6e 73 74 61 6c tclconfig/instal
0fc0: 6c 2d 73 68 2c 20 74 63 6c 63 6f 6e 66 69 67 2f l-sh, tclconfig/
0fd0: 74 63 6c 2e 6d 34 3a 0a 0a 32 30 30 34 2d 30 33 tcl.m4:..2004-03
0fe0: 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c -17 Dan Razzell
0ff0: 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 <research@starf
1000: 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a ishsystems.ca>..
1010: 09 2a 20 74 6c 73 58 35 30 39 2e 63 3a 09 41 64 .* tlsX509.c:.Ad
1020: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f d support for lo
1030: 6e 67 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 72 ng serial number
1040: 73 20 70 65 72 20 52 46 43 20 33 32 38 30 2e 0a s per RFC 3280..
1050: 09 09 09 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77 ...Format is now
1060: 20 68 65 78 61 64 65 63 69 6d 61 6c 2e 20 0a 09 hexadecimal. ..
1070: 09 09 5b 52 65 71 75 65 73 74 20 23 39 31 35 33 ..[Request #9153
1080: 31 33 5d 0a 09 09 09 43 6f 72 72 65 63 74 6c 79 13]....Correctly
1090: 20 63 6f 6e 76 65 72 74 20 63 65 72 74 69 66 69 convert certifi
10a0: 63 61 74 65 20 44 69 73 74 69 6e 67 75 69 73 68 cate Distinguish
10b0: 65 64 20 4e 61 6d 65 73 0a 09 09 09 74 6f 20 54 ed Names....to T
10c0: 63 6c 20 73 74 72 69 6e 67 20 72 65 70 72 65 73 cl string repres
10d0: 65 6e 74 61 74 69 6f 6e 2e 20 20 45 6c 69 6d 69 entation. Elimi
10e0: 6e 61 74 65 73 20 75 73 65 20 6f 66 0a 09 09 09 nates use of....
10f0: 64 65 70 72 65 63 61 74 65 64 20 4f 70 65 6e 53 deprecated OpenS
1100: 53 4c 20 66 75 6e 63 74 69 6f 6e 2e 20 20 46 6f SL function. Fo
1110: 72 6d 61 74 20 69 73 20 6e 6f 77 20 63 6f 6d 70 rmat is now comp
1120: 6c 69 61 6e 74 0a 09 09 09 77 69 74 68 20 52 46 liant....with RF
1130: 43 20 32 32 35 33 2e 20 20 5b 52 65 71 75 65 73 C 2253. [Reques
1140: 74 20 23 39 31 35 33 31 35 5d 0a 0a 32 30 30 34 t #915315]..2004
1150: 2d 30 32 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a -02-17 Dan Razz
1160: 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 ell <research@st
1170: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 arfishsystems.ca
1180: 3e 0a 0a 09 54 4c 53 20 31 2e 35 2e 30 20 52 45 >...TLS 1.5.0 RE
1190: 4c 45 41 53 45 0a 0a 32 30 30 34 2d 30 32 2d 31 LEASE..2004-02-1
11a0: 32 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 2 Dan Razzell.<
11b0: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 research@starfis
11c0: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a hsystems.ca>...*
11d0: 20 74 6c 73 2e 63 3a 09 41 6c 6c 6f 77 20 76 65 tls.c:.Allow ve
11e0: 72 69 66 79 20 63 61 6c 6c 62 61 63 6b 20 74 6f rify callback to
11f0: 20 72 65 74 75 72 6e 20 65 6d 70 74 79 20 72 65 return empty re
1200: 73 75 6c 74 2e 0a 09 2a 20 74 6c 73 2e 68 74 6d sult...* tls.htm
1210: 3a 09 44 6f 63 75 6d 65 6e 74 20 63 61 6c 6c 62 :.Document callb
1220: 61 63 6b 20 62 65 68 61 76 69 6f 72 73 2e 0a 0a ack behaviors...
1230: 32 30 30 34 2d 30 32 2d 31 31 20 20 44 61 6e 20 2004-02-11 Dan
1240: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 Razzell.<researc
1250: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
1260: 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f s.ca>...* tests/
1270: 74 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 72 tlsIO.test:..* r
1280: 65 6d 6f 74 65 2e 74 63 6c 3a 09 43 6f 6d 70 6c emote.tcl:.Compl
1290: 65 74 65 20 70 72 69 76 61 74 65 20 6b 65 79 20 ete private key
12a0: 6e 61 6d 65 20 63 68 61 6e 67 65 73 20 66 72 6f name changes fro
12b0: 6d 20 32 30 30 31 2d 30 36 2d 32 31 2e 0a 0a 32 m 2001-06-21...2
12c0: 30 30 34 2d 30 32 2d 30 33 20 20 44 61 6e 20 52 004-02-03 Dan R
12d0: 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 azzell <research
12e0: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 @starfishsystems
12f0: 2e 63 61 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c .ca>...* Makefil
1300: 65 2e 69 6e 3a 09 52 65 6d 6f 76 65 64 20 63 69 e.in:.Removed ci
1310: 72 63 75 6c 61 72 20 64 65 70 65 6e 64 65 6e 63 rcular dependenc
1320: 79 2e 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 y...* tlsInt.h:.
1330: 4d 61 6b 65 20 66 75 6e 63 74 69 6f 6e 20 64 65 Make function de
1340: 63 6c 61 72 61 74 69 6f 6e 73 20 65 78 70 6c 69 clarations expli
1350: 63 69 74 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09 46 cit...* tls.c:.F
1360: 69 78 20 74 79 70 65 20 6d 61 74 63 68 20 61 6e ix type match an
1370: 64 20 75 6e 75 73 65 64 20 76 61 72 69 61 62 6c d unused variabl
1380: 65 20 77 61 72 6e 69 6e 67 73 2e 0a 09 2a 20 74 e warnings...* t
1390: 6c 73 42 49 4f 2e 63 3a 09 46 69 78 20 74 79 70 lsBIO.c:.Fix typ
13a0: 65 20 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 2e e match warning.
13b0: 0a 0a 32 30 30 33 2d 31 32 2d 31 35 20 20 44 61 ..2003-12-15 Da
13c0: 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 n Razzell.<resea
13d0: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 rch@starfishsyst
13e0: 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67 49 ems.ca>...* pkgI
13f0: 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 ndex.tcl.in:..*
1400: 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 65 73 74 tls.htm:..* test
1410: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 s/tlsIO.test: up
1420: 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f dated version to
1430: 20 31 2e 35 2e 0a 0a 32 30 30 33 2d 31 30 2d 30 1.5...2003-10-0
1440: 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 7 Dan Razzell.<
1450: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 research@starfis
1460: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a hsystems.ca>...*
1470: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 tests/ciphers.t
1480: 65 73 74 3a 20 75 70 64 61 74 65 64 20 6c 69 73 est: updated lis
1490: 74 20 6f 66 20 74 65 73 74 65 64 20 63 69 70 68 t of tested ciph
14a0: 65 72 73 20 74 6f 20 63 6f 72 72 65 73 70 6f 6e ers to correspon
14b0: 64 0a 09 2a 20 77 69 74 68 20 74 68 6f 73 65 20 d..* with those
14c0: 61 76 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20 4f available from O
14d0: 70 65 6e 53 53 4c 2e 20 5b 52 65 71 75 65 73 74 penSSL. [Request
14e0: 20 23 38 31 31 39 38 31 5d 0a 0a 32 30 30 33 2d #811981]..2003-
14f0: 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 10-07 Dan Razze
1500: 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 ll <research@sta
1510: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e rfishsystems.ca>
1520: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 ...* tls.c: adde
1530: 64 20 43 4f 4e 53 54 20 77 69 74 68 20 69 6e 74 d CONST with int
1540: 65 6e 74 20 73 69 6d 69 6c 61 72 20 74 6f 20 74 ent similar to t
1550: 68 6f 73 65 20 66 72 6f 6d 20 32 30 30 32 2d 30 hose from 2002-0
1560: 32 2d 30 34 2e 0a 09 5b 52 65 71 75 65 73 74 20 2-04...[Request
1570: 23 38 31 31 39 31 31 5d 0a 0a 32 30 30 33 2d 30 #811911]..2003-0
1580: 37 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73 7-07 Jeff Hobbs
1590: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 <jeffh@ActiveS
15a0: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tate.com>...* tl
15b0: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
15c0: 20 20 61 64 64 65 64 20 74 6c 73 3a 3a 6d 69 73 added tls::mis
15d0: 63 20 63 6f 6d 6d 61 6e 64 20 70 72 6f 76 69 64 c command provid
15e0: 65 64 20 62 79 0a 09 2a 20 74 6c 73 58 35 30 39 ed by..* tlsX509
15f0: 2e 63 3a 20 20 20 20 20 20 20 20 20 20 57 6f 6a .c: Woj
1600: 63 69 65 63 68 20 4b 6f 63 6a 61 6e 20 28 77 6f ciech Kocjan (wo
1610: 6a 63 69 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f 72 jciech kocjan.or
1620: 67 29 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 g)..* tests/keyt
1630: 65 73 74 31 2e 74 63 6c 3a 20 74 6f 20 65 78 70 est1.tcl: to exp
1640: 6f 73 65 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65 76 ose more low-lev
1650: 65 6c 20 53 53 4c 20 63 6f 6d 6d 61 6e 64 73 0a el SSL commands.
1660: 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73 74 .* tests/keytest
1670: 32 2e 74 63 6c 3a 0a 0a 32 30 30 33 2d 30 35 2d 2.tcl:..2003-05-
1680: 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 15 Dan Razzell.
1690: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
16a0: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 20 0a 0a shsystems.ca> ..
16b0: 09 2a 20 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20 74 .* tls.tcl:..* t
16c0: 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e lsInt.h:..* tls.
16d0: 63 3a 20 61 64 64 20 73 75 70 70 6f 72 74 20 66 c: add support f
16e0: 6f 72 20 62 69 6e 64 69 6e 67 20 61 20 70 61 73 or binding a pas
16f0: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 20 74 sword callback t
1700: 6f 20 74 68 65 20 73 6f 63 6b 65 74 2e 0a 09 4e o the socket...N
1710: 6f 77 20 65 61 63 68 20 73 6f 63 6b 65 74 20 63 ow each socket c
1720: 61 6e 20 68 61 76 65 20 69 74 73 20 6f 77 6e 20 an have its own
1730: 63 6f 6d 6d 61 6e 64 20 61 6e 64 20 70 61 73 73 command and pass
1740: 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 73 20 69 word callbacks i
1750: 6e 73 74 65 61 64 0a 09 6f 66 20 62 65 69 6e 67 nstead..of being
1760: 20 66 6f 72 63 65 64 20 74 6f 20 68 61 76 65 20 forced to have
1770: 61 6c 6c 20 70 61 73 73 77 6f 72 64 20 6d 61 6e all password man
1780: 61 67 65 6d 65 6e 74 20 70 61 73 73 20 74 68 72 agement pass thr
1790: 6f 75 67 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09 70 ough a common..p
17a0: 72 6f 63 65 64 75 72 65 2e 20 20 54 68 65 20 63 rocedure. The c
17b0: 6f 6d 6d 6f 6e 20 70 61 73 73 77 6f 72 64 20 70 ommon password p
17c0: 72 6f 63 65 64 75 72 65 20 69 73 20 72 65 74 61 rocedure is reta
17d0: 69 6e 65 64 20 66 6f 72 20 63 6f 6d 70 61 74 69 ined for compati
17e0: 62 69 6c 69 74 79 0a 09 62 75 74 20 69 74 73 20 bility..but its
17f0: 75 73 65 20 73 68 6f 75 6c 64 20 62 65 20 44 45 use should be DE
1800: 50 52 45 43 41 54 45 44 2e 0a 09 41 64 64 20 76 PRECATED...Add v
1810: 65 72 73 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20 74 ersion command t
1820: 6f 20 72 65 74 75 72 6e 20 4f 70 65 6e 53 53 4c o return OpenSSL
1830: 20 76 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 2e version string.
1840: 0a 09 52 65 6d 6f 76 65 20 75 6e 73 74 61 62 6c ..Remove unstabl
1850: 65 20 77 6f 72 6b 61 72 6f 75 6e 64 73 20 6e 65 e workarounds ne
1860: 65 64 65 64 20 66 6f 72 20 76 65 72 69 66 79 20 eded for verify
1870: 69 6e 20 6f 62 73 6f 6c 65 74 65 20 76 65 72 73 in obsolete vers
1880: 69 6f 6e 73 20 6f 66 0a 09 4f 70 65 6e 53 53 4c ions of..OpenSSL
1890: 2e 0a 09 46 69 78 20 6d 65 6d 6f 72 79 20 6c 65 ...Fix memory le
18a0: 61 6b 2e 20 5b 52 65 71 75 65 73 74 20 23 36 34 ak. [Request #64
18b0: 30 36 36 30 5d 0a 09 4d 6f 72 65 20 63 61 73 74 0660]..More cast
18c0: 73 20 74 6f 20 65 6c 69 6d 69 6e 61 74 65 20 63 s to eliminate c
18d0: 6f 6d 70 69 6c 65 72 20 77 61 72 6e 69 6e 67 73 ompiler warnings
18e0: 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 64 ....* tls.htm: d
18f0: 6f 63 75 6d 65 6e 74 20 70 61 73 73 77 6f 72 64 ocument password
1900: 20 63 61 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72 72 callback...Corr
1910: 65 63 74 20 74 65 63 68 6e 69 63 61 6c 20 61 6e ect technical an
1920: 64 20 74 79 70 6f 67 72 61 70 68 69 63 20 65 72 d typographic er
1930: 72 6f 72 73 2e 0a 0a 09 2a 20 52 45 41 44 4d 45 rors....* README
1940: 2e 74 78 74 3a 20 69 64 65 6e 74 69 66 79 20 76 .txt: identify v
1950: 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 ersions of OpenS
1960: 53 4c 20 77 68 69 63 68 20 66 69 78 20 6b 6e 6f SL which fix kno
1970: 77 6e 20 70 72 6f 62 6c 65 6d 73 2e 0a 09 47 65 wn problems...Ge
1980: 6e 65 72 61 6c 20 77 61 72 6e 69 6e 67 20 6f 66 neral warning of
1990: 20 73 65 63 75 72 69 74 79 20 70 72 6f 62 6c 65 security proble
19a0: 6d 73 20 69 6e 20 6f 6c 64 65 72 20 76 65 72 73 ms in older vers
19b0: 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c 2e ions of OpenSSL.
19c0: 0a 0a 32 30 30 32 2d 30 32 2d 30 34 20 20 4a 65 ..2002-02-04 Je
19d0: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 ff Hobbs <jeffh
19e0: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d @ActiveState.com
19f0: 3e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 >...* tls.htm:..
1a00: 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 73 * tls.c: added s
1a10: 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61 6c upport for local
1a20: 20 63 65 72 74 69 66 69 63 61 74 65 20 73 74 61 certificate sta
1a30: 74 75 73 20 63 68 65 63 6b 2c 20 61 73 20 77 65 tus check, as we
1a40: 6c 6c 0a 09 61 73 20 72 65 74 75 72 6e 69 6e 67 ll..as returning
1a50: 20 74 68 65 20 23 20 6f 66 20 62 69 74 73 20 69 the # of bits i
1a60: 6e 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 n the session ke
1a70: 79 2e 20 5b 50 61 74 63 68 20 23 35 30 35 36 39 y. [Patch #50569
1a80: 38 5d 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74 6c 8] (rose)...* tl
1a90: 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a s.c:..* tlsIO.c:
1aa0: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61 64 ..* tlsBIO.c: ad
1ab0: 64 65 64 20 43 4f 4e 53 54 73 20 74 6f 20 73 61 ded CONSTs to sa
1ac0: 74 69 73 66 79 20 54 63 6c 20 38 2e 34 20 73 6f tisfy Tcl 8.4 so
1ad0: 75 72 63 65 73 2e 20 20 54 68 69 73 20 6d 61 79 urces. This may
1ae0: 0a 09 67 69 76 65 20 77 61 72 6e 69 6e 67 73 20 ..give warnings
1af0: 77 68 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61 67 when compiled ag
1b00: 61 69 6e 73 74 20 38 2e 33 2c 20 62 75 74 20 74 ainst 8.3, but t
1b10: 68 65 79 20 63 61 6e 20 62 65 20 69 67 6e 6f 72 hey can be ignor
1b20: 65 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 ed....* tests/si
1b30: 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a mpleClient.tcl:.
1b40: 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 .* tests/simpleS
1b50: 65 72 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e 74 erver.tcl: point
1b60: 20 74 6f 20 75 70 64 61 74 65 64 20 63 6c 69 65 to updated clie
1b70: 6e 74 2f 73 65 72 76 65 72 20 6b 65 79 20 66 69 nt/server key fi
1b80: 6c 65 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 les....* tests/t
1b90: 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 65 lsIO.test:..* te
1ba0: 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 sts/ciphers.test
1bb0: 3a 20 75 70 64 61 74 65 64 20 74 6f 20 6c 6f 61 : updated to loa
1bc0: 64 20 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c 64 d tls from build
1bd0: 20 64 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 dir....* Makefi
1be0: 6c 65 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20 73 le.in: removed s
1bf0: 74 72 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d 20 trncasecmp from
1c00: 64 65 66 61 75 6c 74 20 6f 62 6a 65 63 74 20 73 default object s
1c10: 65 74 2e 20 20 54 68 69 73 0a 09 69 73 20 6f 6e et. This..is on
1c20: 6c 79 20 6e 65 65 64 65 64 20 6f 6e 20 74 68 65 ly needed on the
1c30: 20 4d 61 63 2c 20 61 6e 64 20 54 63 6c 20 73 74 Mac, and Tcl st
1c40: 75 62 73 20 70 72 6f 76 69 64 65 73 20 69 74 2e ubs provides it.
1c50: 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 ...* configure:
1c60: 72 65 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f 6e regen'ed...* con
1c70: 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 figure.in: updat
1c80: 65 64 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72 20 ed to 1.5.0 for
1c90: 6e 65 78 74 20 72 65 6c 65 61 73 65 2e 0a 09 43 next release...C
1ca0: 68 61 6e 67 65 64 20 64 65 66 61 75 6c 74 20 6f hanged default o
1cb0: 70 65 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e 20 penssl location
1cc0: 74 6f 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 73 to /usr/local/ss
1cd0: 6c 20 28 74 68 69 73 20 69 73 20 77 68 65 72 65 l (this is where
1ce0: 0a 09 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36 63 ..openssl 0.9.6c
1cf0: 20 69 6e 73 74 61 6c 6c 73 20 62 79 20 64 65 66 installs by def
1d00: 61 75 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64 20 ault)...Changed
1d10: 74 6f 20 75 73 65 20 70 75 62 6c 69 63 20 54 63 to use public Tc
1d20: 6c 20 68 65 61 64 65 72 73 20 28 70 72 69 76 61 l headers (priva
1d30: 74 65 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e 0a te not needed)..
1d40: 0a 32 30 30 31 2d 30 36 2d 32 31 20 20 4a 65 66 .2001-06-21 Jef
1d50: 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 f Hobbs <jeffh@
1d60: 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e ActiveState.com>
1d70: 0a 0a 09 54 4c 53 20 31 2e 34 2e 31 20 52 45 4c ...TLS 1.4.1 REL
1d80: 45 41 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 EASE...* configu
1d90: 72 65 3a 20 61 64 64 65 64 20 63 6f 6e 66 69 67 re: added config
1da0: 75 72 65 20 74 6f 20 43 56 53 0a 09 2a 20 63 6f ure to CVS..* co
1db0: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 65 nfigure.in: move
1dc0: 64 20 74 6f 20 70 61 74 63 68 6c 65 76 65 6c 20 d to patchlevel
1dd0: 31 2e 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 69 1.4.1...* Makefi
1de0: 6c 65 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65 64 le.in: corrected
1df0: 20 27 64 69 73 74 27 20 74 61 72 67 65 74 0a 0a 'dist' target..
1e00: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 66 .* tests/certs/f
1e10: 69 6c 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 74 ile.srl:..* test
1e20: 73 2f 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a 0a s/certs/ca.pem:.
1e30: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 .* tests/certs/c
1e40: 6c 69 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 65 lient.key:..* te
1e50: 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 sts/certs/client
1e60: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .pem:..* tests/c
1e70: 65 72 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71 3a erts/client.req:
1e80: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1e90: 70 72 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a 20 privkey.pem:..*
1ea0: 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 tests/certs/serv
1eb0: 65 72 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 er.key:..* tests
1ec0: 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 70 65 /certs/server.pe
1ed0: 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 m:..* tests/cert
1ee0: 73 2f 73 65 72 76 65 72 2e 72 65 71 3a 0a 09 2a s/server.req:..*
1ef0: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 63 tests/certs/cac
1f00: 65 72 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 ert.pem: replace
1f10: 64 20 62 79 20 6e 65 77 20 63 61 2e 70 65 6d 0a d by new ca.pem.
1f20: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 .* tests/certs/s
1f30: 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 key.pem: replace
1f40: 64 20 62 79 20 6e 65 77 20 73 65 72 76 65 72 2e d by new server.
1f50: 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 key..* tests/cer
1f60: 74 73 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65 70 ts/ckey.pem: rep
1f70: 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 6c 69 laced by new cli
1f80: 65 6e 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 ent.key..* tests
1f90: 2f 63 65 72 74 73 2f 52 45 41 44 4d 45 2e 74 78 /certs/README.tx
1fa0: 74 3a 20 6e 65 77 20 73 65 74 20 6f 66 20 74 65 t: new set of te
1fb0: 73 74 20 63 65 72 74 69 66 69 63 61 74 65 73 20 st certificates
1fc0: 77 69 74 68 20 73 6f 6d 65 0a 09 52 45 41 44 4d with some..READM
1fd0: 45 20 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72 20 E info on their
1fe0: 67 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a 20 generation....*
1ff0: 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 tests/ciphers.te
2000: 73 74 3a 20 75 70 64 61 74 65 64 20 63 69 70 68 st: updated ciph
2010: 65 72 73 20 65 78 70 65 63 74 65 64 20 77 69 74 ers expected wit
2020: 68 20 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e 73 h default..opens
2030: 73 6c 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 65 sl build....* te
2040: 73 74 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a 20 sts/tclIO.test:
2050: 75 70 64 61 74 65 64 20 74 6f 20 75 73 65 20 6e updated to use n
2060: 65 77 20 6e 61 6d 65 73 20 66 6f 72 20 63 65 72 ew names for cer
2070: 74 73 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d 30 ts/keys...2001-0
2080: 33 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 3-14 Jeff Hobbs
2090: 20 20 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74 2e <jeffh@gimlet.
20a0: 61 63 74 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e activestate.com>
20b0: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
20c0: 49 6e 69 74 29 3a 20 61 64 64 20 64 6f 2f 77 68 Init): add do/wh
20d0: 69 6c 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20 6e ile for random n
20e0: 75 6d 62 65 72 20 69 6e 69 74 69 61 6c 69 7a 61 umber initializa
20f0: 74 69 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 72 tion..to work ar
2100: 6f 75 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20 71 ound some OSes q
2110: 75 69 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e 42 uirks. (Ralph.B
2120: 69 6c 6c 65 73 40 74 65 6c 74 65 63 68 2e 63 6f illes@teltech.co
2130: 6d 2e 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d 30 m.au)..2000-09-0
2140: 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 7 Jeff Hobbs <
2150: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
2160: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 com>...* tlsIO.c
2170: 20 28 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70 (Tls_ChannelTyp
2180: 65 29 3a 20 73 65 74 20 74 79 70 65 4e 61 6d 65 e): set typeName
2190: 20 66 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e 65 field of channe
21a0: 6c 20 74 79 70 65 20 74 6f 0a 09 22 74 6c 73 22 l type to.."tls"
21b0: 20 28 74 68 69 73 20 67 6f 74 20 6c 6f 73 74 20 (this got lost
21c0: 69 6e 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61 6d in move to dynam
21d0: 69 63 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61 ic version compa
21e0: 74 61 62 69 6c 69 74 79 0a 09 63 68 65 63 6b 69 tability..checki
21f0: 6e 67 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 33 ng)...2000-08-23
2200: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
2210: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
2220: 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52 45 om>...TLS 1.4 RE
2230: 4c 45 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 66 LEASED...* Makef
2240: 69 6c 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 63 ile.in (dist): c
2250: 72 65 61 74 65 20 64 69 73 74 20 74 61 72 67 65 reate dist targe
2260: 74 20 66 6f 72 20 61 72 63 68 69 76 65 20 64 69 t for archive di
2270: 73 74 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a 20 stributions...*
2280: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
2290: 20 28 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 64 (tlsIO-8.1): ad
22a0: 64 65 64 20 61 20 64 65 6c 61 79 20 6f 6e 20 74 ded a delay on t
22b0: 68 65 20 61 63 63 65 70 74 20 63 6c 6f 73 65 0a he accept close.
22c0: 09 74 6f 20 6d 61 6b 65 20 74 68 65 20 74 65 73 .to make the tes
22d0: 74 20 77 6f 72 6b 20 77 69 74 68 20 4f 70 65 6e t work with Open
22e0: 53 53 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20 28 SSL on Windows (
22f0: 64 6f 65 73 6e 27 74 20 61 66 66 65 63 74 0a 09 doesn't affect..
2300: 6f 74 68 65 72 20 62 75 69 6c 64 73 29 2e 0a 0a other builds)...
2310: 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64 61 .* tls.htm: upda
2320: 74 65 64 20 77 69 74 68 20 6e 6f 74 65 73 20 66 ted with notes f
2330: 6f 72 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 38 or 1.4...2000-08
2340: 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -21 Jeff Hobbs
2350: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
2360: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 s.com>...* tests
2370: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 71 /tlsIO.test: req
2380: 75 69 72 65 20 61 74 20 6c 65 61 73 74 20 74 6c uire at least tl
2390: 73 31 2e 34 20 69 6e 20 74 65 73 74 20 73 75 69 s1.4 in test sui
23a0: 74 65 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38 20 te...2000-08-18
23b0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
23c0: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
23d0: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c m>...* tls.c (Tl
23e0: 73 5f 49 6e 69 74 29 3a 20 61 64 64 65 64 20 63 s_Init): added c
23f0: 61 6c 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65 64 all to RAND_seed
2400: 20 74 6f 20 73 65 65 64 20 74 68 65 20 53 53 4c to seed the SSL
2410: 20 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 20 random..number
2420: 67 65 6e 65 72 61 74 6f 72 2e 20 20 57 69 74 68 generator. With
2430: 6f 75 74 20 74 68 69 73 2c 20 4f 70 65 6e 53 53 out this, OpenSS
2440: 4c 20 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c 20 L 0.9.5 chokes,
2450: 61 6e 64 20 69 6e 20 61 6e 79 0a 09 63 61 73 65 and in any..case
2460: 20 69 74 20 69 73 20 61 20 62 69 67 20 73 65 63 it is a big sec
2470: 75 72 69 74 79 20 68 6f 6c 65 20 74 6f 20 64 6f urity hole to do
2480: 20 77 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09 2a without it....*
2490: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28 4f configure.in (O
24a0: 50 45 4e 53 53 4c 29 3a 20 61 64 64 65 64 20 4e PENSSL): added N
24b0: 4f 5f 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52 43 O_IDEA and NO_RC
24c0: 35 20 64 65 66 69 6e 65 73 20 62 79 0a 09 64 65 5 defines by..de
24d0: 66 61 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69 fault when compi
24e0: 6c 69 6e 67 20 77 69 74 68 20 4f 70 65 6e 53 53 ling with OpenSS
24f0: 4c 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a L....* tlsInt.h:
2500: 20 61 64 64 65 64 20 65 72 72 2e 68 20 69 6e 63 added err.h inc
2510: 6c 75 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e lude...* tlsBIO.
2520: 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 c:..* tlsIO.c: c
2530: 6f 72 72 65 63 74 65 64 20 70 65 64 61 6e 74 69 orrected pedanti
2540: 63 20 63 61 73 74 20 65 72 72 6f 72 73 2e 0a 0a c cast errors...
2550: 32 30 30 30 2d 30 38 2d 31 36 20 20 4a 65 66 66 2000-08-16 Jeff
2560: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
2570: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
2580: 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e * tests/ciphers.
2590: 74 65 73 74 3a 20 69 6d 70 72 6f 76 65 64 20 61 test: improved a
25a0: 62 69 6c 69 74 79 20 74 6f 20 63 68 61 6e 67 65 bility to change
25b0: 20 63 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65 74 constraint..set
25c0: 74 69 6e 67 20 66 6f 72 20 77 68 65 74 68 65 72 ting for whether
25d0: 20 75 73 65 72 20 63 6f 6d 70 69 6c 65 64 20 61 user compiled a
25e0: 67 61 69 6e 73 74 20 52 53 41 20 6f 72 20 4f 70 gainst RSA or Op
25f0: 65 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a 20 enSSL libs....*
2600: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 tls.c (Tls_Init)
2610: 3a 20 63 6f 72 72 65 63 74 65 64 20 69 6e 74 65 : corrected inte
2620: 72 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 76 65 rpretation of ve
2630: 72 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 70 rsion number..(p
2640: 61 74 63 68 6c 65 76 65 6c 20 61 6e 64 20 72 65 atchlevel and re
2650: 6c 65 61 73 65 2f 73 65 72 69 61 6c 20 77 65 72 lease/serial wer
2660: 65 20 73 77 61 70 70 65 64 29 2e 0a 0a 32 30 30 e swapped)...200
2670: 30 2d 30 38 2d 31 35 20 20 4a 65 66 66 20 48 6f 0-08-15 Jeff Ho
2680: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
2690: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 52 ptics.com>...* R
26a0: 45 41 44 4d 45 2e 74 78 74 3a 20 61 64 64 65 64 EADME.txt: added
26b0: 20 6e 6f 74 65 73 20 61 62 6f 75 74 20 6e 65 65 notes about nee
26c0: 64 20 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b 2e d to use 8.2.0+.
26d0: 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 ...* tlsInt.h:..
26e0: 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 * tls.c:..* tlsI
26f0: 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 73 O.c: corrected s
2700: 74 72 75 63 74 75 72 65 20 69 6e 69 74 69 61 6c tructure initial
2710: 69 7a 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b 20 ization to work
2720: 77 68 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 20 when..compiling
2730: 77 69 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20 63 with 8.2. Now c
2740: 6f 6d 70 69 6c 65 73 20 77 69 74 68 20 38 2e 32 ompiles with 8.2
2750: 2b 20 61 6e 64 20 74 65 73 74 65 64 20 74 6f 20 + and tested to
2760: 77 6f 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b 20 work..with 8.2+
2770: 61 6e 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 and dynamically
2780: 61 64 6a 75 73 74 20 74 6f 20 74 68 65 20 76 65 adjust to the ve
2790: 72 73 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74 20 rsion of Tcl it
27a0: 77 61 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74 6f was..loaded into
27b0: 2e 20 20 54 4c 53 20 77 69 6c 6c 20 66 61 69 6c . TLS will fail
27c0: 20 74 68 65 20 74 65 73 74 20 73 75 69 74 65 20 the test suite
27d0: 77 69 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e 33 with Tcl 8.2-8.3
27e0: 2e 31 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61 6c .1....* tests/al
27f0: 6c 2e 74 63 6c 3a 20 61 64 64 65 64 20 63 61 74 l.tcl: added cat
2800: 63 68 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c 74 ch around ::tclt
2810: 65 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 61 est::normalizePa
2820: 74 68 0a 09 62 65 63 61 75 73 65 20 69 74 20 64 th..because it d
2830: 6f 65 73 6e 27 74 20 65 78 69 73 74 20 69 6e 20 oesn't exist in
2840: 70 72 65 2d 38 2e 33 20 74 63 6c 74 65 73 74 2e pre-8.3 tcltest.
2850: 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c ...* tests/simpl
2860: 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 2a eClient.tcl: ..*
2870: 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 tests/simpleSer
2880: 76 65 72 2e 74 63 6c 3a 20 61 64 64 65 64 20 73 ver.tcl: added s
2890: 69 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65 72 imple client/ser
28a0: 76 65 72 20 74 65 73 74 20 73 63 72 69 70 74 73 ver test scripts
28b0: 0a 09 74 68 61 74 20 75 73 65 20 74 65 73 74 20 ..that use test
28c0: 63 65 72 74 73 20 61 6e 64 20 63 61 6e 20 64 6f certs and can do
28d0: 20 73 69 6d 70 6c 65 20 73 74 72 65 73 73 20 74 simple stress t
28e0: 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 ests...2000-08-1
28f0: 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 4 Jeff Hobbs <
2900: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
2910: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e com>...* tlsInt.
2920: 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 h:..* tlsIO.c:..
2930: 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 * tlsBIO.c:..* t
2940: 6c 73 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 72 ls.c: changed ar
2950: 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f 72 ound to only wor
2960: 6b 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 30 2b king with 8.2.0+
2970: 20 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65 72 (8.3.2+..prefer
2980: 72 65 64 29 2c 20 77 69 74 68 20 72 75 6e 74 69 red), with runti
2990: 6d 65 20 63 68 65 63 6b 73 20 66 6f 72 20 70 72 me checks for pr
29a0: 65 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d 72 e- and post-io-r
29b0: 65 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 2e ewrite....* tls.
29c0: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 c (Tls_Init): ch
29d0: 61 6e 67 65 64 20 69 74 20 74 6f 20 72 65 71 75 anged it to requ
29e0: 69 72 65 20 38 2e 33 2e 32 20 77 68 65 6e 20 54 ire 8.3.2 when T
29f0: 63 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09 77 61 cl_InitStubs..wa
2a00: 73 20 63 61 6c 6c 65 64 20 62 65 63 61 75 73 65 s called because
2a10: 20 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 70 we don't want p
2a20: 65 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c 53 20 eople using TLS
2a30: 77 69 74 68 20 74 68 65 0a 09 6f 72 69 67 69 6e with the..origin
2a40: 61 6c 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e al stacked chann
2a50: 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f el implementatio
2a60: 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20 20 n...2000-07-26
2a70: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
2a80: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
2a90: 3e 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c 6c >...* merged all
2aa0: 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 74 6c changes from tl
2ab0: 73 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74 65 s-1-3-io-rewrite
2ac0: 20 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e 20 back into main
2ad0: 62 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74 73 branch...* tests
2ae0: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 /tlsIO.test: upd
2af0: 61 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 66 ated comments, f
2b00: 69 78 65 64 20 61 20 70 63 43 72 61 73 68 20 63 ixed a pcCrash c
2b10: 61 73 65 20 74 68 61 74 0a 09 77 61 73 20 64 75 ase that..was du
2b20: 65 20 74 6f 20 64 65 62 75 67 20 61 73 73 65 72 e to debug asser
2b30: 74 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73 20 tion in Windows
2b40: 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 SSL....* tls.c (
2b50: 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 72 ImportObjCmd): r
2b60: 65 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73 73 61 emoved unnecessa
2b70: 72 79 20 75 73 65 20 6f 66 20 27 62 69 6f 27 20 ry use of 'bio'
2b80: 61 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 29 arg...(Tls_Init)
2b90: 3a 20 63 68 65 63 6b 20 72 65 74 75 72 6e 20 76 : check return v
2ba0: 61 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62 72 alue of SSL_libr
2bb0: 61 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f 20 ary_init. Also
2bc0: 6c 6f 74 73 20 6f 66 0a 09 77 68 69 74 65 73 70 lots of..whitesp
2bd0: 61 63 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f 72 ace cleanup (mor
2be0: 65 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20 73 e like Tcl Eng s
2bf0: 74 79 6c 65 20 67 75 69 64 65 29 2c 20 62 75 74 tyle guide), but
2c00: 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20 77 not all..code w
2c10: 61 73 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a 0a as cleaned up...
2c20: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 6e .* tlsBIO.c: min
2c30: 6f 72 20 77 68 69 74 65 73 70 61 63 65 20 63 6c or whitespace cl
2c40: 65 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f 2e eanup...* tlsIO.
2c50: 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 c: minor whitesp
2c60: 61 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28 54 ace cleanup...(T
2c70: 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 lsInputProc, Tls
2c80: 4f 75 74 70 75 74 50 72 6f 63 29 3a 20 41 64 64 OutputProc): Add
2c90: 65 64 20 45 52 52 5f 63 6c 65 61 72 5f 65 72 72 ed ERR_clear_err
2ca0: 6f 72 20 62 65 66 6f 72 65 20 63 61 6c 6c 73 0a or before calls.
2cb0: 09 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72 20 .to BIO_read or
2cc0: 42 49 4f 5f 77 72 69 74 65 2c 20 62 65 63 61 75 BIO_write, becau
2cd0: 73 65 20 77 65 20 63 6f 75 6c 64 20 6f 74 68 65 se we could othe
2ce0: 72 77 69 73 65 20 65 6e 64 20 75 70 0a 09 70 75 rwise end up..pu
2cf0: 6c 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72 20 6f lling an error o
2d00: 66 66 20 74 68 65 20 73 74 61 63 6b 20 74 68 61 ff the stack tha
2d10: 74 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67 20 t didn't belong
2d20: 74 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63 6c to us. Also..cl
2d30: 65 61 6e 75 70 20 75 70 20 65 78 63 65 73 73 69 eanup up excessi
2d40: 76 65 20 75 73 65 20 6f 66 20 67 6f 74 6f 73 2e ve use of gotos.
2d50: 0a 0a 32 30 30 30 2d 30 37 2d 32 30 20 20 4a 65 ..2000-07-20 Je
2d60: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
2d70: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
2d80: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
2d90: 74 65 73 74 3a 20 63 6f 72 72 65 63 74 65 64 20 test: corrected
2da0: 76 61 72 69 6f 75 73 20 74 65 73 74 73 20 74 6f various tests to
2db0: 20 62 65 20 63 6f 72 72 65 63 74 20 66 6f 72 20 be correct for
2dc0: 54 4c 53 0a 09 73 74 61 63 6b 65 64 20 63 68 61 TLS..stacked cha
2dd0: 6e 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f 73 65 nnels (as oppose
2de0: 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 d to the standar
2df0: 64 20 73 6f 63 6b 65 74 73 20 74 68 65 20 74 65 d sockets the te
2e00: 73 74 0a 09 73 75 69 74 65 20 77 61 73 20 61 64 st..suite was ad
2e10: 6f 70 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b 65 opted from). Ke
2e20: 79 20 64 69 66 66 65 72 65 6e 63 65 73 20 61 72 y differences ar
2e30: 65 20 74 68 61 74 20 54 4c 53 20 63 61 6e 6e 6f e that TLS canno
2e40: 74 0a 09 6f 70 65 72 61 74 65 20 69 6e 20 6f 6e t..operate in on
2e50: 65 20 70 72 6f 63 65 73 73 20 77 69 74 68 6f 75 e process withou
2e60: 74 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 62 t all channels b
2e70: 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e eing non-blockin
2e80: 67 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e 64 73 g, or..the hands
2e90: 68 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b 2c hake will block,
2ea0: 20 61 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e 67 and handshaking
2eb0: 20 6d 75 73 74 20 62 65 20 66 6f 72 63 65 64 20 must be forced
2ec0: 69 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e 20 in some..cases.
2ed0: 20 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b 65 Also, handshake
2ee0: 73 20 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20 s don't seem to
2ef0: 63 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73 20 complete unless
2f00: 74 68 65 20 63 6c 69 65 6e 74 0a 09 68 61 73 20 the client..has
2f10: 70 6c 61 63 65 64 20 61 74 20 6c 65 61 73 74 20 placed at least
2f20: 6f 6e 65 20 62 79 74 65 20 66 6f 72 20 74 68 65 one byte for the
2f30: 20 73 65 72 76 65 72 20 74 6f 20 72 65 61 64 20 server to read
2f40: 69 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e 0a in the channel..
2f50: 0a 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74 65 ..* tests/remote
2f60: 2e 74 63 6c 3a 20 63 6f 72 72 65 63 74 65 64 20 .tcl: corrected
2f70: 74 68 65 20 66 69 6e 64 69 6e 67 20 6f 66 20 74 the finding of t
2f80: 65 73 74 73 20 63 65 72 74 69 66 69 63 61 74 65 ests certificate
2f90: 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 s...* tlsIO.c (T
2fa0: 6c 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72 65 lsCloseProc): re
2fb0: 6d 6f 76 65 64 20 64 65 6c 65 74 69 6e 67 20 6f moved deleting o
2fc0: 66 20 74 69 6d 65 72 20 68 61 6e 64 6c 65 72 20 f timer handler
2fd0: 61 73 0a 09 74 68 61 74 20 69 73 20 68 61 6e 64 as..that is hand
2fe0: 6c 65 64 20 62 79 20 54 6c 73 5f 43 6c 65 61 6e led by Tls_Clean
2ff0: 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 ....* tls.tcl (t
3000: 6c 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63 6f ls::_accept): co
3010: 72 72 65 63 74 65 64 20 74 68 65 20 69 6e 74 65 rrected the inte
3020: 72 6e 61 6c 20 5f 61 63 63 65 70 74 20 74 6f 0a rnal _accept to.
3030: 09 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61 63 .trickle callbac
3040: 6b 20 65 72 72 6f 72 73 20 74 6f 20 74 68 65 20 k errors to the
3050: 75 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 user....* Makefi
3060: 6c 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65 20 le.in: made the
3070: 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 install-binaries
3080: 20 74 61 72 67 65 74 20 72 65 67 65 6e 65 72 61 target regenera
3090: 74 65 20 74 68 65 0a 09 70 6b 67 49 6e 64 65 78 te the..pkgIndex
30a0: 2e 74 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e 20 .tcl correctly.
30b0: 20 54 68 65 20 74 65 73 74 20 74 61 72 67 65 74 The test target
30c0: 20 70 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c 64 probably should
30d0: 6e 27 74 20 73 63 72 65 77 0a 09 69 74 20 75 70 n't screw..it up
30e0: 2c 20 62 75 74 20 74 68 69 73 20 69 73 20 74 6f , but this is to
30f0: 20 62 65 20 6f 6e 20 74 68 65 20 73 61 66 65 20 be on the safe
3100: 73 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 side...2000-07-1
3110: 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 7 Jeff Hobbs <
3120: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
3130: 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 com>...* pkgInde
3140: 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f 6e x.tcl.in:..* con
3150: 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 figure.in: updat
3160: 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e ed version to 1.
3170: 34 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20 20 4a 4..2000-07-13 J
3180: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 eff Hobbs <hobb
3190: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e s@scriptics.com>
31a0: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f ...* tests/tlsIO
31b0: 2e 74 65 73 74 3a 20 65 6e 61 62 6c 65 64 20 74 .test: enabled t
31c0: 65 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31 32 ests 2.10, 7.[12
31d0: 34 35 5d 20 28 74 68 65 72 65 20 69 73 20 6e 6f 45] (there is no
31e0: 20 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77 20 3),..which now
31f0: 70 61 73 73 2e 20 20 41 64 64 65 64 20 73 6f 6d pass. Added som
3200: 65 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f 74 e comments to ot
3210: 68 65 72 20 66 61 69 6c 69 6e 67 20 74 65 73 74 her failing test
3220: 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20 20 s...2000-07-11
3230: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
3240: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
3250: 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 >...* tlsIO.c: c
3260: 68 61 6e 67 65 64 20 61 6c 6c 20 74 68 65 20 63 hanged all the c
3270: 68 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f 20 hannel procs to
3280: 73 74 61 72 74 20 77 69 74 68 20 54 6c 73 2a 20 start with Tls*
3290: 66 6f 72 0a 09 62 65 74 74 65 72 20 70 61 72 69 for..better pari
32a0: 74 79 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e ty when comparin
32b0: 67 20 77 69 74 68 20 54 72 61 6e 73 66 6f 72 6d g with Transform
32c0: 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e 0a channel procs..
32d0: 09 52 65 77 72 6f 74 65 20 54 6c 73 57 61 74 63 .Rewrote TlsWatc
32e0: 68 50 72 6f 63 2c 20 61 64 64 65 64 20 54 6c 73 hProc, added Tls
32f0: 4e 6f 74 69 66 79 50 72 6f 63 20 61 63 63 6f 72 NotifyProc accor
3300: 64 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 77 0a ding to the new.
3310: 09 63 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e 2c .channel design,
3320: 20 77 68 69 63 68 20 61 6c 73 6f 20 6c 65 61 76 which also leav
3330: 65 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61 6e es TlsChannelHan
3340: 64 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09 2a dler unused....*
3350: 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43 74 tlsBIO.c (BioCt
3360: 72 6c 29 3a 20 63 68 61 6e 67 65 64 20 42 49 4f rl): changed BIO
3370: 5f 43 54 52 4c 5f 46 4c 55 53 48 20 63 61 73 65 _CTRL_FLUSH case
3380: 20 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72 69 to use..Tcl_Wri
3390: 74 65 52 61 77 20 69 6e 73 74 65 61 64 20 6f 66 teRaw instead of
33a0: 20 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20 6f Tcl_Flush (to o
33b0: 70 65 72 61 74 65 20 6f 6e 20 63 6f 72 72 65 63 perate on correc
33c0: 74 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 68 t channel..in th
33d0: 65 20 73 74 61 63 6b 20 69 6e 73 74 65 61 64 20 e stack instead
33e0: 6f 66 20 73 74 61 72 74 69 6e 67 20 61 74 20 74 of starting at t
33f0: 68 65 20 74 6f 70 20 61 67 61 69 6e 29 2e 20 20 he top again).
3400: 57 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69 73 65 Would..otherwise
3410: 20 63 61 75 73 65 20 61 20 72 65 63 75 72 73 69 cause a recursi
3420: 76 65 20 73 74 61 63 6b 20 62 6f 6d 62 20 77 68 ve stack bomb wh
3430: 65 6e 20 69 6d 70 6c 69 63 69 74 20 68 61 6e 64 en implicit hand
3440: 73 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 66 shaking..took ef
3450: 66 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f fect....* tests/
3460: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d 6f tlsIO.test: remo
3470: 76 65 64 20 63 68 61 6e 67 65 73 20 6d 61 64 65 ved changes made
3480: 20 74 6f 20 74 65 73 74 20 73 75 69 74 65 20 28 to test suite (
3490: 61 6c 6c 20 74 65 73 74 73 0a 09 74 68 61 74 20 all tests..that
34a0: 72 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20 70 ran before now p
34b0: 61 73 73 20 63 6f 72 72 65 63 74 6c 79 29 2c 20 ass correctly),
34c0: 61 6e 64 20 63 68 61 6e 67 65 64 20 73 6f 6d 65 and changed some
34d0: 20 61 63 63 65 70 74 20 70 72 6f 63 0a 09 61 72 accept proc..ar
34e0: 67 73 20 74 6f 20 72 65 66 6c 65 63 74 20 74 68 gs to reflect th
34f0: 61 74 20 61 20 73 6f 63 6b 20 69 73 20 61 6e 20 at a sock is an
3500: 61 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e arg, not a file.
3510: 0a 0a 32 30 30 30 2d 30 37 2d 31 30 20 20 4a 65 ..2000-07-10 Je
3520: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
3530: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
3540: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 ..* tlsBIO.c (Bi
3550: 6f 57 72 69 74 65 2c 20 42 69 6f 52 65 61 64 29 oWrite, BioRead)
3560: 3a 20 63 68 61 6e 67 65 64 20 54 63 6c 5f 52 65 : changed Tcl_Re
3570: 61 64 2f 57 72 69 74 65 20 74 6f 0a 09 54 63 6c ad/Write to..Tcl
3580: 5f 52 65 61 64 52 61 77 2f 54 63 6c 57 72 69 74 _ReadRaw/TclWrit
3590: 65 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 3a eRaw....* tls.c:
35a0: 20 61 64 64 65 64 20 75 73 65 20 6f 66 20 54 63 added use of Tc
35b0: 6c 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c 20 l_GetTopChannel
35c0: 61 66 74 65 72 20 54 63 6c 5f 47 65 74 43 68 61 after Tcl_GetCha
35d0: 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72 65 nnel and..got re
35e0: 74 75 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20 turn value from
35f0: 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c Tcl_StackChannel
3600: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 ....* tests/tlsI
3610: 4f 2e 74 65 73 74 3a 20 61 64 64 65 64 20 73 6f O.test: added so
3620: 6d 65 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 74 me handshaking t
3630: 68 61 74 20 73 68 6f 75 6c 64 6e 27 74 20 62 65 hat shouldn't be
3640: 0a 09 6e 65 63 65 73 73 61 72 79 2c 20 62 75 74 ..necessary, but
3650: 20 77 65 20 63 72 61 73 68 20 6f 74 68 65 72 77 we crash otherw
3660: 69 73 65 20 28 6e 65 65 64 73 20 6d 6f 72 65 20 ise (needs more
3670: 74 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 6c testing)....* tl
3680: 73 49 4f 2e 63 3a 20 61 64 64 65 64 20 73 75 70 sIO.c: added sup
3690: 70 6f 72 74 20 66 6f 72 20 22 63 6f 72 72 65 63 port for "correc
36a0: 74 65 64 22 20 73 74 61 63 6b 65 64 20 63 68 61 ted" stacked cha
36b0: 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 65 nnels. All..the
36c0: 20 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73 20 above channels
36d0: 61 72 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e 4e are in TCL_CHANN
36e0: 45 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69 66 EL_VERSION_2 #if
36f0: 64 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 defs...2000-06-0
3700: 35 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 5 Scott Stanton
3710: 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 <stanton@ajuba
3720: 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a solutions.com>..
3730: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
3740: 46 69 78 65 64 20 62 72 6f 6b 65 6e 20 74 65 73 Fixed broken tes
3750: 74 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74 6c t target....* tl
3760: 73 49 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 2e sInt.h: ..* tls.
3770: 63 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 64 65 c: Cleaned up de
3780: 63 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 54 6c clarations of Tl
3790: 73 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69 64 s_Clean to avoid
37a0: 20 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e 64 errors on..Wind
37b0: 6f 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 30 ows (lint)...200
37c0: 30 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 20 57 0-06-05 Brent W
37d0: 65 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a 75 62 elch <welch@ajub
37e0: 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a asolutions.com>.
37f0: 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49 4f ..* tls.c, tlsIO
3800: 2e 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f 46 .c: Split Tls_F
3810: 72 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c 65 ree into Tls_Cle
3820: 61 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 0a 09 an, which does..
3830: 74 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 70 2c the SSL cleanup,
3840: 20 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 72 65 and the Tcl_Fre
3850: 65 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 20 69 e call. It is i
3860: 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 75 74 mportant to shut
3870: 64 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 73 74 down..the SSL st
3880: 61 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75 73 ate "synchronous
3890: 6c 79 22 20 64 75 72 69 6e 67 20 61 20 73 74 61 ly" during a sta
38a0: 63 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30 30 cked flush...200
38b0: 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 0-06-01 Scott S
38c0: 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e tanton <stanton
38d0: 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e @ajubasolutions.
38e0: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 com>...* tlsIO.c
38f0: 3a 20 52 65 73 74 6f 72 65 64 20 63 61 6c 6c 20 : Restored call
3900: 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 to Tcl_NotifyCha
3910: 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e 65 nnel from Channe
3920: 6c 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e 73 lHandler..to ens
3930: 75 72 65 20 74 68 61 74 20 65 76 65 6e 74 73 20 ure that events
3940: 70 72 6f 70 61 67 61 74 65 20 66 72 6f 6d 20 74 propagate from t
3950: 68 65 20 6c 6f 77 65 72 20 64 72 69 76 65 72 2e he lower driver.
3960: 20 20 54 68 69 73 20 6d 61 79 0a 09 72 65 73 75 This may..resu
3970: 6c 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 lt in an infinit
3980: 65 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 63 e loop in some c
3990: 61 73 65 73 2c 20 73 6f 20 74 68 69 73 20 69 73 ases, so this is
39a0: 20 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66 69 not a total..fi
39b0: 78 2e 20 20 54 68 69 73 20 6d 61 79 20 62 65 20 x. This may be
39c0: 73 75 66 66 69 63 69 65 6e 74 20 66 6f 72 20 6e sufficient for n
39d0: 6f 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42 75 ow, however. [Bu
39e0: 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 g: 5623]..2000-0
39f0: 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e 6-01 Scott Stan
3a00: 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73 63 ton <stanton@sc
3a10: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
3a20: 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 tlsIO.c: Restor
3a30: 65 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 76 e the previous v
3a40: 65 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 20 74 ersion. Fixed t
3a50: 68 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f 0a he CloseProc so.
3a60: 09 69 74 20 75 6e 72 65 67 69 73 74 65 72 73 20 .it unregisters
3a70: 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 the channel hand
3a80: 6c 65 72 20 6f 6e 20 74 68 65 20 73 75 70 65 72 ler on the super
3a90: 63 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09 69 ceded channel..i
3aa0: 6e 73 74 65 61 64 20 6f 66 20 74 68 65 20 75 70 nstead of the up
3ab0: 70 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c 73 per channel. Als
3ac0: 6f 20 72 65 6d 6f 76 65 64 20 74 68 65 20 63 61 o removed the ca
3ad0: 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 ll to..Tcl_Notif
3ae0: 79 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65 20 yChannel in the
3af0: 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 62 ChannelHandler b
3b00: 65 63 61 75 73 65 20 74 68 69 73 20 77 69 6c 6c ecause this will
3b10: 20 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20 69 result..in an i
3b20: 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66 20 nfinite loop if
3b30: 64 61 74 61 20 69 73 20 65 76 65 72 20 62 75 66 data is ever buf
3b40: 66 65 72 65 64 20 69 6e 20 74 68 65 20 42 49 4f fered in the BIO
3b50: 0a 09 73 74 72 75 63 74 75 72 65 2e 20 5b 42 75 ..structure. [Bu
3b60: 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 g: 5623]..2000-0
3b70: 35 2d 33 31 20 20 42 72 65 6e 74 20 57 65 6c 63 5-31 Brent Welc
3b80: 68 20 3c 77 65 6c 63 68 40 73 63 72 69 70 74 69 h <welch@scripti
3b90: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e cs.com>...* tls.
3ba0: 63 3a 20 43 68 61 6e 67 65 20 74 68 65 20 43 68 c: Change the Ch
3bb0: 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f 20 annelHandler to
3bc0: 62 65 20 72 65 67 69 73 74 65 72 65 64 20 6f 6e be registered on
3bd0: 20 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e 6e the main..chann
3be0: 65 6c 20 61 73 20 6f 70 70 73 65 64 20 74 6f 20 el as oppsed to
3bf0: 74 68 65 20 22 70 61 72 65 6e 74 22 2c 20 6f 72 the "parent", or
3c00: 20 73 75 70 65 72 63 65 65 64 65 64 2c 20 63 68 superceeded, ch
3c10: 61 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69 73 annel. This..is
3c20: 20 62 65 63 61 75 73 65 20 74 68 65 20 73 6f 63 because the soc
3c30: 6b 65 74 20 64 72 69 76 65 72 20 6e 6f 74 69 66 ket driver notif
3c40: 69 65 73 20 74 68 65 20 6d 61 69 6e 20 63 68 61 ies the main cha
3c50: 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 65 0a nnel, and there.
3c60: 09 61 72 65 20 74 69 6d 65 73 20 77 69 74 68 20 .are times with
3c70: 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c the main channel
3c80: 20 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 62 75 gets closed, bu
3c90: 74 20 74 68 65 20 73 75 70 65 72 63 65 64 65 64 t the superceded
3ca0: 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65 74 ..one is not yet
3cb0: 20 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 65 closed. If the
3cc0: 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 channel handler
3cd0: 20 67 65 74 73 20 74 72 69 67 67 65 72 65 64 20 gets triggered
3ce0: 69 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f 70 in..this half-op
3cf0: 65 6e 20 73 74 61 74 65 20 69 74 20 69 73 20 61 en state it is a
3d00: 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 ssociated with t
3d10: 68 65 20 73 75 70 65 72 63 65 65 64 65 64 0a 09 he superceeded..
3d20: 63 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75 73 channedl, but us
3d30: 65 73 20 69 74 73 20 70 72 69 76 61 74 65 20 70 es its private p
3d40: 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6d 61 ointer to the ma
3d50: 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69 63 in channel, whic
3d60: 68 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 65 73 h..is mostly des
3d70: 74 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e 61 troyed. Elimina
3d80: 74 65 64 20 74 68 65 20 72 65 64 75 6e 64 61 6e ted the redundan
3d90: 74 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e t call to..Tcl_N
3da0: 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f otifyChannel fro
3db0: 6d 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2e 20 m TlsWatchProc.
3dc0: 5b 42 75 67 3a 20 35 36 32 33 5d 0a [Bug: 5623].