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