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