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