Artifact
f8565544f0313c0c0a9d60a322f602ad09ac3321:
0000: 32 30 30 34 2d 30 36 2d 32 39 20 20 50 61 74 20 2004-06-29 Pat
0010: 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 Thoyts <patthoy
0020: 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 ts@users.sourcef
0030: 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 6c orge.net>...* tl
0040: 73 49 6e 74 2e 68 3a 20 20 20 20 20 20 20 20 20 sInt.h:
0050: 41 64 64 65 64 20 68 65 61 64 65 72 73 20 72 65 Added headers re
0060: 71 75 69 72 65 64 20 77 69 74 68 20 4d 53 56 43 quired with MSVC
0070: 20 6f 6e 20 57 69 6e 33 32 2e 0a 09 2a 20 74 6c on Win32...* tl
0080: 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20 sX509.c:
0090: 75 6e 64 65 66 20 6d 69 6e 20 61 6e 64 20 6d 61 undef min and ma
00a0: 78 20 69 66 20 64 65 66 69 6e 65 64 20 28 77 69 x if defined (wi
00b0: 6e 33 32 29 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 n32)....* Makefi
00c0: 6c 65 2e 69 6e 3a 20 20 20 20 20 20 46 69 78 65 le.in: Fixe
00d0: 64 20 74 6f 20 62 75 69 6c 64 20 6f 6e 20 77 69 d to build on wi
00e0: 6e 33 32 20 75 73 69 6e 67 20 6d 73 79 73 20 77 n32 using msys w
00f0: 69 74 68 0a 09 2a 20 61 63 6c 6f 63 61 6c 2e 6d ith..* aclocal.m
0100: 34 3a 20 20 20 20 20 20 20 4d 53 56 43 2e 20 41 4: MSVC. A
0110: 6c 73 6f 20 66 69 78 65 64 20 74 68 65 20 74 65 lso fixed the te
0120: 73 74 20 74 61 72 67 65 74 2e 0a 09 2a 20 63 6f st target...* co
0130: 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 63 nfigure.in:..* c
0140: 6f 6e 66 69 67 75 72 65 3a 20 20 20 20 20 20 20 onfigure:
0150: 20 52 65 67 65 6e 65 72 61 74 65 64 2e 0a 09 2a Regenerated...*
0160: 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d tclconfig/tcl.m
0170: 34 3a 20 55 70 64 61 74 65 64 20 74 6f 20 6d 6f 4: Updated to mo
0180: 73 74 20 72 65 63 65 6e 74 20 76 65 72 73 69 6f st recent versio
0190: 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d 32 33 20 20 n...2004-03-23
01a0: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 Dan Razzell <res
01b0: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
01c0: 73 74 65 6d 73 2e 63 61 3e 0a 09 2a 20 74 6c 73 stems.ca>..* tls
01d0: 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a .c:..* tlsBIO.c:
01e0: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 ..* tlsIO.c:..*
01f0: 74 6c 73 49 6e 74 2e 68 3a 09 46 69 78 65 64 20 tlsInt.h:.Fixed
0200: 74 79 70 65 20 6d 61 74 63 68 20 77 61 72 6e 69 type match warni
0210: 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 33 2d 31 39 ngs...2004-03-19
0220: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a Jeff Hobbs <j
0230: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 effh@ActiveState
0240: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 .com>...* tls.c
0250: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20 72 65 (Tls_Init): re
0260: 70 6c 61 63 65 64 20 6f 6c 64 65 72 20 54 45 41 placed older TEA
0270: 20 63 6f 6e 66 69 67 20 77 69 74 68 20 6e 65 77 config with new
0280: 65 72 0a 09 2a 20 63 6f 6e 66 69 67 2f 2a 20 28 er..* config/* (
0290: 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 70 6b 67 removed):..* pkg
02a0: 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 2c 20 73 74 Index.tcl.in, st
02b0: 72 6e 63 61 73 65 63 6d 70 2e 63 20 28 72 65 6d rncasecmp.c (rem
02c0: 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 6b 65 66 69 oved):..* Makefi
02d0: 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 61 6c 2e 6d le.in, aclocal.m
02e0: 34 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f 4, configure, co
02f0: 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 74 nfigure.in:..* t
0300: 63 6c 63 6f 6e 66 69 67 2f 52 45 41 44 4d 45 2e clconfig/README.
0310: 74 78 74 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 69 txt, tclconfig/i
0320: 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 63 6c 63 6f nstall-sh, tclco
0330: 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 0a 0a 32 30 nfig/tcl.m4:..20
0340: 30 34 2d 30 33 2d 31 37 20 20 44 61 6e 20 52 61 04-03-17 Dan Ra
0350: 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 zzell <research@
0360: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e starfishsystems.
0370: 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 35 30 39 2e ca>...* tlsX509.
0380: 63 3a 09 41 64 64 20 73 75 70 70 6f 72 74 20 66 c:.Add support f
0390: 6f 72 20 6c 6f 6e 67 20 73 65 72 69 61 6c 20 6e or long serial n
03a0: 75 6d 62 65 72 73 20 70 65 72 20 52 46 43 20 33 umbers per RFC 3
03b0: 32 38 30 2e 0a 09 09 09 46 6f 72 6d 61 74 20 69 280.....Format i
03c0: 73 20 6e 6f 77 20 68 65 78 61 64 65 63 69 6d 61 s now hexadecima
03d0: 6c 2e 20 0a 09 09 09 5b 52 65 71 75 65 73 74 20 l. ....[Request
03e0: 23 39 31 35 33 31 33 5d 0a 09 09 09 43 6f 72 72 #915313]....Corr
03f0: 65 63 74 6c 79 20 63 6f 6e 76 65 72 74 20 63 65 ectly convert ce
0400: 72 74 69 66 69 63 61 74 65 20 44 69 73 74 69 6e rtificate Distin
0410: 67 75 69 73 68 65 64 20 4e 61 6d 65 73 0a 09 09 guished Names...
0420: 09 74 6f 20 54 63 6c 20 73 74 72 69 6e 67 20 72 .to Tcl string r
0430: 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 2e 20 20 epresentation.
0440: 45 6c 69 6d 69 6e 61 74 65 73 20 75 73 65 20 6f Eliminates use o
0450: 66 0a 09 09 09 64 65 70 72 65 63 61 74 65 64 20 f....deprecated
0460: 4f 70 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f 6e OpenSSL function
0470: 2e 20 20 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77 . Format is now
0480: 20 63 6f 6d 70 6c 69 61 6e 74 0a 09 09 09 77 69 compliant....wi
0490: 74 68 20 52 46 43 20 32 32 35 33 2e 20 20 5b 52 th RFC 2253. [R
04a0: 65 71 75 65 73 74 20 23 39 31 35 33 31 35 5d 0a equest #915315].
04b0: 0a 32 30 30 34 2d 30 32 2d 31 37 20 20 44 61 6e .2004-02-17 Dan
04c0: 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 Razzell <resear
04d0: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 ch@starfishsyste
04e0: 6d 73 2e 63 61 3e 0a 0a 09 54 4c 53 20 31 2e 35 ms.ca>...TLS 1.5
04f0: 2e 30 20 52 45 4c 45 41 53 45 0a 0a 32 30 30 34 .0 RELEASE..2004
0500: 2d 30 32 2d 31 32 20 20 44 61 6e 20 52 61 7a 7a -02-12 Dan Razz
0510: 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 ell.<research@st
0520: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 arfishsystems.ca
0530: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 09 41 6c 6c >...* tls.c:.All
0540: 6f 77 20 76 65 72 69 66 79 20 63 61 6c 6c 62 61 ow verify callba
0550: 63 6b 20 74 6f 20 72 65 74 75 72 6e 20 65 6d 70 ck to return emp
0560: 74 79 20 72 65 73 75 6c 74 2e 0a 09 2a 20 74 6c ty result...* tl
0570: 73 2e 68 74 6d 3a 09 44 6f 63 75 6d 65 6e 74 20 s.htm:.Document
0580: 63 61 6c 6c 62 61 63 6b 20 62 65 68 61 76 69 6f callback behavio
0590: 72 73 2e 0a 0a 32 30 30 34 2d 30 32 2d 31 31 20 rs...2004-02-11
05a0: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 Dan Razzell.<re
05b0: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
05c0: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 ystems.ca>...* t
05d0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
05e0: 0a 09 2a 20 72 65 6d 6f 74 65 2e 74 63 6c 3a 09 ..* remote.tcl:.
05f0: 43 6f 6d 70 6c 65 74 65 20 70 72 69 76 61 74 65 Complete private
0600: 20 6b 65 79 20 6e 61 6d 65 20 63 68 61 6e 67 65 key name change
0610: 73 20 66 72 6f 6d 20 32 30 30 31 2d 30 36 2d 32 s from 2001-06-2
0620: 31 2e 0a 0a 32 30 30 34 2d 30 32 2d 30 33 20 20 1...2004-02-03
0630: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 Dan Razzell <res
0640: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
0650: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 4d 61 stems.ca>...* Ma
0660: 6b 65 66 69 6c 65 2e 69 6e 3a 09 52 65 6d 6f 76 kefile.in:.Remov
0670: 65 64 20 63 69 72 63 75 6c 61 72 20 64 65 70 65 ed circular depe
0680: 6e 64 65 6e 63 79 2e 0a 09 2a 20 74 6c 73 49 6e ndency...* tlsIn
0690: 74 2e 68 3a 09 4d 61 6b 65 20 66 75 6e 63 74 69 t.h:.Make functi
06a0: 6f 6e 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 on declarations
06b0: 65 78 70 6c 69 63 69 74 2e 0a 09 2a 20 74 6c 73 explicit...* tls
06c0: 2e 63 3a 09 46 69 78 20 74 79 70 65 20 6d 61 74 .c:.Fix type mat
06d0: 63 68 20 61 6e 64 20 75 6e 75 73 65 64 20 76 61 ch and unused va
06e0: 72 69 61 62 6c 65 20 77 61 72 6e 69 6e 67 73 2e riable warnings.
06f0: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 09 46 69 ..* tlsBIO.c:.Fi
0700: 78 20 74 79 70 65 20 6d 61 74 63 68 20 77 61 72 x type match war
0710: 6e 69 6e 67 2e 0a 0a 32 30 30 33 2d 31 32 2d 31 ning...2003-12-1
0720: 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 5 Dan Razzell.<
0730: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 research@starfis
0740: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a hsystems.ca>...*
0750: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e pkgIndex.tcl.in
0760: 3a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a :..* tls.htm:..*
0770: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
0780: 74 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 69 t: updated versi
0790: 6f 6e 20 74 6f 20 31 2e 35 2e 0a 0a 32 30 30 33 on to 1.5...2003
07a0: 2d 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a -10-07 Dan Razz
07b0: 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 ell.<research@st
07c0: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 arfishsystems.ca
07d0: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 >...* tests/ciph
07e0: 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 ers.test: update
07f0: 64 20 6c 69 73 74 20 6f 66 20 74 65 73 74 65 64 d list of tested
0800: 20 63 69 70 68 65 72 73 20 74 6f 20 63 6f 72 72 ciphers to corr
0810: 65 73 70 6f 6e 64 0a 09 2a 20 77 69 74 68 20 74 espond..* with t
0820: 68 6f 73 65 20 61 76 61 69 6c 61 62 6c 65 20 66 hose available f
0830: 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e 20 5b 52 65 rom OpenSSL. [Re
0840: 71 75 65 73 74 20 23 38 31 31 39 38 31 5d 0a 0a quest #811981]..
0850: 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 2003-10-07 Dan
0860: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 Razzell <researc
0870: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
0880: 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a s.ca>...* tls.c:
0890: 20 61 64 64 65 64 20 43 4f 4e 53 54 20 77 69 74 added CONST wit
08a0: 68 20 69 6e 74 65 6e 74 20 73 69 6d 69 6c 61 72 h intent similar
08b0: 20 74 6f 20 74 68 6f 73 65 20 66 72 6f 6d 20 32 to those from 2
08c0: 30 30 32 2d 30 32 2d 30 34 2e 0a 09 5b 52 65 71 002-02-04...[Req
08d0: 75 65 73 74 20 23 38 31 31 39 31 31 5d 0a 0a 32 uest #811911]..2
08e0: 30 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66 20 003-07-07 Jeff
08f0: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 Hobbs <jeffh@Ac
0900: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a tiveState.com>..
0910: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e .* tls.c (Tls_In
0920: 69 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c 73 it): added tls
0930: 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20 70 ::misc command p
0940: 72 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74 6c rovided by..* tl
0950: 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20 sX509.c:
0960: 20 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a 61 Wojciech Kocja
0970: 6e 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63 6a n (wojciech kocj
0980: 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74 73 an.org)..* tests
0990: 2f 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20 74 /keytest1.tcl: t
09a0: 6f 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c 6f o expose more lo
09b0: 77 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d 6d w-level SSL comm
09c0: 61 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b 65 ands..* tests/ke
09d0: 79 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30 30 ytest2.tcl:..200
09e0: 33 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61 7a 3-05-15 Dan Raz
09f0: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 zell.<research@s
0a00: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
0a10: 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a a> ...* tls.tcl:
0a20: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a ..* tlsInt.h:..*
0a30: 20 74 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 70 tls.c: add supp
0a40: 6f 72 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 20 ort for binding
0a50: 61 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 a password callb
0a60: 61 63 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b 65 ack to the socke
0a70: 74 2e 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f 63 t...Now each soc
0a80: 6b 65 74 20 63 61 6e 20 68 61 76 65 20 69 74 73 ket can have its
0a90: 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e 64 own command and
0aa0: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 password callba
0ab0: 63 6b 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 20 cks instead..of
0ac0: 62 65 69 6e 67 20 66 6f 72 63 65 64 20 74 6f 20 being forced to
0ad0: 68 61 76 65 20 61 6c 6c 20 70 61 73 73 77 6f 72 have all passwor
0ae0: 64 20 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 73 d management pas
0af0: 73 20 74 68 72 6f 75 67 68 20 61 20 63 6f 6d 6d s through a comm
0b00: 6f 6e 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 20 on..procedure.
0b10: 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 77 The common passw
0b20: 6f 72 64 20 70 72 6f 63 65 64 75 72 65 20 69 73 ord procedure is
0b30: 20 72 65 74 61 69 6e 65 64 20 66 6f 72 20 63 6f retained for co
0b40: 6d 70 61 74 69 62 69 6c 69 74 79 0a 09 62 75 74 mpatibility..but
0b50: 20 69 74 73 20 75 73 65 20 73 68 6f 75 6c 64 20 its use should
0b60: 62 65 20 44 45 50 52 45 43 41 54 45 44 2e 0a 09 be DEPRECATED...
0b70: 41 64 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d 6d Add version comm
0b80: 61 6e 64 20 74 6f 20 72 65 74 75 72 6e 20 4f 70 and to return Op
0b90: 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 74 enSSL version st
0ba0: 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 6e ring...Remove un
0bb0: 73 74 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 6e stable workaroun
0bc0: 64 73 20 6e 65 65 64 65 64 20 66 6f 72 20 76 65 ds needed for ve
0bd0: 72 69 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 65 rify in obsolete
0be0: 20 76 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f 70 versions of..Op
0bf0: 65 6e 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f enSSL...Fix memo
0c00: 72 79 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 73 ry leak. [Reques
0c10: 74 20 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 65 t #640660]..More
0c20: 20 63 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 6e casts to elimin
0c30: 61 74 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 72 ate compiler war
0c40: 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68 nings....* tls.h
0c50: 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 73 tm: document pas
0c60: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e 0a sword callback..
0c70: 09 43 6f 72 72 65 63 74 20 74 65 63 68 6e 69 63 .Correct technic
0c80: 61 6c 20 61 6e 64 20 74 79 70 6f 67 72 61 70 68 al and typograph
0c90: 69 63 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 52 ic errors....* R
0ca0: 45 41 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e 74 EADME.txt: ident
0cb0: 69 66 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 ify versions of
0cc0: 4f 70 65 6e 53 53 4c 20 77 68 69 63 68 20 66 69 OpenSSL which fi
0cd0: 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d 73 x known problems
0ce0: 2e 0a 09 47 65 6e 65 72 61 6c 20 77 61 72 6e 69 ...General warni
0cf0: 6e 67 20 6f 66 20 73 65 63 75 72 69 74 79 20 70 ng of security p
0d00: 72 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 72 roblems in older
0d10: 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 versions of Ope
0d20: 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d 30 nSSL...2002-02-0
0d30: 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 4 Jeff Hobbs <
0d40: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
0d50: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68 e.com>...* tls.h
0d60: 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 tm:..* tls.c: ad
0d70: 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 ded support for
0d80: 6c 6f 63 61 6c 20 63 65 72 74 69 66 69 63 61 74 local certificat
0d90: 65 20 73 74 61 74 75 73 20 63 68 65 63 6b 2c 20 e status check,
0da0: 61 73 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 75 as well..as retu
0db0: 72 6e 69 6e 67 20 74 68 65 20 23 20 6f 66 20 62 rning the # of b
0dc0: 69 74 73 20 69 6e 20 74 68 65 20 73 65 73 73 69 its in the sessi
0dd0: 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 23 on key. [Patch #
0de0: 35 30 35 36 39 38 5d 20 28 72 6f 73 65 29 0a 0a 505698] (rose)..
0df0: 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 .* tls.c:..* tls
0e00: 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e IO.c:..* tlsBIO.
0e10: 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 73 20 c: added CONSTs
0e20: 74 6f 20 73 61 74 69 73 66 79 20 54 63 6c 20 38 to satisfy Tcl 8
0e30: 2e 34 20 73 6f 75 72 63 65 73 2e 20 20 54 68 69 .4 sources. Thi
0e40: 73 20 6d 61 79 0a 09 67 69 76 65 20 77 61 72 6e s may..give warn
0e50: 69 6e 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 6c ings when compil
0e60: 65 64 20 61 67 61 69 6e 73 74 20 38 2e 33 2c 20 ed against 8.3,
0e70: 62 75 74 20 74 68 65 79 20 63 61 6e 20 62 65 20 but they can be
0e80: 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 73 ignored....* tes
0e90: 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e ts/simpleClient.
0ea0: 74 63 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 69 tcl:..* tests/si
0eb0: 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 mpleServer.tcl:
0ec0: 70 6f 69 6e 74 20 74 6f 20 75 70 64 61 74 65 64 point to updated
0ed0: 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 6b client/server k
0ee0: 65 79 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 65 ey files....* te
0ef0: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a sts/tlsIO.test:.
0f00: 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 .* tests/ciphers
0f10: 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 .test: updated t
0f20: 6f 20 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d 20 o load tls from
0f30: 62 75 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 4d build dir....* M
0f40: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f akefile.in: remo
0f50: 76 65 64 20 73 74 72 6e 63 61 73 65 63 6d 70 20 ved strncasecmp
0f60: 66 72 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 6a from default obj
0f70: 65 63 74 20 73 65 74 2e 20 20 54 68 69 73 0a 09 ect set. This..
0f80: 69 73 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 6f is only needed o
0f90: 6e 20 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 54 n the Mac, and T
0fa0: 63 6c 20 73 74 75 62 73 20 70 72 6f 76 69 64 65 cl stubs provide
0fb0: 73 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 s it....* config
0fc0: 75 72 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a 09 ure: regen'ed...
0fd0: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 * configure.in:
0fe0: 75 70 64 61 74 65 64 20 74 6f 20 31 2e 35 2e 30 updated to 1.5.0
0ff0: 20 66 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 73 for next releas
1000: 65 2e 0a 09 43 68 61 6e 67 65 64 20 64 65 66 61 e...Changed defa
1010: 75 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 61 ult openssl loca
1020: 74 69 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f 63 tion to /usr/loc
1030: 61 6c 2f 73 73 6c 20 28 74 68 69 73 20 69 73 20 al/ssl (this is
1040: 77 68 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 30 where..openssl 0
1050: 2e 39 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 62 .9.6c installs b
1060: 79 20 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 61 y default)...Cha
1070: 6e 67 65 64 20 74 6f 20 75 73 65 20 70 75 62 6c nged to use publ
1080: 69 63 20 54 63 6c 20 68 65 61 64 65 72 73 20 28 ic Tcl headers (
1090: 70 72 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 64 private not need
10a0: 65 64 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 31 ed)...2001-06-21
10b0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a Jeff Hobbs <j
10c0: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 effh@ActiveState
10d0: 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e .com>...TLS 1.4.
10e0: 31 20 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 6f 1 RELEASE...* co
10f0: 6e 66 69 67 75 72 65 3a 20 61 64 64 65 64 20 63 nfigure: added c
1100: 6f 6e 66 69 67 75 72 65 20 74 6f 20 43 56 53 0a onfigure to CVS.
1110: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a .* configure.in:
1120: 20 6d 6f 76 65 64 20 74 6f 20 70 61 74 63 68 6c moved to patchl
1130: 65 76 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d evel 1.4.1...* M
1140: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 72 akefile.in: corr
1150: 65 63 74 65 64 20 27 64 69 73 74 27 20 74 61 72 ected 'dist' tar
1160: 67 65 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 65 get...* tests/ce
1170: 72 74 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a rts/file.srl:..*
1180: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 2e tests/certs/ca.
1190: 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 pem:..* tests/ce
11a0: 72 74 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a rts/client.key:.
11b0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 .* tests/certs/c
11c0: 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 65 lient.pem:..* te
11d0: 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 sts/certs/client
11e0: 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .req:..* tests/c
11f0: 65 72 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 6d erts/privkey.pem
1200: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 :..* tests/certs
1210: 2f 73 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a 20 /server.key:..*
1220: 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 tests/certs/serv
1230: 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 er.pem:..* tests
1240: 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 72 65 /certs/server.re
1250: 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 q:..* tests/cert
1260: 73 2f 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 65 s/cacert.pem: re
1270: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 61 placed by new ca
1280: 2e 70 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 65 .pem..* tests/ce
1290: 72 74 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 65 rts/skey.pem: re
12a0: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 73 65 placed by new se
12b0: 72 76 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 74 rver.key..* test
12c0: 73 2f 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 6d s/certs/ckey.pem
12d0: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
12e0: 77 20 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a 20 w client.key..*
12f0: 74 65 73 74 73 2f 63 65 72 74 73 2f 52 45 41 44 tests/certs/READ
1300: 4d 45 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 20 ME.txt: new set
1310: 6f 66 20 74 65 73 74 20 63 65 72 74 69 66 69 63 of test certific
1320: 61 74 65 73 20 77 69 74 68 20 73 6f 6d 65 0a 09 ates with some..
1330: 52 45 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 74 README info on t
1340: 68 65 69 72 20 67 65 6e 65 72 61 74 69 6f 6e 2e heir generation.
1350: 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 ...* tests/ciphe
1360: 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 rs.test: updated
1370: 20 63 69 70 68 65 72 73 20 65 78 70 65 63 74 65 ciphers expecte
1380: 64 20 77 69 74 68 20 64 65 66 61 75 6c 74 0a 09 d with default..
1390: 6f 70 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a 0a openssl build...
13a0: 09 2a 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e 74 .* tests/tclIO.t
13b0: 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20 est: updated to
13c0: 75 73 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 6f use new names fo
13d0: 72 20 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a 32 r certs/keys...2
13e0: 30 30 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 20 001-03-14 Jeff
13f0: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 67 69 Hobbs <jeffh@gi
1400: 6d 6c 65 74 2e 61 63 74 69 76 65 73 74 61 74 65 mlet.activestate
1410: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 .com>...* tls.c
1420: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 20 (Tls_Init): add
1430: 64 6f 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 6e do/while for ran
1440: 64 6f 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 69 dom number initi
1450: 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 6f alization..to wo
1460: 72 6b 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 4f rk around some O
1470: 53 65 73 20 71 75 69 72 6b 73 2e 20 20 28 52 61 Ses quirks. (Ra
1480: 6c 70 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 65 lph.Billes@telte
1490: 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 30 ch.com.au)..2000
14a0: 2d 30 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 -09-07 Jeff Hob
14b0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
14c0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tics.com>...* tl
14d0: 73 49 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e 6e sIO.c (Tls_Chann
14e0: 65 6c 54 79 70 65 29 3a 20 73 65 74 20 74 79 70 elType): set typ
14f0: 65 4e 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 63 eName field of c
1500: 68 61 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a 09 hannel type to..
1510: 22 74 6c 73 22 20 28 74 68 69 73 20 67 6f 74 20 "tls" (this got
1520: 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f 20 lost in move to
1530: 64 79 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e 20 dynamic version
1540: 63 6f 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 63 compatability..c
1550: 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 2d hecking)...2000-
1560: 30 38 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62 08-23 Jeff Hobb
1570: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
1580: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 ics.com>...TLS 1
1590: 2e 34 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 20 .4 RELEASED...*
15a0: 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 73 Makefile.in (dis
15b0: 74 29 3a 20 63 72 65 61 74 65 20 64 69 73 74 20 t): create dist
15c0: 74 61 72 67 65 74 20 66 6f 72 20 61 72 63 68 69 target for archi
15d0: 76 65 20 64 69 73 74 72 69 62 75 74 69 6f 6e 73 ve distributions
15e0: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f ...* tests/tlsIO
15f0: 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e 31 .test (tlsIO-8.1
1600: 29 3a 20 61 64 64 65 64 20 61 20 64 65 6c 61 79 ): added a delay
1610: 20 6f 6e 20 74 68 65 20 61 63 63 65 70 74 20 63 on the accept c
1620: 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 68 lose..to make th
1630: 65 20 74 65 73 74 20 77 6f 72 6b 20 77 69 74 68 e test work with
1640: 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e 64 OpenSSL on Wind
1650: 6f 77 73 20 28 64 6f 65 73 6e 27 74 20 61 66 66 ows (doesn't aff
1660: 65 63 74 0a 09 6f 74 68 65 72 20 62 75 69 6c 64 ect..other build
1670: 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a s)....* tls.htm:
1680: 20 75 70 64 61 74 65 64 20 77 69 74 68 20 6e 6f updated with no
1690: 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 30 tes for 1.4...20
16a0: 30 30 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 48 00-08-21 Jeff H
16b0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
16c0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
16d0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
16e0: 3a 20 72 65 71 75 69 72 65 20 61 74 20 6c 65 61 : require at lea
16f0: 73 74 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 73 st tls1.4 in tes
1700: 74 20 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d 30 t suite...2000-0
1710: 38 2d 31 38 20 20 4a 65 66 66 20 48 6f 62 62 73 8-18 Jeff Hobbs
1720: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
1730: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e cs.com>...* tls.
1740: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 c (Tls_Init): ad
1750: 64 65 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e 44 ded call to RAND
1760: 5f 73 65 65 64 20 74 6f 20 73 65 65 64 20 74 68 _seed to seed th
1770: 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75 e SSL random..nu
1780: 6d 62 65 72 20 67 65 6e 65 72 61 74 6f 72 2e 20 mber generator.
1790: 20 57 69 74 68 6f 75 74 20 74 68 69 73 2c 20 4f Without this, O
17a0: 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 6f penSSL 0.9.5 cho
17b0: 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 0a kes, and in any.
17c0: 09 63 61 73 65 20 69 74 20 69 73 20 61 20 62 69 .case it is a bi
17d0: 67 20 73 65 63 75 72 69 74 79 20 68 6f 6c 65 20 g security hole
17e0: 74 6f 20 64 6f 20 77 69 74 68 6f 75 74 20 69 74 to do without it
17f0: 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e ....* configure.
1800: 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 64 in (OPENSSL): ad
1810: 64 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 20 ded NO_IDEA and
1820: 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65 73 20 62 NO_RC5 defines b
1830: 79 0a 09 64 65 66 61 75 6c 74 20 77 68 65 6e 20 y..default when
1840: 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 4f compiling with O
1850: 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49 penSSL....* tlsI
1860: 6e 74 2e 68 3a 20 61 64 64 65 64 20 65 72 72 2e nt.h: added err.
1870: 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 6c h include...* tl
1880: 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f sBIO.c:..* tlsIO
1890: 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 70 65 .c: corrected pe
18a0: 64 61 6e 74 69 63 20 63 61 73 74 20 65 72 72 6f dantic cast erro
18b0: 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 20 rs...2000-08-16
18c0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f Jeff Hobbs <ho
18d0: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f bbs@scriptics.co
18e0: 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 m>...* tests/cip
18f0: 68 65 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 6f hers.test: impro
1900: 76 65 64 20 61 62 69 6c 69 74 79 20 74 6f 20 63 ved ability to c
1910: 68 61 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e 74 hange constraint
1920: 0a 09 73 65 74 74 69 6e 67 20 66 6f 72 20 77 68 ..setting for wh
1930: 65 74 68 65 72 20 75 73 65 72 20 63 6f 6d 70 69 ether user compi
1940: 6c 65 64 20 61 67 61 69 6e 73 74 20 52 53 41 20 led against RSA
1950: 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 2e or OpenSSL libs.
1960: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
1970: 49 6e 69 74 29 3a 20 63 6f 72 72 65 63 74 65 64 Init): corrected
1980: 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e 20 interpretation
1990: 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 of version numbe
19a0: 72 0a 09 28 70 61 74 63 68 6c 65 76 65 6c 20 61 r..(patchlevel a
19b0: 6e 64 20 72 65 6c 65 61 73 65 2f 73 65 72 69 61 nd release/seria
19c0: 6c 20 77 65 72 65 20 73 77 61 70 70 65 64 29 2e l were swapped).
19d0: 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20 20 4a 65 ..2000-08-15 Je
19e0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
19f0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
1a00: 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 ..* README.txt:
1a10: 61 64 64 65 64 20 6e 6f 74 65 73 20 61 62 6f 75 added notes abou
1a20: 74 20 6e 65 65 64 20 74 6f 20 75 73 65 20 38 2e t need to use 8.
1a30: 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2.0+....* tlsInt
1a40: 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a .h:..* tls.c:..*
1a50: 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 tlsIO.c: correc
1a60: 74 65 64 20 73 74 72 75 63 74 75 72 65 20 69 6e ted structure in
1a70: 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f 20 itialization to
1a80: 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 69 work when..compi
1a90: 6c 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 20 ling with 8.2.
1aa0: 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 74 Now compiles wit
1ab0: 68 20 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 65 h 8.2+ and teste
1ac0: 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 20 d to work..with
1ad0: 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 63 8.2+ and dynamic
1ae0: 61 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 74 ally adjust to t
1af0: 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 63 he version of Tc
1b00: 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 64 l it was..loaded
1b10: 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c 6c into. TLS will
1b20: 20 66 61 69 6c 20 74 68 65 20 74 65 73 74 20 73 fail the test s
1b30: 75 69 74 65 20 77 69 74 68 20 54 63 6c 20 38 2e uite with Tcl 8.
1b40: 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 73 2-8.3.1....* tes
1b50: 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 65 ts/all.tcl: adde
1b60: 64 20 63 61 74 63 68 20 61 72 6f 75 6e 64 20 3a d catch around :
1b70: 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c :tcltest::normal
1b80: 69 7a 65 50 61 74 68 0a 09 62 65 63 61 75 73 65 izePath..because
1b90: 20 69 74 20 64 6f 65 73 6e 27 74 20 65 78 69 73 it doesn't exis
1ba0: 74 20 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 6c t in pre-8.3 tcl
1bb0: 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f test....* tests/
1bc0: 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c simpleClient.tcl
1bd0: 3a 20 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 : ..* tests/simp
1be0: 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 61 64 leServer.tcl: ad
1bf0: 64 65 64 20 73 69 6d 70 6c 65 20 63 6c 69 65 6e ded simple clien
1c00: 74 2f 73 65 72 76 65 72 20 74 65 73 74 20 73 63 t/server test sc
1c10: 72 69 70 74 73 0a 09 74 68 61 74 20 75 73 65 20 ripts..that use
1c20: 74 65 73 74 20 63 65 72 74 73 20 61 6e 64 20 63 test certs and c
1c30: 61 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73 74 72 an do simple str
1c40: 65 73 73 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 ess tests...2000
1c50: 2d 30 38 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 -08-14 Jeff Hob
1c60: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
1c70: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tics.com>...* tl
1c80: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f sInt.h:..* tlsIO
1c90: 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a .c:..* tlsBIO.c:
1ca0: 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61 6e 67 ..* tls.c: chang
1cb0: 65 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c ed around to onl
1cc0: 79 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 38 y working with 8
1cd0: 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 .2.0+ (8.3.2+..p
1ce0: 72 65 66 65 72 72 65 64 29 2c 20 77 69 74 68 20 referred), with
1cf0: 72 75 6e 74 69 6d 65 20 63 68 65 63 6b 73 20 66 runtime checks f
1d00: 6f 72 20 70 72 65 2d 20 61 6e 64 20 70 6f 73 74 or pre- and post
1d10: 2d 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a 09 2a -io-rewrite....*
1d20: 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 tls.c (Tls_Init
1d30: 29 3a 20 63 68 61 6e 67 65 64 20 69 74 20 74 6f ): changed it to
1d40: 20 72 65 71 75 69 72 65 20 38 2e 33 2e 32 20 77 require 8.3.2 w
1d50: 68 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74 75 62 hen Tcl_InitStub
1d60: 73 0a 09 77 61 73 20 63 61 6c 6c 65 64 20 62 65 s..was called be
1d70: 63 61 75 73 65 20 77 65 20 64 6f 6e 27 74 20 77 cause we don't w
1d80: 61 6e 74 20 70 65 6f 70 6c 65 20 75 73 69 6e 67 ant people using
1d90: 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a 09 6f TLS with the..o
1da0: 72 69 67 69 6e 61 6c 20 73 74 61 63 6b 65 64 20 riginal stacked
1db0: 63 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e channel implemen
1dc0: 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 tation...2000-07
1dd0: 2d 32 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -26 Jeff Hobbs
1de0: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
1df0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 s.com>...* merge
1e00: 64 20 61 6c 6c 20 63 68 61 6e 67 65 73 20 66 72 d all changes fr
1e10: 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 om tls-1-3-io-re
1e20: 77 72 69 74 65 20 62 61 63 6b 20 69 6e 74 6f 20 write back into
1e30: 6d 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09 2a 20 main branch...*
1e40: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 tests/tlsIO.test
1e50: 3a 20 75 70 64 61 74 65 64 20 63 6f 6d 6d 65 6e : updated commen
1e60: 74 73 2c 20 66 69 78 65 64 20 61 20 70 63 43 72 ts, fixed a pcCr
1e70: 61 73 68 20 63 61 73 65 20 74 68 61 74 0a 09 77 ash case that..w
1e80: 61 73 20 64 75 65 20 74 6f 20 64 65 62 75 67 20 as due to debug
1e90: 61 73 73 65 72 74 69 6f 6e 20 69 6e 20 57 69 6e assertion in Win
1ea0: 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c dows SSL....* tl
1eb0: 73 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a 43 6d s.c (ImportObjCm
1ec0: 64 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e 6e 65 d): removed unne
1ed0: 63 65 73 73 61 72 79 20 75 73 65 20 6f 66 20 27 cessary use of '
1ee0: 62 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c 73 5f bio' arg...(Tls_
1ef0: 49 6e 69 74 29 3a 20 63 68 65 63 6b 20 72 65 74 Init): check ret
1f00: 75 72 6e 20 76 61 6c 75 65 20 6f 66 20 53 53 4c urn value of SSL
1f10: 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e 20 20 _library_init.
1f20: 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 68 Also lots of..wh
1f30: 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 itespace cleanup
1f40: 20 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63 6c 20 (more like Tcl
1f50: 45 6e 67 20 73 74 79 6c 65 20 67 75 69 64 65 29 Eng style guide)
1f60: 2c 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 , but not all..c
1f70: 6f 64 65 20 77 61 73 20 63 6c 65 61 6e 65 64 20 ode was cleaned
1f80: 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 up....* tlsBIO.c
1f90: 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61 : minor whitespa
1fa0: 63 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 ce cleanup...* t
1fb0: 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 lsIO.c: minor wh
1fc0: 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 itespace cleanup
1fd0: 2e 0a 09 28 54 6c 73 49 6e 70 75 74 50 72 6f 63 ...(TlsInputProc
1fe0: 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 29 , TlsOutputProc)
1ff0: 3a 20 41 64 64 65 64 20 45 52 52 5f 63 6c 65 61 : Added ERR_clea
2000: 72 5f 65 72 72 6f 72 20 62 65 66 6f 72 65 20 63 r_error before c
2010: 61 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72 65 61 alls..to BIO_rea
2020: 64 20 6f 72 20 42 49 4f 5f 77 72 69 74 65 2c 20 d or BIO_write,
2030: 62 65 63 61 75 73 65 20 77 65 20 63 6f 75 6c 64 because we could
2040: 20 6f 74 68 65 72 77 69 73 65 20 65 6e 64 20 75 otherwise end u
2050: 70 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20 65 72 p..pulling an er
2060: 72 6f 72 20 6f 66 66 20 74 68 65 20 73 74 61 63 ror off the stac
2070: 6b 20 74 68 61 74 20 64 69 64 6e 27 74 20 62 65 k that didn't be
2080: 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41 6c 73 long to us. Als
2090: 6f 0a 09 63 6c 65 61 6e 75 70 20 75 70 20 65 78 o..cleanup up ex
20a0: 63 65 73 73 69 76 65 20 75 73 65 20 6f 66 20 67 cessive use of g
20b0: 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 otos...2000-07-2
20c0: 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 0 Jeff Hobbs <
20d0: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
20e0: 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 com>...* tests/t
20f0: 6c 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72 72 65 lsIO.test: corre
2100: 63 74 65 64 20 76 61 72 69 6f 75 73 20 74 65 73 cted various tes
2110: 74 73 20 74 6f 20 62 65 20 63 6f 72 72 65 63 74 ts to be correct
2120: 20 66 6f 72 20 54 4c 53 0a 09 73 74 61 63 6b 65 for TLS..stacke
2130: 64 20 63 68 61 6e 6e 65 6c 73 20 28 61 73 20 6f d channels (as o
2140: 70 70 6f 73 65 64 20 74 6f 20 74 68 65 20 73 74 pposed to the st
2150: 61 6e 64 61 72 64 20 73 6f 63 6b 65 74 73 20 74 andard sockets t
2160: 68 65 20 74 65 73 74 0a 09 73 75 69 74 65 20 77 he test..suite w
2170: 61 73 20 61 64 6f 70 74 65 64 20 66 72 6f 6d 29 as adopted from)
2180: 2e 20 20 4b 65 79 20 64 69 66 66 65 72 65 6e 63 . Key differenc
2190: 65 73 20 61 72 65 20 74 68 61 74 20 54 4c 53 20 es are that TLS
21a0: 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74 65 20 cannot..operate
21b0: 69 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73 20 77 in one process w
21c0: 69 74 68 6f 75 74 20 61 6c 6c 20 63 68 61 6e 6e ithout all chann
21d0: 65 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c els being non-bl
21e0: 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68 65 20 ocking, or..the
21f0: 68 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c 20 62 handshake will b
2200: 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64 73 68 lock, and handsh
2210: 61 6b 69 6e 67 20 6d 75 73 74 20 62 65 20 66 6f aking must be fo
2220: 72 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09 63 61 rced in some..ca
2230: 73 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61 6e 64 ses. Also, hand
2240: 73 68 61 6b 65 73 20 64 6f 6e 27 74 20 73 65 65 shakes don't see
2250: 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20 75 6e m to complete un
2260: 6c 65 73 73 20 74 68 65 20 63 6c 69 65 6e 74 0a less the client.
2270: 09 68 61 73 20 70 6c 61 63 65 64 20 61 74 20 6c .has placed at l
2280: 65 61 73 74 20 6f 6e 65 20 62 79 74 65 20 66 6f east one byte fo
2290: 72 20 74 68 65 20 73 65 72 76 65 72 20 74 6f 20 r the server to
22a0: 72 65 61 64 20 69 6e 20 74 68 65 20 63 68 61 6e read in the chan
22b0: 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 72 nel....* tests/r
22c0: 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72 72 65 emote.tcl: corre
22d0: 63 74 65 64 20 74 68 65 20 66 69 6e 64 69 6e 67 cted the finding
22e0: 20 6f 66 20 74 65 73 74 73 20 63 65 72 74 69 66 of tests certif
22f0: 69 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73 49 4f icates...* tlsIO
2300: 2e 63 20 28 54 6c 73 43 6c 6f 73 65 50 72 6f 63 .c (TlsCloseProc
2310: 29 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c 65 74 ): removed delet
2320: 69 6e 67 20 6f 66 20 74 69 6d 65 72 20 68 61 6e ing of timer han
2330: 64 6c 65 72 20 61 73 0a 09 74 68 61 74 20 69 73 dler as..that is
2340: 20 68 61 6e 64 6c 65 64 20 62 79 20 54 6c 73 5f handled by Tls_
2350: 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 Clean....* tls.t
2360: 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65 70 74 cl (tls::_accept
2370: 29 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 65 ): corrected the
2380: 20 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63 65 70 internal _accep
2390: 74 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20 63 61 t to..trickle ca
23a0: 6c 6c 62 61 63 6b 20 65 72 72 6f 72 73 20 74 6f llback errors to
23b0: 20 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a 20 4d the user....* M
23c0: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 akefile.in: made
23d0: 20 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62 69 6e the install-bin
23e0: 61 72 69 65 73 20 74 61 72 67 65 74 20 72 65 67 aries target reg
23f0: 65 6e 65 72 61 74 65 20 74 68 65 0a 09 70 6b 67 enerate the..pkg
2400: 49 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72 65 63 Index.tcl correc
2410: 74 6c 79 2e 20 20 54 68 65 20 74 65 73 74 20 74 tly. The test t
2420: 61 72 67 65 74 20 70 72 6f 62 61 62 6c 79 20 73 arget probably s
2430: 68 6f 75 6c 64 6e 27 74 20 73 63 72 65 77 0a 09 houldn't screw..
2440: 69 74 20 75 70 2c 20 62 75 74 20 74 68 69 73 20 it up, but this
2450: 69 73 20 74 6f 20 62 65 20 6f 6e 20 74 68 65 20 is to be on the
2460: 73 61 66 65 20 73 69 64 65 2e 0a 0a 32 30 30 30 safe side...2000
2470: 2d 30 37 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 -07-17 Jeff Hob
2480: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
2490: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b tics.com>...* pk
24a0: 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 gIndex.tcl.in:..
24b0: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 * configure.in:
24c0: 75 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 updated version
24d0: 74 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30 37 2d to 1.4..2000-07-
24e0: 31 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 13 Jeff Hobbs
24f0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 <hobbs@scriptics
2500: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f .com>...* tests/
2510: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e 61 62 tlsIO.test: enab
2520: 6c 65 64 20 74 65 73 74 73 20 32 2e 31 30 2c 20 led tests 2.10,
2530: 37 2e 5b 31 32 34 35 5d 20 28 74 68 65 72 65 20 7.[1245] (there
2540: 69 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69 63 68 is no 3),..which
2550: 20 6e 6f 77 20 70 61 73 73 2e 20 20 41 64 64 65 now pass. Adde
2560: 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 d some comments
2570: 74 6f 20 6f 74 68 65 72 20 66 61 69 6c 69 6e 67 to other failing
2580: 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 37 tests...2000-07
2590: 2d 31 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -11 Jeff Hobbs
25a0: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
25b0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f s.com>...* tlsIO
25c0: 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 6c 6c 20 .c: changed all
25d0: 74 68 65 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 the channel proc
25e0: 73 20 74 6f 20 73 74 61 72 74 20 77 69 74 68 20 s to start with
25f0: 54 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74 65 72 Tls* for..better
2600: 20 70 61 72 69 74 79 20 77 68 65 6e 20 63 6f 6d parity when com
2610: 70 61 72 69 6e 67 20 77 69 74 68 20 54 72 61 6e paring with Tran
2620: 73 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20 70 72 sform channel pr
2630: 6f 63 73 2e 0a 09 52 65 77 72 6f 74 65 20 54 6c ocs...Rewrote Tl
2640: 73 57 61 74 63 68 50 72 6f 63 2c 20 61 64 64 65 sWatchProc, adde
2650: 64 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f 63 20 d TlsNotifyProc
2660: 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 according to the
2670: 20 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20 64 65 new..channel de
2680: 73 69 67 6e 2c 20 77 68 69 63 68 20 61 6c 73 6f sign, which also
2690: 20 6c 65 61 76 65 73 20 54 6c 73 43 68 61 6e 6e leaves TlsChann
26a0: 65 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73 65 64 elHandler unused
26b0: 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 ....* tlsBIO.c (
26c0: 42 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e 67 65 BioCtrl): change
26d0: 64 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 d BIO_CTRL_FLUSH
26e0: 20 63 61 73 65 20 74 6f 20 75 73 65 0a 09 54 63 case to use..Tc
26f0: 6c 5f 57 72 69 74 65 52 61 77 20 69 6e 73 74 65 l_WriteRaw inste
2700: 61 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73 68 20 ad of Tcl_Flush
2710: 28 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e 20 63 (to operate on c
2720: 6f 72 72 65 63 74 20 63 68 61 6e 6e 65 6c 0a 09 orrect channel..
2730: 69 6e 20 74 68 65 20 73 74 61 63 6b 20 69 6e 73 in the stack ins
2740: 74 65 61 64 20 6f 66 20 73 74 61 72 74 69 6e 67 tead of starting
2750: 20 61 74 20 74 68 65 20 74 6f 70 20 61 67 61 69 at the top agai
2760: 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74 68 65 n). Would..othe
2770: 72 77 69 73 65 20 63 61 75 73 65 20 61 20 72 65 rwise cause a re
2780: 63 75 72 73 69 76 65 20 73 74 61 63 6b 20 62 6f cursive stack bo
2790: 6d 62 20 77 68 65 6e 20 69 6d 70 6c 69 63 69 74 mb when implicit
27a0: 20 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09 74 6f handshaking..to
27b0: 6f 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a 20 74 ok effect....* t
27c0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
27d0: 20 72 65 6d 6f 76 65 64 20 63 68 61 6e 67 65 73 removed changes
27e0: 20 6d 61 64 65 20 74 6f 20 74 65 73 74 20 73 75 made to test su
27f0: 69 74 65 20 28 61 6c 6c 20 74 65 73 74 73 0a 09 ite (all tests..
2800: 74 68 61 74 20 72 61 6e 20 62 65 66 6f 72 65 20 that ran before
2810: 6e 6f 77 20 70 61 73 73 20 63 6f 72 72 65 63 74 now pass correct
2820: 6c 79 29 2c 20 61 6e 64 20 63 68 61 6e 67 65 64 ly), and changed
2830: 20 73 6f 6d 65 20 61 63 63 65 70 74 20 70 72 6f some accept pro
2840: 63 0a 09 61 72 67 73 20 74 6f 20 72 65 66 6c 65 c..args to refle
2850: 63 74 20 74 68 61 74 20 61 20 73 6f 63 6b 20 69 ct that a sock i
2860: 73 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20 61 20 s an arg, not a
2870: 66 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 file...2000-07-1
2880: 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 0 Jeff Hobbs <
2890: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e hobbs@scriptics.
28a0: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e com>...* tlsBIO.
28b0: 63 20 28 42 69 6f 57 72 69 74 65 2c 20 42 69 6f c (BioWrite, Bio
28c0: 52 65 61 64 29 3a 20 63 68 61 6e 67 65 64 20 54 Read): changed T
28d0: 63 6c 5f 52 65 61 64 2f 57 72 69 74 65 20 74 6f cl_Read/Write to
28e0: 0a 09 54 63 6c 5f 52 65 61 64 52 61 77 2f 54 63 ..Tcl_ReadRaw/Tc
28f0: 6c 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a 20 74 lWriteRaw....* t
2900: 6c 73 2e 63 3a 20 61 64 64 65 64 20 75 73 65 20 ls.c: added use
2910: 6f 66 20 54 63 6c 5f 47 65 74 54 6f 70 43 68 61 of Tcl_GetTopCha
2920: 6e 6e 65 6c 20 61 66 74 65 72 20 54 63 6c 5f 47 nnel after Tcl_G
2930: 65 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 etChannel and..g
2940: 6f 74 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 ot return value
2950: 66 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b 43 68 from Tcl_StackCh
2960: 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 annel....* tests
2970: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61 64 64 /tlsIO.test: add
2980: 65 64 20 73 6f 6d 65 20 68 61 6e 64 73 68 61 6b ed some handshak
2990: 69 6e 67 20 74 68 61 74 20 73 68 6f 75 6c 64 6e ing that shouldn
29a0: 27 74 20 62 65 0a 09 6e 65 63 65 73 73 61 72 79 't be..necessary
29b0: 2c 20 62 75 74 20 77 65 20 63 72 61 73 68 20 6f , but we crash o
29c0: 74 68 65 72 77 69 73 65 20 28 6e 65 65 64 73 20 therwise (needs
29d0: 6d 6f 72 65 20 74 65 73 74 69 6e 67 29 2e 0a 0a more testing)...
29e0: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64 64 65 .* tlsIO.c: adde
29f0: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 22 63 d support for "c
2a00: 6f 72 72 65 63 74 65 64 22 20 73 74 61 63 6b 65 orrected" stacke
2a10: 64 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c d channels. All
2a20: 0a 09 74 68 65 20 61 62 6f 76 65 20 63 68 61 6e ..the above chan
2a30: 6e 65 6c 73 20 61 72 65 20 69 6e 20 54 43 4c 5f nels are in TCL_
2a40: 43 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f CHANNEL_VERSION_
2a50: 32 20 23 69 66 64 65 66 73 2e 0a 0a 32 30 30 30 2 #ifdefs...2000
2a60: 2d 30 36 2d 30 35 20 20 53 63 6f 74 74 20 53 74 -06-05 Scott St
2a70: 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 anton <stanton@
2a80: 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 ajubasolutions.c
2a90: 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 om>...* Makefile
2aa0: 2e 69 6e 3a 20 46 69 78 65 64 20 62 72 6f 6b 65 .in: Fixed broke
2ab0: 6e 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 0a n test target...
2ac0: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 0a 09 2a .* tlsInt.h: ..*
2ad0: 20 74 6c 73 2e 63 3a 20 43 6c 65 61 6e 65 64 20 tls.c: Cleaned
2ae0: 75 70 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 up declarations
2af0: 6f 66 20 54 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 of Tls_Clean to
2b00: 61 76 6f 69 64 20 65 72 72 6f 72 73 20 6f 6e 0a avoid errors on.
2b10: 09 57 69 6e 64 6f 77 73 20 28 6c 69 6e 74 29 2e .Windows (lint).
2b20: 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 42 72 ..2000-06-05 Br
2b30: 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 ent Welch <welch
2b40: 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e @ajubasolutions.
2b50: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 com>...* tls.c,
2b60: 74 6c 73 49 4f 2e 63 3a 20 20 53 70 6c 69 74 20 tlsIO.c: Split
2b70: 54 6c 73 5f 46 72 65 65 20 69 6e 74 6f 20 54 6c Tls_Free into Tl
2b80: 73 5f 43 6c 65 61 6e 2c 20 77 68 69 63 68 20 64 s_Clean, which d
2b90: 6f 65 73 0a 09 74 68 65 20 53 53 4c 20 63 6c 65 oes..the SSL cle
2ba0: 61 6e 75 70 2c 20 61 6e 64 20 74 68 65 20 54 63 anup, and the Tc
2bb0: 6c 5f 46 72 65 65 20 63 61 6c 6c 2e 20 20 49 74 l_Free call. It
2bc0: 20 69 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f is important to
2bd0: 20 73 68 75 74 64 6f 77 6e 0a 09 74 68 65 20 53 shutdown..the S
2be0: 53 4c 20 73 74 61 74 65 20 22 73 79 6e 63 68 72 SL state "synchr
2bf0: 6f 6e 6f 75 73 6c 79 22 20 64 75 72 69 6e 67 20 onously" during
2c00: 61 20 73 74 61 63 6b 65 64 20 66 6c 75 73 68 2e a stacked flush.
2c10: 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63 ..2000-06-01 Sc
2c20: 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 ott Stanton <st
2c30: 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 anton@ajubasolut
2c40: 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c ions.com>...* tl
2c50: 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 64 20 sIO.c: Restored
2c60: 63 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 call to Tcl_Noti
2c70: 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 fyChannel from C
2c80: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 74 hannelHandler..t
2c90: 6f 20 65 6e 73 75 72 65 20 74 68 61 74 20 65 76 o ensure that ev
2ca0: 65 6e 74 73 20 70 72 6f 70 61 67 61 74 65 20 66 ents propagate f
2cb0: 72 6f 6d 20 74 68 65 20 6c 6f 77 65 72 20 64 72 rom the lower dr
2cc0: 69 76 65 72 2e 20 20 54 68 69 73 20 6d 61 79 0a iver. This may.
2cd0: 09 72 65 73 75 6c 74 20 69 6e 20 61 6e 20 69 6e .result in an in
2ce0: 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 6e 20 73 finite loop in s
2cf0: 6f 6d 65 20 63 61 73 65 73 2c 20 73 6f 20 74 68 ome cases, so th
2d00: 69 73 20 69 73 20 6e 6f 74 20 61 20 74 6f 74 61 is is not a tota
2d10: 6c 0a 09 66 69 78 2e 20 20 54 68 69 73 20 6d 61 l..fix. This ma
2d20: 79 20 62 65 20 73 75 66 66 69 63 69 65 6e 74 20 y be sufficient
2d30: 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 65 76 65 72 for now, however
2d40: 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 . [Bug: 5623]..2
2d50: 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 000-06-01 Scott
2d60: 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 Stanton <stant
2d70: 6f 6e 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d on@scriptics.com
2d80: 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 >...* tlsIO.c: R
2d90: 65 73 74 6f 72 65 20 74 68 65 20 70 72 65 76 69 estore the previ
2da0: 6f 75 73 20 76 65 72 73 69 6f 6e 2e 20 20 46 69 ous version. Fi
2db0: 78 65 64 20 74 68 65 20 43 6c 6f 73 65 50 72 6f xed the ClosePro
2dc0: 63 20 73 6f 0a 09 69 74 20 75 6e 72 65 67 69 73 c so..it unregis
2dd0: 74 65 72 73 20 74 68 65 20 63 68 61 6e 6e 65 6c ters the channel
2de0: 20 68 61 6e 64 6c 65 72 20 6f 6e 20 74 68 65 20 handler on the
2df0: 73 75 70 65 72 63 65 64 65 64 20 63 68 61 6e 6e superceded chann
2e00: 65 6c 0a 09 69 6e 73 74 65 61 64 20 6f 66 20 74 el..instead of t
2e10: 68 65 20 75 70 70 65 72 20 63 68 61 6e 6e 65 6c he upper channel
2e20: 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 65 64 20 74 . Also removed t
2e30: 68 65 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f he call to..Tcl_
2e40: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 69 6e NotifyChannel in
2e50: 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 the ChannelHand
2e60: 6c 65 72 20 62 65 63 61 75 73 65 20 74 68 69 73 ler because this
2e70: 20 77 69 6c 6c 20 72 65 73 75 6c 74 0a 09 69 6e will result..in
2e80: 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f an infinite loo
2e90: 70 20 69 66 20 64 61 74 61 20 69 73 20 65 76 65 p if data is eve
2ea0: 72 20 62 75 66 66 65 72 65 64 20 69 6e 20 74 68 r buffered in th
2eb0: 65 20 42 49 4f 0a 09 73 74 72 75 63 74 75 72 65 e BIO..structure
2ec0: 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 . [Bug: 5623]..2
2ed0: 30 30 30 2d 30 35 2d 33 31 20 20 42 72 65 6e 74 000-05-31 Brent
2ee0: 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 73 63 Welch <welch@sc
2ef0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
2f00: 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20 74 tls.c: Change t
2f10: 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 he ChannelHandle
2f20: 72 20 74 6f 20 62 65 20 72 65 67 69 73 74 65 72 r to be register
2f30: 65 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a 09 ed on the main..
2f40: 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73 65 channel as oppse
2f50: 64 20 74 6f 20 74 68 65 20 22 70 61 72 65 6e 74 d to the "parent
2f60: 22 2c 20 6f 72 20 73 75 70 65 72 63 65 65 64 65 ", or superceede
2f70: 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68 69 d, channel. Thi
2f80: 73 0a 09 69 73 20 62 65 63 61 75 73 65 20 74 68 s..is because th
2f90: 65 20 73 6f 63 6b 65 74 20 64 72 69 76 65 72 20 e socket driver
2fa0: 6e 6f 74 69 66 69 65 73 20 74 68 65 20 6d 61 69 notifies the mai
2fb0: 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 n channel, and t
2fc0: 68 65 72 65 0a 09 61 72 65 20 74 69 6d 65 73 20 here..are times
2fd0: 77 69 74 68 20 74 68 65 20 6d 61 69 6e 20 63 68 with the main ch
2fe0: 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73 65 annel gets close
2ff0: 64 2c 20 62 75 74 20 74 68 65 20 73 75 70 65 72 d, but the super
3000: 63 65 64 65 64 0a 09 6f 6e 65 20 69 73 20 6e 6f ceded..one is no
3010: 74 20 79 65 74 20 63 6c 6f 73 65 64 2e 20 20 49 t yet closed. I
3020: 66 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 f the channel ha
3030: 6e 64 6c 65 72 20 67 65 74 73 20 74 72 69 67 67 ndler gets trigg
3040: 65 72 65 64 20 69 6e 0a 09 74 68 69 73 20 68 61 ered in..this ha
3050: 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65 20 69 74 lf-open state it
3060: 20 69 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 is associated w
3070: 69 74 68 20 74 68 65 20 73 75 70 65 72 63 65 65 ith the supercee
3080: 64 65 64 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 62 ded..channedl, b
3090: 75 74 20 75 73 65 73 20 69 74 73 20 70 72 69 76 ut uses its priv
30a0: 61 74 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 ate pointer to t
30b0: 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c he main channel,
30c0: 20 77 68 69 63 68 0a 09 69 73 20 6d 6f 73 74 6c which..is mostl
30d0: 79 20 64 65 73 74 72 6f 79 65 64 2e 20 20 45 6c y destroyed. El
30e0: 69 6d 69 6e 61 74 65 64 20 74 68 65 20 72 65 64 iminated the red
30f0: 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 undant call to..
3100: 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 Tcl_NotifyChanne
3110: 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74 63 68 50 l from TlsWatchP
3120: 72 6f 63 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d roc. [Bug: 5623]
3130: 0a .