0000: 32 30 31 30 2d 30 38 2d 31 31 20 20 4a 65 66 66 2010-08-11 Jeff
0010: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 Hobbs <jeffh@A
0020: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a ctiveState.com>.
0030: 0a 09 2a 20 74 6c 73 2e 63 20 28 53 74 61 74 75 ..* tls.c (Statu
0040: 73 4f 62 6a 43 6d 64 29 3a 20 6d 65 6d 6c 65 61 sObjCmd): memlea
0050: 6b 3a 20 66 72 65 65 20 70 65 65 72 20 69 66 20 k: free peer if
0060: 6c 6f 61 64 65 64 2e 20 5b 42 75 67 20 33 30 34 loaded. [Bug 304
0070: 31 39 32 35 5d 0a 0a 32 30 31 30 2d 30 37 2d 32 1925]..2010-07-2
0080: 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 7 Jeff Hobbs <
0090: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
00a0: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 74 e.com>...* tls.t
00b0: 63 6c 20 28 74 6c 73 3a 3a 73 6f 63 6b 65 74 29 cl (tls::socket)
00c0: 3a 20 73 6f 6d 65 20 73 6f 63 6b 65 74 20 69 6d : some socket im
00d0: 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 73 20 68 61 plementations ha
00e0: 76 65 20 61 20 2d 74 79 70 65 0a 09 73 75 70 70 ve a -type..supp
00f0: 6f 72 74 20 28 65 2e 67 2e 20 66 6f 72 20 69 6e ort (e.g. for in
0100: 65 74 36 29 2e 0a 0a 32 30 30 39 2d 30 34 2d 32 et6)...2009-04-2
0110: 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 3 Jeff Hobbs <
0120: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
0130: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 74 e.com>...* tls.t
0140: 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 cl (tls::initlib
0150: 29 3a 20 61 64 64 20 73 75 70 70 6f 72 74 20 66 ): add support f
0160: 6f 72 20 57 69 6e 64 6f 77 73 20 73 74 61 72 70 or Windows starp
0170: 61 63 6b 0a 09 6f 70 65 72 61 74 69 6f 6e 20 74 ack..operation t
0180: 68 61 74 20 75 6e 62 75 6e 64 6c 65 73 20 61 6e hat unbundles an
0190: 79 20 63 6f 6e 73 74 69 74 75 65 6e 74 20 6c 69 y constituent li
01a0: 62 72 61 72 69 65 73 2e 20 5b 41 53 20 42 75 67 braries. [AS Bug
01b0: 20 38 32 38 38 38 5d 0a 0a 32 30 30 38 2d 30 36 82888]..2008-06
01c0: 2d 31 38 20 20 50 61 74 20 54 68 6f 79 74 73 20 -18 Pat Thoyts
01d0: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 <patthoyts@user
01e0: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 s.sourceforge.ne
01f0: 74 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 t>...* tests/cip
0200: 68 65 72 73 2e 74 65 73 74 3a 20 46 69 78 20 66 hers.test: Fix f
0210: 6f 72 20 64 69 66 66 65 72 65 6e 74 20 6f 70 65 or different ope
0220: 6e 73 73 6c 20 76 65 72 73 69 6f 6e 73 2e 0a 09 nssl versions...
0230: 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 * win/makefile.v
0240: 63 3a 20 20 20 20 55 70 64 61 74 65 73 20 74 6f c: Updates to
0250: 20 73 75 70 70 6f 72 74 20 74 65 73 74 73 2e 0a support tests..
0260: 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63 3a .* win/rules.vc:
0270: 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 ..* win/nmakehlp
0280: 2e 63 3a 0a 0a 32 30 30 38 2d 30 33 2d 31 39 20 .c:..2008-03-19
0290: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 Jeff Hobbs <je
02a0: 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e ffh@ActiveState.
02b0: 63 6f 6d 3e 0a 0a 09 2a 2a 2a 20 54 4c 53 20 31 com>...*** TLS 1
02c0: 2e 36 20 54 41 47 47 45 44 20 2a 2a 2a 0a 0a 09 .6 TAGGED ***...
02d0: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 * Makefile.in (d
02e0: 69 73 74 29 3a 20 75 70 64 61 74 65 20 74 6f 20 ist): update to
02f0: 69 6e 63 6c 75 64 65 20 77 69 6e 2f 20 61 6e 64 include win/ and
0300: 20 66 69 6c 65 2e 73 72 6c 0a 0a 09 2a 20 77 69 file.srl...* wi
0310: 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 62 n/makefile.vc: b
0320: 75 6d 70 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 ump version to 1
0330: 2e 36 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e .6..* configure.
0340: 69 6e 3a 20 75 73 65 20 2d 4c 20 61 6e 64 20 2d in: use -L and -
0350: 52 20 77 68 65 72 65 20 6e 65 63 65 73 73 61 72 R where necessar
0360: 79 2e 20 5b 42 75 67 20 31 37 34 32 38 35 39 5d y. [Bug 1742859]
0370: 0a 0a 09 2a 20 61 63 6c 6f 63 61 6c 2e 6d 34 3a ...* aclocal.m4:
0380: 20 69 6d 70 72 6f 76 65 20 2d 2d 77 69 74 68 2d improve --with-
0390: 73 73 6c 2d 64 69 72 20 63 68 65 63 6b 2e 0a 0a ssl-dir check...
03a0: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
03b0: 65 73 74 20 28 74 6c 73 49 4f 2d 31 34 2e 2a 29 est (tlsIO-14.*)
03c0: 3a 20 20 20 41 64 64 20 74 6c 73 3a 3a 75 6e 69 : Add tls::uni
03d0: 6d 70 6f 72 74 20 66 6f 72 20 73 79 6d 6d 65 74 mport for symmet
03e0: 72 79 0a 09 2a 20 74 6c 73 2e 68 74 6d 2c 20 74 ry..* tls.htm, t
03f0: 6c 73 2e 63 20 28 55 6e 69 6d 70 6f 72 74 4f 62 ls.c (UnimportOb
0400: 6a 43 6d 64 29 3a 20 74 6f 20 74 6c 73 3a 3a 69 jCmd): to tls::i
0410: 6d 70 6f 72 74 2e 20 5b 42 75 67 20 31 32 30 33 mport. [Bug 1203
0420: 32 37 33 5d 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 273]...* tls.c (
0430: 54 6c 73 5f 43 6c 65 61 6e 2c 20 49 6d 70 6f 72 Tls_Clean, Impor
0440: 74 4f 62 6a 43 6d 64 29 3a 20 46 69 78 20 63 6c tObjCmd): Fix cl
0450: 65 61 6e 75 70 20 6d 65 6d 20 6c 65 61 6b 20 5b eanup mem leak [
0460: 42 75 67 20 31 34 31 34 30 34 35 5d 0a 09 55 73 Bug 1414045]..Us
0470: 65 20 62 65 74 74 65 72 20 45 76 61 6c 20 41 50 e better Eval AP
0480: 49 73 2c 20 63 6c 65 61 6e 65 72 20 54 63 6c 5f Is, cleaner Tcl_
0490: 4f 62 6a 2d 68 61 6e 64 6c 69 6e 67 2e 0a 0a 32 Obj-handling...2
04a0: 30 30 38 2d 30 33 2d 31 39 20 20 50 61 74 20 54 008-03-19 Pat T
04b0: 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 hoyts <patthoyt
04c0: 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f s@users.sourcefo
04d0: 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e rge.net>...* win
04e0: 2f 4d 61 6b 65 66 69 6c 65 2e 76 63 20 20 55 70 /Makefile.vc Up
04f0: 64 61 74 65 64 20 74 68 65 20 6e 6d 61 6b 65 20 dated the nmake
0500: 62 75 69 6c 64 20 66 69 6c 65 73 20 77 69 74 68 build files with
0510: 20 4d 53 56 43 39 20 73 75 70 70 6f 72 74 0a 09 MSVC9 support..
0520: 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63 3a 20 * win/rules.vc:
0530: 20 20 20 61 6e 64 20 66 69 78 65 64 20 74 6f 20 and fixed to
0540: 72 75 6e 20 74 68 65 20 74 65 73 74 2d 73 75 69 run the test-sui
0550: 74 65 20 70 72 6f 70 65 72 6c 79 2e 0a 09 2a 20 te properly...*
0560: 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a 0a win/nmakehlp.c:.
0570: 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c 73 3a .* tls.tcl (tls:
0580: 3a 69 6e 69 74 6c 69 62 29 3a 20 43 6f 72 72 65 :initlib): Corre
0590: 63 74 65 64 20 6e 61 6d 65 73 70 61 63 65 20 68 cted namespace h
05a0: 61 6e 64 6c 69 6e 67 2e 0a 09 2a 20 74 6c 73 2e andling...* tls.
05b0: 63 3a 20 41 70 70 6c 69 65 64 20 23 31 38 39 30 c: Applied #1890
05c0: 32 32 33 20 74 6f 20 66 69 78 20 68 61 6e 64 73 223 to fix hands
05d0: 68 61 6b 65 20 6f 6e 20 6e 6f 6e 2d 62 6c 6f 63 hake on non-bloc
05e0: 6b 69 6e 67 20 73 6f 63 6b 65 74 73 0a 0a 32 30 king sockets..20
05f0: 30 38 2d 30 33 2d 31 37 20 20 4a 65 66 66 20 48 08-03-17 Jeff H
0600: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 obbs <jeffh@Act
0610: 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 iveState.com>...
0620: 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c 73 3a 3a * tls.tcl (tls::
0630: 69 6e 69 74 6c 69 62 29 3a 20 20 20 20 20 6c 6f initlib): lo
0640: 61 64 20 74 6c 73 2e 74 63 6c 20 66 69 72 73 74 ad tls.tcl first
0650: 20 61 6e 64 20 63 61 6c 6c 0a 09 2a 20 4d 61 6b and call..* Mak
0660: 65 66 69 6c 65 2e 69 6e 20 28 70 6b 67 49 6e 64 efile.in (pkgInd
0670: 65 78 2e 74 63 6c 29 3a 20 74 6c 73 3a 3a 69 6e ex.tcl): tls::in
0680: 69 74 6c 69 62 20 74 6f 20 6c 6f 61 64 20 6c 69 itlib to load li
0690: 62 72 61 72 79 20 74 6f 0a 09 68 61 6e 64 6c 65 brary to..handle
06a0: 20 63 77 64 20 63 68 61 6e 67 65 73 2e 20 5b 42 cwd changes. [B
06b0: 75 67 20 31 38 38 38 31 31 33 5d 0a 0a 32 30 30 ug 1888113]..200
06c0: 37 2d 30 39 2d 30 36 20 20 50 61 74 20 54 68 6f 7-09-06 Pat Tho
06d0: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 yts <patthoyts@
06e0: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 users.sourceforg
06f0: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 6c 73 2e 63 e.net>...* tls.c
0700: 3a 20 20 20 20 20 20 20 20 20 20 20 53 69 6c 65 : Sile
0710: 6e 63 65 20 36 34 20 62 69 74 20 69 6e 74 65 67 nce 64 bit integ
0720: 65 72 20 63 6f 6e 76 65 72 73 69 6f 6e 20 77 61 er conversion wa
0730: 72 6e 69 6e 67 73 0a 09 2a 20 77 69 6e 2f 6e 6d rnings..* win/nm
0740: 61 6b 65 68 6c 70 2e 63 3a 20 20 55 70 64 61 74 akehlp.c: Updat
0750: 65 20 62 75 69 6c 64 20 73 79 73 74 65 6d 20 74 e build system t
0760: 6f 20 73 75 70 70 6f 72 74 20 41 4d 44 36 34 20 o support AMD64
0770: 74 61 72 67 65 74 0a 09 2a 20 77 69 6e 2f 6d 61 target..* win/ma
0780: 6b 65 66 69 6c 65 2e 76 63 3a 20 77 69 74 68 20 kefile.vc: with
0790: 4d 53 56 43 38 0a 09 2a 20 77 69 6e 2f 72 75 6c MSVC8..* win/rul
07a0: 65 73 2e 76 63 3a 0a 0a 32 30 30 37 2d 30 36 2d es.vc:..2007-06-
07b0: 32 32 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 22 Jeff Hobbs
07c0: 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 <jeffh@ActiveSta
07d0: 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 te.com>...* tlsI
07e0: 4f 2e 63 20 28 54 6c 73 49 6e 70 75 74 50 72 6f O.c (TlsInputPro
07f0: 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 c, TlsOutputProc
0800: 2c 20 54 6c 73 57 61 74 63 68 50 72 6f 63 29 3a , TlsWatchProc):
0810: 20 0a 09 2a 20 74 6c 73 2e 63 20 28 56 65 72 69 ..* tls.c (Veri
0820: 66 79 43 61 6c 6c 62 61 63 6b 29 3a 20 61 64 64 fyCallback): add
0830: 20 61 6e 20 73 74 61 74 65 20 66 6c 61 67 20 69 an state flag i
0840: 6e 20 74 68 65 20 76 65 72 69 66 79 20 63 61 6c n the verify cal
0850: 6c 62 61 63 6b 0a 09 74 68 61 74 20 70 72 65 76 lback..that prev
0860: 65 6e 74 73 20 70 6f 73 73 69 62 6c 79 20 72 65 ents possibly re
0870: 63 75 72 73 69 6f 6e 20 28 6f 6e 20 27 75 70 64 cursion (on 'upd
0880: 61 74 65 27 29 2e 20 5b 42 75 67 20 31 36 35 32 ate'). [Bug 1652
0890: 33 38 30 5d 0a 0a 09 2a 20 74 65 73 74 73 2f 63 380]...* tests/c
08a0: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 72 65 77 iphers.test: rew
08b0: 6f 72 6b 65 64 20 74 6f 20 6d 61 6b 65 20 74 65 orked to make te
08c0: 73 74 20 6f 75 74 70 75 74 20 63 6c 65 61 6e 65 st output cleane
08d0: 72 20 74 6f 0a 09 75 6e 64 65 72 73 74 61 6e 64 r to..understand
08e0: 20 6d 69 73 73 69 6e 67 20 63 69 70 68 65 72 73 missing ciphers
08f0: 20 28 69 66 20 61 6e 79 29 0a 0a 09 2a 20 4d 61 (if any)...* Ma
0900: 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c 63 6f kefile.in, tclco
0910: 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75 70 64 nfig/tcl.m4: upd
0920: 61 74 65 20 74 6f 20 54 45 41 20 33 2e 36 0a 09 ate to TEA 3.6..
0930: 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f 6e * configure, con
0940: 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20 20 20 figure.in:
0950: 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e 66 2d using autoconf-
0960: 32 2e 35 39 0a 0a 32 30 30 37 2d 30 32 2d 32 38 2.59..2007-02-28
0970: 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 Pat Thoyts <p
0980: 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 atthoyts@users.s
0990: 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a ourceforge.net>.
09a0: 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 ..* win/makefile
09b0: 2e 76 63 3a 20 52 65 62 61 73 65 20 74 68 65 20 .vc: Rebase the
09c0: 44 4c 4c 20 73 65 6e 73 69 62 6c 79 2e 20 41 64 DLL sensibly. Ad
09d0: 64 69 74 69 6f 6e 61 6c 20 6c 69 62 73 20 66 6f ditional libs fo
09e0: 72 20 0a 09 73 74 61 74 69 63 20 6c 69 6e 6b 20 r ..static link
09f0: 6f 66 20 6f 70 65 6e 73 73 6c 2e 0a 09 2a 20 74 of openssl...* t
0a00: 6c 73 2e 74 63 6c 3a 20 62 75 67 20 23 31 35 37 ls.tcl: bug #157
0a10: 39 38 33 37 20 2d 20 54 49 50 20 32 37 38 20 62 9837 - TIP 278 b
0a20: 75 67 20 28 70 6f 73 73 69 62 6c 79 29 20 2d 20 ug (possibly) -
0a30: 66 69 78 65 64 2e 0a 0a 32 30 30 36 2d 30 33 2d fixed...2006-03-
0a40: 33 30 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 30 Pat Thoyts
0a50: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 <patthoyts@users
0a60: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 .sourceforge.net
0a70: 3e 0a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f >...* tclconfig/
0a80: 2a 3a 20 20 55 70 64 61 74 65 64 20 74 6f 20 54 *: Updated to T
0a90: 45 41 20 33 2e 35 20 69 6e 20 72 65 73 70 6f 6e EA 3.5 in respon
0aa0: 73 65 20 74 6f 20 62 75 67 20 31 34 36 30 34 39 se to bug 146049
0ab0: 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2a 3a 1..* configure*:
0ac0: 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 20 63 Regenerated c
0ad0: 6f 6e 66 69 67 75 72 65 2e 0a 0a 32 30 30 35 2d onfigure...2005-
0ae0: 30 32 2d 30 38 20 20 4a 65 66 66 20 48 6f 62 62 02-08 Jeff Hobb
0af0: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 s <jeffh@Active
0b00: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d State.com>...* M
0b10: 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c 63 akefile.in, tclc
0b20: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75 70 onfig/tcl.m4: up
0b30: 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e 32 0a date to TEA 3.2.
0b40: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f .* configure, co
0b50: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20 20 nfigure.in:
0b60: 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e 66 using autoconf
0b70: 2d 32 2e 35 39 0a 0a 32 30 30 34 2d 31 32 2d 32 -2.59..2004-12-2
0b80: 33 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 3 Pat Thoyts <
0b90: 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e patthoyts@users.
0ba0: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e sourceforge.net>
0bb0: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e ...* Makefile.in
0bc0: 3a 20 20 20 20 20 20 52 65 6d 6f 76 65 64 20 73 : Removed s
0bd0: 70 75 72 69 6f 75 73 20 63 6f 70 79 69 6e 67 20 purious copying
0be0: 6f 66 20 74 6c 73 2e 74 63 6c 20 69 6e 74 6f 20 of tls.tcl into
0bf0: 74 68 65 0a 09 20 20 20 20 20 20 20 20 20 20 20 the..
0c00: 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 20 64 build d
0c10: 69 72 65 63 74 6f 72 79 2e 0a 0a 32 30 30 34 2d irectory...2004-
0c20: 31 32 2d 32 32 20 20 50 61 74 20 54 68 6f 79 74 12-22 Pat Thoyt
0c30: 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 s <patthoyts@us
0c40: 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e ers.sourceforge.
0c50: 6e 65 74 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 net>...* configu
0c60: 72 65 2e 69 6e 3a 20 20 20 20 20 49 6e 63 72 65 re.in: Incre
0c70: 6d 65 6e 74 65 64 20 6d 69 6e 6f 72 20 76 65 72 mented minor ver
0c80: 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 31 0a 09 2a sion to 1.5.1..*
0c90: 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 20 20 configure:
0ca0: 20 20 20 0a 0a 32 30 30 34 2d 31 32 2d 31 37 20 ..2004-12-17
0cb0: 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 Pat Thoyts <pa
0cc0: 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f tthoyts@users.so
0cd0: 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a urceforge.net>..
0ce0: 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e .* win/makefile.
0cf0: 76 63 3a 20 20 41 64 64 65 64 20 74 68 65 20 4d vc: Added the M
0d00: 53 56 43 20 62 75 69 6c 64 20 73 79 73 74 65 6d SVC build system
0d10: 20 28 66 72 6f 6d 20 74 68 65 20 54 63 6c 0a 09 (from the Tcl..
0d20: 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63 3a 20 * win/rules.vc:
0d30: 20 20 20 20 73 61 6d 70 6c 65 65 78 74 65 6e 73 sampleextens
0d40: 69 6f 6e 29 2e 0a 09 2a 20 77 69 6e 2f 6e 6d 61 ion)...* win/nma
0d50: 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 77 69 6e 2f kehlp.c:..* win/
0d60: 74 6c 73 2e 72 63 20 20 20 20 20 20 20 20 41 64 tls.rc Ad
0d70: 64 65 64 20 57 69 6e 64 6f 77 73 20 72 65 73 6f ded Windows reso
0d80: 75 72 63 65 20 66 69 6c 65 2e 0a 09 0a 09 2a 20 urce file.....*
0d90: 74 6c 73 2e 74 63 6c 3a 20 20 20 20 20 20 20 20 tls.tcl:
0da0: 20 20 46 72 6f 6d 20 70 61 74 63 68 20 23 39 34 From patch #94
0db0: 38 31 35 35 2c 20 61 64 64 65 64 20 73 75 70 70 8155, added supp
0dc0: 6f 72 74 20 66 6f 72 0a 09 20 20 20 20 20 20 20 ort for..
0dd0: 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6c 74 alt
0de0: 65 72 6e 61 74 65 20 73 6f 63 6b 65 74 20 63 6f ernate socket co
0df0: 6d 6d 61 6e 64 73 2e 0a 09 2a 20 74 6c 73 2e 63 mmands...* tls.c
0e00: 3a 20 20 20 20 20 20 20 20 20 20 20 20 51 75 69 : Qui
0e10: 65 74 65 6e 20 73 6f 6d 65 20 4d 53 56 43 20 77 eten some MSVC w
0e20: 61 72 6e 69 6e 67 73 2e 20 50 72 65 66 65 72 20 arnings. Prefer
0e30: 63 6b 61 6c 6c 6f 63 0a 09 20 20 20 20 20 20 20 ckalloc..
0e40: 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 76 65 ove
0e50: 72 20 54 63 6c 5f 41 6c 6c 6f 63 2e 20 28 44 61 r Tcl_Alloc. (Da
0e60: 76 69 64 20 47 72 61 76 65 72 61 75 78 29 2e 0a vid Graveraux)..
0e70: 0a 32 30 30 34 2d 30 36 2d 32 39 20 20 50 61 74 .2004-06-29 Pat
0e80: 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f Thoyts <pattho
0e90: 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 yts@users.source
0ea0: 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 forge.net>...* t
0eb0: 6c 73 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20 ls.c:
0ec0: 20 46 69 78 75 70 20 74 6f 20 62 75 69 6c 64 20 Fixup to build
0ed0: 61 67 61 69 6e 73 74 20 74 63 6c 20 38 2e 33 2e against tcl 8.3.
0ee0: 33 2e 20 48 61 6e 64 6c 65 0a 09 2a 20 74 6c 73 3. Handle..* tls
0ef0: 49 4f 2e 63 3a 20 20 20 20 20 20 20 20 20 20 38 IO.c: 8
0f00: 2e 34 20 63 6f 6e 73 74 69 66 69 63 61 74 69 6f .4 constificatio
0f10: 6e 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a n....* tlsInt.h:
0f20: 20 20 20 20 20 20 20 20 20 41 64 64 65 64 20 68 Added h
0f30: 65 61 64 65 72 73 20 72 65 71 75 69 72 65 64 20 eaders required
0f40: 77 69 74 68 20 4d 53 56 43 20 6f 6e 20 57 69 6e with MSVC on Win
0f50: 33 32 2e 0a 09 2a 20 74 6c 73 58 35 30 39 2e 63 32...* tlsX509.c
0f60: 3a 20 20 20 20 20 20 20 20 75 6e 64 65 66 20 6d : undef m
0f70: 69 6e 20 61 6e 64 20 6d 61 78 20 69 66 20 64 65 in and max if de
0f80: 66 69 6e 65 64 20 28 77 69 6e 33 32 29 2e 0a 0a fined (win32)...
0f90: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
0fa0: 20 20 20 20 20 46 69 78 65 64 20 74 6f 20 62 75 Fixed to bu
0fb0: 69 6c 64 20 6f 6e 20 77 69 6e 33 32 20 75 73 69 ild on win32 usi
0fc0: 6e 67 20 6d 73 79 73 20 77 69 74 68 0a 09 2a 20 ng msys with..*
0fd0: 61 63 6c 6f 63 61 6c 2e 6d 34 3a 20 20 20 20 20 aclocal.m4:
0fe0: 20 20 4d 53 56 43 2e 20 41 6c 73 6f 20 66 69 78 MSVC. Also fix
0ff0: 65 64 20 74 68 65 20 74 65 73 74 20 74 61 72 67 ed the test targ
1000: 65 74 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 et...* configure
1010: 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 .in:..* configur
1020: 65 3a 20 20 20 20 20 20 20 20 52 65 67 65 6e 65 e: Regene
1030: 72 61 74 65 64 2e 0a 09 2a 20 74 63 6c 63 6f 6e rated...* tclcon
1040: 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 55 70 64 61 fig/tcl.m4: Upda
1050: 74 65 64 20 74 6f 20 6d 6f 73 74 20 72 65 63 65 ted to most rece
1060: 6e 74 20 76 65 72 73 69 6f 6e 2e 0a 0a 32 30 30 nt version...200
1070: 34 2d 30 33 2d 32 33 20 20 44 61 6e 20 52 61 7a 4-03-23 Dan Raz
1080: 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 zell <research@s
1090: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
10a0: 61 3e 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 a>..* tls.c:..*
10b0: 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 tlsBIO.c:..* tls
10c0: 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e IO.c:..* tlsInt.
10d0: 68 3a 09 46 69 78 65 64 20 74 79 70 65 20 6d 61 h:.Fixed type ma
10e0: 74 63 68 20 77 61 72 6e 69 6e 67 73 2e 0a 0a 32 tch warnings...2
10f0: 30 30 34 2d 30 33 2d 31 39 20 20 4a 65 66 66 20 004-03-19 Jeff
1100: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 Hobbs <jeffh@Ac
1110: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a tiveState.com>..
1120: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e .* tls.c (Tls_In
1130: 69 74 29 3a 20 20 20 72 65 70 6c 61 63 65 64 20 it): replaced
1140: 6f 6c 64 65 72 20 54 45 41 20 63 6f 6e 66 69 67 older TEA config
1150: 20 77 69 74 68 20 6e 65 77 65 72 0a 09 2a 20 63 with newer..* c
1160: 6f 6e 66 69 67 2f 2a 20 28 72 65 6d 6f 76 65 64 onfig/* (removed
1170: 29 3a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 ):..* pkgIndex.t
1180: 63 6c 2e 69 6e 2c 20 73 74 72 6e 63 61 73 65 63 cl.in, strncasec
1190: 6d 70 2e 63 20 28 72 65 6d 6f 76 65 64 29 3a 0a mp.c (removed):.
11a0: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 .* Makefile.in,
11b0: 61 63 6c 6f 63 61 6c 2e 6d 34 2c 20 63 6f 6e 66 aclocal.m4, conf
11c0: 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 72 65 igure, configure
11d0: 2e 69 6e 3a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 .in:..* tclconfi
11e0: 67 2f 52 45 41 44 4d 45 2e 74 78 74 2c 20 74 63 g/README.txt, tc
11f0: 6c 63 6f 6e 66 69 67 2f 69 6e 73 74 61 6c 6c 2d lconfig/install-
1200: 73 68 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 sh, tclconfig/tc
1210: 6c 2e 6d 34 3a 0a 0a 32 30 30 34 2d 30 33 2d 31 l.m4:..2004-03-1
1220: 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 7 Dan Razzell <
1230: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 research@starfis
1240: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a hsystems.ca>...*
1250: 20 74 6c 73 58 35 30 39 2e 63 3a 09 41 64 64 20 tlsX509.c:.Add
1260: 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 6e 67 support for long
1270: 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 72 73 20 serial numbers
1280: 70 65 72 20 52 46 43 20 33 32 38 30 2e 0a 09 09 per RFC 3280....
1290: 09 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77 20 68 .Format is now h
12a0: 65 78 61 64 65 63 69 6d 61 6c 2e 20 0a 09 09 09 exadecimal. ....
12b0: 5b 52 65 71 75 65 73 74 20 23 39 31 35 33 31 33 [Request #915313
12c0: 5d 0a 09 09 09 43 6f 72 72 65 63 74 6c 79 20 63 ]....Correctly c
12d0: 6f 6e 76 65 72 74 20 63 65 72 74 69 66 69 63 61 onvert certifica
12e0: 74 65 20 44 69 73 74 69 6e 67 75 69 73 68 65 64 te Distinguished
12f0: 20 4e 61 6d 65 73 0a 09 09 09 74 6f 20 54 63 6c Names....to Tcl
1300: 20 73 74 72 69 6e 67 20 72 65 70 72 65 73 65 6e string represen
1310: 74 61 74 69 6f 6e 2e 20 20 45 6c 69 6d 69 6e 61 tation. Elimina
1320: 74 65 73 20 75 73 65 20 6f 66 0a 09 09 09 64 65 tes use of....de
1330: 70 72 65 63 61 74 65 64 20 4f 70 65 6e 53 53 4c precated OpenSSL
1340: 20 66 75 6e 63 74 69 6f 6e 2e 20 20 46 6f 72 6d function. Form
1350: 61 74 20 69 73 20 6e 6f 77 20 63 6f 6d 70 6c 69 at is now compli
1360: 61 6e 74 0a 09 09 09 77 69 74 68 20 52 46 43 20 ant....with RFC
1370: 32 32 35 33 2e 20 20 5b 52 65 71 75 65 73 74 20 2253. [Request
1380: 23 39 31 35 33 31 35 5d 0a 0a 32 30 30 34 2d 30 #915315]..2004-0
1390: 32 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 2-17 Dan Razzel
13a0: 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 l <research@star
13b0: 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a fishsystems.ca>.
13c0: 0a 09 54 4c 53 20 31 2e 35 2e 30 20 52 45 4c 45 ..TLS 1.5.0 RELE
13d0: 41 53 45 0a 0a 32 30 30 34 2d 30 32 2d 31 32 20 ASE..2004-02-12
13e0: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 Dan Razzell.<re
13f0: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
1400: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 ystems.ca>...* t
1410: 6c 73 2e 63 3a 09 41 6c 6c 6f 77 20 76 65 72 69 ls.c:.Allow veri
1420: 66 79 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20 72 fy callback to r
1430: 65 74 75 72 6e 20 65 6d 70 74 79 20 72 65 73 75 eturn empty resu
1440: 6c 74 2e 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 09 lt...* tls.htm:.
1450: 44 6f 63 75 6d 65 6e 74 20 63 61 6c 6c 62 61 63 Document callbac
1460: 6b 20 62 65 68 61 76 69 6f 72 73 2e 0a 0a 32 30 k behaviors...20
1470: 30 34 2d 30 32 2d 31 31 20 20 44 61 6e 20 52 61 04-02-11 Dan Ra
1480: 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 zzell.<research@
1490: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e starfishsystems.
14a0: 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c ca>...* tests/tl
14b0: 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 72 65 6d sIO.test:..* rem
14c0: 6f 74 65 2e 74 63 6c 3a 09 43 6f 6d 70 6c 65 74 ote.tcl:.Complet
14d0: 65 20 70 72 69 76 61 74 65 20 6b 65 79 20 6e 61 e private key na
14e0: 6d 65 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 me changes from
14f0: 32 30 30 31 2d 30 36 2d 32 31 2e 0a 0a 32 30 30 2001-06-21...200
1500: 34 2d 30 32 2d 30 33 20 20 44 61 6e 20 52 61 7a 4-02-03 Dan Raz
1510: 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 zell <research@s
1520: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
1530: 61 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e a>...* Makefile.
1540: 69 6e 3a 09 52 65 6d 6f 76 65 64 20 63 69 72 63 in:.Removed circ
1550: 75 6c 61 72 20 64 65 70 65 6e 64 65 6e 63 79 2e ular dependency.
1560: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 4d 61 ..* tlsInt.h:.Ma
1570: 6b 65 20 66 75 6e 63 74 69 6f 6e 20 64 65 63 6c ke function decl
1580: 61 72 61 74 69 6f 6e 73 20 65 78 70 6c 69 63 69 arations explici
1590: 74 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09 46 69 78 t...* tls.c:.Fix
15a0: 20 74 79 70 65 20 6d 61 74 63 68 20 61 6e 64 20 type match and
15b0: 75 6e 75 73 65 64 20 76 61 72 69 61 62 6c 65 20 unused variable
15c0: 77 61 72 6e 69 6e 67 73 2e 0a 09 2a 20 74 6c 73 warnings...* tls
15d0: 42 49 4f 2e 63 3a 09 46 69 78 20 74 79 70 65 20 BIO.c:.Fix type
15e0: 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 2e 0a 0a match warning...
15f0: 32 30 30 33 2d 31 32 2d 31 35 20 20 44 61 6e 20 2003-12-15 Dan
1600: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 Razzell.<researc
1610: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
1620: 73 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 s.ca>...* pkgInd
1630: 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 74 6c ex.tcl.in:..* tl
1640: 73 2e 68 74 6d 3a 0a 09 2a 20 74 65 73 74 73 2f s.htm:..* tests/
1650: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 tlsIO.test: upda
1660: 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 ted version to 1
1670: 2e 35 2e 0a 0a 32 30 30 33 2d 31 30 2d 30 37 20 .5...2003-10-07
1680: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 Dan Razzell.<re
1690: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
16a0: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 ystems.ca>...* t
16b0: 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 ests/ciphers.tes
16c0: 74 3a 20 75 70 64 61 74 65 64 20 6c 69 73 74 20 t: updated list
16d0: 6f 66 20 74 65 73 74 65 64 20 63 69 70 68 65 72 of tested cipher
16e0: 73 20 74 6f 20 63 6f 72 72 65 73 70 6f 6e 64 0a s to correspond.
16f0: 09 2a 20 77 69 74 68 20 74 68 6f 73 65 20 61 76 .* with those av
1700: 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20 4f 70 65 ailable from Ope
1710: 6e 53 53 4c 2e 20 5b 52 65 71 75 65 73 74 20 23 nSSL. [Request #
1720: 38 31 31 39 38 31 5d 0a 0a 32 30 30 33 2d 31 30 811981]..2003-10
1730: 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c -07 Dan Razzell
1740: 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 <research@starf
1750: 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a ishsystems.ca>..
1760: 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 .* tls.c: added
1770: 43 4f 4e 53 54 20 77 69 74 68 20 69 6e 74 65 6e CONST with inten
1780: 74 20 73 69 6d 69 6c 61 72 20 74 6f 20 74 68 6f t similar to tho
1790: 73 65 20 66 72 6f 6d 20 32 30 30 32 2d 30 32 2d se from 2002-02-
17a0: 30 34 2e 0a 09 5b 52 65 71 75 65 73 74 20 23 38 04...[Request #8
17b0: 31 31 39 31 31 5d 0a 0a 32 30 30 33 2d 30 37 2d 11911]..2003-07-
17c0: 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 07 Jeff Hobbs
17d0: 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 <jeffh@ActiveSta
17e0: 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e te.com>...* tls.
17f0: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20 c (Tls_Init):
1800: 61 64 64 65 64 20 74 6c 73 3a 3a 6d 69 73 63 20 added tls::misc
1810: 63 6f 6d 6d 61 6e 64 20 70 72 6f 76 69 64 65 64 command provided
1820: 20 62 79 0a 09 2a 20 74 6c 73 58 35 30 39 2e 63 by..* tlsX509.c
1830: 3a 20 20 20 20 20 20 20 20 20 20 57 6f 6a 63 69 : Wojci
1840: 65 63 68 20 4b 6f 63 6a 61 6e 20 28 77 6f 6a 63 ech Kocjan (wojc
1850: 69 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f 72 67 29 iech kocjan.org)
1860: 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73 ..* tests/keytes
1870: 74 31 2e 74 63 6c 3a 20 74 6f 20 65 78 70 6f 73 t1.tcl: to expos
1880: 65 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65 76 65 6c e more low-level
1890: 20 53 53 4c 20 63 6f 6d 6d 61 6e 64 73 0a 09 2a SSL commands..*
18a0: 20 74 65 73 74 73 2f 6b 65 79 74 65 73 74 32 2e tests/keytest2.
18b0: 74 63 6c 3a 0a 0a 32 30 30 33 2d 30 35 2d 31 35 tcl:..2003-05-15
18c0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 Dan Razzell.<r
18d0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 esearch@starfish
18e0: 73 79 73 74 65 6d 73 2e 63 61 3e 20 0a 0a 09 2a systems.ca> ...*
18f0: 20 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20 74 6c 73 tls.tcl:..* tls
1900: 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a Int.h:..* tls.c:
1910: 20 61 64 64 20 73 75 70 70 6f 72 74 20 66 6f 72 add support for
1920: 20 62 69 6e 64 69 6e 67 20 61 20 70 61 73 73 77 binding a passw
1930: 6f 72 64 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20 ord callback to
1940: 74 68 65 20 73 6f 63 6b 65 74 2e 0a 09 4e 6f 77 the socket...Now
1950: 20 65 61 63 68 20 73 6f 63 6b 65 74 20 63 61 6e each socket can
1960: 20 68 61 76 65 20 69 74 73 20 6f 77 6e 20 63 6f have its own co
1970: 6d 6d 61 6e 64 20 61 6e 64 20 70 61 73 73 77 6f mmand and passwo
1980: 72 64 20 63 61 6c 6c 62 61 63 6b 73 20 69 6e 73 rd callbacks ins
1990: 74 65 61 64 0a 09 6f 66 20 62 65 69 6e 67 20 66 tead..of being f
19a0: 6f 72 63 65 64 20 74 6f 20 68 61 76 65 20 61 6c orced to have al
19b0: 6c 20 70 61 73 73 77 6f 72 64 20 6d 61 6e 61 67 l password manag
19c0: 65 6d 65 6e 74 20 70 61 73 73 20 74 68 72 6f 75 ement pass throu
19d0: 67 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09 70 72 6f gh a common..pro
19e0: 63 65 64 75 72 65 2e 20 20 54 68 65 20 63 6f 6d cedure. The com
19f0: 6d 6f 6e 20 70 61 73 73 77 6f 72 64 20 70 72 6f mon password pro
1a00: 63 65 64 75 72 65 20 69 73 20 72 65 74 61 69 6e cedure is retain
1a10: 65 64 20 66 6f 72 20 63 6f 6d 70 61 74 69 62 69 ed for compatibi
1a20: 6c 69 74 79 0a 09 62 75 74 20 69 74 73 20 75 73 lity..but its us
1a30: 65 20 73 68 6f 75 6c 64 20 62 65 20 44 45 50 52 e should be DEPR
1a40: 45 43 41 54 45 44 2e 0a 09 41 64 64 20 76 65 72 ECATED...Add ver
1a50: 73 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 sion command to
1a60: 72 65 74 75 72 6e 20 4f 70 65 6e 53 53 4c 20 76 return OpenSSL v
1a70: 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 2e 0a 09 ersion string...
1a80: 52 65 6d 6f 76 65 20 75 6e 73 74 61 62 6c 65 20 Remove unstable
1a90: 77 6f 72 6b 61 72 6f 75 6e 64 73 20 6e 65 65 64 workarounds need
1aa0: 65 64 20 66 6f 72 20 76 65 72 69 66 79 20 69 6e ed for verify in
1ab0: 20 6f 62 73 6f 6c 65 74 65 20 76 65 72 73 69 6f obsolete versio
1ac0: 6e 73 20 6f 66 0a 09 4f 70 65 6e 53 53 4c 2e 0a ns of..OpenSSL..
1ad0: 09 46 69 78 20 6d 65 6d 6f 72 79 20 6c 65 61 6b .Fix memory leak
1ae0: 2e 20 5b 52 65 71 75 65 73 74 20 23 36 34 30 36 . [Request #6406
1af0: 36 30 5d 0a 09 4d 6f 72 65 20 63 61 73 74 73 20 60]..More casts
1b00: 74 6f 20 65 6c 69 6d 69 6e 61 74 65 20 63 6f 6d to eliminate com
1b10: 70 69 6c 65 72 20 77 61 72 6e 69 6e 67 73 2e 0a piler warnings..
1b20: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 64 6f 63 ..* tls.htm: doc
1b30: 75 6d 65 6e 74 20 70 61 73 73 77 6f 72 64 20 63 ument password c
1b40: 61 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72 72 65 63 allback...Correc
1b50: 74 20 74 65 63 68 6e 69 63 61 6c 20 61 6e 64 20 t technical and
1b60: 74 79 70 6f 67 72 61 70 68 69 63 20 65 72 72 6f typographic erro
1b70: 72 73 2e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 rs....* README.t
1b80: 78 74 3a 20 69 64 65 6e 74 69 66 79 20 76 65 72 xt: identify ver
1b90: 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c sions of OpenSSL
1ba0: 20 77 68 69 63 68 20 66 69 78 20 6b 6e 6f 77 6e which fix known
1bb0: 20 70 72 6f 62 6c 65 6d 73 2e 0a 09 47 65 6e 65 problems...Gene
1bc0: 72 61 6c 20 77 61 72 6e 69 6e 67 20 6f 66 20 73 ral warning of s
1bd0: 65 63 75 72 69 74 79 20 70 72 6f 62 6c 65 6d 73 ecurity problems
1be0: 20 69 6e 20 6f 6c 64 65 72 20 76 65 72 73 69 6f in older versio
1bf0: 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c 2e 0a 0a ns of OpenSSL...
1c00: 32 30 30 32 2d 30 32 2d 30 34 20 20 4a 65 66 66 2002-02-04 Jeff
1c10: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 Hobbs <jeffh@A
1c20: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a ctiveState.com>.
1c30: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 ..* tls.htm:..*
1c40: 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 73 75 70 tls.c: added sup
1c50: 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61 6c 20 63 port for local c
1c60: 65 72 74 69 66 69 63 61 74 65 20 73 74 61 74 75 ertificate statu
1c70: 73 20 63 68 65 63 6b 2c 20 61 73 20 77 65 6c 6c s check, as well
1c80: 0a 09 61 73 20 72 65 74 75 72 6e 69 6e 67 20 74 ..as returning t
1c90: 68 65 20 23 20 6f 66 20 62 69 74 73 20 69 6e 20 he # of bits in
1ca0: 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 79 2e the session key.
1cb0: 20 5b 50 61 74 63 68 20 23 35 30 35 36 39 38 5d [Patch #505698]
1cc0: 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74 6c 73 2e (rose)...* tls.
1cd0: 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 c:..* tlsIO.c:..
1ce0: 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61 64 64 65 * tlsBIO.c: adde
1cf0: 64 20 43 4f 4e 53 54 73 20 74 6f 20 73 61 74 69 d CONSTs to sati
1d00: 73 66 79 20 54 63 6c 20 38 2e 34 20 73 6f 75 72 sfy Tcl 8.4 sour
1d10: 63 65 73 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 ces. This may..
1d20: 67 69 76 65 20 77 61 72 6e 69 6e 67 73 20 77 68 give warnings wh
1d30: 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61 67 61 69 en compiled agai
1d40: 6e 73 74 20 38 2e 33 2c 20 62 75 74 20 74 68 65 nst 8.3, but the
1d50: 79 20 63 61 6e 20 62 65 20 69 67 6e 6f 72 65 64 y can be ignored
1d60: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 ....* tests/simp
1d70: 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a 09 2a leClient.tcl:..*
1d80: 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 tests/simpleSer
1d90: 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e 74 20 74 ver.tcl: point t
1da0: 6f 20 75 70 64 61 74 65 64 20 63 6c 69 65 6e 74 o updated client
1db0: 2f 73 65 72 76 65 72 20 6b 65 79 20 66 69 6c 65 /server key file
1dc0: 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 s....* tests/tls
1dd0: 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 65 73 74 IO.test:..* test
1de0: 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 s/ciphers.test:
1df0: 75 70 64 61 74 65 64 20 74 6f 20 6c 6f 61 64 20 updated to load
1e00: 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c 64 20 64 tls from build d
1e10: 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 ir....* Makefile
1e20: 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20 73 74 72 .in: removed str
1e30: 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d 20 64 65 ncasecmp from de
1e40: 66 61 75 6c 74 20 6f 62 6a 65 63 74 20 73 65 74 fault object set
1e50: 2e 20 20 54 68 69 73 0a 09 69 73 20 6f 6e 6c 79 . This..is only
1e60: 20 6e 65 65 64 65 64 20 6f 6e 20 74 68 65 20 4d needed on the M
1e70: 61 63 2c 20 61 6e 64 20 54 63 6c 20 73 74 75 62 ac, and Tcl stub
1e80: 73 20 70 72 6f 76 69 64 65 73 20 69 74 2e 0a 0a s provides it...
1e90: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 72 65 .* configure: re
1ea0: 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f 6e 66 69 gen'ed...* confi
1eb0: 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65 64 gure.in: updated
1ec0: 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72 20 6e 65 to 1.5.0 for ne
1ed0: 78 74 20 72 65 6c 65 61 73 65 2e 0a 09 43 68 61 xt release...Cha
1ee0: 6e 67 65 64 20 64 65 66 61 75 6c 74 20 6f 70 65 nged default ope
1ef0: 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e 20 74 6f nssl location to
1f00: 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 73 6c 20 /usr/local/ssl
1f10: 28 74 68 69 73 20 69 73 20 77 68 65 72 65 0a 09 (this is where..
1f20: 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36 63 20 69 openssl 0.9.6c i
1f30: 6e 73 74 61 6c 6c 73 20 62 79 20 64 65 66 61 75 nstalls by defau
1f40: 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64 20 74 6f lt)...Changed to
1f50: 20 75 73 65 20 70 75 62 6c 69 63 20 54 63 6c 20 use public Tcl
1f60: 68 65 61 64 65 72 73 20 28 70 72 69 76 61 74 65 headers (private
1f70: 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e 0a 0a 32 not needed)...2
1f80: 30 30 31 2d 30 36 2d 32 31 20 20 4a 65 66 66 20 001-06-21 Jeff
1f90: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 Hobbs <jeffh@Ac
1fa0: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a tiveState.com>..
1fb0: 09 54 4c 53 20 31 2e 34 2e 31 20 52 45 4c 45 41 .TLS 1.4.1 RELEA
1fc0: 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 SE...* configure
1fd0: 3a 20 61 64 64 65 64 20 63 6f 6e 66 69 67 75 72 : added configur
1fe0: 65 20 74 6f 20 43 56 53 0a 09 2a 20 63 6f 6e 66 e to CVS..* conf
1ff0: 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 65 64 20 igure.in: moved
2000: 74 6f 20 70 61 74 63 68 6c 65 76 65 6c 20 31 2e to patchlevel 1.
2010: 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 4.1...* Makefile
2020: 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65 64 20 27 .in: corrected '
2030: 64 69 73 74 27 20 74 61 72 67 65 74 0a 0a 09 2a dist' target...*
2040: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 66 69 6c tests/certs/fil
2050: 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 74 73 2f e.srl:..* tests/
2060: 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a 0a 09 2a certs/ca.pem:..*
2070: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 tests/certs/cli
2080: 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 ent.key:..* test
2090: 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 70 s/certs/client.p
20a0: 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 em:..* tests/cer
20b0: 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71 3a 0a 09 ts/client.req:..
20c0: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 70 72 * tests/certs/pr
20d0: 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a 20 74 65 ivkey.pem:..* te
20e0: 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72 sts/certs/server
20f0: 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .key:..* tests/c
2100: 65 72 74 73 2f 73 65 72 76 65 72 2e 70 65 6d 3a erts/server.pem:
2110: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
2120: 73 65 72 76 65 72 2e 72 65 71 3a 0a 09 2a 20 74 server.req:..* t
2130: 65 73 74 73 2f 63 65 72 74 73 2f 63 61 63 65 72 ests/certs/cacer
2140: 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 t.pem: replaced
2150: 62 79 20 6e 65 77 20 63 61 2e 70 65 6d 0a 09 2a by new ca.pem..*
2160: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 6b 65 tests/certs/ske
2170: 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 y.pem: replaced
2180: 62 79 20 6e 65 77 20 73 65 72 76 65 72 2e 6b 65 by new server.ke
2190: 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 y..* tests/certs
21a0: 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 /ckey.pem: repla
21b0: 63 65 64 20 62 79 20 6e 65 77 20 63 6c 69 65 6e ced by new clien
21c0: 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 t.key..* tests/c
21d0: 65 72 74 73 2f 52 45 41 44 4d 45 2e 74 78 74 3a erts/README.txt:
21e0: 20 6e 65 77 20 73 65 74 20 6f 66 20 74 65 73 74 new set of test
21f0: 20 63 65 72 74 69 66 69 63 61 74 65 73 20 77 69 certificates wi
2200: 74 68 20 73 6f 6d 65 0a 09 52 45 41 44 4d 45 20 th some..README
2210: 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72 20 67 65 info on their ge
2220: 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74 65 neration....* te
2230: 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 sts/ciphers.test
2240: 3a 20 75 70 64 61 74 65 64 20 63 69 70 68 65 72 : updated cipher
2250: 73 20 65 78 70 65 63 74 65 64 20 77 69 74 68 20 s expected with
2260: 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e 73 73 6c default..openssl
2270: 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 65 73 74 build....* test
2280: 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a 20 75 70 s/tclIO.test: up
2290: 64 61 74 65 64 20 74 6f 20 75 73 65 20 6e 65 77 dated to use new
22a0: 20 6e 61 6d 65 73 20 66 6f 72 20 63 65 72 74 73 names for certs
22b0: 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d 30 33 2d /keys...2001-03-
22c0: 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 14 Jeff Hobbs
22d0: 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74 2e 61 63 <jeffh@gimlet.ac
22e0: 74 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e 0a 0a tivestate.com>..
22f0: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e .* tls.c (Tls_In
2300: 69 74 29 3a 20 61 64 64 20 64 6f 2f 77 68 69 6c it): add do/whil
2310: 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20 6e 75 6d e for random num
2320: 62 65 72 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 ber initializati
2330: 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 72 6f 75 on..to work arou
2340: 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20 71 75 69 nd some OSes qui
2350: 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e 42 69 6c rks. (Ralph.Bil
2360: 6c 65 73 40 74 65 6c 74 65 63 68 2e 63 6f 6d 2e les@teltech.com.
2370: 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d 30 37 20 au)..2000-09-07
2380: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
2390: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
23a0: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 m>...* tlsIO.c (
23b0: 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70 65 29 Tls_ChannelType)
23c0: 3a 20 73 65 74 20 74 79 70 65 4e 61 6d 65 20 66 : set typeName f
23d0: 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e 65 6c 20 ield of channel
23e0: 74 79 70 65 20 74 6f 0a 09 22 74 6c 73 22 20 28 type to.."tls" (
23f0: 74 68 69 73 20 67 6f 74 20 6c 6f 73 74 20 69 6e this got lost in
2400: 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61 6d 69 63 move to dynamic
2410: 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61 74 61 version compata
2420: 62 69 6c 69 74 79 0a 09 63 68 65 63 6b 69 6e 67 bility..checking
2430: 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 33 20 20 )...2000-08-23
2440: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
2450: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
2460: 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52 45 4c 45 >...TLS 1.4 RELE
2470: 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c ASED...* Makefil
2480: 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 63 72 65 e.in (dist): cre
2490: 61 74 65 20 64 69 73 74 20 74 61 72 67 65 74 20 ate dist target
24a0: 66 6f 72 20 61 72 63 68 69 76 65 20 64 69 73 74 for archive dist
24b0: 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a 20 74 65 ributions...* te
24c0: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 20 28 sts/tlsIO.test (
24d0: 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 64 64 65 tlsIO-8.1): adde
24e0: 64 20 61 20 64 65 6c 61 79 20 6f 6e 20 74 68 65 d a delay on the
24f0: 20 61 63 63 65 70 74 20 63 6c 6f 73 65 0a 09 74 accept close..t
2500: 6f 20 6d 61 6b 65 20 74 68 65 20 74 65 73 74 20 o make the test
2510: 77 6f 72 6b 20 77 69 74 68 20 4f 70 65 6e 53 53 work with OpenSS
2520: 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20 28 64 6f L on Windows (do
2530: 65 73 6e 27 74 20 61 66 66 65 63 74 0a 09 6f 74 esn't affect..ot
2540: 68 65 72 20 62 75 69 6c 64 73 29 2e 0a 0a 09 2a her builds)....*
2550: 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64 61 74 65 tls.htm: update
2560: 64 20 77 69 74 68 20 6e 6f 74 65 73 20 66 6f 72 d with notes for
2570: 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 1.4...2000-08-2
2580: 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 1 Jeff Hobbs <
2590: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
25a0: 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 com>...* tests/t
25b0: 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 71 75 69 lsIO.test: requi
25c0: 72 65 20 61 74 20 6c 65 61 73 74 20 74 6c 73 31 re at least tls1
25d0: 2e 34 20 69 6e 20 74 65 73 74 20 73 75 69 74 65 .4 in test suite
25e0: 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38 20 20 4a ...2000-08-18 J
25f0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 eff Hobbs <hobb
2600: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e s@scriptics.com>
2610: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
2620: 49 6e 69 74 29 3a 20 61 64 64 65 64 20 63 61 6c Init): added cal
2630: 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65 64 20 74 l to RAND_seed t
2640: 6f 20 73 65 65 64 20 74 68 65 20 53 53 4c 20 72 o seed the SSL r
2650: 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 20 67 65 andom..number ge
2660: 6e 65 72 61 74 6f 72 2e 20 20 57 69 74 68 6f 75 nerator. Withou
2670: 74 20 74 68 69 73 2c 20 4f 70 65 6e 53 53 4c 20 t this, OpenSSL
2680: 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c 20 61 6e 0.9.5 chokes, an
2690: 64 20 69 6e 20 61 6e 79 0a 09 63 61 73 65 20 69 d in any..case i
26a0: 74 20 69 73 20 61 20 62 69 67 20 73 65 63 75 72 t is a big secur
26b0: 69 74 79 20 68 6f 6c 65 20 74 6f 20 64 6f 20 77 ity hole to do w
26c0: 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09 2a 20 63 ithout it....* c
26d0: 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28 4f 50 45 onfigure.in (OPE
26e0: 4e 53 53 4c 29 3a 20 61 64 64 65 64 20 4e 4f 5f NSSL): added NO_
26f0: 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52 43 35 20 IDEA and NO_RC5
2700: 64 65 66 69 6e 65 73 20 62 79 0a 09 64 65 66 61 defines by..defa
2710: 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 ult when compili
2720: 6e 67 20 77 69 74 68 20 4f 70 65 6e 53 53 4c 2e ng with OpenSSL.
2730: 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 61 ...* tlsInt.h: a
2740: 64 64 65 64 20 65 72 72 2e 68 20 69 6e 63 6c 75 dded err.h inclu
2750: 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a de...* tlsBIO.c:
2760: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 ..* tlsIO.c: cor
2770: 72 65 63 74 65 64 20 70 65 64 61 6e 74 69 63 20 rected pedantic
2780: 63 61 73 74 20 65 72 72 6f 72 73 2e 0a 0a 32 30 cast errors...20
2790: 30 30 2d 30 38 2d 31 36 20 20 4a 65 66 66 20 48 00-08-16 Jeff H
27a0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
27b0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
27c0: 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 tests/ciphers.te
27d0: 73 74 3a 20 69 6d 70 72 6f 76 65 64 20 61 62 69 st: improved abi
27e0: 6c 69 74 79 20 74 6f 20 63 68 61 6e 67 65 20 63 lity to change c
27f0: 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65 74 74 69 onstraint..setti
2800: 6e 67 20 66 6f 72 20 77 68 65 74 68 65 72 20 75 ng for whether u
2810: 73 65 72 20 63 6f 6d 70 69 6c 65 64 20 61 67 61 ser compiled aga
2820: 69 6e 73 74 20 52 53 41 20 6f 72 20 4f 70 65 6e inst RSA or Open
2830: 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a 20 74 6c SSL libs....* tl
2840: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
2850: 63 6f 72 72 65 63 74 65 64 20 69 6e 74 65 72 70 corrected interp
2860: 72 65 74 61 74 69 6f 6e 20 6f 66 20 76 65 72 73 retation of vers
2870: 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 70 61 74 ion number..(pat
2880: 63 68 6c 65 76 65 6c 20 61 6e 64 20 72 65 6c 65 chlevel and rele
2890: 61 73 65 2f 73 65 72 69 61 6c 20 77 65 72 65 20 ase/serial were
28a0: 73 77 61 70 70 65 64 29 2e 0a 0a 32 30 30 30 2d swapped)...2000-
28b0: 30 38 2d 31 35 20 20 4a 65 66 66 20 48 6f 62 62 08-15 Jeff Hobb
28c0: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
28d0: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 52 45 41 ics.com>...* REA
28e0: 44 4d 45 2e 74 78 74 3a 20 61 64 64 65 64 20 6e DME.txt: added n
28f0: 6f 74 65 73 20 61 62 6f 75 74 20 6e 65 65 64 20 otes about need
2900: 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b 2e 0a 0a to use 8.2.0+...
2910: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 .* tlsInt.h:..*
2920: 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e tls.c:..* tlsIO.
2930: 63 3a 20 63 6f 72 72 65 63 74 65 64 20 73 74 72 c: corrected str
2940: 75 63 74 75 72 65 20 69 6e 69 74 69 61 6c 69 7a ucture initializ
2950: 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b 20 77 68 ation to work wh
2960: 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 20 77 69 en..compiling wi
2970: 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20 63 6f 6d th 8.2. Now com
2980: 70 69 6c 65 73 20 77 69 74 68 20 38 2e 32 2b 20 piles with 8.2+
2990: 61 6e 64 20 74 65 73 74 65 64 20 74 6f 20 77 6f and tested to wo
29a0: 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b 20 61 6e rk..with 8.2+ an
29b0: 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 61 64 d dynamically ad
29c0: 6a 75 73 74 20 74 6f 20 74 68 65 20 76 65 72 73 just to the vers
29d0: 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74 20 77 61 ion of Tcl it wa
29e0: 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74 6f 2e 20 s..loaded into.
29f0: 20 54 4c 53 20 77 69 6c 6c 20 66 61 69 6c 20 74 TLS will fail t
2a00: 68 65 20 74 65 73 74 20 73 75 69 74 65 20 77 69 he test suite wi
2a10: 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e 33 2e 31 th Tcl 8.2-8.3.1
2a20: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61 6c 6c 2e ....* tests/all.
2a30: 74 63 6c 3a 20 61 64 64 65 64 20 63 61 74 63 68 tcl: added catch
2a40: 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c 74 65 73 around ::tcltes
2a50: 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 61 74 68 t::normalizePath
2a60: 0a 09 62 65 63 61 75 73 65 20 69 74 20 64 6f 65 ..because it doe
2a70: 73 6e 27 74 20 65 78 69 73 74 20 69 6e 20 70 72 sn't exist in pr
2a80: 65 2d 38 2e 33 20 74 63 6c 74 65 73 74 2e 0a 0a e-8.3 tcltest...
2a90: 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 .* tests/simpleC
2aa0: 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 2a 20 74 lient.tcl: ..* t
2ab0: 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 76 65 ests/simpleServe
2ac0: 72 2e 74 63 6c 3a 20 61 64 64 65 64 20 73 69 6d r.tcl: added sim
2ad0: 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 ple client/serve
2ae0: 72 20 74 65 73 74 20 73 63 72 69 70 74 73 0a 09 r test scripts..
2af0: 74 68 61 74 20 75 73 65 20 74 65 73 74 20 63 65 that use test ce
2b00: 72 74 73 20 61 6e 64 20 63 61 6e 20 64 6f 20 73 rts and can do s
2b10: 69 6d 70 6c 65 20 73 74 72 65 73 73 20 74 65 73 imple stress tes
2b20: 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 34 20 ts...2000-08-14
2b30: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
2b40: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
2b50: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a m>...* tlsInt.h:
2b60: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 ..* tlsIO.c:..*
2b70: 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 tlsBIO.c:..* tls
2b80: 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 72 6f 75 .c: changed arou
2b90: 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f 72 6b 69 nd to only worki
2ba0: 6e 67 20 77 69 74 68 20 38 2e 32 2e 30 2b 20 28 ng with 8.2.0+ (
2bb0: 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65 72 72 65 8.3.2+..preferre
2bc0: 64 29 2c 20 77 69 74 68 20 72 75 6e 74 69 6d 65 d), with runtime
2bd0: 20 63 68 65 63 6b 73 20 66 6f 72 20 70 72 65 2d checks for pre-
2be0: 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d 72 65 77 and post-io-rew
2bf0: 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 rite....* tls.c
2c00: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 61 6e (Tls_Init): chan
2c10: 67 65 64 20 69 74 20 74 6f 20 72 65 71 75 69 72 ged it to requir
2c20: 65 20 38 2e 33 2e 32 20 77 68 65 6e 20 54 63 6c e 8.3.2 when Tcl
2c30: 5f 49 6e 69 74 53 74 75 62 73 0a 09 77 61 73 20 _InitStubs..was
2c40: 63 61 6c 6c 65 64 20 62 65 63 61 75 73 65 20 77 called because w
2c50: 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 70 65 6f e don't want peo
2c60: 70 6c 65 20 75 73 69 6e 67 20 54 4c 53 20 77 69 ple using TLS wi
2c70: 74 68 20 74 68 65 0a 09 6f 72 69 67 69 6e 61 6c th the..original
2c80: 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c stacked channel
2c90: 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 2e implementation.
2ca0: 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20 20 4a 65 ..2000-07-26 Je
2cb0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
2cc0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
2cd0: 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c 6c 20 63 ..* merged all c
2ce0: 68 61 6e 67 65 73 20 66 72 6f 6d 20 74 6c 73 2d hanges from tls-
2cf0: 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74 65 20 62 1-3-io-rewrite b
2d00: 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e 20 62 72 ack into main br
2d10: 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74 73 2f 74 anch...* tests/t
2d20: 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 lsIO.test: updat
2d30: 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 66 69 78 ed comments, fix
2d40: 65 64 20 61 20 70 63 43 72 61 73 68 20 63 61 73 ed a pcCrash cas
2d50: 65 20 74 68 61 74 0a 09 77 61 73 20 64 75 65 20 e that..was due
2d60: 74 6f 20 64 65 62 75 67 20 61 73 73 65 72 74 69 to debug asserti
2d70: 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73 20 53 53 on in Windows SS
2d80: 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 49 6d L....* tls.c (Im
2d90: 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 72 65 6d portObjCmd): rem
2da0: 6f 76 65 64 20 75 6e 6e 65 63 65 73 73 61 72 79 oved unnecessary
2db0: 20 75 73 65 20 6f 66 20 27 62 69 6f 27 20 61 72 use of 'bio' ar
2dc0: 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 29 3a 20 g...(Tls_Init):
2dd0: 63 68 65 63 6b 20 72 65 74 75 72 6e 20 76 61 6c check return val
2de0: 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62 72 61 72 ue of SSL_librar
2df0: 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f 20 6c 6f y_init. Also lo
2e00: 74 73 20 6f 66 0a 09 77 68 69 74 65 73 70 61 63 ts of..whitespac
2e10: 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f 72 65 20 e cleanup (more
2e20: 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20 73 74 79 like Tcl Eng sty
2e30: 6c 65 20 67 75 69 64 65 29 2c 20 62 75 74 20 6e le guide), but n
2e40: 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20 77 61 73 ot all..code was
2e50: 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a 0a 09 2a cleaned up....*
2e60: 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 6e 6f 72 tlsBIO.c: minor
2e70: 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 whitespace clea
2e80: 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a nup...* tlsIO.c:
2e90: 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61 63 minor whitespac
2ea0: 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28 54 6c 73 e cleanup...(Tls
2eb0: 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 4f 75 InputProc, TlsOu
2ec0: 74 70 75 74 50 72 6f 63 29 3a 20 41 64 64 65 64 tputProc): Added
2ed0: 20 45 52 52 5f 63 6c 65 61 72 5f 65 72 72 6f 72 ERR_clear_error
2ee0: 20 62 65 66 6f 72 65 20 63 61 6c 6c 73 0a 09 74 before calls..t
2ef0: 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72 20 42 49 o BIO_read or BI
2f00: 4f 5f 77 72 69 74 65 2c 20 62 65 63 61 75 73 65 O_write, because
2f10: 20 77 65 20 63 6f 75 6c 64 20 6f 74 68 65 72 77 we could otherw
2f20: 69 73 65 20 65 6e 64 20 75 70 0a 09 70 75 6c 6c ise end up..pull
2f30: 69 6e 67 20 61 6e 20 65 72 72 6f 72 20 6f 66 66 ing an error off
2f40: 20 74 68 65 20 73 74 61 63 6b 20 74 68 61 74 20 the stack that
2f50: 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67 20 74 6f didn't belong to
2f60: 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63 6c 65 61 us. Also..clea
2f70: 6e 75 70 20 75 70 20 65 78 63 65 73 73 69 76 65 nup up excessive
2f80: 20 75 73 65 20 6f 66 20 67 6f 74 6f 73 2e 0a 0a use of gotos...
2f90: 32 30 30 30 2d 30 37 2d 32 30 20 20 4a 65 66 66 2000-07-20 Jeff
2fa0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
2fb0: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
2fc0: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 * tests/tlsIO.te
2fd0: 73 74 3a 20 63 6f 72 72 65 63 74 65 64 20 76 61 st: corrected va
2fe0: 72 69 6f 75 73 20 74 65 73 74 73 20 74 6f 20 62 rious tests to b
2ff0: 65 20 63 6f 72 72 65 63 74 20 66 6f 72 20 54 4c e correct for TL
3000: 53 0a 09 73 74 61 63 6b 65 64 20 63 68 61 6e 6e S..stacked chann
3010: 65 6c 73 20 28 61 73 20 6f 70 70 6f 73 65 64 20 els (as opposed
3020: 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 to the standard
3030: 73 6f 63 6b 65 74 73 20 74 68 65 20 74 65 73 74 sockets the test
3040: 0a 09 73 75 69 74 65 20 77 61 73 20 61 64 6f 70 ..suite was adop
3050: 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b 65 79 20 ted from). Key
3060: 64 69 66 66 65 72 65 6e 63 65 73 20 61 72 65 20 differences are
3070: 74 68 61 74 20 54 4c 53 20 63 61 6e 6e 6f 74 0a that TLS cannot.
3080: 09 6f 70 65 72 61 74 65 20 69 6e 20 6f 6e 65 20 .operate in one
3090: 70 72 6f 63 65 73 73 20 77 69 74 68 6f 75 74 20 process without
30a0: 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 62 65 69 all channels bei
30b0: 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 2c ng non-blocking,
30c0: 20 6f 72 0a 09 74 68 65 20 68 61 6e 64 73 68 61 or..the handsha
30d0: 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b 2c 20 61 ke will block, a
30e0: 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 6d nd handshaking m
30f0: 75 73 74 20 62 65 20 66 6f 72 63 65 64 20 69 6e ust be forced in
3100: 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e 20 20 41 some..cases. A
3110: 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b 65 73 20 lso, handshakes
3120: 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20 63 6f don't seem to co
3130: 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73 20 74 68 mplete unless th
3140: 65 20 63 6c 69 65 6e 74 0a 09 68 61 73 20 70 6c e client..has pl
3150: 61 63 65 64 20 61 74 20 6c 65 61 73 74 20 6f 6e aced at least on
3160: 65 20 62 79 74 65 20 66 6f 72 20 74 68 65 20 73 e byte for the s
3170: 65 72 76 65 72 20 74 6f 20 72 65 61 64 20 69 6e erver to read in
3180: 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e 0a 0a 09 the channel....
3190: 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74 65 2e 74 * tests/remote.t
31a0: 63 6c 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 cl: corrected th
31b0: 65 20 66 69 6e 64 69 6e 67 20 6f 66 20 74 65 73 e finding of tes
31c0: 74 73 20 63 65 72 74 69 66 69 63 61 74 65 73 0a ts certificates.
31d0: 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 ..* tlsIO.c (Tls
31e0: 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72 65 6d 6f CloseProc): remo
31f0: 76 65 64 20 64 65 6c 65 74 69 6e 67 20 6f 66 20 ved deleting of
3200: 74 69 6d 65 72 20 68 61 6e 64 6c 65 72 20 61 73 timer handler as
3210: 0a 09 74 68 61 74 20 69 73 20 68 61 6e 64 6c 65 ..that is handle
3220: 64 20 62 79 20 54 6c 73 5f 43 6c 65 61 6e 2e 0a d by Tls_Clean..
3230: 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c 73 ..* tls.tcl (tls
3240: 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63 6f 72 72 ::_accept): corr
3250: 65 63 74 65 64 20 74 68 65 20 69 6e 74 65 72 6e ected the intern
3260: 61 6c 20 5f 61 63 63 65 70 74 20 74 6f 0a 09 74 al _accept to..t
3270: 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61 63 6b 20 rickle callback
3280: 65 72 72 6f 72 73 20 74 6f 20 74 68 65 20 75 73 errors to the us
3290: 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 er....* Makefile
32a0: 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65 20 69 6e .in: made the in
32b0: 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20 74 stall-binaries t
32c0: 61 72 67 65 74 20 72 65 67 65 6e 65 72 61 74 65 arget regenerate
32d0: 20 74 68 65 0a 09 70 6b 67 49 6e 64 65 78 2e 74 the..pkgIndex.t
32e0: 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e 20 20 54 cl correctly. T
32f0: 68 65 20 74 65 73 74 20 74 61 72 67 65 74 20 70 he test target p
3300: 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c 64 6e 27 robably shouldn'
3310: 74 20 73 63 72 65 77 0a 09 69 74 20 75 70 2c 20 t screw..it up,
3320: 62 75 74 20 74 68 69 73 20 69 73 20 74 6f 20 62 but this is to b
3330: 65 20 6f 6e 20 74 68 65 20 73 61 66 65 20 73 69 e on the safe si
3340: 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 37 20 de...2000-07-17
3350: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
3360: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
3370: 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e m>...* pkgIndex.
3380: 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 tcl.in:..* confi
3390: 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65 64 gure.in: updated
33a0: 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e 34 0a version to 1.4.
33b0: 0a 32 30 30 30 2d 30 37 2d 31 33 20 20 4a 65 66 .2000-07-13 Jef
33c0: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 f Hobbs <hobbs@
33d0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a scriptics.com>..
33e0: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
33f0: 65 73 74 3a 20 65 6e 61 62 6c 65 64 20 74 65 73 est: enabled tes
3400: 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31 32 34 35 ts 2.10, 7.[1245
3410: 5d 20 28 74 68 65 72 65 20 69 73 20 6e 6f 20 33 ] (there is no 3
3420: 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77 20 70 61 ),..which now pa
3430: 73 73 2e 20 20 41 64 64 65 64 20 73 6f 6d 65 20 ss. Added some
3440: 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f 74 68 65 comments to othe
3450: 72 20 66 61 69 6c 69 6e 67 20 74 65 73 74 73 2e r failing tests.
3460: 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20 20 4a 65 ..2000-07-11 Je
3470: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
3480: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
3490: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 68 61 ..* tlsIO.c: cha
34a0: 6e 67 65 64 20 61 6c 6c 20 74 68 65 20 63 68 61 nged all the cha
34b0: 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f 20 73 74 nnel procs to st
34c0: 61 72 74 20 77 69 74 68 20 54 6c 73 2a 20 66 6f art with Tls* fo
34d0: 72 0a 09 62 65 74 74 65 72 20 70 61 72 69 74 79 r..better parity
34e0: 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e 67 20 when comparing
34f0: 77 69 74 68 20 54 72 61 6e 73 66 6f 72 6d 20 63 with Transform c
3500: 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e 0a 09 52 hannel procs...R
3510: 65 77 72 6f 74 65 20 54 6c 73 57 61 74 63 68 50 ewrote TlsWatchP
3520: 72 6f 63 2c 20 61 64 64 65 64 20 54 6c 73 4e 6f roc, added TlsNo
3530: 74 69 66 79 50 72 6f 63 20 61 63 63 6f 72 64 69 tifyProc accordi
3540: 6e 67 20 74 6f 20 74 68 65 20 6e 65 77 0a 09 63 ng to the new..c
3550: 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e 2c 20 77 hannel design, w
3560: 68 69 63 68 20 61 6c 73 6f 20 6c 65 61 76 65 73 hich also leaves
3570: 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61 6e 64 6c TlsChannelHandl
3580: 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09 2a 20 74 er unused....* t
3590: 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43 74 72 6c lsBIO.c (BioCtrl
35a0: 29 3a 20 63 68 61 6e 67 65 64 20 42 49 4f 5f 43 ): changed BIO_C
35b0: 54 52 4c 5f 46 4c 55 53 48 20 63 61 73 65 20 74 TRL_FLUSH case t
35c0: 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72 69 74 65 o use..Tcl_Write
35d0: 52 61 77 20 69 6e 73 74 65 61 64 20 6f 66 20 54 Raw instead of T
35e0: 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20 6f 70 65 cl_Flush (to ope
35f0: 72 61 74 65 20 6f 6e 20 63 6f 72 72 65 63 74 20 rate on correct
3600: 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 68 65 20 channel..in the
3610: 73 74 61 63 6b 20 69 6e 73 74 65 61 64 20 6f 66 stack instead of
3620: 20 73 74 61 72 74 69 6e 67 20 61 74 20 74 68 65 starting at the
3630: 20 74 6f 70 20 61 67 61 69 6e 29 2e 20 20 57 6f top again). Wo
3640: 75 6c 64 0a 09 6f 74 68 65 72 77 69 73 65 20 63 uld..otherwise c
3650: 61 75 73 65 20 61 20 72 65 63 75 72 73 69 76 65 ause a recursive
3660: 20 73 74 61 63 6b 20 62 6f 6d 62 20 77 68 65 6e stack bomb when
3670: 20 69 6d 70 6c 69 63 69 74 20 68 61 6e 64 73 68 implicit handsh
3680: 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 66 66 65 aking..took effe
3690: 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c ct....* tests/tl
36a0: 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d 6f 76 65 sIO.test: remove
36b0: 64 20 63 68 61 6e 67 65 73 20 6d 61 64 65 20 74 d changes made t
36c0: 6f 20 74 65 73 74 20 73 75 69 74 65 20 28 61 6c o test suite (al
36d0: 6c 20 74 65 73 74 73 0a 09 74 68 61 74 20 72 61 l tests..that ra
36e0: 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20 70 61 73 n before now pas
36f0: 73 20 63 6f 72 72 65 63 74 6c 79 29 2c 20 61 6e s correctly), an
3700: 64 20 63 68 61 6e 67 65 64 20 73 6f 6d 65 20 61 d changed some a
3710: 63 63 65 70 74 20 70 72 6f 63 0a 09 61 72 67 73 ccept proc..args
3720: 20 74 6f 20 72 65 66 6c 65 63 74 20 74 68 61 74 to reflect that
3730: 20 61 20 73 6f 63 6b 20 69 73 20 61 6e 20 61 72 a sock is an ar
3740: 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e 0a 0a g, not a file...
3750: 32 30 30 30 2d 30 37 2d 31 30 20 20 4a 65 66 66 2000-07-10 Jeff
3760: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
3770: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
3780: 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 57 * tlsBIO.c (BioW
3790: 72 69 74 65 2c 20 42 69 6f 52 65 61 64 29 3a 20 rite, BioRead):
37a0: 63 68 61 6e 67 65 64 20 54 63 6c 5f 52 65 61 64 changed Tcl_Read
37b0: 2f 57 72 69 74 65 20 74 6f 0a 09 54 63 6c 5f 52 /Write to..Tcl_R
37c0: 65 61 64 52 61 77 2f 54 63 6c 57 72 69 74 65 52 eadRaw/TclWriteR
37d0: 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 aw....* tls.c: a
37e0: 64 64 65 64 20 75 73 65 20 6f 66 20 54 63 6c 5f dded use of Tcl_
37f0: 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c 20 61 66 GetTopChannel af
3800: 74 65 72 20 54 63 6c 5f 47 65 74 43 68 61 6e 6e ter Tcl_GetChann
3810: 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72 65 74 75 el and..got retu
3820: 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20 54 63 rn value from Tc
3830: 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c 2e 0a l_StackChannel..
3840: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
3850: 74 65 73 74 3a 20 61 64 64 65 64 20 73 6f 6d 65 test: added some
3860: 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 74 68 61 handshaking tha
3870: 74 20 73 68 6f 75 6c 64 6e 27 74 20 62 65 0a 09 t shouldn't be..
3880: 6e 65 63 65 73 73 61 72 79 2c 20 62 75 74 20 77 necessary, but w
3890: 65 20 63 72 61 73 68 20 6f 74 68 65 72 77 69 73 e crash otherwis
38a0: 65 20 28 6e 65 65 64 73 20 6d 6f 72 65 20 74 65 e (needs more te
38b0: 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 6c 73 49 sting)....* tlsI
38c0: 4f 2e 63 3a 20 61 64 64 65 64 20 73 75 70 70 6f O.c: added suppo
38d0: 72 74 20 66 6f 72 20 22 63 6f 72 72 65 63 74 65 rt for "correcte
38e0: 64 22 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e d" stacked chann
38f0: 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 65 20 61 els. All..the a
3900: 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73 20 61 72 bove channels ar
3910: 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e 4e 45 4c e in TCL_CHANNEL
3920: 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69 66 64 65 _VERSION_2 #ifde
3930: 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 fs...2000-06-05
3940: 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 Scott Stanton
3950: 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f <stanton@ajubaso
3960: 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a lutions.com>...*
3970: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 46 69 Makefile.in: Fi
3980: 78 65 64 20 62 72 6f 6b 65 6e 20 74 65 73 74 20 xed broken test
3990: 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74 6c 73 49 target....* tlsI
39a0: 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 2e 63 3a nt.h: ..* tls.c:
39b0: 20 43 6c 65 61 6e 65 64 20 75 70 20 64 65 63 6c Cleaned up decl
39c0: 61 72 61 74 69 6f 6e 73 20 6f 66 20 54 6c 73 5f arations of Tls_
39d0: 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69 64 20 65 Clean to avoid e
39e0: 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e 64 6f 77 rrors on..Window
39f0: 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 30 30 2d s (lint)...2000-
3a00: 30 36 2d 30 35 20 20 42 72 65 6e 74 20 57 65 6c 06-05 Brent Wel
3a10: 63 68 20 3c 77 65 6c 63 68 40 61 6a 75 62 61 73 ch <welch@ajubas
3a20: 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 olutions.com>...
3a30: 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49 4f 2e 63 * tls.c, tlsIO.c
3a40: 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f 46 72 65 : Split Tls_Fre
3a50: 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c 65 61 6e e into Tls_Clean
3a60: 2c 20 77 68 69 63 68 20 64 6f 65 73 0a 09 74 68 , which does..th
3a70: 65 20 53 53 4c 20 63 6c 65 61 6e 75 70 2c 20 61 e SSL cleanup, a
3a80: 6e 64 20 74 68 65 20 54 63 6c 5f 46 72 65 65 20 nd the Tcl_Free
3a90: 63 61 6c 6c 2e 20 20 49 74 20 69 73 20 69 6d 70 call. It is imp
3aa0: 6f 72 74 61 6e 74 20 74 6f 20 73 68 75 74 64 6f ortant to shutdo
3ab0: 77 6e 0a 09 74 68 65 20 53 53 4c 20 73 74 61 74 wn..the SSL stat
3ac0: 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75 73 6c 79 e "synchronously
3ad0: 22 20 64 75 72 69 6e 67 20 61 20 73 74 61 63 6b " during a stack
3ae0: 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30 30 30 2d ed flush...2000-
3af0: 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61 06-01 Scott Sta
3b00: 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 nton <stanton@a
3b10: 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f jubasolutions.co
3b20: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 m>...* tlsIO.c:
3b30: 52 65 73 74 6f 72 65 64 20 63 61 6c 6c 20 74 6f Restored call to
3b40: 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e Tcl_NotifyChann
3b50: 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e 65 6c 48 el from ChannelH
3b60: 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e 73 75 72 andler..to ensur
3b70: 65 20 74 68 61 74 20 65 76 65 6e 74 73 20 70 72 e that events pr
3b80: 6f 70 61 67 61 74 65 20 66 72 6f 6d 20 74 68 65 opagate from the
3b90: 20 6c 6f 77 65 72 20 64 72 69 76 65 72 2e 20 20 lower driver.
3ba0: 54 68 69 73 20 6d 61 79 0a 09 72 65 73 75 6c 74 This may..result
3bb0: 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 in an infinite
3bc0: 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 63 61 73 loop in some cas
3bd0: 65 73 2c 20 73 6f 20 74 68 69 73 20 69 73 20 6e es, so this is n
3be0: 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66 69 78 2e ot a total..fix.
3bf0: 20 20 54 68 69 73 20 6d 61 79 20 62 65 20 73 75 This may be su
3c00: 66 66 69 63 69 65 6e 74 20 66 6f 72 20 6e 6f 77 fficient for now
3c10: 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42 75 67 3a , however. [Bug:
3c20: 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 36 2d 5623]..2000-06-
3c30: 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 01 Scott Stanto
3c40: 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73 63 72 69 n <stanton@scri
3c50: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
3c60: 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 20 lsIO.c: Restore
3c70: 74 68 65 20 70 72 65 76 69 6f 75 73 20 76 65 72 the previous ver
3c80: 73 69 6f 6e 2e 20 20 46 69 78 65 64 20 74 68 65 sion. Fixed the
3c90: 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f 0a 09 69 CloseProc so..i
3ca0: 74 20 75 6e 72 65 67 69 73 74 65 72 73 20 74 68 t unregisters th
3cb0: 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 e channel handle
3cc0: 72 20 6f 6e 20 74 68 65 20 73 75 70 65 72 63 65 r on the superce
3cd0: 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 73 ded channel..ins
3ce0: 74 65 61 64 20 6f 66 20 74 68 65 20 75 70 70 65 tead of the uppe
3cf0: 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c 73 6f 20 r channel. Also
3d00: 72 65 6d 6f 76 65 64 20 74 68 65 20 63 61 6c 6c removed the call
3d10: 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 to..Tcl_NotifyC
3d20: 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65 20 43 68 hannel in the Ch
3d30: 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 62 65 63 annelHandler bec
3d40: 61 75 73 65 20 74 68 69 73 20 77 69 6c 6c 20 72 ause this will r
3d50: 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20 69 6e 66 esult..in an inf
3d60: 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66 20 64 61 inite loop if da
3d70: 74 61 20 69 73 20 65 76 65 72 20 62 75 66 66 65 ta is ever buffe
3d80: 72 65 64 20 69 6e 20 74 68 65 20 42 49 4f 0a 09 red in the BIO..
3d90: 73 74 72 75 63 74 75 72 65 2e 20 5b 42 75 67 3a structure. [Bug:
3da0: 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 35 2d 5623]..2000-05-
3db0: 33 31 20 20 42 72 65 6e 74 20 57 65 6c 63 68 20 31 Brent Welch
3dc0: 3c 77 65 6c 63 68 40 73 63 72 69 70 74 69 63 73 <welch@scriptics
3dd0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a .com>...* tls.c:
3de0: 20 43 68 61 6e 67 65 20 74 68 65 20 43 68 61 6e Change the Chan
3df0: 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f 20 62 65 nelHandler to be
3e00: 20 72 65 67 69 73 74 65 72 65 64 20 6f 6e 20 74 registered on t
3e10: 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e 6e 65 6c he main..channel
3e20: 20 61 73 20 6f 70 70 73 65 64 20 74 6f 20 74 68 as oppsed to th
3e30: 65 20 22 70 61 72 65 6e 74 22 2c 20 6f 72 20 73 e "parent", or s
3e40: 75 70 65 72 63 65 65 64 65 64 2c 20 63 68 61 6e uperceeded, chan
3e50: 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69 73 20 62 nel. This..is b
3e60: 65 63 61 75 73 65 20 74 68 65 20 73 6f 63 6b 65 ecause the socke
3e70: 74 20 64 72 69 76 65 72 20 6e 6f 74 69 66 69 65 t driver notifie
3e80: 73 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e s the main chann
3e90: 65 6c 2c 20 61 6e 64 20 74 68 65 72 65 0a 09 61 el, and there..a
3ea0: 72 65 20 74 69 6d 65 73 20 77 69 74 68 20 74 68 re times with th
3eb0: 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 20 67 e main channel g
3ec0: 65 74 73 20 63 6c 6f 73 65 64 2c 20 62 75 74 20 ets closed, but
3ed0: 74 68 65 20 73 75 70 65 72 63 65 64 65 64 0a 09 the superceded..
3ee0: 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65 74 20 63 one is not yet c
3ef0: 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 65 20 63 losed. If the c
3f00: 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20 67 hannel handler g
3f10: 65 74 73 20 74 72 69 67 67 65 72 65 64 20 69 6e ets triggered in
3f20: 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f 70 65 6e ..this half-open
3f30: 20 73 74 61 74 65 20 69 74 20 69 73 20 61 73 73 state it is ass
3f40: 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 ociated with the
3f50: 20 73 75 70 65 72 63 65 65 64 65 64 0a 09 63 68 superceeded..ch
3f60: 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75 73 65 73 annedl, but uses
3f70: 20 69 74 73 20 70 72 69 76 61 74 65 20 70 6f 69 its private poi
3f80: 6e 74 65 72 20 74 6f 20 74 68 65 20 6d 61 69 6e nter to the main
3f90: 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69 63 68 0a channel, which.
3fa0: 09 69 73 20 6d 6f 73 74 6c 79 20 64 65 73 74 72 .is mostly destr
3fb0: 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e 61 74 65 oyed. Eliminate
3fc0: 64 20 74 68 65 20 72 65 64 75 6e 64 61 6e 74 20 d the redundant
3fd0: 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 call to..Tcl_Not
3fe0: 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 ifyChannel from
3ff0: 54 6c 73 57 61 74 63 68 50 72 6f 63 2e 20 5b 42 TlsWatchProc. [B
4000: 75 67 3a 20 35 36 32 33 5d 0a ug: 5623].