Artifact
0c7fd24fc4436122b5e6c2a3a846ecbf67a7e928:
0000: 32 30 30 37 2d 30 36 2d 32 32 20 20 4a 65 66 66 2007-06-22 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 74 6c 73 49 4f 2e 63 20 28 54 6c 73 ..* tlsIO.c (Tls
0040: 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 4f 75 InputProc, TlsOu
0050: 74 70 75 74 50 72 6f 63 2c 20 54 6c 73 57 61 74 tputProc, TlsWat
0060: 63 68 50 72 6f 63 29 3a 20 0a 09 2a 20 74 6c 73 chProc): ..* tls
0070: 2e 63 20 28 56 65 72 69 66 79 43 61 6c 6c 62 61 .c (VerifyCallba
0080: 63 6b 29 3a 20 61 64 64 20 61 6e 20 73 74 61 74 ck): add an stat
0090: 65 20 66 6c 61 67 20 69 6e 20 74 68 65 20 76 65 e flag in the ve
00a0: 72 69 66 79 20 63 61 6c 6c 62 61 63 6b 0a 09 74 rify callback..t
00b0: 68 61 74 20 70 72 65 76 65 6e 74 73 20 70 6f 73 hat prevents pos
00c0: 73 69 62 6c 79 20 72 65 63 75 72 73 69 6f 6e 20 sibly recursion
00d0: 28 6f 6e 20 27 75 70 64 61 74 65 27 29 2e 20 5b (on 'update'). [
00e0: 42 75 67 20 31 36 35 32 33 38 30 5d 0a 0a 09 2a Bug 1652380]...*
00f0: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 tests/ciphers.t
0100: 65 73 74 3a 20 72 65 77 6f 72 6b 65 64 20 74 6f est: reworked to
0110: 20 6d 61 6b 65 20 74 65 73 74 20 6f 75 74 70 75 make test outpu
0120: 74 20 63 6c 65 61 6e 65 72 20 74 6f 0a 09 75 6e t cleaner to..un
0130: 64 65 72 73 74 61 6e 64 20 6d 69 73 73 69 6e 67 derstand missing
0140: 20 63 69 70 68 65 72 73 20 28 69 66 20 61 6e 79 ciphers (if any
0150: 29 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 )...* Makefile.i
0160: 6e 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c n, tclconfig/tcl
0170: 2e 6d 34 3a 20 75 70 64 61 74 65 20 74 6f 20 54 .m4: update to T
0180: 45 41 20 33 2e 36 0a 09 2a 20 63 6f 6e 66 69 67 EA 3.6..* config
0190: 75 72 65 2c 20 63 6f 6e 66 69 67 75 72 65 2e 69 ure, configure.i
01a0: 6e 3a 20 20 20 20 20 20 20 75 73 69 6e 67 20 61 n: using a
01b0: 75 74 6f 63 6f 6e 66 2d 32 2e 35 39 0a 0a 32 30 utoconf-2.59..20
01c0: 30 37 2d 30 32 2d 32 38 20 20 50 61 74 20 54 68 07-02-28 Pat Th
01d0: 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 oyts <patthoyts
01e0: 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 @users.sourcefor
01f0: 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e 2f ge.net>...* win/
0200: 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 52 65 62 makefile.vc: Reb
0210: 61 73 65 20 74 68 65 20 44 4c 4c 20 73 65 6e 73 ase the DLL sens
0220: 69 62 6c 79 2e 20 41 64 64 69 74 69 6f 6e 61 6c ibly. Additional
0230: 20 6c 69 62 73 20 66 6f 72 20 0a 09 73 74 61 74 libs for ..stat
0240: 69 63 20 6c 69 6e 6b 20 6f 66 20 6f 70 65 6e 73 ic link of opens
0250: 73 6c 2e 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 20 sl...* tls.tcl:
0260: 62 75 67 20 23 31 35 37 39 38 33 37 20 2d 20 54 bug #1579837 - T
0270: 49 50 20 32 37 38 20 62 75 67 20 28 70 6f 73 73 IP 278 bug (poss
0280: 69 62 6c 79 29 20 2d 20 66 69 78 65 64 2e 0a 0a ibly) - fixed...
0290: 32 30 30 36 2d 30 33 2d 33 30 20 20 50 61 74 20 2006-03-30 Pat
02a0: 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 Thoyts <patthoy
02b0: 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 ts@users.sourcef
02c0: 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 63 orge.net>...* tc
02d0: 6c 63 6f 6e 66 69 67 2f 2a 3a 20 20 55 70 64 61 lconfig/*: Upda
02e0: 74 65 64 20 74 6f 20 54 45 41 20 33 2e 35 20 69 ted to TEA 3.5 i
02f0: 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 20 62 75 n response to bu
0300: 67 20 31 34 36 30 34 39 31 0a 09 2a 20 63 6f 6e g 1460491..* con
0310: 66 69 67 75 72 65 2a 3a 20 20 20 52 65 67 65 6e figure*: Regen
0320: 65 72 61 74 65 64 20 63 6f 6e 66 69 67 75 72 65 erated configure
0330: 2e 0a 0a 32 30 30 35 2d 30 32 2d 30 38 20 20 4a ...2005-02-08 J
0340: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
0350: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f h@ActiveState.co
0360: 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e m>...* Makefile.
0370: 69 6e 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 in, tclconfig/tc
0380: 6c 2e 6d 34 3a 20 75 70 64 61 74 65 20 74 6f 20 l.m4: update to
0390: 54 45 41 20 33 2e 32 0a 09 2a 20 63 6f 6e 66 69 TEA 3.2..* confi
03a0: 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 72 65 2e gure, configure.
03b0: 69 6e 3a 20 20 20 20 20 20 20 75 73 69 6e 67 20 in: using
03c0: 61 75 74 6f 63 6f 6e 66 2d 32 2e 35 39 0a 0a 32 autoconf-2.59..2
03d0: 30 30 34 2d 31 32 2d 32 33 20 20 50 61 74 20 54 004-12-23 Pat T
03e0: 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 hoyts <patthoyt
03f0: 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f s@users.sourcefo
0400: 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 4d 61 6b rge.net>...* Mak
0410: 65 66 69 6c 65 2e 69 6e 3a 20 20 20 20 20 20 52 efile.in: R
0420: 65 6d 6f 76 65 64 20 73 70 75 72 69 6f 75 73 20 emoved spurious
0430: 63 6f 70 79 69 6e 67 20 6f 66 20 74 6c 73 2e 74 copying of tls.t
0440: 63 6c 20 69 6e 74 6f 20 74 68 65 0a 09 20 20 20 cl into the..
0450: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0460: 20 62 75 69 6c 64 20 64 69 72 65 63 74 6f 72 79 build directory
0470: 2e 0a 0a 32 30 30 34 2d 31 32 2d 32 32 20 20 50 ...2004-12-22 P
0480: 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 at Thoyts <patt
0490: 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 hoyts@users.sour
04a0: 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a ceforge.net>...*
04b0: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 configure.in:
04c0: 20 20 20 49 6e 63 72 65 6d 65 6e 74 65 64 20 6d Incremented m
04d0: 69 6e 6f 72 20 76 65 72 73 69 6f 6e 20 74 6f 20 inor version to
04e0: 31 2e 35 2e 31 0a 09 2a 20 63 6f 6e 66 69 67 75 1.5.1..* configu
04f0: 72 65 3a 20 20 20 20 20 20 20 20 0a 0a 32 30 30 re: ..200
0500: 34 2d 31 32 2d 31 37 20 20 50 61 74 20 54 68 6f 4-12-17 Pat Tho
0510: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 yts <patthoyts@
0520: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 users.sourceforg
0530: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e 2f 6d e.net>...* win/m
0540: 61 6b 65 66 69 6c 65 2e 76 63 3a 20 20 41 64 64 akefile.vc: Add
0550: 65 64 20 74 68 65 20 4d 53 56 43 20 62 75 69 6c ed the MSVC buil
0560: 64 20 73 79 73 74 65 6d 20 28 66 72 6f 6d 20 74 d system (from t
0570: 68 65 20 54 63 6c 0a 09 2a 20 77 69 6e 2f 72 75 he Tcl..* win/ru
0580: 6c 65 73 2e 76 63 3a 20 20 20 20 20 73 61 6d 70 les.vc: samp
0590: 6c 65 65 78 74 65 6e 73 69 6f 6e 29 2e 0a 09 2a leextension)...*
05a0: 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a win/nmakehlp.c:
05b0: 0a 09 2a 20 77 69 6e 2f 74 6c 73 2e 72 63 20 20 ..* win/tls.rc
05c0: 20 20 20 20 20 20 41 64 64 65 64 20 57 69 6e 64 Added Wind
05d0: 6f 77 73 20 72 65 73 6f 75 72 63 65 20 66 69 6c ows resource fil
05e0: 65 2e 0a 09 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a e.....* tls.tcl:
05f0: 20 20 20 20 20 20 20 20 20 20 46 72 6f 6d 20 70 From p
0600: 61 74 63 68 20 23 39 34 38 31 35 35 2c 20 61 64 atch #948155, ad
0610: 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 0a ded support for.
0620: 09 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .
0630: 20 20 20 20 20 61 6c 74 65 72 6e 61 74 65 20 73 alternate s
0640: 6f 63 6b 65 74 20 63 6f 6d 6d 61 6e 64 73 2e 0a ocket commands..
0650: 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 .* tls.c:
0660: 20 20 20 20 20 51 75 69 65 74 65 6e 20 73 6f 6d Quieten som
0670: 65 20 4d 53 56 43 20 77 61 72 6e 69 6e 67 73 2e e MSVC warnings.
0680: 20 50 72 65 66 65 72 20 63 6b 61 6c 6c 6f 63 0a Prefer ckalloc.
0690: 09 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .
06a0: 20 20 20 20 20 6f 76 65 72 20 54 63 6c 5f 41 6c over Tcl_Al
06b0: 6c 6f 63 2e 20 28 44 61 76 69 64 20 47 72 61 76 loc. (David Grav
06c0: 65 72 61 75 78 29 2e 0a 0a 32 30 30 34 2d 30 36 eraux)...2004-06
06d0: 2d 32 39 20 20 50 61 74 20 54 68 6f 79 74 73 20 -29 Pat Thoyts
06e0: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 <patthoyts@user
06f0: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 s.sourceforge.ne
0700: 74 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 t>...* tls.c:
0710: 20 20 20 20 20 20 20 20 20 46 69 78 75 70 20 74 Fixup t
0720: 6f 20 62 75 69 6c 64 20 61 67 61 69 6e 73 74 20 o build against
0730: 74 63 6c 20 38 2e 33 2e 33 2e 20 48 61 6e 64 6c tcl 8.3.3. Handl
0740: 65 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 20 20 e..* tlsIO.c:
0750: 20 20 20 20 20 20 20 38 2e 34 20 63 6f 6e 73 74 8.4 const
0760: 69 66 69 63 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74 ification....* t
0770: 6c 73 49 6e 74 2e 68 3a 20 20 20 20 20 20 20 20 lsInt.h:
0780: 20 41 64 64 65 64 20 68 65 61 64 65 72 73 20 72 Added headers r
0790: 65 71 75 69 72 65 64 20 77 69 74 68 20 4d 53 56 equired with MSV
07a0: 43 20 6f 6e 20 57 69 6e 33 32 2e 0a 09 2a 20 74 C on Win32...* t
07b0: 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 lsX509.c:
07c0: 20 75 6e 64 65 66 20 6d 69 6e 20 61 6e 64 20 6d undef min and m
07d0: 61 78 20 69 66 20 64 65 66 69 6e 65 64 20 28 77 ax if defined (w
07e0: 69 6e 33 32 29 2e 0a 0a 09 2a 20 4d 61 6b 65 66 in32)....* Makef
07f0: 69 6c 65 2e 69 6e 3a 20 20 20 20 20 20 46 69 78 ile.in: Fix
0800: 65 64 20 74 6f 20 62 75 69 6c 64 20 6f 6e 20 77 ed to build on w
0810: 69 6e 33 32 20 75 73 69 6e 67 20 6d 73 79 73 20 in32 using msys
0820: 77 69 74 68 0a 09 2a 20 61 63 6c 6f 63 61 6c 2e with..* aclocal.
0830: 6d 34 3a 20 20 20 20 20 20 20 4d 53 56 43 2e 20 m4: MSVC.
0840: 41 6c 73 6f 20 66 69 78 65 64 20 74 68 65 20 74 Also fixed the t
0850: 65 73 74 20 74 61 72 67 65 74 2e 0a 09 2a 20 63 est target...* c
0860: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 onfigure.in:..*
0870: 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 20 20 20 configure:
0880: 20 20 52 65 67 65 6e 65 72 61 74 65 64 2e 0a 09 Regenerated...
0890: 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e * tclconfig/tcl.
08a0: 6d 34 3a 20 55 70 64 61 74 65 64 20 74 6f 20 6d m4: Updated to m
08b0: 6f 73 74 20 72 65 63 65 6e 74 20 76 65 72 73 69 ost recent versi
08c0: 6f 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d 32 33 20 on...2004-03-23
08d0: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 Dan Razzell <re
08e0: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
08f0: 79 73 74 65 6d 73 2e 63 61 3e 0a 09 2a 20 74 6c ystems.ca>..* tl
0900: 73 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 s.c:..* tlsBIO.c
0910: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a :..* tlsIO.c:..*
0920: 20 74 6c 73 49 6e 74 2e 68 3a 09 46 69 78 65 64 tlsInt.h:.Fixed
0930: 20 74 79 70 65 20 6d 61 74 63 68 20 77 61 72 6e type match warn
0940: 69 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 33 2d 31 ings...2004-03-1
0950: 39 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 9 Jeff Hobbs <
0960: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
0970: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 e.com>...* tls.c
0980: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20 72 (Tls_Init): r
0990: 65 70 6c 61 63 65 64 20 6f 6c 64 65 72 20 54 45 eplaced older TE
09a0: 41 20 63 6f 6e 66 69 67 20 77 69 74 68 20 6e 65 A config with ne
09b0: 77 65 72 0a 09 2a 20 63 6f 6e 66 69 67 2f 2a 20 wer..* config/*
09c0: 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 70 6b (removed):..* pk
09d0: 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 2c 20 73 gIndex.tcl.in, s
09e0: 74 72 6e 63 61 73 65 63 6d 70 2e 63 20 28 72 65 trncasecmp.c (re
09f0: 6d 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 6b 65 66 moved):..* Makef
0a00: 69 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 61 6c 2e ile.in, aclocal.
0a10: 6d 34 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 m4, configure, c
0a20: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 onfigure.in:..*
0a30: 74 63 6c 63 6f 6e 66 69 67 2f 52 45 41 44 4d 45 tclconfig/README
0a40: 2e 74 78 74 2c 20 74 63 6c 63 6f 6e 66 69 67 2f .txt, tclconfig/
0a50: 69 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 63 6c 63 install-sh, tclc
0a60: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 0a 0a 32 onfig/tcl.m4:..2
0a70: 30 30 34 2d 30 33 2d 31 37 20 20 44 61 6e 20 52 004-03-17 Dan R
0a80: 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 azzell <research
0a90: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 @starfishsystems
0aa0: 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 35 30 39 .ca>...* tlsX509
0ab0: 2e 63 3a 09 41 64 64 20 73 75 70 70 6f 72 74 20 .c:.Add support
0ac0: 66 6f 72 20 6c 6f 6e 67 20 73 65 72 69 61 6c 20 for long serial
0ad0: 6e 75 6d 62 65 72 73 20 70 65 72 20 52 46 43 20 numbers per RFC
0ae0: 33 32 38 30 2e 0a 09 09 09 46 6f 72 6d 61 74 20 3280.....Format
0af0: 69 73 20 6e 6f 77 20 68 65 78 61 64 65 63 69 6d is now hexadecim
0b00: 61 6c 2e 20 0a 09 09 09 5b 52 65 71 75 65 73 74 al. ....[Request
0b10: 20 23 39 31 35 33 31 33 5d 0a 09 09 09 43 6f 72 #915313]....Cor
0b20: 72 65 63 74 6c 79 20 63 6f 6e 76 65 72 74 20 63 rectly convert c
0b30: 65 72 74 69 66 69 63 61 74 65 20 44 69 73 74 69 ertificate Disti
0b40: 6e 67 75 69 73 68 65 64 20 4e 61 6d 65 73 0a 09 nguished Names..
0b50: 09 09 74 6f 20 54 63 6c 20 73 74 72 69 6e 67 20 ..to Tcl string
0b60: 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 2e 20 representation.
0b70: 20 45 6c 69 6d 69 6e 61 74 65 73 20 75 73 65 20 Eliminates use
0b80: 6f 66 0a 09 09 09 64 65 70 72 65 63 61 74 65 64 of....deprecated
0b90: 20 4f 70 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f OpenSSL functio
0ba0: 6e 2e 20 20 46 6f 72 6d 61 74 20 69 73 20 6e 6f n. Format is no
0bb0: 77 20 63 6f 6d 70 6c 69 61 6e 74 0a 09 09 09 77 w compliant....w
0bc0: 69 74 68 20 52 46 43 20 32 32 35 33 2e 20 20 5b ith RFC 2253. [
0bd0: 52 65 71 75 65 73 74 20 23 39 31 35 33 31 35 5d Request #915315]
0be0: 0a 0a 32 30 30 34 2d 30 32 2d 31 37 20 20 44 61 ..2004-02-17 Da
0bf0: 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 n Razzell <resea
0c00: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 rch@starfishsyst
0c10: 65 6d 73 2e 63 61 3e 0a 0a 09 54 4c 53 20 31 2e ems.ca>...TLS 1.
0c20: 35 2e 30 20 52 45 4c 45 41 53 45 0a 0a 32 30 30 5.0 RELEASE..200
0c30: 34 2d 30 32 2d 31 32 20 20 44 61 6e 20 52 61 7a 4-02-12 Dan Raz
0c40: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 zell.<research@s
0c50: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
0c60: 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 09 41 6c a>...* tls.c:.Al
0c70: 6c 6f 77 20 76 65 72 69 66 79 20 63 61 6c 6c 62 low verify callb
0c80: 61 63 6b 20 74 6f 20 72 65 74 75 72 6e 20 65 6d ack to return em
0c90: 70 74 79 20 72 65 73 75 6c 74 2e 0a 09 2a 20 74 pty result...* t
0ca0: 6c 73 2e 68 74 6d 3a 09 44 6f 63 75 6d 65 6e 74 ls.htm:.Document
0cb0: 20 63 61 6c 6c 62 61 63 6b 20 62 65 68 61 76 69 callback behavi
0cc0: 6f 72 73 2e 0a 0a 32 30 30 34 2d 30 32 2d 31 31 ors...2004-02-11
0cd0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 Dan Razzell.<r
0ce0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 esearch@starfish
0cf0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 systems.ca>...*
0d00: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
0d10: 3a 0a 09 2a 20 72 65 6d 6f 74 65 2e 74 63 6c 3a :..* remote.tcl:
0d20: 09 43 6f 6d 70 6c 65 74 65 20 70 72 69 76 61 74 .Complete privat
0d30: 65 20 6b 65 79 20 6e 61 6d 65 20 63 68 61 6e 67 e key name chang
0d40: 65 73 20 66 72 6f 6d 20 32 30 30 31 2d 30 36 2d es from 2001-06-
0d50: 32 31 2e 0a 0a 32 30 30 34 2d 30 32 2d 30 33 20 21...2004-02-03
0d60: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 Dan Razzell <re
0d70: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
0d80: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 4d ystems.ca>...* M
0d90: 61 6b 65 66 69 6c 65 2e 69 6e 3a 09 52 65 6d 6f akefile.in:.Remo
0da0: 76 65 64 20 63 69 72 63 75 6c 61 72 20 64 65 70 ved circular dep
0db0: 65 6e 64 65 6e 63 79 2e 0a 09 2a 20 74 6c 73 49 endency...* tlsI
0dc0: 6e 74 2e 68 3a 09 4d 61 6b 65 20 66 75 6e 63 74 nt.h:.Make funct
0dd0: 69 6f 6e 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 ion declarations
0de0: 20 65 78 70 6c 69 63 69 74 2e 0a 09 2a 20 74 6c explicit...* tl
0df0: 73 2e 63 3a 09 46 69 78 20 74 79 70 65 20 6d 61 s.c:.Fix type ma
0e00: 74 63 68 20 61 6e 64 20 75 6e 75 73 65 64 20 76 tch and unused v
0e10: 61 72 69 61 62 6c 65 20 77 61 72 6e 69 6e 67 73 ariable warnings
0e20: 2e 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 09 46 ...* tlsBIO.c:.F
0e30: 69 78 20 74 79 70 65 20 6d 61 74 63 68 20 77 61 ix type match wa
0e40: 72 6e 69 6e 67 2e 0a 0a 32 30 30 33 2d 31 32 2d rning...2003-12-
0e50: 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 15 Dan Razzell.
0e60: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
0e70: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 shsystems.ca>...
0e80: 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 * pkgIndex.tcl.i
0e90: 6e 3a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 n:..* tls.htm:..
0ea0: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 * tests/tlsIO.te
0eb0: 73 74 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 st: updated vers
0ec0: 69 6f 6e 20 74 6f 20 31 2e 35 2e 0a 0a 32 30 30 ion to 1.5...200
0ed0: 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 3-10-07 Dan Raz
0ee0: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 zell.<research@s
0ef0: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
0f00: 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 a>...* tests/cip
0f10: 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 hers.test: updat
0f20: 65 64 20 6c 69 73 74 20 6f 66 20 74 65 73 74 65 ed list of teste
0f30: 64 20 63 69 70 68 65 72 73 20 74 6f 20 63 6f 72 d ciphers to cor
0f40: 72 65 73 70 6f 6e 64 0a 09 2a 20 77 69 74 68 20 respond..* with
0f50: 74 68 6f 73 65 20 61 76 61 69 6c 61 62 6c 65 20 those available
0f60: 66 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e 20 5b 52 from OpenSSL. [R
0f70: 65 71 75 65 73 74 20 23 38 31 31 39 38 31 5d 0a equest #811981].
0f80: 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e .2003-10-07 Dan
0f90: 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 Razzell <resear
0fa0: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 ch@starfishsyste
0fb0: 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 ms.ca>...* tls.c
0fc0: 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 20 77 69 : added CONST wi
0fd0: 74 68 20 69 6e 74 65 6e 74 20 73 69 6d 69 6c 61 th intent simila
0fe0: 72 20 74 6f 20 74 68 6f 73 65 20 66 72 6f 6d 20 r to those from
0ff0: 32 30 30 32 2d 30 32 2d 30 34 2e 0a 09 5b 52 65 2002-02-04...[Re
1000: 71 75 65 73 74 20 23 38 31 31 39 31 31 5d 0a 0a quest #811911]..
1010: 32 30 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66 2003-07-07 Jeff
1020: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 Hobbs <jeffh@A
1030: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a ctiveState.com>.
1040: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 ..* tls.c (Tls_I
1050: 6e 69 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c nit): added tl
1060: 73 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20 s::misc command
1070: 70 72 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74 provided by..* t
1080: 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 lsX509.c:
1090: 20 20 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a Wojciech Kocj
10a0: 61 6e 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63 an (wojciech koc
10b0: 6a 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74 jan.org)..* test
10c0: 73 2f 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20 s/keytest1.tcl:
10d0: 74 6f 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c to expose more l
10e0: 6f 77 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d ow-level SSL com
10f0: 6d 61 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b mands..* tests/k
1100: 65 79 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30 eytest2.tcl:..20
1110: 30 33 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61 03-05-15 Dan Ra
1120: 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 zzell.<research@
1130: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e starfishsystems.
1140: 63 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c ca> ...* tls.tcl
1150: 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 :..* tlsInt.h:..
1160: 2a 20 74 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 * tls.c: add sup
1170: 70 6f 72 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 port for binding
1180: 20 61 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c a password call
1190: 62 61 63 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b back to the sock
11a0: 65 74 2e 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f et...Now each so
11b0: 63 6b 65 74 20 63 61 6e 20 68 61 76 65 20 69 74 cket can have it
11c0: 73 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e s own command an
11d0: 64 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 d password callb
11e0: 61 63 6b 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 acks instead..of
11f0: 20 62 65 69 6e 67 20 66 6f 72 63 65 64 20 74 6f being forced to
1200: 20 68 61 76 65 20 61 6c 6c 20 70 61 73 73 77 6f have all passwo
1210: 72 64 20 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 rd management pa
1220: 73 73 20 74 68 72 6f 75 67 68 20 61 20 63 6f 6d ss through a com
1230: 6d 6f 6e 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 mon..procedure.
1240: 20 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 The common pass
1250: 77 6f 72 64 20 70 72 6f 63 65 64 75 72 65 20 69 word procedure i
1260: 73 20 72 65 74 61 69 6e 65 64 20 66 6f 72 20 63 s retained for c
1270: 6f 6d 70 61 74 69 62 69 6c 69 74 79 0a 09 62 75 ompatibility..bu
1280: 74 20 69 74 73 20 75 73 65 20 73 68 6f 75 6c 64 t its use should
1290: 20 62 65 20 44 45 50 52 45 43 41 54 45 44 2e 0a be DEPRECATED..
12a0: 09 41 64 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d .Add version com
12b0: 6d 61 6e 64 20 74 6f 20 72 65 74 75 72 6e 20 4f mand to return O
12c0: 70 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 penSSL version s
12d0: 74 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 tring...Remove u
12e0: 6e 73 74 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 nstable workarou
12f0: 6e 64 73 20 6e 65 65 64 65 64 20 66 6f 72 20 76 nds needed for v
1300: 65 72 69 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 erify in obsolet
1310: 65 20 76 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f e versions of..O
1320: 70 65 6e 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d penSSL...Fix mem
1330: 6f 72 79 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 ory leak. [Reque
1340: 73 74 20 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 st #640660]..Mor
1350: 65 20 63 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 e casts to elimi
1360: 6e 61 74 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 nate compiler wa
1370: 72 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e rnings....* tls.
1380: 68 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 htm: document pa
1390: 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e ssword callback.
13a0: 0a 09 43 6f 72 72 65 63 74 20 74 65 63 68 6e 69 ..Correct techni
13b0: 63 61 6c 20 61 6e 64 20 74 79 70 6f 67 72 61 70 cal and typograp
13c0: 68 69 63 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 hic errors....*
13d0: 52 45 41 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e README.txt: iden
13e0: 74 69 66 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 tify versions of
13f0: 20 4f 70 65 6e 53 53 4c 20 77 68 69 63 68 20 66 OpenSSL which f
1400: 69 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d ix known problem
1410: 73 2e 0a 09 47 65 6e 65 72 61 6c 20 77 61 72 6e s...General warn
1420: 69 6e 67 20 6f 66 20 73 65 63 75 72 69 74 79 20 ing of security
1430: 70 72 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 problems in olde
1440: 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 r versions of Op
1450: 65 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d enSSL...2002-02-
1460: 30 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 04 Jeff Hobbs
1470: 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 <jeffh@ActiveSta
1480: 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e te.com>...* tls.
1490: 68 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 htm:..* tls.c: a
14a0: 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 dded support for
14b0: 20 6c 6f 63 61 6c 20 63 65 72 74 69 66 69 63 61 local certifica
14c0: 74 65 20 73 74 61 74 75 73 20 63 68 65 63 6b 2c te status check,
14d0: 20 61 73 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 as well..as ret
14e0: 75 72 6e 69 6e 67 20 74 68 65 20 23 20 6f 66 20 urning the # of
14f0: 62 69 74 73 20 69 6e 20 74 68 65 20 73 65 73 73 bits in the sess
1500: 69 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 ion key. [Patch
1510: 23 35 30 35 36 39 38 5d 20 28 72 6f 73 65 29 0a #505698] (rose).
1520: 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c ..* tls.c:..* tl
1530: 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f sIO.c:..* tlsBIO
1540: 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 73 .c: added CONSTs
1550: 20 74 6f 20 73 61 74 69 73 66 79 20 54 63 6c 20 to satisfy Tcl
1560: 38 2e 34 20 73 6f 75 72 63 65 73 2e 20 20 54 68 8.4 sources. Th
1570: 69 73 20 6d 61 79 0a 09 67 69 76 65 20 77 61 72 is may..give war
1580: 6e 69 6e 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 nings when compi
1590: 6c 65 64 20 61 67 61 69 6e 73 74 20 38 2e 33 2c led against 8.3,
15a0: 20 62 75 74 20 74 68 65 79 20 63 61 6e 20 62 65 but they can be
15b0: 20 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 ignored....* te
15c0: 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 sts/simpleClient
15d0: 2e 74 63 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 .tcl:..* tests/s
15e0: 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a impleServer.tcl:
15f0: 20 70 6f 69 6e 74 20 74 6f 20 75 70 64 61 74 65 point to update
1600: 64 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 d client/server
1610: 6b 65 79 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 key files....* t
1620: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
1630: 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 ..* tests/cipher
1640: 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 s.test: updated
1650: 74 6f 20 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d to load tls from
1660: 20 62 75 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 build dir....*
1670: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d Makefile.in: rem
1680: 6f 76 65 64 20 73 74 72 6e 63 61 73 65 63 6d 70 oved strncasecmp
1690: 20 66 72 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 from default ob
16a0: 6a 65 63 74 20 73 65 74 2e 20 20 54 68 69 73 0a ject set. This.
16b0: 09 69 73 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 .is only needed
16c0: 6f 6e 20 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 on the Mac, and
16d0: 54 63 6c 20 73 74 75 62 73 20 70 72 6f 76 69 64 Tcl stubs provid
16e0: 65 73 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 es it....* confi
16f0: 67 75 72 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a gure: regen'ed..
1700: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a .* configure.in:
1710: 20 75 70 64 61 74 65 64 20 74 6f 20 31 2e 35 2e updated to 1.5.
1720: 30 20 66 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 0 for next relea
1730: 73 65 2e 0a 09 43 68 61 6e 67 65 64 20 64 65 66 se...Changed def
1740: 61 75 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 ault openssl loc
1750: 61 74 69 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f ation to /usr/lo
1760: 63 61 6c 2f 73 73 6c 20 28 74 68 69 73 20 69 73 cal/ssl (this is
1770: 20 77 68 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 where..openssl
1780: 30 2e 39 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 0.9.6c installs
1790: 62 79 20 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 by default)...Ch
17a0: 61 6e 67 65 64 20 74 6f 20 75 73 65 20 70 75 62 anged to use pub
17b0: 6c 69 63 20 54 63 6c 20 68 65 61 64 65 72 73 20 lic Tcl headers
17c0: 28 70 72 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 (private not nee
17d0: 64 65 64 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 ded)...2001-06-2
17e0: 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 1 Jeff Hobbs <
17f0: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
1800: 65 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 e.com>...TLS 1.4
1810: 2e 31 20 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 .1 RELEASE...* c
1820: 6f 6e 66 69 67 75 72 65 3a 20 61 64 64 65 64 20 onfigure: added
1830: 63 6f 6e 66 69 67 75 72 65 20 74 6f 20 43 56 53 configure to CVS
1840: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e ..* configure.in
1850: 3a 20 6d 6f 76 65 64 20 74 6f 20 70 61 74 63 68 : moved to patch
1860: 6c 65 76 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 level 1.4.1...*
1870: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 Makefile.in: cor
1880: 72 65 63 74 65 64 20 27 64 69 73 74 27 20 74 61 rected 'dist' ta
1890: 72 67 65 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 rget...* tests/c
18a0: 65 72 74 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 erts/file.srl:..
18b0: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 * tests/certs/ca
18c0: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .pem:..* tests/c
18d0: 65 72 74 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a erts/client.key:
18e0: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
18f0: 63 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 client.pem:..* t
1900: 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e ests/certs/clien
1910: 74 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f t.req:..* tests/
1920: 63 65 72 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 certs/privkey.pe
1930: 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 m:..* tests/cert
1940: 73 2f 73 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a s/server.key:..*
1950: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 tests/certs/ser
1960: 76 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 ver.pem:..* test
1970: 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 72 s/certs/server.r
1980: 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 eq:..* tests/cer
1990: 74 73 2f 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 ts/cacert.pem: r
19a0: 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 eplaced by new c
19b0: 61 2e 70 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 a.pem..* tests/c
19c0: 65 72 74 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 erts/skey.pem: r
19d0: 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 73 eplaced by new s
19e0: 65 72 76 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 erver.key..* tes
19f0: 74 73 2f 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 ts/certs/ckey.pe
1a00: 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e m: replaced by n
1a10: 65 77 20 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a ew client.key..*
1a20: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 52 45 41 tests/certs/REA
1a30: 44 4d 45 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 DME.txt: new set
1a40: 20 6f 66 20 74 65 73 74 20 63 65 72 74 69 66 69 of test certifi
1a50: 63 61 74 65 73 20 77 69 74 68 20 73 6f 6d 65 0a cates with some.
1a60: 09 52 45 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 .README info on
1a70: 74 68 65 69 72 20 67 65 6e 65 72 61 74 69 6f 6e their generation
1a80: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 ....* tests/ciph
1a90: 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 ers.test: update
1aa0: 64 20 63 69 70 68 65 72 73 20 65 78 70 65 63 74 d ciphers expect
1ab0: 65 64 20 77 69 74 68 20 64 65 66 61 75 6c 74 0a ed with default.
1ac0: 09 6f 70 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a .openssl build..
1ad0: 0a 09 2a 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e ..* tests/tclIO.
1ae0: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f test: updated to
1af0: 20 75 73 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 use new names f
1b00: 6f 72 20 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a or certs/keys...
1b10: 32 30 30 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 2001-03-14 Jeff
1b20: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 67 Hobbs <jeffh@g
1b30: 69 6d 6c 65 74 2e 61 63 74 69 76 65 73 74 61 74 imlet.activestat
1b40: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 e.com>...* tls.c
1b50: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 (Tls_Init): add
1b60: 20 64 6f 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 do/while for ra
1b70: 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 ndom number init
1b80: 69 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 ialization..to w
1b90: 6f 72 6b 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 ork around some
1ba0: 4f 53 65 73 20 71 75 69 72 6b 73 2e 20 20 28 52 OSes quirks. (R
1bb0: 61 6c 70 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 alph.Billes@telt
1bc0: 65 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 ech.com.au)..200
1bd0: 30 2d 30 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 0-09-07 Jeff Ho
1be0: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1bf0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
1c00: 6c 73 49 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e lsIO.c (Tls_Chan
1c10: 6e 65 6c 54 79 70 65 29 3a 20 73 65 74 20 74 79 nelType): set ty
1c20: 70 65 4e 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 peName field of
1c30: 63 68 61 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a channel type to.
1c40: 09 22 74 6c 73 22 20 28 74 68 69 73 20 67 6f 74 ."tls" (this got
1c50: 20 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f lost in move to
1c60: 20 64 79 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e dynamic version
1c70: 20 63 6f 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 compatability..
1c80: 63 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 checking)...2000
1c90: 2d 30 38 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 -08-23 Jeff Hob
1ca0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
1cb0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 tics.com>...TLS
1cc0: 31 2e 34 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 1.4 RELEASED...*
1cd0: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 Makefile.in (di
1ce0: 73 74 29 3a 20 63 72 65 61 74 65 20 64 69 73 74 st): create dist
1cf0: 20 74 61 72 67 65 74 20 66 6f 72 20 61 72 63 68 target for arch
1d00: 69 76 65 20 64 69 73 74 72 69 62 75 74 69 6f 6e ive distribution
1d10: 73 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 s...* tests/tlsI
1d20: 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e O.test (tlsIO-8.
1d30: 31 29 3a 20 61 64 64 65 64 20 61 20 64 65 6c 61 1): added a dela
1d40: 79 20 6f 6e 20 74 68 65 20 61 63 63 65 70 74 20 y on the accept
1d50: 63 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 close..to make t
1d60: 68 65 20 74 65 73 74 20 77 6f 72 6b 20 77 69 74 he test work wit
1d70: 68 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e h OpenSSL on Win
1d80: 64 6f 77 73 20 28 64 6f 65 73 6e 27 74 20 61 66 dows (doesn't af
1d90: 66 65 63 74 0a 09 6f 74 68 65 72 20 62 75 69 6c fect..other buil
1da0: 64 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d ds)....* tls.htm
1db0: 3a 20 75 70 64 61 74 65 64 20 77 69 74 68 20 6e : updated with n
1dc0: 6f 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 otes for 1.4...2
1dd0: 30 30 30 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 000-08-21 Jeff
1de0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
1df0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
1e00: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
1e10: 74 3a 20 72 65 71 75 69 72 65 20 61 74 20 6c 65 t: require at le
1e20: 61 73 74 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 ast tls1.4 in te
1e30: 73 74 20 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d st suite...2000-
1e40: 30 38 2d 31 38 20 20 4a 65 66 66 20 48 6f 62 62 08-18 Jeff Hobb
1e50: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
1e60: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
1e70: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 .c (Tls_Init): a
1e80: 64 64 65 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e dded call to RAN
1e90: 44 5f 73 65 65 64 20 74 6f 20 73 65 65 64 20 74 D_seed to seed t
1ea0: 68 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e he SSL random..n
1eb0: 75 6d 62 65 72 20 67 65 6e 65 72 61 74 6f 72 2e umber generator.
1ec0: 20 20 57 69 74 68 6f 75 74 20 74 68 69 73 2c 20 Without this,
1ed0: 4f 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 OpenSSL 0.9.5 ch
1ee0: 6f 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 okes, and in any
1ef0: 0a 09 63 61 73 65 20 69 74 20 69 73 20 61 20 62 ..case it is a b
1f00: 69 67 20 73 65 63 75 72 69 74 79 20 68 6f 6c 65 ig security hole
1f10: 20 74 6f 20 64 6f 20 77 69 74 68 6f 75 74 20 69 to do without i
1f20: 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 t....* configure
1f30: 2e 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 .in (OPENSSL): a
1f40: 64 64 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 dded NO_IDEA and
1f50: 20 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65 73 20 NO_RC5 defines
1f60: 62 79 0a 09 64 65 66 61 75 6c 74 20 77 68 65 6e by..default when
1f70: 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 compiling with
1f80: 4f 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 OpenSSL....* tls
1f90: 49 6e 74 2e 68 3a 20 61 64 64 65 64 20 65 72 72 Int.h: added err
1fa0: 2e 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 .h include...* t
1fb0: 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 lsBIO.c:..* tlsI
1fc0: 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 70 O.c: corrected p
1fd0: 65 64 61 6e 74 69 63 20 63 61 73 74 20 65 72 72 edantic cast err
1fe0: 6f 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 ors...2000-08-16
1ff0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
2000: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
2010: 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 om>...* tests/ci
2020: 70 68 65 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 phers.test: impr
2030: 6f 76 65 64 20 61 62 69 6c 69 74 79 20 74 6f 20 oved ability to
2040: 63 68 61 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e change constrain
2050: 74 0a 09 73 65 74 74 69 6e 67 20 66 6f 72 20 77 t..setting for w
2060: 68 65 74 68 65 72 20 75 73 65 72 20 63 6f 6d 70 hether user comp
2070: 69 6c 65 64 20 61 67 61 69 6e 73 74 20 52 53 41 iled against RSA
2080: 20 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 or OpenSSL libs
2090: 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 ....* tls.c (Tls
20a0: 5f 49 6e 69 74 29 3a 20 63 6f 72 72 65 63 74 65 _Init): correcte
20b0: 64 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e d interpretation
20c0: 20 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 of version numb
20d0: 65 72 0a 09 28 70 61 74 63 68 6c 65 76 65 6c 20 er..(patchlevel
20e0: 61 6e 64 20 72 65 6c 65 61 73 65 2f 73 65 72 69 and release/seri
20f0: 61 6c 20 77 65 72 65 20 73 77 61 70 70 65 64 29 al were swapped)
2100: 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20 20 4a ...2000-08-15 J
2110: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 eff Hobbs <hobb
2120: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e s@scriptics.com>
2130: 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a ...* README.txt:
2140: 20 61 64 64 65 64 20 6e 6f 74 65 73 20 61 62 6f added notes abo
2150: 75 74 20 6e 65 65 64 20 74 6f 20 75 73 65 20 38 ut need to use 8
2160: 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e .2.0+....* tlsIn
2170: 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 t.h:..* tls.c:..
2180: 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 * tlsIO.c: corre
2190: 63 74 65 64 20 73 74 72 75 63 74 75 72 65 20 69 cted structure i
21a0: 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f nitialization to
21b0: 20 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 work when..comp
21c0: 69 6c 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 iling with 8.2.
21d0: 20 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 Now compiles wi
21e0: 74 68 20 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 th 8.2+ and test
21f0: 65 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 ed to work..with
2200: 20 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 8.2+ and dynami
2210: 63 61 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 cally adjust to
2220: 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 the version of T
2230: 63 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 cl it was..loade
2240: 64 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c d into. TLS wil
2250: 6c 20 66 61 69 6c 20 74 68 65 20 74 65 73 74 20 l fail the test
2260: 73 75 69 74 65 20 77 69 74 68 20 54 63 6c 20 38 suite with Tcl 8
2270: 2e 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 .2-8.3.1....* te
2280: 73 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 sts/all.tcl: add
2290: 65 64 20 63 61 74 63 68 20 61 72 6f 75 6e 64 20 ed catch around
22a0: 3a 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 ::tcltest::norma
22b0: 6c 69 7a 65 50 61 74 68 0a 09 62 65 63 61 75 73 lizePath..becaus
22c0: 65 20 69 74 20 64 6f 65 73 6e 27 74 20 65 78 69 e it doesn't exi
22d0: 73 74 20 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 st in pre-8.3 tc
22e0: 6c 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 ltest....* tests
22f0: 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 /simpleClient.tc
2300: 6c 3a 20 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d l: ..* tests/sim
2310: 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 61 pleServer.tcl: a
2320: 64 64 65 64 20 73 69 6d 70 6c 65 20 63 6c 69 65 dded simple clie
2330: 6e 74 2f 73 65 72 76 65 72 20 74 65 73 74 20 73 nt/server test s
2340: 63 72 69 70 74 73 0a 09 74 68 61 74 20 75 73 65 cripts..that use
2350: 20 74 65 73 74 20 63 65 72 74 73 20 61 6e 64 20 test certs and
2360: 63 61 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73 74 can do simple st
2370: 72 65 73 73 20 74 65 73 74 73 2e 0a 0a 32 30 30 ress tests...200
2380: 30 2d 30 38 2d 31 34 20 20 4a 65 66 66 20 48 6f 0-08-14 Jeff Ho
2390: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
23a0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
23b0: 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 lsInt.h:..* tlsI
23c0: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 O.c:..* tlsBIO.c
23d0: 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61 6e :..* tls.c: chan
23e0: 67 65 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f 6e ged around to on
23f0: 6c 79 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 ly working with
2400: 38 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 8.2.0+ (8.3.2+..
2410: 70 72 65 66 65 72 72 65 64 29 2c 20 77 69 74 68 preferred), with
2420: 20 72 75 6e 74 69 6d 65 20 63 68 65 63 6b 73 20 runtime checks
2430: 66 6f 72 20 70 72 65 2d 20 61 6e 64 20 70 6f 73 for pre- and pos
2440: 74 2d 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a 09 t-io-rewrite....
2450: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 * tls.c (Tls_Ini
2460: 74 29 3a 20 63 68 61 6e 67 65 64 20 69 74 20 74 t): changed it t
2470: 6f 20 72 65 71 75 69 72 65 20 38 2e 33 2e 32 20 o require 8.3.2
2480: 77 68 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74 75 when Tcl_InitStu
2490: 62 73 0a 09 77 61 73 20 63 61 6c 6c 65 64 20 62 bs..was called b
24a0: 65 63 61 75 73 65 20 77 65 20 64 6f 6e 27 74 20 ecause we don't
24b0: 77 61 6e 74 20 70 65 6f 70 6c 65 20 75 73 69 6e want people usin
24c0: 67 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a 09 g TLS with the..
24d0: 6f 72 69 67 69 6e 61 6c 20 73 74 61 63 6b 65 64 original stacked
24e0: 20 63 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 channel impleme
24f0: 6e 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 ntation...2000-0
2500: 37 2d 32 36 20 20 4a 65 66 66 20 48 6f 62 62 73 7-26 Jeff Hobbs
2510: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
2520: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 cs.com>...* merg
2530: 65 64 20 61 6c 6c 20 63 68 61 6e 67 65 73 20 66 ed all changes f
2540: 72 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 rom tls-1-3-io-r
2550: 65 77 72 69 74 65 20 62 61 63 6b 20 69 6e 74 6f ewrite back into
2560: 20 6d 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09 2a main branch...*
2570: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
2580: 74 3a 20 75 70 64 61 74 65 64 20 63 6f 6d 6d 65 t: updated comme
2590: 6e 74 73 2c 20 66 69 78 65 64 20 61 20 70 63 43 nts, fixed a pcC
25a0: 72 61 73 68 20 63 61 73 65 20 74 68 61 74 0a 09 rash case that..
25b0: 77 61 73 20 64 75 65 20 74 6f 20 64 65 62 75 67 was due to debug
25c0: 20 61 73 73 65 72 74 69 6f 6e 20 69 6e 20 57 69 assertion in Wi
25d0: 6e 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 ndows SSL....* t
25e0: 6c 73 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a 43 ls.c (ImportObjC
25f0: 6d 64 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e 6e md): removed unn
2600: 65 63 65 73 73 61 72 79 20 75 73 65 20 6f 66 20 ecessary use of
2610: 27 62 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c 73 'bio' arg...(Tls
2620: 5f 49 6e 69 74 29 3a 20 63 68 65 63 6b 20 72 65 _Init): check re
2630: 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 20 53 53 turn value of SS
2640: 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e 20 L_library_init.
2650: 20 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 Also lots of..w
2660: 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 hitespace cleanu
2670: 70 20 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63 6c p (more like Tcl
2680: 20 45 6e 67 20 73 74 79 6c 65 20 67 75 69 64 65 Eng style guide
2690: 29 2c 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 ), but not all..
26a0: 63 6f 64 65 20 77 61 73 20 63 6c 65 61 6e 65 64 code was cleaned
26b0: 20 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e up....* tlsBIO.
26c0: 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 c: minor whitesp
26d0: 61 63 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 ace cleanup...*
26e0: 74 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 tlsIO.c: minor w
26f0: 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 hitespace cleanu
2700: 70 2e 0a 09 28 54 6c 73 49 6e 70 75 74 50 72 6f p...(TlsInputPro
2710: 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 c, TlsOutputProc
2720: 29 3a 20 41 64 64 65 64 20 45 52 52 5f 63 6c 65 ): Added ERR_cle
2730: 61 72 5f 65 72 72 6f 72 20 62 65 66 6f 72 65 20 ar_error before
2740: 63 61 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72 65 calls..to BIO_re
2750: 61 64 20 6f 72 20 42 49 4f 5f 77 72 69 74 65 2c ad or BIO_write,
2760: 20 62 65 63 61 75 73 65 20 77 65 20 63 6f 75 6c because we coul
2770: 64 20 6f 74 68 65 72 77 69 73 65 20 65 6e 64 20 d otherwise end
2780: 75 70 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20 65 up..pulling an e
2790: 72 72 6f 72 20 6f 66 66 20 74 68 65 20 73 74 61 rror off the sta
27a0: 63 6b 20 74 68 61 74 20 64 69 64 6e 27 74 20 62 ck that didn't b
27b0: 65 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41 6c elong to us. Al
27c0: 73 6f 0a 09 63 6c 65 61 6e 75 70 20 75 70 20 65 so..cleanup up e
27d0: 78 63 65 73 73 69 76 65 20 75 73 65 20 6f 66 20 xcessive use of
27e0: 67 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37 2d gotos...2000-07-
27f0: 32 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 20 Jeff Hobbs
2800: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
2810: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f .com>...* tests/
2820: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72 72 tlsIO.test: corr
2830: 65 63 74 65 64 20 76 61 72 69 6f 75 73 20 74 65 ected various te
2840: 73 74 73 20 74 6f 20 62 65 20 63 6f 72 72 65 63 sts to be correc
2850: 74 20 66 6f 72 20 54 4c 53 0a 09 73 74 61 63 6b t for TLS..stack
2860: 65 64 20 63 68 61 6e 6e 65 6c 73 20 28 61 73 20 ed channels (as
2870: 6f 70 70 6f 73 65 64 20 74 6f 20 74 68 65 20 73 opposed to the s
2880: 74 61 6e 64 61 72 64 20 73 6f 63 6b 65 74 73 20 tandard sockets
2890: 74 68 65 20 74 65 73 74 0a 09 73 75 69 74 65 20 the test..suite
28a0: 77 61 73 20 61 64 6f 70 74 65 64 20 66 72 6f 6d was adopted from
28b0: 29 2e 20 20 4b 65 79 20 64 69 66 66 65 72 65 6e ). Key differen
28c0: 63 65 73 20 61 72 65 20 74 68 61 74 20 54 4c 53 ces are that TLS
28d0: 20 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74 65 cannot..operate
28e0: 20 69 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73 20 in one process
28f0: 77 69 74 68 6f 75 74 20 61 6c 6c 20 63 68 61 6e without all chan
2900: 6e 65 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 nels being non-b
2910: 6c 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68 65 locking, or..the
2920: 20 68 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c 20 handshake will
2930: 62 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64 73 block, and hands
2940: 68 61 6b 69 6e 67 20 6d 75 73 74 20 62 65 20 66 haking must be f
2950: 6f 72 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09 63 orced in some..c
2960: 61 73 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61 6e ases. Also, han
2970: 64 73 68 61 6b 65 73 20 64 6f 6e 27 74 20 73 65 dshakes don't se
2980: 65 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20 75 em to complete u
2990: 6e 6c 65 73 73 20 74 68 65 20 63 6c 69 65 6e 74 nless the client
29a0: 0a 09 68 61 73 20 70 6c 61 63 65 64 20 61 74 20 ..has placed at
29b0: 6c 65 61 73 74 20 6f 6e 65 20 62 79 74 65 20 66 least one byte f
29c0: 6f 72 20 74 68 65 20 73 65 72 76 65 72 20 74 6f or the server to
29d0: 20 72 65 61 64 20 69 6e 20 74 68 65 20 63 68 61 read in the cha
29e0: 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f nnel....* tests/
29f0: 72 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72 72 remote.tcl: corr
2a00: 65 63 74 65 64 20 74 68 65 20 66 69 6e 64 69 6e ected the findin
2a10: 67 20 6f 66 20 74 65 73 74 73 20 63 65 72 74 69 g of tests certi
2a20: 66 69 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73 49 ficates...* tlsI
2a30: 4f 2e 63 20 28 54 6c 73 43 6c 6f 73 65 50 72 6f O.c (TlsClosePro
2a40: 63 29 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c 65 c): removed dele
2a50: 74 69 6e 67 20 6f 66 20 74 69 6d 65 72 20 68 61 ting of timer ha
2a60: 6e 64 6c 65 72 20 61 73 0a 09 74 68 61 74 20 69 ndler as..that i
2a70: 73 20 68 61 6e 64 6c 65 64 20 62 79 20 54 6c 73 s handled by Tls
2a80: 5f 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e _Clean....* tls.
2a90: 74 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65 70 tcl (tls::_accep
2aa0: 74 29 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 t): corrected th
2ab0: 65 20 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63 65 e internal _acce
2ac0: 70 74 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20 63 pt to..trickle c
2ad0: 61 6c 6c 62 61 63 6b 20 65 72 72 6f 72 73 20 74 allback errors t
2ae0: 6f 20 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a 20 o the user....*
2af0: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 Makefile.in: mad
2b00: 65 20 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62 69 e the install-bi
2b10: 6e 61 72 69 65 73 20 74 61 72 67 65 74 20 72 65 naries target re
2b20: 67 65 6e 65 72 61 74 65 20 74 68 65 0a 09 70 6b generate the..pk
2b30: 67 49 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72 65 gIndex.tcl corre
2b40: 63 74 6c 79 2e 20 20 54 68 65 20 74 65 73 74 20 ctly. The test
2b50: 74 61 72 67 65 74 20 70 72 6f 62 61 62 6c 79 20 target probably
2b60: 73 68 6f 75 6c 64 6e 27 74 20 73 63 72 65 77 0a shouldn't screw.
2b70: 09 69 74 20 75 70 2c 20 62 75 74 20 74 68 69 73 .it up, but this
2b80: 20 69 73 20 74 6f 20 62 65 20 6f 6e 20 74 68 65 is to be on the
2b90: 20 73 61 66 65 20 73 69 64 65 2e 0a 0a 32 30 30 safe side...200
2ba0: 30 2d 30 37 2d 31 37 20 20 4a 65 66 66 20 48 6f 0-07-17 Jeff Ho
2bb0: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
2bc0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 ptics.com>...* p
2bd0: 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a kgIndex.tcl.in:.
2be0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a .* configure.in:
2bf0: 20 75 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e updated version
2c00: 20 74 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30 37 to 1.4..2000-07
2c10: 2d 31 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -13 Jeff Hobbs
2c20: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
2c30: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 s.com>...* tests
2c40: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e 61 /tlsIO.test: ena
2c50: 62 6c 65 64 20 74 65 73 74 73 20 32 2e 31 30 2c bled tests 2.10,
2c60: 20 37 2e 5b 31 32 34 35 5d 20 28 74 68 65 72 65 7.[1245] (there
2c70: 20 69 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69 63 is no 3),..whic
2c80: 68 20 6e 6f 77 20 70 61 73 73 2e 20 20 41 64 64 h now pass. Add
2c90: 65 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 ed some comments
2ca0: 20 74 6f 20 6f 74 68 65 72 20 66 61 69 6c 69 6e to other failin
2cb0: 67 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 g tests...2000-0
2cc0: 37 2d 31 31 20 20 4a 65 66 66 20 48 6f 62 62 73 7-11 Jeff Hobbs
2cd0: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
2ce0: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 cs.com>...* tlsI
2cf0: 4f 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 6c 6c O.c: changed all
2d00: 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 70 72 6f the channel pro
2d10: 63 73 20 74 6f 20 73 74 61 72 74 20 77 69 74 68 cs to start with
2d20: 20 54 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74 65 Tls* for..bette
2d30: 72 20 70 61 72 69 74 79 20 77 68 65 6e 20 63 6f r parity when co
2d40: 6d 70 61 72 69 6e 67 20 77 69 74 68 20 54 72 61 mparing with Tra
2d50: 6e 73 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20 70 nsform channel p
2d60: 72 6f 63 73 2e 0a 09 52 65 77 72 6f 74 65 20 54 rocs...Rewrote T
2d70: 6c 73 57 61 74 63 68 50 72 6f 63 2c 20 61 64 64 lsWatchProc, add
2d80: 65 64 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f 63 ed TlsNotifyProc
2d90: 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 according to th
2da0: 65 20 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20 64 e new..channel d
2db0: 65 73 69 67 6e 2c 20 77 68 69 63 68 20 61 6c 73 esign, which als
2dc0: 6f 20 6c 65 61 76 65 73 20 54 6c 73 43 68 61 6e o leaves TlsChan
2dd0: 6e 65 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73 65 nelHandler unuse
2de0: 64 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 d....* tlsBIO.c
2df0: 28 42 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e 67 (BioCtrl): chang
2e00: 65 64 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 ed BIO_CTRL_FLUS
2e10: 48 20 63 61 73 65 20 74 6f 20 75 73 65 0a 09 54 H case to use..T
2e20: 63 6c 5f 57 72 69 74 65 52 61 77 20 69 6e 73 74 cl_WriteRaw inst
2e30: 65 61 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73 68 ead of Tcl_Flush
2e40: 20 28 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e 20 (to operate on
2e50: 63 6f 72 72 65 63 74 20 63 68 61 6e 6e 65 6c 0a correct channel.
2e60: 09 69 6e 20 74 68 65 20 73 74 61 63 6b 20 69 6e .in the stack in
2e70: 73 74 65 61 64 20 6f 66 20 73 74 61 72 74 69 6e stead of startin
2e80: 67 20 61 74 20 74 68 65 20 74 6f 70 20 61 67 61 g at the top aga
2e90: 69 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74 68 in). Would..oth
2ea0: 65 72 77 69 73 65 20 63 61 75 73 65 20 61 20 72 erwise cause a r
2eb0: 65 63 75 72 73 69 76 65 20 73 74 61 63 6b 20 62 ecursive stack b
2ec0: 6f 6d 62 20 77 68 65 6e 20 69 6d 70 6c 69 63 69 omb when implici
2ed0: 74 20 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09 74 t handshaking..t
2ee0: 6f 6f 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a 20 ook effect....*
2ef0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
2f00: 3a 20 72 65 6d 6f 76 65 64 20 63 68 61 6e 67 65 : removed change
2f10: 73 20 6d 61 64 65 20 74 6f 20 74 65 73 74 20 73 s made to test s
2f20: 75 69 74 65 20 28 61 6c 6c 20 74 65 73 74 73 0a uite (all tests.
2f30: 09 74 68 61 74 20 72 61 6e 20 62 65 66 6f 72 65 .that ran before
2f40: 20 6e 6f 77 20 70 61 73 73 20 63 6f 72 72 65 63 now pass correc
2f50: 74 6c 79 29 2c 20 61 6e 64 20 63 68 61 6e 67 65 tly), and change
2f60: 64 20 73 6f 6d 65 20 61 63 63 65 70 74 20 70 72 d some accept pr
2f70: 6f 63 0a 09 61 72 67 73 20 74 6f 20 72 65 66 6c oc..args to refl
2f80: 65 63 74 20 74 68 61 74 20 61 20 73 6f 63 6b 20 ect that a sock
2f90: 69 73 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20 61 is an arg, not a
2fa0: 20 66 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37 2d file...2000-07-
2fb0: 31 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 10 Jeff Hobbs
2fc0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
2fd0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f .com>...* tlsBIO
2fe0: 2e 63 20 28 42 69 6f 57 72 69 74 65 2c 20 42 69 .c (BioWrite, Bi
2ff0: 6f 52 65 61 64 29 3a 20 63 68 61 6e 67 65 64 20 oRead): changed
3000: 54 63 6c 5f 52 65 61 64 2f 57 72 69 74 65 20 74 Tcl_Read/Write t
3010: 6f 0a 09 54 63 6c 5f 52 65 61 64 52 61 77 2f 54 o..Tcl_ReadRaw/T
3020: 63 6c 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a 20 clWriteRaw....*
3030: 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 75 73 65 tls.c: added use
3040: 20 6f 66 20 54 63 6c 5f 47 65 74 54 6f 70 43 68 of Tcl_GetTopCh
3050: 61 6e 6e 65 6c 20 61 66 74 65 72 20 54 63 6c 5f annel after Tcl_
3060: 47 65 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 GetChannel and..
3070: 67 6f 74 20 72 65 74 75 72 6e 20 76 61 6c 75 65 got return value
3080: 20 66 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b 43 from Tcl_StackC
3090: 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 hannel....* test
30a0: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61 64 s/tlsIO.test: ad
30b0: 64 65 64 20 73 6f 6d 65 20 68 61 6e 64 73 68 61 ded some handsha
30c0: 6b 69 6e 67 20 74 68 61 74 20 73 68 6f 75 6c 64 king that should
30d0: 6e 27 74 20 62 65 0a 09 6e 65 63 65 73 73 61 72 n't be..necessar
30e0: 79 2c 20 62 75 74 20 77 65 20 63 72 61 73 68 20 y, but we crash
30f0: 6f 74 68 65 72 77 69 73 65 20 28 6e 65 65 64 73 otherwise (needs
3100: 20 6d 6f 72 65 20 74 65 73 74 69 6e 67 29 2e 0a more testing)..
3110: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64 64 ..* tlsIO.c: add
3120: 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 22 ed support for "
3130: 63 6f 72 72 65 63 74 65 64 22 20 73 74 61 63 6b corrected" stack
3140: 65 64 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41 6c ed channels. Al
3150: 6c 0a 09 74 68 65 20 61 62 6f 76 65 20 63 68 61 l..the above cha
3160: 6e 6e 65 6c 73 20 61 72 65 20 69 6e 20 54 43 4c nnels are in TCL
3170: 5f 43 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e _CHANNEL_VERSION
3180: 5f 32 20 23 69 66 64 65 66 73 2e 0a 0a 32 30 30 _2 #ifdefs...200
3190: 30 2d 30 36 2d 30 35 20 20 53 63 6f 74 74 20 53 0-06-05 Scott S
31a0: 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e tanton <stanton
31b0: 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e @ajubasolutions.
31c0: 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c com>...* Makefil
31d0: 65 2e 69 6e 3a 20 46 69 78 65 64 20 62 72 6f 6b e.in: Fixed brok
31e0: 65 6e 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a en test target..
31f0: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 0a 09 ..* tlsInt.h: ..
3200: 2a 20 74 6c 73 2e 63 3a 20 43 6c 65 61 6e 65 64 * tls.c: Cleaned
3210: 20 75 70 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 up declarations
3220: 20 6f 66 20 54 6c 73 5f 43 6c 65 61 6e 20 74 6f of Tls_Clean to
3230: 20 61 76 6f 69 64 20 65 72 72 6f 72 73 20 6f 6e avoid errors on
3240: 0a 09 57 69 6e 64 6f 77 73 20 28 6c 69 6e 74 29 ..Windows (lint)
3250: 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 42 ...2000-06-05 B
3260: 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 rent Welch <welc
3270: 68 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 h@ajubasolutions
3280: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c .com>...* tls.c,
3290: 20 74 6c 73 49 4f 2e 63 3a 20 20 53 70 6c 69 74 tlsIO.c: Split
32a0: 20 54 6c 73 5f 46 72 65 65 20 69 6e 74 6f 20 54 Tls_Free into T
32b0: 6c 73 5f 43 6c 65 61 6e 2c 20 77 68 69 63 68 20 ls_Clean, which
32c0: 64 6f 65 73 0a 09 74 68 65 20 53 53 4c 20 63 6c does..the SSL cl
32d0: 65 61 6e 75 70 2c 20 61 6e 64 20 74 68 65 20 54 eanup, and the T
32e0: 63 6c 5f 46 72 65 65 20 63 61 6c 6c 2e 20 20 49 cl_Free call. I
32f0: 74 20 69 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 t is important t
3300: 6f 20 73 68 75 74 64 6f 77 6e 0a 09 74 68 65 20 o shutdown..the
3310: 53 53 4c 20 73 74 61 74 65 20 22 73 79 6e 63 68 SSL state "synch
3320: 72 6f 6e 6f 75 73 6c 79 22 20 64 75 72 69 6e 67 ronously" during
3330: 20 61 20 73 74 61 63 6b 65 64 20 66 6c 75 73 68 a stacked flush
3340: 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 ...2000-06-01 S
3350: 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 cott Stanton <s
3360: 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 tanton@ajubasolu
3370: 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 tions.com>...* t
3380: 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 64 lsIO.c: Restored
3390: 20 63 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 call to Tcl_Not
33a0: 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 ifyChannel from
33b0: 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 ChannelHandler..
33c0: 74 6f 20 65 6e 73 75 72 65 20 74 68 61 74 20 65 to ensure that e
33d0: 76 65 6e 74 73 20 70 72 6f 70 61 67 61 74 65 20 vents propagate
33e0: 66 72 6f 6d 20 74 68 65 20 6c 6f 77 65 72 20 64 from the lower d
33f0: 72 69 76 65 72 2e 20 20 54 68 69 73 20 6d 61 79 river. This may
3400: 0a 09 72 65 73 75 6c 74 20 69 6e 20 61 6e 20 69 ..result in an i
3410: 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 6e 20 nfinite loop in
3420: 73 6f 6d 65 20 63 61 73 65 73 2c 20 73 6f 20 74 some cases, so t
3430: 68 69 73 20 69 73 20 6e 6f 74 20 61 20 74 6f 74 his is not a tot
3440: 61 6c 0a 09 66 69 78 2e 20 20 54 68 69 73 20 6d al..fix. This m
3450: 61 79 20 62 65 20 73 75 66 66 69 63 69 65 6e 74 ay be sufficient
3460: 20 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 65 76 65 for now, howeve
3470: 72 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a r. [Bug: 5623]..
3480: 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 2000-06-01 Scot
3490: 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e t Stanton <stan
34a0: 74 6f 6e 40 73 63 72 69 70 74 69 63 73 2e 63 6f ton@scriptics.co
34b0: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 m>...* tlsIO.c:
34c0: 52 65 73 74 6f 72 65 20 74 68 65 20 70 72 65 76 Restore the prev
34d0: 69 6f 75 73 20 76 65 72 73 69 6f 6e 2e 20 20 46 ious version. F
34e0: 69 78 65 64 20 74 68 65 20 43 6c 6f 73 65 50 72 ixed the ClosePr
34f0: 6f 63 20 73 6f 0a 09 69 74 20 75 6e 72 65 67 69 oc so..it unregi
3500: 73 74 65 72 73 20 74 68 65 20 63 68 61 6e 6e 65 sters the channe
3510: 6c 20 68 61 6e 64 6c 65 72 20 6f 6e 20 74 68 65 l handler on the
3520: 20 73 75 70 65 72 63 65 64 65 64 20 63 68 61 6e superceded chan
3530: 6e 65 6c 0a 09 69 6e 73 74 65 61 64 20 6f 66 20 nel..instead of
3540: 74 68 65 20 75 70 70 65 72 20 63 68 61 6e 6e 65 the upper channe
3550: 6c 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 65 64 20 l. Also removed
3560: 74 68 65 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c the call to..Tcl
3570: 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 69 _NotifyChannel i
3580: 6e 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e n the ChannelHan
3590: 64 6c 65 72 20 62 65 63 61 75 73 65 20 74 68 69 dler because thi
35a0: 73 20 77 69 6c 6c 20 72 65 73 75 6c 74 0a 09 69 s will result..i
35b0: 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f n an infinite lo
35c0: 6f 70 20 69 66 20 64 61 74 61 20 69 73 20 65 76 op if data is ev
35d0: 65 72 20 62 75 66 66 65 72 65 64 20 69 6e 20 74 er buffered in t
35e0: 68 65 20 42 49 4f 0a 09 73 74 72 75 63 74 75 72 he BIO..structur
35f0: 65 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a e. [Bug: 5623]..
3600: 32 30 30 30 2d 30 35 2d 33 31 20 20 42 72 65 6e 2000-05-31 Bren
3610: 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 73 t Welch <welch@s
3620: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
3630: 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20 * tls.c: Change
3640: 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c the ChannelHandl
3650: 65 72 20 74 6f 20 62 65 20 72 65 67 69 73 74 65 er to be registe
3660: 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a red on the main.
3670: 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73 .channel as opps
3680: 65 64 20 74 6f 20 74 68 65 20 22 70 61 72 65 6e ed to the "paren
3690: 74 22 2c 20 6f 72 20 73 75 70 65 72 63 65 65 64 t", or superceed
36a0: 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68 ed, channel. Th
36b0: 69 73 0a 09 69 73 20 62 65 63 61 75 73 65 20 74 is..is because t
36c0: 68 65 20 73 6f 63 6b 65 74 20 64 72 69 76 65 72 he socket driver
36d0: 20 6e 6f 74 69 66 69 65 73 20 74 68 65 20 6d 61 notifies the ma
36e0: 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 in channel, and
36f0: 74 68 65 72 65 0a 09 61 72 65 20 74 69 6d 65 73 there..are times
3700: 20 77 69 74 68 20 74 68 65 20 6d 61 69 6e 20 63 with the main c
3710: 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73 hannel gets clos
3720: 65 64 2c 20 62 75 74 20 74 68 65 20 73 75 70 65 ed, but the supe
3730: 72 63 65 64 65 64 0a 09 6f 6e 65 20 69 73 20 6e rceded..one is n
3740: 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 2e 20 20 ot yet closed.
3750: 49 66 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 If the channel h
3760: 61 6e 64 6c 65 72 20 67 65 74 73 20 74 72 69 67 andler gets trig
3770: 67 65 72 65 64 20 69 6e 0a 09 74 68 69 73 20 68 gered in..this h
3780: 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65 20 69 alf-open state i
3790: 74 20 69 73 20 61 73 73 6f 63 69 61 74 65 64 20 t is associated
37a0: 77 69 74 68 20 74 68 65 20 73 75 70 65 72 63 65 with the superce
37b0: 65 64 65 64 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 eded..channedl,
37c0: 62 75 74 20 75 73 65 73 20 69 74 73 20 70 72 69 but uses its pri
37d0: 76 61 74 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 vate pointer to
37e0: 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c the main channel
37f0: 2c 20 77 68 69 63 68 0a 09 69 73 20 6d 6f 73 74 , which..is most
3800: 6c 79 20 64 65 73 74 72 6f 79 65 64 2e 20 20 45 ly destroyed. E
3810: 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 20 72 65 liminated the re
3820: 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f 0a dundant call to.
3830: 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e .Tcl_NotifyChann
3840: 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74 63 68 el from TlsWatch
3850: 50 72 6f 63 2e 20 5b 42 75 67 3a 20 35 36 32 33 Proc. [Bug: 5623
3860: 5d 0a ].