Artifact
59b9d3b9d867733d49a496abfeefc2181c596844:
0000: 32 30 30 37 2d 30 39 2d 30 36 20 20 50 61 74 20 2007-09-06 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 6c orge.net>...* tl
0040: 73 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20 53 s.c: S
0050: 69 6c 65 6e 63 65 20 36 34 20 62 69 74 20 69 6e ilence 64 bit in
0060: 74 65 67 65 72 20 63 6f 6e 76 65 72 73 69 6f 6e teger conversion
0070: 20 77 61 72 6e 69 6e 67 73 0a 09 2a 20 77 69 6e warnings..* win
0080: 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a 20 20 55 70 /nmakehlp.c: Up
0090: 64 61 74 65 20 62 75 69 6c 64 20 73 79 73 74 65 date build syste
00a0: 6d 20 74 6f 20 73 75 70 70 6f 72 74 20 41 4d 44 m to support AMD
00b0: 36 34 20 74 61 72 67 65 74 0a 09 2a 20 77 69 6e 64 target..* win
00c0: 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 77 69 /makefile.vc: wi
00d0: 74 68 20 4d 53 56 43 38 0a 09 2a 20 77 69 6e 2f th MSVC8..* win/
00e0: 72 75 6c 65 73 2e 76 63 3a 0a 0a 32 30 30 37 2d rules.vc:..2007-
00f0: 30 36 2d 32 32 20 20 4a 65 66 66 20 48 6f 62 62 06-22 Jeff Hobb
0100: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 s <jeffh@Active
0110: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 State.com>...* t
0120: 6c 73 49 4f 2e 63 20 28 54 6c 73 49 6e 70 75 74 lsIO.c (TlsInput
0130: 50 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 Proc, TlsOutputP
0140: 72 6f 63 2c 20 54 6c 73 57 61 74 63 68 50 72 6f roc, TlsWatchPro
0150: 63 29 3a 20 0a 09 2a 20 74 6c 73 2e 63 20 28 56 c): ..* tls.c (V
0160: 65 72 69 66 79 43 61 6c 6c 62 61 63 6b 29 3a 20 erifyCallback):
0170: 61 64 64 20 61 6e 20 73 74 61 74 65 20 66 6c 61 add an state fla
0180: 67 20 69 6e 20 74 68 65 20 76 65 72 69 66 79 20 g in the verify
0190: 63 61 6c 6c 62 61 63 6b 0a 09 74 68 61 74 20 70 callback..that p
01a0: 72 65 76 65 6e 74 73 20 70 6f 73 73 69 62 6c 79 revents possibly
01b0: 20 72 65 63 75 72 73 69 6f 6e 20 28 6f 6e 20 27 recursion (on '
01c0: 75 70 64 61 74 65 27 29 2e 20 5b 42 75 67 20 31 update'). [Bug 1
01d0: 36 35 32 33 38 30 5d 0a 0a 09 2a 20 74 65 73 74 652380]...* test
01e0: 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 s/ciphers.test:
01f0: 72 65 77 6f 72 6b 65 64 20 74 6f 20 6d 61 6b 65 reworked to make
0200: 20 74 65 73 74 20 6f 75 74 70 75 74 20 63 6c 65 test output cle
0210: 61 6e 65 72 20 74 6f 0a 09 75 6e 64 65 72 73 74 aner to..underst
0220: 61 6e 64 20 6d 69 73 73 69 6e 67 20 63 69 70 68 and missing ciph
0230: 65 72 73 20 28 69 66 20 61 6e 79 29 0a 0a 09 2a ers (if any)...*
0240: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 Makefile.in, tc
0250: 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 lconfig/tcl.m4:
0260: 75 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e update to TEA 3.
0270: 36 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 6..* configure,
0280: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 configure.in:
0290: 20 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f using autoco
02a0: 6e 66 2d 32 2e 35 39 0a 0a 32 30 30 37 2d 30 32 nf-2.59..2007-02
02b0: 2d 32 38 20 20 50 61 74 20 54 68 6f 79 74 73 20 -28 Pat Thoyts
02c0: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 <patthoyts@user
02d0: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 s.sourceforge.ne
02e0: 74 3e 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 t>...* win/makef
02f0: 69 6c 65 2e 76 63 3a 20 52 65 62 61 73 65 20 74 ile.vc: Rebase t
0300: 68 65 20 44 4c 4c 20 73 65 6e 73 69 62 6c 79 2e he DLL sensibly.
0310: 20 41 64 64 69 74 69 6f 6e 61 6c 20 6c 69 62 73 Additional libs
0320: 20 66 6f 72 20 0a 09 73 74 61 74 69 63 20 6c 69 for ..static li
0330: 6e 6b 20 6f 66 20 6f 70 65 6e 73 73 6c 2e 0a 09 nk of openssl...
0340: 2a 20 74 6c 73 2e 74 63 6c 3a 20 62 75 67 20 23 * tls.tcl: bug #
0350: 31 35 37 39 38 33 37 20 2d 20 54 49 50 20 32 37 1579837 - TIP 27
0360: 38 20 62 75 67 20 28 70 6f 73 73 69 62 6c 79 29 8 bug (possibly)
0370: 20 2d 20 66 69 78 65 64 2e 0a 0a 32 30 30 36 2d - fixed...2006-
0380: 30 33 2d 33 30 20 20 50 61 74 20 54 68 6f 79 74 03-30 Pat Thoyt
0390: 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 s <patthoyts@us
03a0: 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e ers.sourceforge.
03b0: 6e 65 74 3e 0a 0a 09 2a 20 74 63 6c 63 6f 6e 66 net>...* tclconf
03c0: 69 67 2f 2a 3a 20 20 55 70 64 61 74 65 64 20 74 ig/*: Updated t
03d0: 6f 20 54 45 41 20 33 2e 35 20 69 6e 20 72 65 73 o TEA 3.5 in res
03e0: 70 6f 6e 73 65 20 74 6f 20 62 75 67 20 31 34 36 ponse to bug 146
03f0: 30 34 39 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72 0491..* configur
0400: 65 2a 3a 20 20 20 52 65 67 65 6e 65 72 61 74 65 e*: Regenerate
0410: 64 20 63 6f 6e 66 69 67 75 72 65 2e 0a 0a 32 30 d configure...20
0420: 30 35 2d 30 32 2d 30 38 20 20 4a 65 66 66 20 48 05-02-08 Jeff H
0430: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 obbs <jeffh@Act
0440: 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 iveState.com>...
0450: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 * Makefile.in, t
0460: 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a clconfig/tcl.m4:
0470: 20 75 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 update to TEA 3
0480: 2e 32 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c .2..* configure,
0490: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 configure.in:
04a0: 20 20 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 using autoc
04b0: 6f 6e 66 2d 32 2e 35 39 0a 0a 32 30 30 34 2d 31 onf-2.59..2004-1
04c0: 32 2d 32 33 20 20 50 61 74 20 54 68 6f 79 74 73 2-23 Pat Thoyts
04d0: 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 <patthoyts@use
04e0: 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e rs.sourceforge.n
04f0: 65 74 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 et>...* Makefile
0500: 2e 69 6e 3a 20 20 20 20 20 20 52 65 6d 6f 76 65 .in: Remove
0510: 64 20 73 70 75 72 69 6f 75 73 20 63 6f 70 79 69 d spurious copyi
0520: 6e 67 20 6f 66 20 74 6c 73 2e 74 63 6c 20 69 6e ng of tls.tcl in
0530: 74 6f 20 74 68 65 0a 09 20 20 20 20 20 20 20 20 to the..
0540: 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c buil
0550: 64 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 32 30 d directory...20
0560: 30 34 2d 31 32 2d 32 32 20 20 50 61 74 20 54 68 04-12-22 Pat Th
0570: 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 oyts <patthoyts
0580: 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 @users.sourcefor
0590: 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 63 6f 6e 66 ge.net>...* conf
05a0: 69 67 75 72 65 2e 69 6e 3a 20 20 20 20 20 49 6e igure.in: In
05b0: 63 72 65 6d 65 6e 74 65 64 20 6d 69 6e 6f 72 20 cremented minor
05c0: 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 31 version to 1.5.1
05d0: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 ..* configure:
05e0: 20 20 20 20 20 20 0a 0a 32 30 30 34 2d 31 32 2d ..2004-12-
05f0: 31 37 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 17 Pat Thoyts
0600: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 <patthoyts@users
0610: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 .sourceforge.net
0620: 3e 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 >...* win/makefi
0630: 6c 65 2e 76 63 3a 20 20 41 64 64 65 64 20 74 68 le.vc: Added th
0640: 65 20 4d 53 56 43 20 62 75 69 6c 64 20 73 79 73 e MSVC build sys
0650: 74 65 6d 20 28 66 72 6f 6d 20 74 68 65 20 54 63 tem (from the Tc
0660: 6c 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 l..* win/rules.v
0670: 63 3a 20 20 20 20 20 73 61 6d 70 6c 65 65 78 74 c: sampleext
0680: 65 6e 73 69 6f 6e 29 2e 0a 09 2a 20 77 69 6e 2f ension)...* win/
0690: 6e 6d 61 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 77 nmakehlp.c:..* w
06a0: 69 6e 2f 74 6c 73 2e 72 63 20 20 20 20 20 20 20 in/tls.rc
06b0: 20 41 64 64 65 64 20 57 69 6e 64 6f 77 73 20 72 Added Windows r
06c0: 65 73 6f 75 72 63 65 20 66 69 6c 65 2e 0a 09 0a esource file....
06d0: 09 2a 20 74 6c 73 2e 74 63 6c 3a 20 20 20 20 20 .* tls.tcl:
06e0: 20 20 20 20 20 46 72 6f 6d 20 70 61 74 63 68 20 From patch
06f0: 23 39 34 38 31 35 35 2c 20 61 64 64 65 64 20 73 #948155, added s
0700: 75 70 70 6f 72 74 20 66 6f 72 0a 09 20 20 20 20 upport for..
0710: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0720: 61 6c 74 65 72 6e 61 74 65 20 73 6f 63 6b 65 74 alternate socket
0730: 20 63 6f 6d 6d 61 6e 64 73 2e 0a 09 2a 20 74 6c commands...* tl
0740: 73 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20 20 s.c:
0750: 51 75 69 65 74 65 6e 20 73 6f 6d 65 20 4d 53 56 Quieten some MSV
0760: 43 20 77 61 72 6e 69 6e 67 73 2e 20 50 72 65 66 C warnings. Pref
0770: 65 72 20 63 6b 61 6c 6c 6f 63 0a 09 20 20 20 20 er ckalloc..
0780: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0790: 6f 76 65 72 20 54 63 6c 5f 41 6c 6c 6f 63 2e 20 over Tcl_Alloc.
07a0: 28 44 61 76 69 64 20 47 72 61 76 65 72 61 75 78 (David Graveraux
07b0: 29 2e 0a 0a 32 30 30 34 2d 30 36 2d 32 39 20 20 )...2004-06-29
07c0: 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 Pat Thoyts <pat
07d0: 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 thoyts@users.sou
07e0: 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 rceforge.net>...
07f0: 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20 * tls.c:
0800: 20 20 20 20 46 69 78 75 70 20 74 6f 20 62 75 69 Fixup to bui
0810: 6c 64 20 61 67 61 69 6e 73 74 20 74 63 6c 20 38 ld against tcl 8
0820: 2e 33 2e 33 2e 20 48 61 6e 64 6c 65 0a 09 2a 20 .3.3. Handle..*
0830: 74 6c 73 49 4f 2e 63 3a 20 20 20 20 20 20 20 20 tlsIO.c:
0840: 20 20 38 2e 34 20 63 6f 6e 73 74 69 66 69 63 61 8.4 constifica
0850: 74 69 6f 6e 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 tion....* tlsInt
0860: 2e 68 3a 20 20 20 20 20 20 20 20 20 41 64 64 65 .h: Adde
0870: 64 20 68 65 61 64 65 72 73 20 72 65 71 75 69 72 d headers requir
0880: 65 64 20 77 69 74 68 20 4d 53 56 43 20 6f 6e 20 ed with MSVC on
0890: 57 69 6e 33 32 2e 0a 09 2a 20 74 6c 73 58 35 30 Win32...* tlsX50
08a0: 39 2e 63 3a 20 20 20 20 20 20 20 20 75 6e 64 65 9.c: unde
08b0: 66 20 6d 69 6e 20 61 6e 64 20 6d 61 78 20 69 66 f min and max if
08c0: 20 64 65 66 69 6e 65 64 20 28 77 69 6e 33 32 29 defined (win32)
08d0: 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 ....* Makefile.i
08e0: 6e 3a 20 20 20 20 20 20 46 69 78 65 64 20 74 6f n: Fixed to
08f0: 20 62 75 69 6c 64 20 6f 6e 20 77 69 6e 33 32 20 build on win32
0900: 75 73 69 6e 67 20 6d 73 79 73 20 77 69 74 68 0a using msys with.
0910: 09 2a 20 61 63 6c 6f 63 61 6c 2e 6d 34 3a 20 20 .* aclocal.m4:
0920: 20 20 20 20 20 4d 53 56 43 2e 20 41 6c 73 6f 20 MSVC. Also
0930: 66 69 78 65 64 20 74 68 65 20 74 65 73 74 20 74 fixed the test t
0940: 61 72 67 65 74 2e 0a 09 2a 20 63 6f 6e 66 69 67 arget...* config
0950: 75 72 65 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 ure.in:..* confi
0960: 67 75 72 65 3a 20 20 20 20 20 20 20 20 52 65 67 gure: Reg
0970: 65 6e 65 72 61 74 65 64 2e 0a 09 2a 20 74 63 6c enerated...* tcl
0980: 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 55 config/tcl.m4: U
0990: 70 64 61 74 65 64 20 74 6f 20 6d 6f 73 74 20 72 pdated to most r
09a0: 65 63 65 6e 74 20 76 65 72 73 69 6f 6e 2e 0a 0a ecent version...
09b0: 32 30 30 34 2d 30 33 2d 32 33 20 20 44 61 6e 20 2004-03-23 Dan
09c0: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 Razzell <researc
09d0: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
09e0: 73 2e 63 61 3e 0a 09 2a 20 74 6c 73 2e 63 3a 0a s.ca>..* tls.c:.
09f0: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 .* tlsBIO.c:..*
0a00: 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 tlsIO.c:..* tlsI
0a10: 6e 74 2e 68 3a 09 46 69 78 65 64 20 74 79 70 65 nt.h:.Fixed type
0a20: 20 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 73 2e match warnings.
0a30: 0a 0a 32 30 30 34 2d 30 33 2d 31 39 20 20 4a 65 ..2004-03-19 Je
0a40: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 ff Hobbs <jeffh
0a50: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d @ActiveState.com
0a60: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 >...* tls.c (Tls
0a70: 5f 49 6e 69 74 29 3a 20 20 20 72 65 70 6c 61 63 _Init): replac
0a80: 65 64 20 6f 6c 64 65 72 20 54 45 41 20 63 6f 6e ed older TEA con
0a90: 66 69 67 20 77 69 74 68 20 6e 65 77 65 72 0a 09 fig with newer..
0aa0: 2a 20 63 6f 6e 66 69 67 2f 2a 20 28 72 65 6d 6f * config/* (remo
0ab0: 76 65 64 29 3a 0a 09 2a 20 70 6b 67 49 6e 64 65 ved):..* pkgInde
0ac0: 78 2e 74 63 6c 2e 69 6e 2c 20 73 74 72 6e 63 61 x.tcl.in, strnca
0ad0: 73 65 63 6d 70 2e 63 20 28 72 65 6d 6f 76 65 64 secmp.c (removed
0ae0: 29 3a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 ):..* Makefile.i
0af0: 6e 2c 20 61 63 6c 6f 63 61 6c 2e 6d 34 2c 20 63 n, aclocal.m4, c
0b00: 6f 6e 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 onfigure, config
0b10: 75 72 65 2e 69 6e 3a 0a 09 2a 20 74 63 6c 63 6f ure.in:..* tclco
0b20: 6e 66 69 67 2f 52 45 41 44 4d 45 2e 74 78 74 2c nfig/README.txt,
0b30: 20 74 63 6c 63 6f 6e 66 69 67 2f 69 6e 73 74 61 tclconfig/insta
0b40: 6c 6c 2d 73 68 2c 20 74 63 6c 63 6f 6e 66 69 67 ll-sh, tclconfig
0b50: 2f 74 63 6c 2e 6d 34 3a 0a 0a 32 30 30 34 2d 30 /tcl.m4:..2004-0
0b60: 33 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 3-17 Dan Razzel
0b70: 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 l <research@star
0b80: 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a fishsystems.ca>.
0b90: 0a 09 2a 20 74 6c 73 58 35 30 39 2e 63 3a 09 41 ..* tlsX509.c:.A
0ba0: 64 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6c dd support for l
0bb0: 6f 6e 67 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 ong serial numbe
0bc0: 72 73 20 70 65 72 20 52 46 43 20 33 32 38 30 2e rs per RFC 3280.
0bd0: 0a 09 09 09 46 6f 72 6d 61 74 20 69 73 20 6e 6f ....Format is no
0be0: 77 20 68 65 78 61 64 65 63 69 6d 61 6c 2e 20 0a w hexadecimal. .
0bf0: 09 09 09 5b 52 65 71 75 65 73 74 20 23 39 31 35 ...[Request #915
0c00: 33 31 33 5d 0a 09 09 09 43 6f 72 72 65 63 74 6c 313]....Correctl
0c10: 79 20 63 6f 6e 76 65 72 74 20 63 65 72 74 69 66 y convert certif
0c20: 69 63 61 74 65 20 44 69 73 74 69 6e 67 75 69 73 icate Distinguis
0c30: 68 65 64 20 4e 61 6d 65 73 0a 09 09 09 74 6f 20 hed Names....to
0c40: 54 63 6c 20 73 74 72 69 6e 67 20 72 65 70 72 65 Tcl string repre
0c50: 73 65 6e 74 61 74 69 6f 6e 2e 20 20 45 6c 69 6d sentation. Elim
0c60: 69 6e 61 74 65 73 20 75 73 65 20 6f 66 0a 09 09 inates use of...
0c70: 09 64 65 70 72 65 63 61 74 65 64 20 4f 70 65 6e .deprecated Open
0c80: 53 53 4c 20 66 75 6e 63 74 69 6f 6e 2e 20 20 46 SSL function. F
0c90: 6f 72 6d 61 74 20 69 73 20 6e 6f 77 20 63 6f 6d ormat is now com
0ca0: 70 6c 69 61 6e 74 0a 09 09 09 77 69 74 68 20 52 pliant....with R
0cb0: 46 43 20 32 32 35 33 2e 20 20 5b 52 65 71 75 65 FC 2253. [Reque
0cc0: 73 74 20 23 39 31 35 33 31 35 5d 0a 0a 32 30 30 st #915315]..200
0cd0: 34 2d 30 32 2d 31 37 20 20 44 61 6e 20 52 61 7a 4-02-17 Dan Raz
0ce0: 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 zell <research@s
0cf0: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
0d00: 61 3e 0a 0a 09 54 4c 53 20 31 2e 35 2e 30 20 52 a>...TLS 1.5.0 R
0d10: 45 4c 45 41 53 45 0a 0a 32 30 30 34 2d 30 32 2d ELEASE..2004-02-
0d20: 31 32 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 12 Dan Razzell.
0d30: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
0d40: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 shsystems.ca>...
0d50: 2a 20 74 6c 73 2e 63 3a 09 41 6c 6c 6f 77 20 76 * tls.c:.Allow v
0d60: 65 72 69 66 79 20 63 61 6c 6c 62 61 63 6b 20 74 erify callback t
0d70: 6f 20 72 65 74 75 72 6e 20 65 6d 70 74 79 20 72 o return empty r
0d80: 65 73 75 6c 74 2e 0a 09 2a 20 74 6c 73 2e 68 74 esult...* tls.ht
0d90: 6d 3a 09 44 6f 63 75 6d 65 6e 74 20 63 61 6c 6c m:.Document call
0da0: 62 61 63 6b 20 62 65 68 61 76 69 6f 72 73 2e 0a back behaviors..
0db0: 0a 32 30 30 34 2d 30 32 2d 31 31 20 20 44 61 6e .2004-02-11 Dan
0dc0: 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 Razzell.<resear
0dd0: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 ch@starfishsyste
0de0: 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 ms.ca>...* tests
0df0: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 /tlsIO.test:..*
0e00: 72 65 6d 6f 74 65 2e 74 63 6c 3a 09 43 6f 6d 70 remote.tcl:.Comp
0e10: 6c 65 74 65 20 70 72 69 76 61 74 65 20 6b 65 79 lete private key
0e20: 20 6e 61 6d 65 20 63 68 61 6e 67 65 73 20 66 72 name changes fr
0e30: 6f 6d 20 32 30 30 31 2d 30 36 2d 32 31 2e 0a 0a om 2001-06-21...
0e40: 32 30 30 34 2d 30 32 2d 30 33 20 20 44 61 6e 20 2004-02-03 Dan
0e50: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 Razzell <researc
0e60: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
0e70: 73 2e 63 61 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 s.ca>...* Makefi
0e80: 6c 65 2e 69 6e 3a 09 52 65 6d 6f 76 65 64 20 63 le.in:.Removed c
0e90: 69 72 63 75 6c 61 72 20 64 65 70 65 6e 64 65 6e ircular dependen
0ea0: 63 79 2e 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a cy...* tlsInt.h:
0eb0: 09 4d 61 6b 65 20 66 75 6e 63 74 69 6f 6e 20 64 .Make function d
0ec0: 65 63 6c 61 72 61 74 69 6f 6e 73 20 65 78 70 6c eclarations expl
0ed0: 69 63 69 74 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09 icit...* tls.c:.
0ee0: 46 69 78 20 74 79 70 65 20 6d 61 74 63 68 20 61 Fix type match a
0ef0: 6e 64 20 75 6e 75 73 65 64 20 76 61 72 69 61 62 nd unused variab
0f00: 6c 65 20 77 61 72 6e 69 6e 67 73 2e 0a 09 2a 20 le warnings...*
0f10: 74 6c 73 42 49 4f 2e 63 3a 09 46 69 78 20 74 79 tlsBIO.c:.Fix ty
0f20: 70 65 20 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 pe match warning
0f30: 2e 0a 0a 32 30 30 33 2d 31 32 2d 31 35 20 20 44 ...2003-12-15 D
0f40: 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 an Razzell.<rese
0f50: 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 arch@starfishsys
0f60: 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67 tems.ca>...* pkg
0f70: 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a Index.tcl.in:..*
0f80: 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 65 73 tls.htm:..* tes
0f90: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 ts/tlsIO.test: u
0fa0: 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 pdated version t
0fb0: 6f 20 31 2e 35 2e 0a 0a 32 30 30 33 2d 31 30 2d o 1.5...2003-10-
0fc0: 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 07 Dan Razzell.
0fd0: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
0fe0: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 shsystems.ca>...
0ff0: 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e * tests/ciphers.
1000: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 6c 69 test: updated li
1010: 73 74 20 6f 66 20 74 65 73 74 65 64 20 63 69 70 st of tested cip
1020: 68 65 72 73 20 74 6f 20 63 6f 72 72 65 73 70 6f hers to correspo
1030: 6e 64 0a 09 2a 20 77 69 74 68 20 74 68 6f 73 65 nd..* with those
1040: 20 61 76 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20 available from
1050: 4f 70 65 6e 53 53 4c 2e 20 5b 52 65 71 75 65 73 OpenSSL. [Reques
1060: 74 20 23 38 31 31 39 38 31 5d 0a 0a 32 30 30 33 t #811981]..2003
1070: 2d 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a -10-07 Dan Razz
1080: 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 ell <research@st
1090: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 arfishsystems.ca
10a0: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 >...* tls.c: add
10b0: 65 64 20 43 4f 4e 53 54 20 77 69 74 68 20 69 6e ed CONST with in
10c0: 74 65 6e 74 20 73 69 6d 69 6c 61 72 20 74 6f 20 tent similar to
10d0: 74 68 6f 73 65 20 66 72 6f 6d 20 32 30 30 32 2d those from 2002-
10e0: 30 32 2d 30 34 2e 0a 09 5b 52 65 71 75 65 73 74 02-04...[Request
10f0: 20 23 38 31 31 39 31 31 5d 0a 0a 32 30 30 33 2d #811911]..2003-
1100: 30 37 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62 07-07 Jeff Hobb
1110: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 s <jeffh@Active
1120: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 State.com>...* t
1130: 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a ls.c (Tls_Init):
1140: 20 20 20 61 64 64 65 64 20 74 6c 73 3a 3a 6d 69 added tls::mi
1150: 73 63 20 63 6f 6d 6d 61 6e 64 20 70 72 6f 76 69 sc command provi
1160: 64 65 64 20 62 79 0a 09 2a 20 74 6c 73 58 35 30 ded by..* tlsX50
1170: 39 2e 63 3a 20 20 20 20 20 20 20 20 20 20 57 6f 9.c: Wo
1180: 6a 63 69 65 63 68 20 4b 6f 63 6a 61 6e 20 28 77 jciech Kocjan (w
1190: 6f 6a 63 69 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f ojciech kocjan.o
11a0: 72 67 29 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 rg)..* tests/key
11b0: 74 65 73 74 31 2e 74 63 6c 3a 20 74 6f 20 65 78 test1.tcl: to ex
11c0: 70 6f 73 65 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65 pose more low-le
11d0: 76 65 6c 20 53 53 4c 20 63 6f 6d 6d 61 6e 64 73 vel SSL commands
11e0: 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73 ..* tests/keytes
11f0: 74 32 2e 74 63 6c 3a 0a 0a 32 30 30 33 2d 30 35 t2.tcl:..2003-05
1200: 2d 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c -15 Dan Razzell
1210: 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 .<research@starf
1220: 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 20 0a ishsystems.ca> .
1230: 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20 ..* tls.tcl:..*
1240: 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 tlsInt.h:..* tls
1250: 2e 63 3a 20 61 64 64 20 73 75 70 70 6f 72 74 20 .c: add support
1260: 66 6f 72 20 62 69 6e 64 69 6e 67 20 61 20 70 61 for binding a pa
1270: 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 20 ssword callback
1280: 74 6f 20 74 68 65 20 73 6f 63 6b 65 74 2e 0a 09 to the socket...
1290: 4e 6f 77 20 65 61 63 68 20 73 6f 63 6b 65 74 20 Now each socket
12a0: 63 61 6e 20 68 61 76 65 20 69 74 73 20 6f 77 6e can have its own
12b0: 20 63 6f 6d 6d 61 6e 64 20 61 6e 64 20 70 61 73 command and pas
12c0: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 73 20 sword callbacks
12d0: 69 6e 73 74 65 61 64 0a 09 6f 66 20 62 65 69 6e instead..of bein
12e0: 67 20 66 6f 72 63 65 64 20 74 6f 20 68 61 76 65 g forced to have
12f0: 20 61 6c 6c 20 70 61 73 73 77 6f 72 64 20 6d 61 all password ma
1300: 6e 61 67 65 6d 65 6e 74 20 70 61 73 73 20 74 68 nagement pass th
1310: 72 6f 75 67 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09 rough a common..
1320: 70 72 6f 63 65 64 75 72 65 2e 20 20 54 68 65 20 procedure. The
1330: 63 6f 6d 6d 6f 6e 20 70 61 73 73 77 6f 72 64 20 common password
1340: 70 72 6f 63 65 64 75 72 65 20 69 73 20 72 65 74 procedure is ret
1350: 61 69 6e 65 64 20 66 6f 72 20 63 6f 6d 70 61 74 ained for compat
1360: 69 62 69 6c 69 74 79 0a 09 62 75 74 20 69 74 73 ibility..but its
1370: 20 75 73 65 20 73 68 6f 75 6c 64 20 62 65 20 44 use should be D
1380: 45 50 52 45 43 41 54 45 44 2e 0a 09 41 64 64 20 EPRECATED...Add
1390: 76 65 72 73 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20 version command
13a0: 74 6f 20 72 65 74 75 72 6e 20 4f 70 65 6e 53 53 to return OpenSS
13b0: 4c 20 76 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 L version string
13c0: 2e 0a 09 52 65 6d 6f 76 65 20 75 6e 73 74 61 62 ...Remove unstab
13d0: 6c 65 20 77 6f 72 6b 61 72 6f 75 6e 64 73 20 6e le workarounds n
13e0: 65 65 64 65 64 20 66 6f 72 20 76 65 72 69 66 79 eeded for verify
13f0: 20 69 6e 20 6f 62 73 6f 6c 65 74 65 20 76 65 72 in obsolete ver
1400: 73 69 6f 6e 73 20 6f 66 0a 09 4f 70 65 6e 53 53 sions of..OpenSS
1410: 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f 72 79 20 6c L...Fix memory l
1420: 65 61 6b 2e 20 5b 52 65 71 75 65 73 74 20 23 36 eak. [Request #6
1430: 34 30 36 36 30 5d 0a 09 4d 6f 72 65 20 63 61 73 40660]..More cas
1440: 74 73 20 74 6f 20 65 6c 69 6d 69 6e 61 74 65 20 ts to eliminate
1450: 63 6f 6d 70 69 6c 65 72 20 77 61 72 6e 69 6e 67 compiler warning
1460: 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 s....* tls.htm:
1470: 64 6f 63 75 6d 65 6e 74 20 70 61 73 73 77 6f 72 document passwor
1480: 64 20 63 61 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72 d callback...Cor
1490: 72 65 63 74 20 74 65 63 68 6e 69 63 61 6c 20 61 rect technical a
14a0: 6e 64 20 74 79 70 6f 67 72 61 70 68 69 63 20 65 nd typographic e
14b0: 72 72 6f 72 73 2e 0a 0a 09 2a 20 52 45 41 44 4d rrors....* READM
14c0: 45 2e 74 78 74 3a 20 69 64 65 6e 74 69 66 79 20 E.txt: identify
14d0: 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e versions of Open
14e0: 53 53 4c 20 77 68 69 63 68 20 66 69 78 20 6b 6e SSL which fix kn
14f0: 6f 77 6e 20 70 72 6f 62 6c 65 6d 73 2e 0a 09 47 own problems...G
1500: 65 6e 65 72 61 6c 20 77 61 72 6e 69 6e 67 20 6f eneral warning o
1510: 66 20 73 65 63 75 72 69 74 79 20 70 72 6f 62 6c f security probl
1520: 65 6d 73 20 69 6e 20 6f 6c 64 65 72 20 76 65 72 ems in older ver
1530: 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c sions of OpenSSL
1540: 2e 0a 0a 32 30 30 32 2d 30 32 2d 30 34 20 20 4a ...2002-02-04 J
1550: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
1560: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f h@ActiveState.co
1570: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a m>...* tls.htm:.
1580: 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 .* tls.c: added
1590: 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61 support for loca
15a0: 6c 20 63 65 72 74 69 66 69 63 61 74 65 20 73 74 l certificate st
15b0: 61 74 75 73 20 63 68 65 63 6b 2c 20 61 73 20 77 atus check, as w
15c0: 65 6c 6c 0a 09 61 73 20 72 65 74 75 72 6e 69 6e ell..as returnin
15d0: 67 20 74 68 65 20 23 20 6f 66 20 62 69 74 73 20 g the # of bits
15e0: 69 6e 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b in the session k
15f0: 65 79 2e 20 5b 50 61 74 63 68 20 23 35 30 35 36 ey. [Patch #5056
1600: 39 38 5d 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74 98] (rose)...* t
1610: 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 ls.c:..* tlsIO.c
1620: 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61 :..* tlsBIO.c: a
1630: 64 64 65 64 20 43 4f 4e 53 54 73 20 74 6f 20 73 dded CONSTs to s
1640: 61 74 69 73 66 79 20 54 63 6c 20 38 2e 34 20 73 atisfy Tcl 8.4 s
1650: 6f 75 72 63 65 73 2e 20 20 54 68 69 73 20 6d 61 ources. This ma
1660: 79 0a 09 67 69 76 65 20 77 61 72 6e 69 6e 67 73 y..give warnings
1670: 20 77 68 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61 when compiled a
1680: 67 61 69 6e 73 74 20 38 2e 33 2c 20 62 75 74 20 gainst 8.3, but
1690: 74 68 65 79 20 63 61 6e 20 62 65 20 69 67 6e 6f they can be igno
16a0: 72 65 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 red....* tests/s
16b0: 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a impleClient.tcl:
16c0: 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 ..* tests/simple
16d0: 53 65 72 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e Server.tcl: poin
16e0: 74 20 74 6f 20 75 70 64 61 74 65 64 20 63 6c 69 t to updated cli
16f0: 65 6e 74 2f 73 65 72 76 65 72 20 6b 65 79 20 66 ent/server key f
1700: 69 6c 65 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f iles....* tests/
1710: 74 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 tlsIO.test:..* t
1720: 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 ests/ciphers.tes
1730: 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20 6c 6f t: updated to lo
1740: 61 64 20 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c ad tls from buil
1750: 64 20 64 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 d dir....* Makef
1760: 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20 ile.in: removed
1770: 73 74 72 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d strncasecmp from
1780: 20 64 65 66 61 75 6c 74 20 6f 62 6a 65 63 74 20 default object
1790: 73 65 74 2e 20 20 54 68 69 73 0a 09 69 73 20 6f set. This..is o
17a0: 6e 6c 79 20 6e 65 65 64 65 64 20 6f 6e 20 74 68 nly needed on th
17b0: 65 20 4d 61 63 2c 20 61 6e 64 20 54 63 6c 20 73 e Mac, and Tcl s
17c0: 74 75 62 73 20 70 72 6f 76 69 64 65 73 20 69 74 tubs provides it
17d0: 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a ....* configure:
17e0: 20 72 65 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f regen'ed...* co
17f0: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 nfigure.in: upda
1800: 74 65 64 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72 ted to 1.5.0 for
1810: 20 6e 65 78 74 20 72 65 6c 65 61 73 65 2e 0a 09 next release...
1820: 43 68 61 6e 67 65 64 20 64 65 66 61 75 6c 74 20 Changed default
1830: 6f 70 65 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e openssl location
1840: 20 74 6f 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 to /usr/local/s
1850: 73 6c 20 28 74 68 69 73 20 69 73 20 77 68 65 72 sl (this is wher
1860: 65 0a 09 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36 e..openssl 0.9.6
1870: 63 20 69 6e 73 74 61 6c 6c 73 20 62 79 20 64 65 c installs by de
1880: 66 61 75 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64 fault)...Changed
1890: 20 74 6f 20 75 73 65 20 70 75 62 6c 69 63 20 54 to use public T
18a0: 63 6c 20 68 65 61 64 65 72 73 20 28 70 72 69 76 cl headers (priv
18b0: 61 74 65 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e ate not needed).
18c0: 0a 0a 32 30 30 31 2d 30 36 2d 32 31 20 20 4a 65 ..2001-06-21 Je
18d0: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 ff Hobbs <jeffh
18e0: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d @ActiveState.com
18f0: 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e 31 20 52 45 >...TLS 1.4.1 RE
1900: 4c 45 41 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 LEASE...* config
1910: 75 72 65 3a 20 61 64 64 65 64 20 63 6f 6e 66 69 ure: added confi
1920: 67 75 72 65 20 74 6f 20 43 56 53 0a 09 2a 20 63 gure to CVS..* c
1930: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 onfigure.in: mov
1940: 65 64 20 74 6f 20 70 61 74 63 68 6c 65 76 65 6c ed to patchlevel
1950: 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 1.4.1...* Makef
1960: 69 6c 65 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65 ile.in: correcte
1970: 64 20 27 64 69 73 74 27 20 74 61 72 67 65 74 0a d 'dist' target.
1980: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1990: 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 file.srl:..* tes
19a0: 74 73 2f 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a ts/certs/ca.pem:
19b0: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
19c0: 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 client.key:..* t
19d0: 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e ests/certs/clien
19e0: 74 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f t.pem:..* tests/
19f0: 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71 certs/client.req
1a00: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 :..* tests/certs
1a10: 2f 70 72 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a /privkey.pem:..*
1a20: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 tests/certs/ser
1a30: 76 65 72 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 ver.key:..* test
1a40: 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 70 s/certs/server.p
1a50: 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 em:..* tests/cer
1a60: 74 73 2f 73 65 72 76 65 72 2e 72 65 71 3a 0a 09 ts/server.req:..
1a70: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 * tests/certs/ca
1a80: 63 65 72 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63 cert.pem: replac
1a90: 65 64 20 62 79 20 6e 65 77 20 63 61 2e 70 65 6d ed by new ca.pem
1aa0: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1ab0: 73 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 skey.pem: replac
1ac0: 65 64 20 62 79 20 6e 65 77 20 73 65 72 76 65 72 ed by new server
1ad0: 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 .key..* tests/ce
1ae0: 72 74 73 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65 rts/ckey.pem: re
1af0: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 6c placed by new cl
1b00: 69 65 6e 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74 ient.key..* test
1b10: 73 2f 63 65 72 74 73 2f 52 45 41 44 4d 45 2e 74 s/certs/README.t
1b20: 78 74 3a 20 6e 65 77 20 73 65 74 20 6f 66 20 74 xt: new set of t
1b30: 65 73 74 20 63 65 72 74 69 66 69 63 61 74 65 73 est certificates
1b40: 20 77 69 74 68 20 73 6f 6d 65 0a 09 52 45 41 44 with some..READ
1b50: 4d 45 20 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72 ME info on their
1b60: 20 67 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a generation....*
1b70: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 tests/ciphers.t
1b80: 65 73 74 3a 20 75 70 64 61 74 65 64 20 63 69 70 est: updated cip
1b90: 68 65 72 73 20 65 78 70 65 63 74 65 64 20 77 69 hers expected wi
1ba0: 74 68 20 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e th default..open
1bb0: 73 73 6c 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 ssl build....* t
1bc0: 65 73 74 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a ests/tclIO.test:
1bd0: 20 75 70 64 61 74 65 64 20 74 6f 20 75 73 65 20 updated to use
1be0: 6e 65 77 20 6e 61 6d 65 73 20 66 6f 72 20 63 65 new names for ce
1bf0: 72 74 73 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d rts/keys...2001-
1c00: 30 33 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 03-14 Jeff Hobb
1c10: 73 20 20 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74 s <jeffh@gimlet
1c20: 2e 61 63 74 69 76 65 73 74 61 74 65 2e 63 6f 6d .activestate.com
1c30: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 >...* tls.c (Tls
1c40: 5f 49 6e 69 74 29 3a 20 61 64 64 20 64 6f 2f 77 _Init): add do/w
1c50: 68 69 6c 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20 hile for random
1c60: 6e 75 6d 62 65 72 20 69 6e 69 74 69 61 6c 69 7a number initializ
1c70: 61 74 69 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 ation..to work a
1c80: 72 6f 75 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20 round some OSes
1c90: 71 75 69 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e quirks. (Ralph.
1ca0: 42 69 6c 6c 65 73 40 74 65 6c 74 65 63 68 2e 63 Billes@teltech.c
1cb0: 6f 6d 2e 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d om.au)..2000-09-
1cc0: 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 07 Jeff Hobbs
1cd0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
1ce0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e .com>...* tlsIO.
1cf0: 63 20 28 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 c (Tls_ChannelTy
1d00: 70 65 29 3a 20 73 65 74 20 74 79 70 65 4e 61 6d pe): set typeNam
1d10: 65 20 66 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e e field of chann
1d20: 65 6c 20 74 79 70 65 20 74 6f 0a 09 22 74 6c 73 el type to.."tls
1d30: 22 20 28 74 68 69 73 20 67 6f 74 20 6c 6f 73 74 " (this got lost
1d40: 20 69 6e 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61 in move to dyna
1d50: 6d 69 63 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70 mic version comp
1d60: 61 74 61 62 69 6c 69 74 79 0a 09 63 68 65 63 6b atability..check
1d70: 69 6e 67 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 ing)...2000-08-2
1d80: 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 3 Jeff Hobbs <
1d90: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
1da0: 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52 com>...TLS 1.4 R
1db0: 45 4c 45 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 ELEASED...* Make
1dc0: 66 69 6c 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 file.in (dist):
1dd0: 63 72 65 61 74 65 20 64 69 73 74 20 74 61 72 67 create dist targ
1de0: 65 74 20 66 6f 72 20 61 72 63 68 69 76 65 20 64 et for archive d
1df0: 69 73 74 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a istributions...*
1e00: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
1e10: 74 20 28 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 t (tlsIO-8.1): a
1e20: 64 64 65 64 20 61 20 64 65 6c 61 79 20 6f 6e 20 dded a delay on
1e30: 74 68 65 20 61 63 63 65 70 74 20 63 6c 6f 73 65 the accept close
1e40: 0a 09 74 6f 20 6d 61 6b 65 20 74 68 65 20 74 65 ..to make the te
1e50: 73 74 20 77 6f 72 6b 20 77 69 74 68 20 4f 70 65 st work with Ope
1e60: 6e 53 53 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20 nSSL on Windows
1e70: 28 64 6f 65 73 6e 27 74 20 61 66 66 65 63 74 0a (doesn't affect.
1e80: 09 6f 74 68 65 72 20 62 75 69 6c 64 73 29 2e 0a .other builds)..
1e90: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64 ..* tls.htm: upd
1ea0: 61 74 65 64 20 77 69 74 68 20 6e 6f 74 65 73 20 ated with notes
1eb0: 66 6f 72 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 for 1.4...2000-0
1ec0: 38 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 8-21 Jeff Hobbs
1ed0: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
1ee0: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 cs.com>...* test
1ef0: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 s/tlsIO.test: re
1f00: 71 75 69 72 65 20 61 74 20 6c 65 61 73 74 20 74 quire at least t
1f10: 6c 73 31 2e 34 20 69 6e 20 74 65 73 74 20 73 75 ls1.4 in test su
1f20: 69 74 65 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38 ite...2000-08-18
1f30: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
1f40: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
1f50: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 om>...* tls.c (T
1f60: 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 65 64 20 ls_Init): added
1f70: 63 61 6c 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65 call to RAND_see
1f80: 64 20 74 6f 20 73 65 65 64 20 74 68 65 20 53 53 d to seed the SS
1f90: 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 L random..number
1fa0: 20 67 65 6e 65 72 61 74 6f 72 2e 20 20 57 69 74 generator. Wit
1fb0: 68 6f 75 74 20 74 68 69 73 2c 20 4f 70 65 6e 53 hout this, OpenS
1fc0: 53 4c 20 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c SL 0.9.5 chokes,
1fd0: 20 61 6e 64 20 69 6e 20 61 6e 79 0a 09 63 61 73 and in any..cas
1fe0: 65 20 69 74 20 69 73 20 61 20 62 69 67 20 73 65 e it is a big se
1ff0: 63 75 72 69 74 79 20 68 6f 6c 65 20 74 6f 20 64 curity hole to d
2000: 6f 20 77 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09 o without it....
2010: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28 * configure.in (
2020: 4f 50 45 4e 53 53 4c 29 3a 20 61 64 64 65 64 20 OPENSSL): added
2030: 4e 4f 5f 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52 NO_IDEA and NO_R
2040: 43 35 20 64 65 66 69 6e 65 73 20 62 79 0a 09 64 C5 defines by..d
2050: 65 66 61 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70 efault when comp
2060: 69 6c 69 6e 67 20 77 69 74 68 20 4f 70 65 6e 53 iling with OpenS
2070: 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 SL....* tlsInt.h
2080: 3a 20 61 64 64 65 64 20 65 72 72 2e 68 20 69 6e : added err.h in
2090: 63 6c 75 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f clude...* tlsBIO
20a0: 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 .c:..* tlsIO.c:
20b0: 63 6f 72 72 65 63 74 65 64 20 70 65 64 61 6e 74 corrected pedant
20c0: 69 63 20 63 61 73 74 20 65 72 72 6f 72 73 2e 0a ic cast errors..
20d0: 0a 32 30 30 30 2d 30 38 2d 31 36 20 20 4a 65 66 .2000-08-16 Jef
20e0: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 f Hobbs <hobbs@
20f0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a scriptics.com>..
2100: 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 .* tests/ciphers
2110: 2e 74 65 73 74 3a 20 69 6d 70 72 6f 76 65 64 20 .test: improved
2120: 61 62 69 6c 69 74 79 20 74 6f 20 63 68 61 6e 67 ability to chang
2130: 65 20 63 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65 e constraint..se
2140: 74 74 69 6e 67 20 66 6f 72 20 77 68 65 74 68 65 tting for whethe
2150: 72 20 75 73 65 72 20 63 6f 6d 70 69 6c 65 64 20 r user compiled
2160: 61 67 61 69 6e 73 74 20 52 53 41 20 6f 72 20 4f against RSA or O
2170: 70 65 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a penSSL libs....*
2180: 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 tls.c (Tls_Init
2190: 29 3a 20 63 6f 72 72 65 63 74 65 64 20 69 6e 74 ): corrected int
21a0: 65 72 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 76 erpretation of v
21b0: 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 ersion number..(
21c0: 70 61 74 63 68 6c 65 76 65 6c 20 61 6e 64 20 72 patchlevel and r
21d0: 65 6c 65 61 73 65 2f 73 65 72 69 61 6c 20 77 65 elease/serial we
21e0: 72 65 20 73 77 61 70 70 65 64 29 2e 0a 0a 32 30 re swapped)...20
21f0: 30 30 2d 30 38 2d 31 35 20 20 4a 65 66 66 20 48 00-08-15 Jeff H
2200: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
2210: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
2220: 52 45 41 44 4d 45 2e 74 78 74 3a 20 61 64 64 65 README.txt: adde
2230: 64 20 6e 6f 74 65 73 20 61 62 6f 75 74 20 6e 65 d notes about ne
2240: 65 64 20 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b ed to use 8.2.0+
2250: 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a ....* tlsInt.h:.
2260: 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 .* tls.c:..* tls
2270: 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 IO.c: corrected
2280: 73 74 72 75 63 74 75 72 65 20 69 6e 69 74 69 61 structure initia
2290: 6c 69 7a 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b lization to work
22a0: 20 77 68 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 when..compiling
22b0: 20 77 69 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20 with 8.2. Now
22c0: 63 6f 6d 70 69 6c 65 73 20 77 69 74 68 20 38 2e compiles with 8.
22d0: 32 2b 20 61 6e 64 20 74 65 73 74 65 64 20 74 6f 2+ and tested to
22e0: 20 77 6f 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b work..with 8.2+
22f0: 20 61 6e 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 and dynamically
2300: 20 61 64 6a 75 73 74 20 74 6f 20 74 68 65 20 76 adjust to the v
2310: 65 72 73 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74 ersion of Tcl it
2320: 20 77 61 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74 was..loaded int
2330: 6f 2e 20 20 54 4c 53 20 77 69 6c 6c 20 66 61 69 o. TLS will fai
2340: 6c 20 74 68 65 20 74 65 73 74 20 73 75 69 74 65 l the test suite
2350: 20 77 69 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e with Tcl 8.2-8.
2360: 33 2e 31 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61 3.1....* tests/a
2370: 6c 6c 2e 74 63 6c 3a 20 61 64 64 65 64 20 63 61 ll.tcl: added ca
2380: 74 63 68 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c tch around ::tcl
2390: 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 test::normalizeP
23a0: 61 74 68 0a 09 62 65 63 61 75 73 65 20 69 74 20 ath..because it
23b0: 64 6f 65 73 6e 27 74 20 65 78 69 73 74 20 69 6e doesn't exist in
23c0: 20 70 72 65 2d 38 2e 33 20 74 63 6c 74 65 73 74 pre-8.3 tcltest
23d0: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 ....* tests/simp
23e0: 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 leClient.tcl: ..
23f0: 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 * tests/simpleSe
2400: 72 76 65 72 2e 74 63 6c 3a 20 61 64 64 65 64 20 rver.tcl: added
2410: 73 69 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65 simple client/se
2420: 72 76 65 72 20 74 65 73 74 20 73 63 72 69 70 74 rver test script
2430: 73 0a 09 74 68 61 74 20 75 73 65 20 74 65 73 74 s..that use test
2440: 20 63 65 72 74 73 20 61 6e 64 20 63 61 6e 20 64 certs and can d
2450: 6f 20 73 69 6d 70 6c 65 20 73 74 72 65 73 73 20 o simple stress
2460: 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d tests...2000-08-
2470: 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 14 Jeff Hobbs
2480: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
2490: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 .com>...* tlsInt
24a0: 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a .h:..* tlsIO.c:.
24b0: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 .* tlsBIO.c:..*
24c0: 74 6c 73 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 tls.c: changed a
24d0: 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f round to only wo
24e0: 72 6b 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 30 rking with 8.2.0
24f0: 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65 + (8.3.2+..prefe
2500: 72 72 65 64 29 2c 20 77 69 74 68 20 72 75 6e 74 rred), with runt
2510: 69 6d 65 20 63 68 65 63 6b 73 20 66 6f 72 20 70 ime checks for p
2520: 72 65 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d re- and post-io-
2530: 72 65 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 rewrite....* tls
2540: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 .c (Tls_Init): c
2550: 68 61 6e 67 65 64 20 69 74 20 74 6f 20 72 65 71 hanged it to req
2560: 75 69 72 65 20 38 2e 33 2e 32 20 77 68 65 6e 20 uire 8.3.2 when
2570: 54 63 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09 77 Tcl_InitStubs..w
2580: 61 73 20 63 61 6c 6c 65 64 20 62 65 63 61 75 73 as called becaus
2590: 65 20 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 e we don't want
25a0: 70 65 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c 53 people using TLS
25b0: 20 77 69 74 68 20 74 68 65 0a 09 6f 72 69 67 69 with the..origi
25c0: 6e 61 6c 20 73 74 61 63 6b 65 64 20 63 68 61 6e nal stacked chan
25d0: 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 nel implementati
25e0: 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20 on...2000-07-26
25f0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
2600: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
2610: 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c m>...* merged al
2620: 6c 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 74 l changes from t
2630: 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74 ls-1-3-io-rewrit
2640: 65 20 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e e back into main
2650: 20 62 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74 branch...* test
2660: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 s/tlsIO.test: up
2670: 64 61 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 dated comments,
2680: 66 69 78 65 64 20 61 20 70 63 43 72 61 73 68 20 fixed a pcCrash
2690: 63 61 73 65 20 74 68 61 74 0a 09 77 61 73 20 64 case that..was d
26a0: 75 65 20 74 6f 20 64 65 62 75 67 20 61 73 73 65 ue to debug asse
26b0: 72 74 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73 rtion in Windows
26c0: 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 SSL....* tls.c
26d0: 28 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 (ImportObjCmd):
26e0: 72 65 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73 73 removed unnecess
26f0: 61 72 79 20 75 73 65 20 6f 66 20 27 62 69 6f 27 ary use of 'bio'
2700: 20 61 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 arg...(Tls_Init
2710: 29 3a 20 63 68 65 63 6b 20 72 65 74 75 72 6e 20 ): check return
2720: 76 61 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62 value of SSL_lib
2730: 72 61 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f rary_init. Also
2740: 20 6c 6f 74 73 20 6f 66 0a 09 77 68 69 74 65 73 lots of..whites
2750: 70 61 63 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f pace cleanup (mo
2760: 72 65 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20 re like Tcl Eng
2770: 73 74 79 6c 65 20 67 75 69 64 65 29 2c 20 62 75 style guide), bu
2780: 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20 t not all..code
2790: 77 61 73 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a was cleaned up..
27a0: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 ..* tlsBIO.c: mi
27b0: 6e 6f 72 20 77 68 69 74 65 73 70 61 63 65 20 63 nor whitespace c
27c0: 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f leanup...* tlsIO
27d0: 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 .c: minor whites
27e0: 70 61 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28 pace cleanup...(
27f0: 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c TlsInputProc, Tl
2800: 73 4f 75 74 70 75 74 50 72 6f 63 29 3a 20 41 64 sOutputProc): Ad
2810: 64 65 64 20 45 52 52 5f 63 6c 65 61 72 5f 65 72 ded ERR_clear_er
2820: 72 6f 72 20 62 65 66 6f 72 65 20 63 61 6c 6c 73 ror before calls
2830: 0a 09 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72 ..to BIO_read or
2840: 20 42 49 4f 5f 77 72 69 74 65 2c 20 62 65 63 61 BIO_write, beca
2850: 75 73 65 20 77 65 20 63 6f 75 6c 64 20 6f 74 68 use we could oth
2860: 65 72 77 69 73 65 20 65 6e 64 20 75 70 0a 09 70 erwise end up..p
2870: 75 6c 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72 20 ulling an error
2880: 6f 66 66 20 74 68 65 20 73 74 61 63 6b 20 74 68 off the stack th
2890: 61 74 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67 at didn't belong
28a0: 20 74 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63 to us. Also..c
28b0: 6c 65 61 6e 75 70 20 75 70 20 65 78 63 65 73 73 leanup up excess
28c0: 69 76 65 20 75 73 65 20 6f 66 20 67 6f 74 6f 73 ive use of gotos
28d0: 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 30 20 20 4a ...2000-07-20 J
28e0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 eff Hobbs <hobb
28f0: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e s@scriptics.com>
2900: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f ...* tests/tlsIO
2910: 2e 74 65 73 74 3a 20 63 6f 72 72 65 63 74 65 64 .test: corrected
2920: 20 76 61 72 69 6f 75 73 20 74 65 73 74 73 20 74 various tests t
2930: 6f 20 62 65 20 63 6f 72 72 65 63 74 20 66 6f 72 o be correct for
2940: 20 54 4c 53 0a 09 73 74 61 63 6b 65 64 20 63 68 TLS..stacked ch
2950: 61 6e 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f 73 annels (as oppos
2960: 65 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 ed to the standa
2970: 72 64 20 73 6f 63 6b 65 74 73 20 74 68 65 20 74 rd sockets the t
2980: 65 73 74 0a 09 73 75 69 74 65 20 77 61 73 20 61 est..suite was a
2990: 64 6f 70 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b dopted from). K
29a0: 65 79 20 64 69 66 66 65 72 65 6e 63 65 73 20 61 ey differences a
29b0: 72 65 20 74 68 61 74 20 54 4c 53 20 63 61 6e 6e re that TLS cann
29c0: 6f 74 0a 09 6f 70 65 72 61 74 65 20 69 6e 20 6f ot..operate in o
29d0: 6e 65 20 70 72 6f 63 65 73 73 20 77 69 74 68 6f ne process witho
29e0: 75 74 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 ut all channels
29f0: 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 being non-blocki
2a00: 6e 67 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e 64 ng, or..the hand
2a10: 73 68 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b shake will block
2a20: 2c 20 61 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e , and handshakin
2a30: 67 20 6d 75 73 74 20 62 65 20 66 6f 72 63 65 64 g must be forced
2a40: 20 69 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e in some..cases.
2a50: 20 20 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b Also, handshak
2a60: 65 73 20 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f es don't seem to
2a70: 20 63 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73 complete unless
2a80: 20 74 68 65 20 63 6c 69 65 6e 74 0a 09 68 61 73 the client..has
2a90: 20 70 6c 61 63 65 64 20 61 74 20 6c 65 61 73 74 placed at least
2aa0: 20 6f 6e 65 20 62 79 74 65 20 66 6f 72 20 74 68 one byte for th
2ab0: 65 20 73 65 72 76 65 72 20 74 6f 20 72 65 61 64 e server to read
2ac0: 20 69 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e in the channel.
2ad0: 0a 0a 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74 ...* tests/remot
2ae0: 65 2e 74 63 6c 3a 20 63 6f 72 72 65 63 74 65 64 e.tcl: corrected
2af0: 20 74 68 65 20 66 69 6e 64 69 6e 67 20 6f 66 20 the finding of
2b00: 74 65 73 74 73 20 63 65 72 74 69 66 69 63 61 74 tests certificat
2b10: 65 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 es...* tlsIO.c (
2b20: 54 6c 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72 TlsCloseProc): r
2b30: 65 6d 6f 76 65 64 20 64 65 6c 65 74 69 6e 67 20 emoved deleting
2b40: 6f 66 20 74 69 6d 65 72 20 68 61 6e 64 6c 65 72 of timer handler
2b50: 20 61 73 0a 09 74 68 61 74 20 69 73 20 68 61 6e as..that is han
2b60: 64 6c 65 64 20 62 79 20 54 6c 73 5f 43 6c 65 61 dled by Tls_Clea
2b70: 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 n....* tls.tcl (
2b80: 74 6c 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63 tls::_accept): c
2b90: 6f 72 72 65 63 74 65 64 20 74 68 65 20 69 6e 74 orrected the int
2ba0: 65 72 6e 61 6c 20 5f 61 63 63 65 70 74 20 74 6f ernal _accept to
2bb0: 0a 09 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61 ..trickle callba
2bc0: 63 6b 20 65 72 72 6f 72 73 20 74 6f 20 74 68 65 ck errors to the
2bd0: 20 75 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 user....* Makef
2be0: 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65 ile.in: made the
2bf0: 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 install-binarie
2c00: 73 20 74 61 72 67 65 74 20 72 65 67 65 6e 65 72 s target regener
2c10: 61 74 65 20 74 68 65 0a 09 70 6b 67 49 6e 64 65 ate the..pkgInde
2c20: 78 2e 74 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e x.tcl correctly.
2c30: 20 20 54 68 65 20 74 65 73 74 20 74 61 72 67 65 The test targe
2c40: 74 20 70 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c t probably shoul
2c50: 64 6e 27 74 20 73 63 72 65 77 0a 09 69 74 20 75 dn't screw..it u
2c60: 70 2c 20 62 75 74 20 74 68 69 73 20 69 73 20 74 p, but this is t
2c70: 6f 20 62 65 20 6f 6e 20 74 68 65 20 73 61 66 65 o be on the safe
2c80: 20 73 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d side...2000-07-
2c90: 31 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 17 Jeff Hobbs
2ca0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
2cb0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 .com>...* pkgInd
2cc0: 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f ex.tcl.in:..* co
2cd0: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 nfigure.in: upda
2ce0: 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 ted version to 1
2cf0: 2e 34 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20 20 .4..2000-07-13
2d00: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
2d10: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
2d20: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 >...* tests/tlsI
2d30: 4f 2e 74 65 73 74 3a 20 65 6e 61 62 6c 65 64 20 O.test: enabled
2d40: 74 65 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31 tests 2.10, 7.[1
2d50: 32 34 35 5d 20 28 74 68 65 72 65 20 69 73 20 6e 245] (there is n
2d60: 6f 20 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77 o 3),..which now
2d70: 20 70 61 73 73 2e 20 20 41 64 64 65 64 20 73 6f pass. Added so
2d80: 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f me comments to o
2d90: 74 68 65 72 20 66 61 69 6c 69 6e 67 20 74 65 73 ther failing tes
2da0: 74 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20 ts...2000-07-11
2db0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
2dc0: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
2dd0: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 m>...* tlsIO.c:
2de0: 63 68 61 6e 67 65 64 20 61 6c 6c 20 74 68 65 20 changed all the
2df0: 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f channel procs to
2e00: 20 73 74 61 72 74 20 77 69 74 68 20 54 6c 73 2a start with Tls*
2e10: 20 66 6f 72 0a 09 62 65 74 74 65 72 20 70 61 72 for..better par
2e20: 69 74 79 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 ity when compari
2e30: 6e 67 20 77 69 74 68 20 54 72 61 6e 73 66 6f 72 ng with Transfor
2e40: 6d 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e m channel procs.
2e50: 0a 09 52 65 77 72 6f 74 65 20 54 6c 73 57 61 74 ..Rewrote TlsWat
2e60: 63 68 50 72 6f 63 2c 20 61 64 64 65 64 20 54 6c chProc, added Tl
2e70: 73 4e 6f 74 69 66 79 50 72 6f 63 20 61 63 63 6f sNotifyProc acco
2e80: 72 64 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 77 rding to the new
2e90: 0a 09 63 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e ..channel design
2ea0: 2c 20 77 68 69 63 68 20 61 6c 73 6f 20 6c 65 61 , which also lea
2eb0: 76 65 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61 ves TlsChannelHa
2ec0: 6e 64 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09 ndler unused....
2ed0: 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43 * tlsBIO.c (BioC
2ee0: 74 72 6c 29 3a 20 63 68 61 6e 67 65 64 20 42 49 trl): changed BI
2ef0: 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 20 63 61 73 O_CTRL_FLUSH cas
2f00: 65 20 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72 e to use..Tcl_Wr
2f10: 69 74 65 52 61 77 20 69 6e 73 74 65 61 64 20 6f iteRaw instead o
2f20: 66 20 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20 f Tcl_Flush (to
2f30: 6f 70 65 72 61 74 65 20 6f 6e 20 63 6f 72 72 65 operate on corre
2f40: 63 74 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 ct channel..in t
2f50: 68 65 20 73 74 61 63 6b 20 69 6e 73 74 65 61 64 he stack instead
2f60: 20 6f 66 20 73 74 61 72 74 69 6e 67 20 61 74 20 of starting at
2f70: 74 68 65 20 74 6f 70 20 61 67 61 69 6e 29 2e 20 the top again).
2f80: 20 57 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69 73 Would..otherwis
2f90: 65 20 63 61 75 73 65 20 61 20 72 65 63 75 72 73 e cause a recurs
2fa0: 69 76 65 20 73 74 61 63 6b 20 62 6f 6d 62 20 77 ive stack bomb w
2fb0: 68 65 6e 20 69 6d 70 6c 69 63 69 74 20 68 61 6e hen implicit han
2fc0: 64 73 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 dshaking..took e
2fd0: 66 66 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73 ffect....* tests
2fe0: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d /tlsIO.test: rem
2ff0: 6f 76 65 64 20 63 68 61 6e 67 65 73 20 6d 61 64 oved changes mad
3000: 65 20 74 6f 20 74 65 73 74 20 73 75 69 74 65 20 e to test suite
3010: 28 61 6c 6c 20 74 65 73 74 73 0a 09 74 68 61 74 (all tests..that
3020: 20 72 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20 ran before now
3030: 70 61 73 73 20 63 6f 72 72 65 63 74 6c 79 29 2c pass correctly),
3040: 20 61 6e 64 20 63 68 61 6e 67 65 64 20 73 6f 6d and changed som
3050: 65 20 61 63 63 65 70 74 20 70 72 6f 63 0a 09 61 e accept proc..a
3060: 72 67 73 20 74 6f 20 72 65 66 6c 65 63 74 20 74 rgs to reflect t
3070: 68 61 74 20 61 20 73 6f 63 6b 20 69 73 20 61 6e hat a sock is an
3080: 20 61 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65 arg, not a file
3090: 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 30 20 20 4a ...2000-07-10 J
30a0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 eff Hobbs <hobb
30b0: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e s@scriptics.com>
30c0: 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 ...* tlsBIO.c (B
30d0: 69 6f 57 72 69 74 65 2c 20 42 69 6f 52 65 61 64 ioWrite, BioRead
30e0: 29 3a 20 63 68 61 6e 67 65 64 20 54 63 6c 5f 52 ): changed Tcl_R
30f0: 65 61 64 2f 57 72 69 74 65 20 74 6f 0a 09 54 63 ead/Write to..Tc
3100: 6c 5f 52 65 61 64 52 61 77 2f 54 63 6c 57 72 69 l_ReadRaw/TclWri
3110: 74 65 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 teRaw....* tls.c
3120: 3a 20 61 64 64 65 64 20 75 73 65 20 6f 66 20 54 : added use of T
3130: 63 6c 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c cl_GetTopChannel
3140: 20 61 66 74 65 72 20 54 63 6c 5f 47 65 74 43 68 after Tcl_GetCh
3150: 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72 annel and..got r
3160: 65 74 75 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d eturn value from
3170: 20 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 Tcl_StackChanne
3180: 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 l....* tests/tls
3190: 49 4f 2e 74 65 73 74 3a 20 61 64 64 65 64 20 73 IO.test: added s
31a0: 6f 6d 65 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 ome handshaking
31b0: 74 68 61 74 20 73 68 6f 75 6c 64 6e 27 74 20 62 that shouldn't b
31c0: 65 0a 09 6e 65 63 65 73 73 61 72 79 2c 20 62 75 e..necessary, bu
31d0: 74 20 77 65 20 63 72 61 73 68 20 6f 74 68 65 72 t we crash other
31e0: 77 69 73 65 20 28 6e 65 65 64 73 20 6d 6f 72 65 wise (needs more
31f0: 20 74 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 testing)....* t
3200: 6c 73 49 4f 2e 63 3a 20 61 64 64 65 64 20 73 75 lsIO.c: added su
3210: 70 70 6f 72 74 20 66 6f 72 20 22 63 6f 72 72 65 pport for "corre
3220: 63 74 65 64 22 20 73 74 61 63 6b 65 64 20 63 68 cted" stacked ch
3230: 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 annels. All..th
3240: 65 20 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73 e above channels
3250: 20 61 72 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e are in TCL_CHAN
3260: 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69 NEL_VERSION_2 #i
3270: 66 64 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d fdefs...2000-06-
3280: 30 35 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 05 Scott Stanto
3290: 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 n <stanton@ajub
32a0: 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a asolutions.com>.
32b0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a ..* Makefile.in:
32c0: 20 46 69 78 65 64 20 62 72 6f 6b 65 6e 20 74 65 Fixed broken te
32d0: 73 74 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74 st target....* t
32e0: 6c 73 49 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 lsInt.h: ..* tls
32f0: 2e 63 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 64 .c: Cleaned up d
3300: 65 63 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 54 eclarations of T
3310: 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69 ls_Clean to avoi
3320: 64 20 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e d errors on..Win
3330: 64 6f 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 dows (lint)...20
3340: 30 30 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 20 00-06-05 Brent
3350: 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a 75 Welch <welch@aju
3360: 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e basolutions.com>
3370: 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49 ...* tls.c, tlsI
3380: 4f 2e 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f O.c: Split Tls_
3390: 46 72 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c Free into Tls_Cl
33a0: 65 61 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 0a ean, which does.
33b0: 09 74 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 70 .the SSL cleanup
33c0: 2c 20 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 72 , and the Tcl_Fr
33d0: 65 65 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 20 ee call. It is
33e0: 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 75 important to shu
33f0: 74 64 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 73 tdown..the SSL s
3400: 74 61 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75 tate "synchronou
3410: 73 6c 79 22 20 64 75 72 69 6e 67 20 61 20 73 74 sly" during a st
3420: 61 63 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30 acked flush...20
3430: 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 00-06-01 Scott
3440: 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f Stanton <stanto
3450: 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 n@ajubasolutions
3460: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e .com>...* tlsIO.
3470: 63 3a 20 52 65 73 74 6f 72 65 64 20 63 61 6c 6c c: Restored call
3480: 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 to Tcl_NotifyCh
3490: 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e annel from Chann
34a0: 65 6c 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e elHandler..to en
34b0: 73 75 72 65 20 74 68 61 74 20 65 76 65 6e 74 73 sure that events
34c0: 20 70 72 6f 70 61 67 61 74 65 20 66 72 6f 6d 20 propagate from
34d0: 74 68 65 20 6c 6f 77 65 72 20 64 72 69 76 65 72 the lower driver
34e0: 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 72 65 73 . This may..res
34f0: 75 6c 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69 ult in an infini
3500: 74 65 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 te loop in some
3510: 63 61 73 65 73 2c 20 73 6f 20 74 68 69 73 20 69 cases, so this i
3520: 73 20 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66 s not a total..f
3530: 69 78 2e 20 20 54 68 69 73 20 6d 61 79 20 62 65 ix. This may be
3540: 20 73 75 66 66 69 63 69 65 6e 74 20 66 6f 72 20 sufficient for
3550: 6e 6f 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42 now, however. [B
3560: 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d ug: 5623]..2000-
3570: 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61 06-01 Scott Sta
3580: 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73 nton <stanton@s
3590: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
35a0: 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f * tlsIO.c: Resto
35b0: 72 65 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 re the previous
35c0: 76 65 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 20 version. Fixed
35d0: 74 68 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f the CloseProc so
35e0: 0a 09 69 74 20 75 6e 72 65 67 69 73 74 65 72 73 ..it unregisters
35f0: 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e the channel han
3600: 64 6c 65 72 20 6f 6e 20 74 68 65 20 73 75 70 65 dler on the supe
3610: 72 63 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09 rceded channel..
3620: 69 6e 73 74 65 61 64 20 6f 66 20 74 68 65 20 75 instead of the u
3630: 70 70 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c pper channel. Al
3640: 73 6f 20 72 65 6d 6f 76 65 64 20 74 68 65 20 63 so removed the c
3650: 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 all to..Tcl_Noti
3660: 66 79 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65 fyChannel in the
3670: 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 ChannelHandler
3680: 62 65 63 61 75 73 65 20 74 68 69 73 20 77 69 6c because this wil
3690: 6c 20 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20 l result..in an
36a0: 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66 infinite loop if
36b0: 20 64 61 74 61 20 69 73 20 65 76 65 72 20 62 75 data is ever bu
36c0: 66 66 65 72 65 64 20 69 6e 20 74 68 65 20 42 49 ffered in the BI
36d0: 4f 0a 09 73 74 72 75 63 74 75 72 65 2e 20 5b 42 O..structure. [B
36e0: 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d ug: 5623]..2000-
36f0: 30 35 2d 33 31 20 20 42 72 65 6e 74 20 57 65 6c 05-31 Brent Wel
3700: 63 68 20 3c 77 65 6c 63 68 40 73 63 72 69 70 74 ch <welch@script
3710: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
3720: 2e 63 3a 20 43 68 61 6e 67 65 20 74 68 65 20 43 .c: Change the C
3730: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f hannelHandler to
3740: 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20 6f be registered o
3750: 6e 20 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e n the main..chan
3760: 6e 65 6c 20 61 73 20 6f 70 70 73 65 64 20 74 6f nel as oppsed to
3770: 20 74 68 65 20 22 70 61 72 65 6e 74 22 2c 20 6f the "parent", o
3780: 72 20 73 75 70 65 72 63 65 65 64 65 64 2c 20 63 r superceeded, c
3790: 68 61 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69 hannel. This..i
37a0: 73 20 62 65 63 61 75 73 65 20 74 68 65 20 73 6f s because the so
37b0: 63 6b 65 74 20 64 72 69 76 65 72 20 6e 6f 74 69 cket driver noti
37c0: 66 69 65 73 20 74 68 65 20 6d 61 69 6e 20 63 68 fies the main ch
37d0: 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 65 annel, and there
37e0: 0a 09 61 72 65 20 74 69 6d 65 73 20 77 69 74 68 ..are times with
37f0: 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 the main channe
3800: 6c 20 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 62 l gets closed, b
3810: 75 74 20 74 68 65 20 73 75 70 65 72 63 65 64 65 ut the supercede
3820: 64 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65 d..one is not ye
3830: 74 20 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 t closed. If th
3840: 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 e channel handle
3850: 72 20 67 65 74 73 20 74 72 69 67 67 65 72 65 64 r gets triggered
3860: 20 69 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f in..this half-o
3870: 70 65 6e 20 73 74 61 74 65 20 69 74 20 69 73 20 pen state it is
3880: 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 associated with
3890: 74 68 65 20 73 75 70 65 72 63 65 65 64 65 64 0a the superceeded.
38a0: 09 63 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75 .channedl, but u
38b0: 73 65 73 20 69 74 73 20 70 72 69 76 61 74 65 20 ses its private
38c0: 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6d pointer to the m
38d0: 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69 ain channel, whi
38e0: 63 68 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 65 ch..is mostly de
38f0: 73 74 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e stroyed. Elimin
3900: 61 74 65 64 20 74 68 65 20 72 65 64 75 6e 64 61 ated the redunda
3910: 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f nt call to..Tcl_
3920: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 NotifyChannel fr
3930: 6f 6d 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2e om TlsWatchProc.
3940: 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a [Bug: 5623].