Artifact
078e9de9e862fccfa996a08e21f992d5f21a8836:
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 4d 61 orge.net>...* Ma
0040: 6b 65 66 69 6c 65 2e 69 6e 3a 20 20 20 20 20 20 kefile.in:
0050: 46 69 78 65 64 20 74 6f 20 62 75 69 6c 64 20 6f Fixed to build o
0060: 6e 20 77 69 6e 33 32 20 75 73 69 6e 67 20 6d 73 n win32 using ms
0070: 79 73 20 77 69 74 68 0a 09 2a 20 61 63 6c 6f 63 ys with..* acloc
0080: 61 6c 2e 6d 34 3a 20 20 20 20 20 20 20 4d 53 56 al.m4: MSV
0090: 43 2e 20 41 6c 73 6f 20 66 69 78 65 64 20 74 68 C. Also fixed th
00a0: 65 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 09 e test target...
00b0: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a * configure.in:.
00c0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 .* configure:
00d0: 20 20 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 Regenerated
00e0: 2e 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 74 ...* tclconfig/t
00f0: 63 6c 2e 6d 34 3a 20 55 70 64 61 74 65 64 20 74 cl.m4: Updated t
0100: 6f 20 6d 6f 73 74 20 72 65 63 65 6e 74 20 76 65 o most recent ve
0110: 72 73 69 6f 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d rsion...2004-03-
0120: 32 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 23 Dan Razzell
0130: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
0140: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 09 2a shsystems.ca>..*
0150: 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 tls.c:..* tlsBI
0160: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a O.c:..* tlsIO.c:
0170: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 46 69 ..* tlsInt.h:.Fi
0180: 78 65 64 20 74 79 70 65 20 6d 61 74 63 68 20 77 xed type match w
0190: 61 72 6e 69 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 arnings...2004-0
01a0: 33 2d 31 39 20 20 4a 65 66 66 20 48 6f 62 62 73 3-19 Jeff Hobbs
01b0: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 <jeffh@ActiveS
01c0: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tate.com>...* tl
01d0: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
01e0: 20 20 72 65 70 6c 61 63 65 64 20 6f 6c 64 65 72 replaced older
01f0: 20 54 45 41 20 63 6f 6e 66 69 67 20 77 69 74 68 TEA config with
0200: 20 6e 65 77 65 72 0a 09 2a 20 63 6f 6e 66 69 67 newer..* config
0210: 2f 2a 20 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a /* (removed):..*
0220: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e pkgIndex.tcl.in
0230: 2c 20 73 74 72 6e 63 61 73 65 63 6d 70 2e 63 20 , strncasecmp.c
0240: 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 (removed):..* Ma
0250: 6b 65 66 69 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 kefile.in, acloc
0260: 61 6c 2e 6d 34 2c 20 63 6f 6e 66 69 67 75 72 65 al.m4, configure
0270: 2c 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a , configure.in:.
0280: 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 52 45 41 .* tclconfig/REA
0290: 44 4d 45 2e 74 78 74 2c 20 74 63 6c 63 6f 6e 66 DME.txt, tclconf
02a0: 69 67 2f 69 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 ig/install-sh, t
02b0: 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a clconfig/tcl.m4:
02c0: 0a 0a 32 30 30 34 2d 30 33 2d 31 37 20 20 44 61 ..2004-03-17 Da
02d0: 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 n Razzell <resea
02e0: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 rch@starfishsyst
02f0: 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 ems.ca>...* tlsX
0300: 35 30 39 2e 63 3a 09 41 64 64 20 73 75 70 70 6f 509.c:.Add suppo
0310: 72 74 20 66 6f 72 20 6c 6f 6e 67 20 73 65 72 69 rt for long seri
0320: 61 6c 20 6e 75 6d 62 65 72 73 20 70 65 72 20 52 al numbers per R
0330: 46 43 20 33 32 38 30 2e 0a 09 09 09 46 6f 72 6d FC 3280.....Form
0340: 61 74 20 69 73 20 6e 6f 77 20 68 65 78 61 64 65 at is now hexade
0350: 63 69 6d 61 6c 2e 20 0a 09 09 09 5b 52 65 71 75 cimal. ....[Requ
0360: 65 73 74 20 23 39 31 35 33 31 33 5d 0a 09 09 09 est #915313]....
0370: 43 6f 72 72 65 63 74 6c 79 20 63 6f 6e 76 65 72 Correctly conver
0380: 74 20 63 65 72 74 69 66 69 63 61 74 65 20 44 69 t certificate Di
0390: 73 74 69 6e 67 75 69 73 68 65 64 20 4e 61 6d 65 stinguished Name
03a0: 73 0a 09 09 09 74 6f 20 54 63 6c 20 73 74 72 69 s....to Tcl stri
03b0: 6e 67 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f ng representatio
03c0: 6e 2e 20 20 45 6c 69 6d 69 6e 61 74 65 73 20 75 n. Eliminates u
03d0: 73 65 20 6f 66 0a 09 09 09 64 65 70 72 65 63 61 se of....depreca
03e0: 74 65 64 20 4f 70 65 6e 53 53 4c 20 66 75 6e 63 ted OpenSSL func
03f0: 74 69 6f 6e 2e 20 20 46 6f 72 6d 61 74 20 69 73 tion. Format is
0400: 20 6e 6f 77 20 63 6f 6d 70 6c 69 61 6e 74 0a 09 now compliant..
0410: 09 09 77 69 74 68 20 52 46 43 20 32 32 35 33 2e ..with RFC 2253.
0420: 20 20 5b 52 65 71 75 65 73 74 20 23 39 31 35 33 [Request #9153
0430: 31 35 5d 0a 0a 32 30 30 34 2d 30 32 2d 31 37 20 15]..2004-02-17
0440: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 Dan Razzell <re
0450: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
0460: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 54 4c 53 ystems.ca>...TLS
0470: 20 31 2e 35 2e 30 20 52 45 4c 45 41 53 45 0a 0a 1.5.0 RELEASE..
0480: 32 30 30 34 2d 30 32 2d 31 32 20 20 44 61 6e 20 2004-02-12 Dan
0490: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 Razzell.<researc
04a0: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
04b0: 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a s.ca>...* tls.c:
04c0: 09 41 6c 6c 6f 77 20 76 65 72 69 66 79 20 63 61 .Allow verify ca
04d0: 6c 6c 62 61 63 6b 20 74 6f 20 72 65 74 75 72 6e llback to return
04e0: 20 65 6d 70 74 79 20 72 65 73 75 6c 74 2e 0a 09 empty result...
04f0: 2a 20 74 6c 73 2e 68 74 6d 3a 09 44 6f 63 75 6d * tls.htm:.Docum
0500: 65 6e 74 20 63 61 6c 6c 62 61 63 6b 20 62 65 68 ent callback beh
0510: 61 76 69 6f 72 73 2e 0a 0a 32 30 30 34 2d 30 32 aviors...2004-02
0520: 2d 31 31 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c -11 Dan Razzell
0530: 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 .<research@starf
0540: 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a ishsystems.ca>..
0550: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
0560: 65 73 74 3a 0a 09 2a 20 72 65 6d 6f 74 65 2e 74 est:..* remote.t
0570: 63 6c 3a 09 43 6f 6d 70 6c 65 74 65 20 70 72 69 cl:.Complete pri
0580: 76 61 74 65 20 6b 65 79 20 6e 61 6d 65 20 63 68 vate key name ch
0590: 61 6e 67 65 73 20 66 72 6f 6d 20 32 30 30 31 2d anges from 2001-
05a0: 30 36 2d 32 31 2e 0a 0a 32 30 30 34 2d 30 32 2d 06-21...2004-02-
05b0: 30 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 03 Dan Razzell
05c0: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
05d0: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 shsystems.ca>...
05e0: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 09 52 * Makefile.in:.R
05f0: 65 6d 6f 76 65 64 20 63 69 72 63 75 6c 61 72 20 emoved circular
0600: 64 65 70 65 6e 64 65 6e 63 79 2e 0a 09 2a 20 74 dependency...* t
0610: 6c 73 49 6e 74 2e 68 3a 09 4d 61 6b 65 20 66 75 lsInt.h:.Make fu
0620: 6e 63 74 69 6f 6e 20 64 65 63 6c 61 72 61 74 69 nction declarati
0630: 6f 6e 73 20 65 78 70 6c 69 63 69 74 2e 0a 09 2a ons explicit...*
0640: 20 74 6c 73 2e 63 3a 09 46 69 78 20 74 79 70 65 tls.c:.Fix type
0650: 20 6d 61 74 63 68 20 61 6e 64 20 75 6e 75 73 65 match and unuse
0660: 64 20 76 61 72 69 61 62 6c 65 20 77 61 72 6e 69 d variable warni
0670: 6e 67 73 2e 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 ngs...* tlsBIO.c
0680: 3a 09 46 69 78 20 74 79 70 65 20 6d 61 74 63 68 :.Fix type match
0690: 20 77 61 72 6e 69 6e 67 2e 0a 0a 32 30 30 33 2d warning...2003-
06a0: 31 32 2d 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 12-15 Dan Razze
06b0: 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 ll.<research@sta
06c0: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e rfishsystems.ca>
06d0: 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 ...* pkgIndex.tc
06e0: 6c 2e 69 6e 3a 0a 09 2a 20 74 6c 73 2e 68 74 6d l.in:..* tls.htm
06f0: 3a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f :..* tests/tlsIO
0700: 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 76 .test: updated v
0710: 65 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 0a 0a ersion to 1.5...
0720: 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 2003-10-07 Dan
0730: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 Razzell.<researc
0740: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d h@starfishsystem
0750: 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f s.ca>...* tests/
0760: 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 ciphers.test: up
0770: 64 61 74 65 64 20 6c 69 73 74 20 6f 66 20 74 65 dated list of te
0780: 73 74 65 64 20 63 69 70 68 65 72 73 20 74 6f 20 sted ciphers to
0790: 63 6f 72 72 65 73 70 6f 6e 64 0a 09 2a 20 77 69 correspond..* wi
07a0: 74 68 20 74 68 6f 73 65 20 61 76 61 69 6c 61 62 th those availab
07b0: 6c 65 20 66 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e le from OpenSSL.
07c0: 20 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 38 [Request #81198
07d0: 31 5d 0a 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 1]..2003-10-07
07e0: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 Dan Razzell <res
07f0: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
0800: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c stems.ca>...* tl
0810: 73 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 s.c: added CONST
0820: 20 77 69 74 68 20 69 6e 74 65 6e 74 20 73 69 6d with intent sim
0830: 69 6c 61 72 20 74 6f 20 74 68 6f 73 65 20 66 72 ilar to those fr
0840: 6f 6d 20 32 30 30 32 2d 30 32 2d 30 34 2e 0a 09 om 2002-02-04...
0850: 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 31 31 [Request #811911
0860: 5d 0a 0a 32 30 30 33 2d 30 37 2d 30 37 20 20 4a ]..2003-07-07 J
0870: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
0880: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f h@ActiveState.co
0890: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c m>...* tls.c (Tl
08a0: 73 5f 49 6e 69 74 29 3a 20 20 20 61 64 64 65 64 s_Init): added
08b0: 20 74 6c 73 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 tls::misc comma
08c0: 6e 64 20 70 72 6f 76 69 64 65 64 20 62 79 0a 09 nd provided by..
08d0: 2a 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 * tlsX509.c:
08e0: 20 20 20 20 20 20 57 6f 6a 63 69 65 63 68 20 4b Wojciech K
08f0: 6f 63 6a 61 6e 20 28 77 6f 6a 63 69 65 63 68 20 ocjan (wojciech
0900: 6b 6f 63 6a 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 kocjan.org)..* t
0910: 65 73 74 73 2f 6b 65 79 74 65 73 74 31 2e 74 63 ests/keytest1.tc
0920: 6c 3a 20 74 6f 20 65 78 70 6f 73 65 20 6d 6f 72 l: to expose mor
0930: 65 20 6c 6f 77 2d 6c 65 76 65 6c 20 53 53 4c 20 e low-level SSL
0940: 63 6f 6d 6d 61 6e 64 73 0a 09 2a 20 74 65 73 74 commands..* test
0950: 73 2f 6b 65 79 74 65 73 74 32 2e 74 63 6c 3a 0a s/keytest2.tcl:.
0960: 0a 32 30 30 33 2d 30 35 2d 31 35 20 20 44 61 6e .2003-05-15 Dan
0970: 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 Razzell.<resear
0980: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 ch@starfishsyste
0990: 6d 73 2e 63 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e ms.ca> ...* tls.
09a0: 74 63 6c 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 tcl:..* tlsInt.h
09b0: 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 20 :..* tls.c: add
09c0: 73 75 70 70 6f 72 74 20 66 6f 72 20 62 69 6e 64 support for bind
09d0: 69 6e 67 20 61 20 70 61 73 73 77 6f 72 64 20 63 ing a password c
09e0: 61 6c 6c 62 61 63 6b 20 74 6f 20 74 68 65 20 73 allback to the s
09f0: 6f 63 6b 65 74 2e 0a 09 4e 6f 77 20 65 61 63 68 ocket...Now each
0a00: 20 73 6f 63 6b 65 74 20 63 61 6e 20 68 61 76 65 socket can have
0a10: 20 69 74 73 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 its own command
0a20: 20 61 6e 64 20 70 61 73 73 77 6f 72 64 20 63 61 and password ca
0a30: 6c 6c 62 61 63 6b 73 20 69 6e 73 74 65 61 64 0a llbacks instead.
0a40: 09 6f 66 20 62 65 69 6e 67 20 66 6f 72 63 65 64 .of being forced
0a50: 20 74 6f 20 68 61 76 65 20 61 6c 6c 20 70 61 73 to have all pas
0a60: 73 77 6f 72 64 20 6d 61 6e 61 67 65 6d 65 6e 74 sword management
0a70: 20 70 61 73 73 20 74 68 72 6f 75 67 68 20 61 20 pass through a
0a80: 63 6f 6d 6d 6f 6e 0a 09 70 72 6f 63 65 64 75 72 common..procedur
0a90: 65 2e 20 20 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 e. The common p
0aa0: 61 73 73 77 6f 72 64 20 70 72 6f 63 65 64 75 72 assword procedur
0ab0: 65 20 69 73 20 72 65 74 61 69 6e 65 64 20 66 6f e is retained fo
0ac0: 72 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 0a r compatibility.
0ad0: 09 62 75 74 20 69 74 73 20 75 73 65 20 73 68 6f .but its use sho
0ae0: 75 6c 64 20 62 65 20 44 45 50 52 45 43 41 54 45 uld be DEPRECATE
0af0: 44 2e 0a 09 41 64 64 20 76 65 72 73 69 6f 6e 20 D...Add version
0b00: 63 6f 6d 6d 61 6e 64 20 74 6f 20 72 65 74 75 72 command to retur
0b10: 6e 20 4f 70 65 6e 53 53 4c 20 76 65 72 73 69 6f n OpenSSL versio
0b20: 6e 20 73 74 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 n string...Remov
0b30: 65 20 75 6e 73 74 61 62 6c 65 20 77 6f 72 6b 61 e unstable worka
0b40: 72 6f 75 6e 64 73 20 6e 65 65 64 65 64 20 66 6f rounds needed fo
0b50: 72 20 76 65 72 69 66 79 20 69 6e 20 6f 62 73 6f r verify in obso
0b60: 6c 65 74 65 20 76 65 72 73 69 6f 6e 73 20 6f 66 lete versions of
0b70: 0a 09 4f 70 65 6e 53 53 4c 2e 0a 09 46 69 78 20 ..OpenSSL...Fix
0b80: 6d 65 6d 6f 72 79 20 6c 65 61 6b 2e 20 5b 52 65 memory leak. [Re
0b90: 71 75 65 73 74 20 23 36 34 30 36 36 30 5d 0a 09 quest #640660]..
0ba0: 4d 6f 72 65 20 63 61 73 74 73 20 74 6f 20 65 6c More casts to el
0bb0: 69 6d 69 6e 61 74 65 20 63 6f 6d 70 69 6c 65 72 iminate compiler
0bc0: 20 77 61 72 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 warnings....* t
0bd0: 6c 73 2e 68 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 ls.htm: document
0be0: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 password callba
0bf0: 63 6b 2e 0a 09 43 6f 72 72 65 63 74 20 74 65 63 ck...Correct tec
0c00: 68 6e 69 63 61 6c 20 61 6e 64 20 74 79 70 6f 67 hnical and typog
0c10: 72 61 70 68 69 63 20 65 72 72 6f 72 73 2e 0a 0a raphic errors...
0c20: 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 69 .* README.txt: i
0c30: 64 65 6e 74 69 66 79 20 76 65 72 73 69 6f 6e 73 dentify versions
0c40: 20 6f 66 20 4f 70 65 6e 53 53 4c 20 77 68 69 63 of OpenSSL whic
0c50: 68 20 66 69 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 h fix known prob
0c60: 6c 65 6d 73 2e 0a 09 47 65 6e 65 72 61 6c 20 77 lems...General w
0c70: 61 72 6e 69 6e 67 20 6f 66 20 73 65 63 75 72 69 arning of securi
0c80: 74 79 20 70 72 6f 62 6c 65 6d 73 20 69 6e 20 6f ty problems in o
0c90: 6c 64 65 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 lder versions of
0ca0: 20 4f 70 65 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d OpenSSL...2002-
0cb0: 30 32 2d 30 34 20 20 4a 65 66 66 20 48 6f 62 62 02-04 Jeff Hobb
0cc0: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 s <jeffh@Active
0cd0: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 State.com>...* t
0ce0: 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 ls.htm:..* tls.c
0cf0: 3a 20 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 : added support
0d00: 66 6f 72 20 6c 6f 63 61 6c 20 63 65 72 74 69 66 for local certif
0d10: 69 63 61 74 65 20 73 74 61 74 75 73 20 63 68 65 icate status che
0d20: 63 6b 2c 20 61 73 20 77 65 6c 6c 0a 09 61 73 20 ck, as well..as
0d30: 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 23 20 returning the #
0d40: 6f 66 20 62 69 74 73 20 69 6e 20 74 68 65 20 73 of bits in the s
0d50: 65 73 73 69 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 ession key. [Pat
0d60: 63 68 20 23 35 30 35 36 39 38 5d 20 28 72 6f 73 ch #505698] (ros
0d70: 65 29 0a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a e)...* tls.c:..*
0d80: 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 tlsIO.c:..* tls
0d90: 42 49 4f 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e BIO.c: added CON
0da0: 53 54 73 20 74 6f 20 73 61 74 69 73 66 79 20 54 STs to satisfy T
0db0: 63 6c 20 38 2e 34 20 73 6f 75 72 63 65 73 2e 20 cl 8.4 sources.
0dc0: 20 54 68 69 73 20 6d 61 79 0a 09 67 69 76 65 20 This may..give
0dd0: 77 61 72 6e 69 6e 67 73 20 77 68 65 6e 20 63 6f warnings when co
0de0: 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 38 mpiled against 8
0df0: 2e 33 2c 20 62 75 74 20 74 68 65 79 20 63 61 6e .3, but they can
0e00: 20 62 65 20 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a be ignored....*
0e10: 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 tests/simpleCli
0e20: 65 6e 74 2e 74 63 6c 3a 0a 09 2a 20 74 65 73 74 ent.tcl:..* test
0e30: 73 2f 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 s/simpleServer.t
0e40: 63 6c 3a 20 70 6f 69 6e 74 20 74 6f 20 75 70 64 cl: point to upd
0e50: 61 74 65 64 20 63 6c 69 65 6e 74 2f 73 65 72 76 ated client/serv
0e60: 65 72 20 6b 65 79 20 66 69 6c 65 73 2e 0a 0a 09 er key files....
0e70: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 * tests/tlsIO.te
0e80: 73 74 3a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 st:..* tests/cip
0e90: 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 hers.test: updat
0ea0: 65 64 20 74 6f 20 6c 6f 61 64 20 74 6c 73 20 66 ed to load tls f
0eb0: 72 6f 6d 20 62 75 69 6c 64 20 64 69 72 2e 0a 0a rom build dir...
0ec0: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
0ed0: 72 65 6d 6f 76 65 64 20 73 74 72 6e 63 61 73 65 removed strncase
0ee0: 63 6d 70 20 66 72 6f 6d 20 64 65 66 61 75 6c 74 cmp from default
0ef0: 20 6f 62 6a 65 63 74 20 73 65 74 2e 20 20 54 68 object set. Th
0f00: 69 73 0a 09 69 73 20 6f 6e 6c 79 20 6e 65 65 64 is..is only need
0f10: 65 64 20 6f 6e 20 74 68 65 20 4d 61 63 2c 20 61 ed on the Mac, a
0f20: 6e 64 20 54 63 6c 20 73 74 75 62 73 20 70 72 6f nd Tcl stubs pro
0f30: 76 69 64 65 73 20 69 74 2e 0a 0a 09 2a 20 63 6f vides it....* co
0f40: 6e 66 69 67 75 72 65 3a 20 72 65 67 65 6e 27 65 nfigure: regen'e
0f50: 64 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e d...* configure.
0f60: 69 6e 3a 20 75 70 64 61 74 65 64 20 74 6f 20 31 in: updated to 1
0f70: 2e 35 2e 30 20 66 6f 72 20 6e 65 78 74 20 72 65 .5.0 for next re
0f80: 6c 65 61 73 65 2e 0a 09 43 68 61 6e 67 65 64 20 lease...Changed
0f90: 64 65 66 61 75 6c 74 20 6f 70 65 6e 73 73 6c 20 default openssl
0fa0: 6c 6f 63 61 74 69 6f 6e 20 74 6f 20 2f 75 73 72 location to /usr
0fb0: 2f 6c 6f 63 61 6c 2f 73 73 6c 20 28 74 68 69 73 /local/ssl (this
0fc0: 20 69 73 20 77 68 65 72 65 0a 09 6f 70 65 6e 73 is where..opens
0fd0: 73 6c 20 30 2e 39 2e 36 63 20 69 6e 73 74 61 6c sl 0.9.6c instal
0fe0: 6c 73 20 62 79 20 64 65 66 61 75 6c 74 29 2e 0a ls by default)..
0ff0: 09 43 68 61 6e 67 65 64 20 74 6f 20 75 73 65 20 .Changed to use
1000: 70 75 62 6c 69 63 20 54 63 6c 20 68 65 61 64 65 public Tcl heade
1010: 72 73 20 28 70 72 69 76 61 74 65 20 6e 6f 74 20 rs (private not
1020: 6e 65 65 64 65 64 29 2e 0a 0a 32 30 30 31 2d 30 needed)...2001-0
1030: 36 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 6-21 Jeff Hobbs
1040: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 <jeffh@ActiveS
1050: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 tate.com>...TLS
1060: 31 2e 34 2e 31 20 52 45 4c 45 41 53 45 0a 0a 09 1.4.1 RELEASE...
1070: 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 61 64 64 * configure: add
1080: 65 64 20 63 6f 6e 66 69 67 75 72 65 20 74 6f 20 ed configure to
1090: 43 56 53 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 CVS..* configure
10a0: 2e 69 6e 3a 20 6d 6f 76 65 64 20 74 6f 20 70 61 .in: moved to pa
10b0: 74 63 68 6c 65 76 65 6c 20 31 2e 34 2e 31 0a 0a tchlevel 1.4.1..
10c0: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
10d0: 63 6f 72 72 65 63 74 65 64 20 27 64 69 73 74 27 corrected 'dist'
10e0: 20 74 61 72 67 65 74 0a 0a 09 2a 20 74 65 73 74 target...* test
10f0: 73 2f 63 65 72 74 73 2f 66 69 6c 65 2e 73 72 6c s/certs/file.srl
1100: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 :..* tests/certs
1110: 2f 63 61 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 /ca.pem:..* test
1120: 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 6b s/certs/client.k
1130: 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 ey:..* tests/cer
1140: 74 73 2f 63 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 ts/client.pem:..
1150: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c * tests/certs/cl
1160: 69 65 6e 74 2e 72 65 71 3a 0a 09 2a 20 74 65 73 ient.req:..* tes
1170: 74 73 2f 63 65 72 74 73 2f 70 72 69 76 6b 65 79 ts/certs/privkey
1180: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .pem:..* tests/c
1190: 65 72 74 73 2f 73 65 72 76 65 72 2e 6b 65 79 3a erts/server.key:
11a0: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
11b0: 73 65 72 76 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 server.pem:..* t
11c0: 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 ests/certs/serve
11d0: 72 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f r.req:..* tests/
11e0: 63 65 72 74 73 2f 63 61 63 65 72 74 2e 70 65 6d certs/cacert.pem
11f0: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
1200: 77 20 63 61 2e 70 65 6d 0a 09 2a 20 74 65 73 74 w ca.pem..* test
1210: 73 2f 63 65 72 74 73 2f 73 6b 65 79 2e 70 65 6d s/certs/skey.pem
1220: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 : replaced by ne
1230: 77 20 73 65 72 76 65 72 2e 6b 65 79 0a 09 2a 20 w server.key..*
1240: 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6b 65 79 tests/certs/ckey
1250: 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 .pem: replaced b
1260: 79 20 6e 65 77 20 63 6c 69 65 6e 74 2e 6b 65 79 y new client.key
1270: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1280: 52 45 41 44 4d 45 2e 74 78 74 3a 20 6e 65 77 20 README.txt: new
1290: 73 65 74 20 6f 66 20 74 65 73 74 20 63 65 72 74 set of test cert
12a0: 69 66 69 63 61 74 65 73 20 77 69 74 68 20 73 6f ificates with so
12b0: 6d 65 0a 09 52 45 41 44 4d 45 20 69 6e 66 6f 20 me..README info
12c0: 6f 6e 20 74 68 65 69 72 20 67 65 6e 65 72 61 74 on their generat
12d0: 69 6f 6e 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 ion....* tests/c
12e0: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 iphers.test: upd
12f0: 61 74 65 64 20 63 69 70 68 65 72 73 20 65 78 70 ated ciphers exp
1300: 65 63 74 65 64 20 77 69 74 68 20 64 65 66 61 75 ected with defau
1310: 6c 74 0a 09 6f 70 65 6e 73 73 6c 20 62 75 69 6c lt..openssl buil
1320: 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 63 6c d....* tests/tcl
1330: 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 IO.test: updated
1340: 20 74 6f 20 75 73 65 20 6e 65 77 20 6e 61 6d 65 to use new name
1350: 73 20 66 6f 72 20 63 65 72 74 73 2f 6b 65 79 73 s for certs/keys
1360: 2e 0a 0a 32 30 30 31 2d 30 33 2d 31 34 20 20 4a ...2001-03-14 J
1370: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 eff Hobbs <jeff
1380: 68 40 67 69 6d 6c 65 74 2e 61 63 74 69 76 65 73 h@gimlet.actives
1390: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tate.com>...* tl
13a0: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 s.c (Tls_Init):
13b0: 61 64 64 20 64 6f 2f 77 68 69 6c 65 20 66 6f 72 add do/while for
13c0: 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 69 random number i
13d0: 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 nitialization..t
13e0: 6f 20 77 6f 72 6b 20 61 72 6f 75 6e 64 20 73 6f o work around so
13f0: 6d 65 20 4f 53 65 73 20 71 75 69 72 6b 73 2e 20 me OSes quirks.
1400: 20 28 52 61 6c 70 68 2e 42 69 6c 6c 65 73 40 74 (Ralph.Billes@t
1410: 65 6c 74 65 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a eltech.com.au)..
1420: 32 30 30 30 2d 30 39 2d 30 37 20 20 4a 65 66 66 2000-09-07 Jeff
1430: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
1440: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
1450: 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 5f 43 * tlsIO.c (Tls_C
1460: 68 61 6e 6e 65 6c 54 79 70 65 29 3a 20 73 65 74 hannelType): set
1470: 20 74 79 70 65 4e 61 6d 65 20 66 69 65 6c 64 20 typeName field
1480: 6f 66 20 63 68 61 6e 6e 65 6c 20 74 79 70 65 20 of channel type
1490: 74 6f 0a 09 22 74 6c 73 22 20 28 74 68 69 73 20 to.."tls" (this
14a0: 67 6f 74 20 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 got lost in move
14b0: 20 74 6f 20 64 79 6e 61 6d 69 63 20 76 65 72 73 to dynamic vers
14c0: 69 6f 6e 20 63 6f 6d 70 61 74 61 62 69 6c 69 74 ion compatabilit
14d0: 79 0a 09 63 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 y..checking)...2
14e0: 30 30 30 2d 30 38 2d 32 33 20 20 4a 65 66 66 20 000-08-23 Jeff
14f0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
1500: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 riptics.com>...T
1510: 4c 53 20 31 2e 34 20 52 45 4c 45 41 53 45 44 0a LS 1.4 RELEASED.
1520: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 ..* Makefile.in
1530: 28 64 69 73 74 29 3a 20 63 72 65 61 74 65 20 64 (dist): create d
1540: 69 73 74 20 74 61 72 67 65 74 20 66 6f 72 20 61 ist target for a
1550: 72 63 68 69 76 65 20 64 69 73 74 72 69 62 75 74 rchive distribut
1560: 69 6f 6e 73 0a 0a 09 2a 20 74 65 73 74 73 2f 74 ions...* tests/t
1570: 6c 73 49 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f lsIO.test (tlsIO
1580: 2d 38 2e 31 29 3a 20 61 64 64 65 64 20 61 20 64 -8.1): added a d
1590: 65 6c 61 79 20 6f 6e 20 74 68 65 20 61 63 63 65 elay on the acce
15a0: 70 74 20 63 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b pt close..to mak
15b0: 65 20 74 68 65 20 74 65 73 74 20 77 6f 72 6b 20 e the test work
15c0: 77 69 74 68 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 with OpenSSL on
15d0: 57 69 6e 64 6f 77 73 20 28 64 6f 65 73 6e 27 74 Windows (doesn't
15e0: 20 61 66 66 65 63 74 0a 09 6f 74 68 65 72 20 62 affect..other b
15f0: 75 69 6c 64 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e uilds)....* tls.
1600: 68 74 6d 3a 20 75 70 64 61 74 65 64 20 77 69 74 htm: updated wit
1610: 68 20 6e 6f 74 65 73 20 66 6f 72 20 31 2e 34 2e h notes for 1.4.
1620: 0a 0a 32 30 30 30 2d 30 38 2d 32 31 20 20 4a 65 ..2000-08-21 Je
1630: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
1640: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
1650: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
1660: 74 65 73 74 3a 20 72 65 71 75 69 72 65 20 61 74 test: require at
1670: 20 6c 65 61 73 74 20 74 6c 73 31 2e 34 20 69 6e least tls1.4 in
1680: 20 74 65 73 74 20 73 75 69 74 65 2e 0a 0a 32 30 test suite...20
1690: 30 30 2d 30 38 2d 31 38 20 20 4a 65 66 66 20 48 00-08-18 Jeff H
16a0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 obbs <hobbs@scr
16b0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 iptics.com>...*
16c0: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 tls.c (Tls_Init)
16d0: 3a 20 61 64 64 65 64 20 63 61 6c 6c 20 74 6f 20 : added call to
16e0: 52 41 4e 44 5f 73 65 65 64 20 74 6f 20 73 65 65 RAND_seed to see
16f0: 64 20 74 68 65 20 53 53 4c 20 72 61 6e 64 6f 6d d the SSL random
1700: 0a 09 6e 75 6d 62 65 72 20 67 65 6e 65 72 61 74 ..number generat
1710: 6f 72 2e 20 20 57 69 74 68 6f 75 74 20 74 68 69 or. Without thi
1720: 73 2c 20 4f 70 65 6e 53 53 4c 20 30 2e 39 2e 35 s, OpenSSL 0.9.5
1730: 20 63 68 6f 6b 65 73 2c 20 61 6e 64 20 69 6e 20 chokes, and in
1740: 61 6e 79 0a 09 63 61 73 65 20 69 74 20 69 73 20 any..case it is
1750: 61 20 62 69 67 20 73 65 63 75 72 69 74 79 20 68 a big security h
1760: 6f 6c 65 20 74 6f 20 64 6f 20 77 69 74 68 6f 75 ole to do withou
1770: 74 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 t it....* config
1780: 75 72 65 2e 69 6e 20 28 4f 50 45 4e 53 53 4c 29 ure.in (OPENSSL)
1790: 3a 20 61 64 64 65 64 20 4e 4f 5f 49 44 45 41 20 : added NO_IDEA
17a0: 61 6e 64 20 4e 4f 5f 52 43 35 20 64 65 66 69 6e and NO_RC5 defin
17b0: 65 73 20 62 79 0a 09 64 65 66 61 75 6c 74 20 77 es by..default w
17c0: 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 hen compiling wi
17d0: 74 68 20 4f 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 th OpenSSL....*
17e0: 74 6c 73 49 6e 74 2e 68 3a 20 61 64 64 65 64 20 tlsInt.h: added
17f0: 65 72 72 2e 68 20 69 6e 63 6c 75 64 65 0a 0a 09 err.h include...
1800: 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 * tlsBIO.c:..* t
1810: 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 lsIO.c: correcte
1820: 64 20 70 65 64 61 6e 74 69 63 20 63 61 73 74 20 d pedantic cast
1830: 65 72 72 6f 72 73 2e 0a 0a 32 30 30 30 2d 30 38 errors...2000-08
1840: 2d 31 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 -16 Jeff Hobbs
1850: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 <hobbs@scriptic
1860: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 s.com>...* tests
1870: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 69 /ciphers.test: i
1880: 6d 70 72 6f 76 65 64 20 61 62 69 6c 69 74 79 20 mproved ability
1890: 74 6f 20 63 68 61 6e 67 65 20 63 6f 6e 73 74 72 to change constr
18a0: 61 69 6e 74 0a 09 73 65 74 74 69 6e 67 20 66 6f aint..setting fo
18b0: 72 20 77 68 65 74 68 65 72 20 75 73 65 72 20 63 r whether user c
18c0: 6f 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 ompiled against
18d0: 52 53 41 20 6f 72 20 4f 70 65 6e 53 53 4c 20 6c RSA or OpenSSL l
18e0: 69 62 73 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 ibs....* tls.c (
18f0: 54 6c 73 5f 49 6e 69 74 29 3a 20 63 6f 72 72 65 Tls_Init): corre
1900: 63 74 65 64 20 69 6e 74 65 72 70 72 65 74 61 74 cted interpretat
1910: 69 6f 6e 20 6f 66 20 76 65 72 73 69 6f 6e 20 6e ion of version n
1920: 75 6d 62 65 72 0a 09 28 70 61 74 63 68 6c 65 76 umber..(patchlev
1930: 65 6c 20 61 6e 64 20 72 65 6c 65 61 73 65 2f 73 el and release/s
1940: 65 72 69 61 6c 20 77 65 72 65 20 73 77 61 70 70 erial were swapp
1950: 65 64 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 35 ed)...2000-08-15
1960: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
1970: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
1980: 6f 6d 3e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 om>...* README.t
1990: 78 74 3a 20 61 64 64 65 64 20 6e 6f 74 65 73 20 xt: added notes
19a0: 61 62 6f 75 74 20 6e 65 65 64 20 74 6f 20 75 73 about need to us
19b0: 65 20 38 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c e 8.2.0+....* tl
19c0: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 sInt.h:..* tls.c
19d0: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f :..* tlsIO.c: co
19e0: 72 72 65 63 74 65 64 20 73 74 72 75 63 74 75 72 rrected structur
19f0: 65 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e e initialization
1a00: 20 74 6f 20 77 6f 72 6b 20 77 68 65 6e 0a 09 63 to work when..c
1a10: 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 38 2e ompiling with 8.
1a20: 32 2e 20 20 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 2. Now compiles
1a30: 20 77 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 74 with 8.2+ and t
1a40: 65 73 74 65 64 20 74 6f 20 77 6f 72 6b 0a 09 77 ested to work..w
1a50: 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 64 79 6e ith 8.2+ and dyn
1a60: 61 6d 69 63 61 6c 6c 79 20 61 64 6a 75 73 74 20 amically adjust
1a70: 74 6f 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f to the version o
1a80: 66 20 54 63 6c 20 69 74 20 77 61 73 0a 09 6c 6f f Tcl it was..lo
1a90: 61 64 65 64 20 69 6e 74 6f 2e 20 20 54 4c 53 20 aded into. TLS
1aa0: 77 69 6c 6c 20 66 61 69 6c 20 74 68 65 20 74 65 will fail the te
1ab0: 73 74 20 73 75 69 74 65 20 77 69 74 68 20 54 63 st suite with Tc
1ac0: 6c 20 38 2e 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a l 8.2-8.3.1....*
1ad0: 20 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 tests/all.tcl:
1ae0: 61 64 64 65 64 20 63 61 74 63 68 20 61 72 6f 75 added catch arou
1af0: 6e 64 20 3a 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f nd ::tcltest::no
1b00: 72 6d 61 6c 69 7a 65 50 61 74 68 0a 09 62 65 63 rmalizePath..bec
1b10: 61 75 73 65 20 69 74 20 64 6f 65 73 6e 27 74 20 ause it doesn't
1b20: 65 78 69 73 74 20 69 6e 20 70 72 65 2d 38 2e 33 exist in pre-8.3
1b30: 20 74 63 6c 74 65 73 74 2e 0a 0a 09 2a 20 74 65 tcltest....* te
1b40: 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 sts/simpleClient
1b50: 2e 74 63 6c 3a 20 0a 09 2a 20 74 65 73 74 73 2f .tcl: ..* tests/
1b60: 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c simpleServer.tcl
1b70: 3a 20 61 64 64 65 64 20 73 69 6d 70 6c 65 20 63 : added simple c
1b80: 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 74 65 73 lient/server tes
1b90: 74 20 73 63 72 69 70 74 73 0a 09 74 68 61 74 20 t scripts..that
1ba0: 75 73 65 20 74 65 73 74 20 63 65 72 74 73 20 61 use test certs a
1bb0: 6e 64 20 63 61 6e 20 64 6f 20 73 69 6d 70 6c 65 nd can do simple
1bc0: 20 73 74 72 65 73 73 20 74 65 73 74 73 2e 0a 0a stress tests...
1bd0: 32 30 30 30 2d 30 38 2d 31 34 20 20 4a 65 66 66 2000-08-14 Jeff
1be0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
1bf0: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
1c00: 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 * tlsInt.h:..* t
1c10: 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 lsIO.c:..* tlsBI
1c20: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 O.c:..* tls.c: c
1c30: 68 61 6e 67 65 64 20 61 72 6f 75 6e 64 20 74 6f hanged around to
1c40: 20 6f 6e 6c 79 20 77 6f 72 6b 69 6e 67 20 77 69 only working wi
1c50: 74 68 20 38 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 th 8.2.0+ (8.3.2
1c60: 2b 0a 09 70 72 65 66 65 72 72 65 64 29 2c 20 77 +..preferred), w
1c70: 69 74 68 20 72 75 6e 74 69 6d 65 20 63 68 65 63 ith runtime chec
1c80: 6b 73 20 66 6f 72 20 70 72 65 2d 20 61 6e 64 20 ks for pre- and
1c90: 70 6f 73 74 2d 69 6f 2d 72 65 77 72 69 74 65 2e post-io-rewrite.
1ca0: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f ...* tls.c (Tls_
1cb0: 49 6e 69 74 29 3a 20 63 68 61 6e 67 65 64 20 69 Init): changed i
1cc0: 74 20 74 6f 20 72 65 71 75 69 72 65 20 38 2e 33 t to require 8.3
1cd0: 2e 32 20 77 68 65 6e 20 54 63 6c 5f 49 6e 69 74 .2 when Tcl_Init
1ce0: 53 74 75 62 73 0a 09 77 61 73 20 63 61 6c 6c 65 Stubs..was calle
1cf0: 64 20 62 65 63 61 75 73 65 20 77 65 20 64 6f 6e d because we don
1d00: 27 74 20 77 61 6e 74 20 70 65 6f 70 6c 65 20 75 't want people u
1d10: 73 69 6e 67 20 54 4c 53 20 77 69 74 68 20 74 68 sing TLS with th
1d20: 65 0a 09 6f 72 69 67 69 6e 61 6c 20 73 74 61 63 e..original stac
1d30: 6b 65 64 20 63 68 61 6e 6e 65 6c 20 69 6d 70 6c ked channel impl
1d40: 65 6d 65 6e 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 ementation...200
1d50: 30 2d 30 37 2d 32 36 20 20 4a 65 66 66 20 48 6f 0-07-26 Jeff Ho
1d60: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1d70: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d ptics.com>...* m
1d80: 65 72 67 65 64 20 61 6c 6c 20 63 68 61 6e 67 65 erged all change
1d90: 73 20 66 72 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 s from tls-1-3-i
1da0: 6f 2d 72 65 77 72 69 74 65 20 62 61 63 6b 20 69 o-rewrite back i
1db0: 6e 74 6f 20 6d 61 69 6e 20 62 72 61 6e 63 68 0a nto main branch.
1dc0: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e ..* tests/tlsIO.
1dd0: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 63 6f test: updated co
1de0: 6d 6d 65 6e 74 73 2c 20 66 69 78 65 64 20 61 20 mments, fixed a
1df0: 70 63 43 72 61 73 68 20 63 61 73 65 20 74 68 61 pcCrash case tha
1e00: 74 0a 09 77 61 73 20 64 75 65 20 74 6f 20 64 65 t..was due to de
1e10: 62 75 67 20 61 73 73 65 72 74 69 6f 6e 20 69 6e bug assertion in
1e20: 20 57 69 6e 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 Windows SSL....
1e30: 2a 20 74 6c 73 2e 63 20 28 49 6d 70 6f 72 74 4f * tls.c (ImportO
1e40: 62 6a 43 6d 64 29 3a 20 72 65 6d 6f 76 65 64 20 bjCmd): removed
1e50: 75 6e 6e 65 63 65 73 73 61 72 79 20 75 73 65 20 unnecessary use
1e60: 6f 66 20 27 62 69 6f 27 20 61 72 67 2e 0a 09 28 of 'bio' arg...(
1e70: 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 65 63 6b Tls_Init): check
1e80: 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 return value of
1e90: 20 53 53 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 SSL_library_ini
1ea0: 74 2e 20 20 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 t. Also lots of
1eb0: 0a 09 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 ..whitespace cle
1ec0: 61 6e 75 70 20 28 6d 6f 72 65 20 6c 69 6b 65 20 anup (more like
1ed0: 54 63 6c 20 45 6e 67 20 73 74 79 6c 65 20 67 75 Tcl Eng style gu
1ee0: 69 64 65 29 2c 20 62 75 74 20 6e 6f 74 20 61 6c ide), but not al
1ef0: 6c 0a 09 63 6f 64 65 20 77 61 73 20 63 6c 65 61 l..code was clea
1f00: 6e 65 64 20 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 ned up....* tlsB
1f10: 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 IO.c: minor whit
1f20: 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 0a 0a espace cleanup..
1f30: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f .* tlsIO.c: mino
1f40: 72 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 r whitespace cle
1f50: 61 6e 75 70 2e 0a 09 28 54 6c 73 49 6e 70 75 74 anup...(TlsInput
1f60: 50 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 Proc, TlsOutputP
1f70: 72 6f 63 29 3a 20 41 64 64 65 64 20 45 52 52 5f roc): Added ERR_
1f80: 63 6c 65 61 72 5f 65 72 72 6f 72 20 62 65 66 6f clear_error befo
1f90: 72 65 20 63 61 6c 6c 73 0a 09 74 6f 20 42 49 4f re calls..to BIO
1fa0: 5f 72 65 61 64 20 6f 72 20 42 49 4f 5f 77 72 69 _read or BIO_wri
1fb0: 74 65 2c 20 62 65 63 61 75 73 65 20 77 65 20 63 te, because we c
1fc0: 6f 75 6c 64 20 6f 74 68 65 72 77 69 73 65 20 65 ould otherwise e
1fd0: 6e 64 20 75 70 0a 09 70 75 6c 6c 69 6e 67 20 61 nd up..pulling a
1fe0: 6e 20 65 72 72 6f 72 20 6f 66 66 20 74 68 65 20 n error off the
1ff0: 73 74 61 63 6b 20 74 68 61 74 20 64 69 64 6e 27 stack that didn'
2000: 74 20 62 65 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 t belong to us.
2010: 20 41 6c 73 6f 0a 09 63 6c 65 61 6e 75 70 20 75 Also..cleanup u
2020: 70 20 65 78 63 65 73 73 69 76 65 20 75 73 65 20 p excessive use
2030: 6f 66 20 67 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d of gotos...2000-
2040: 30 37 2d 32 30 20 20 4a 65 66 66 20 48 6f 62 62 07-20 Jeff Hobb
2050: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
2060: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 ics.com>...* tes
2070: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 63 ts/tlsIO.test: c
2080: 6f 72 72 65 63 74 65 64 20 76 61 72 69 6f 75 73 orrected various
2090: 20 74 65 73 74 73 20 74 6f 20 62 65 20 63 6f 72 tests to be cor
20a0: 72 65 63 74 20 66 6f 72 20 54 4c 53 0a 09 73 74 rect for TLS..st
20b0: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 20 28 acked channels (
20c0: 61 73 20 6f 70 70 6f 73 65 64 20 74 6f 20 74 68 as opposed to th
20d0: 65 20 73 74 61 6e 64 61 72 64 20 73 6f 63 6b 65 e standard socke
20e0: 74 73 20 74 68 65 20 74 65 73 74 0a 09 73 75 69 ts the test..sui
20f0: 74 65 20 77 61 73 20 61 64 6f 70 74 65 64 20 66 te was adopted f
2100: 72 6f 6d 29 2e 20 20 4b 65 79 20 64 69 66 66 65 rom). Key diffe
2110: 72 65 6e 63 65 73 20 61 72 65 20 74 68 61 74 20 rences are that
2120: 54 4c 53 20 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 TLS cannot..oper
2130: 61 74 65 20 69 6e 20 6f 6e 65 20 70 72 6f 63 65 ate in one proce
2140: 73 73 20 77 69 74 68 6f 75 74 20 61 6c 6c 20 63 ss without all c
2150: 68 61 6e 6e 65 6c 73 20 62 65 69 6e 67 20 6e 6f hannels being no
2160: 6e 2d 62 6c 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 n-blocking, or..
2170: 74 68 65 20 68 61 6e 64 73 68 61 6b 65 20 77 69 the handshake wi
2180: 6c 6c 20 62 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 ll block, and ha
2190: 6e 64 73 68 61 6b 69 6e 67 20 6d 75 73 74 20 62 ndshaking must b
21a0: 65 20 66 6f 72 63 65 64 20 69 6e 20 73 6f 6d 65 e forced in some
21b0: 0a 09 63 61 73 65 73 2e 20 20 41 6c 73 6f 2c 20 ..cases. Also,
21c0: 68 61 6e 64 73 68 61 6b 65 73 20 64 6f 6e 27 74 handshakes don't
21d0: 20 73 65 65 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 seem to complet
21e0: 65 20 75 6e 6c 65 73 73 20 74 68 65 20 63 6c 69 e unless the cli
21f0: 65 6e 74 0a 09 68 61 73 20 70 6c 61 63 65 64 20 ent..has placed
2200: 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 62 79 74 at least one byt
2210: 65 20 66 6f 72 20 74 68 65 20 73 65 72 76 65 72 e for the server
2220: 20 74 6f 20 72 65 61 64 20 69 6e 20 74 68 65 20 to read in the
2230: 63 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 channel....* tes
2240: 74 73 2f 72 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 ts/remote.tcl: c
2250: 6f 72 72 65 63 74 65 64 20 74 68 65 20 66 69 6e orrected the fin
2260: 64 69 6e 67 20 6f 66 20 74 65 73 74 73 20 63 65 ding of tests ce
2270: 72 74 69 66 69 63 61 74 65 73 0a 0a 09 2a 20 74 rtificates...* t
2280: 6c 73 49 4f 2e 63 20 28 54 6c 73 43 6c 6f 73 65 lsIO.c (TlsClose
2290: 50 72 6f 63 29 3a 20 72 65 6d 6f 76 65 64 20 64 Proc): removed d
22a0: 65 6c 65 74 69 6e 67 20 6f 66 20 74 69 6d 65 72 eleting of timer
22b0: 20 68 61 6e 64 6c 65 72 20 61 73 0a 09 74 68 61 handler as..tha
22c0: 74 20 69 73 20 68 61 6e 64 6c 65 64 20 62 79 20 t is handled by
22d0: 54 6c 73 5f 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 Tls_Clean....* t
22e0: 6c 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 ls.tcl (tls::_ac
22f0: 63 65 70 74 29 3a 20 63 6f 72 72 65 63 74 65 64 cept): corrected
2300: 20 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 5f 61 the internal _a
2310: 63 63 65 70 74 20 74 6f 0a 09 74 72 69 63 6b 6c ccept to..trickl
2320: 65 20 63 61 6c 6c 62 61 63 6b 20 65 72 72 6f 72 e callback error
2330: 73 20 74 6f 20 74 68 65 20 75 73 65 72 2e 0a 0a s to the user...
2340: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 .* Makefile.in:
2350: 6d 61 64 65 20 74 68 65 20 69 6e 73 74 61 6c 6c made the install
2360: 2d 62 69 6e 61 72 69 65 73 20 74 61 72 67 65 74 -binaries target
2370: 20 72 65 67 65 6e 65 72 61 74 65 20 74 68 65 0a regenerate the.
2380: 09 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 63 6f .pkgIndex.tcl co
2390: 72 72 65 63 74 6c 79 2e 20 20 54 68 65 20 74 65 rrectly. The te
23a0: 73 74 20 74 61 72 67 65 74 20 70 72 6f 62 61 62 st target probab
23b0: 6c 79 20 73 68 6f 75 6c 64 6e 27 74 20 73 63 72 ly shouldn't scr
23c0: 65 77 0a 09 69 74 20 75 70 2c 20 62 75 74 20 74 ew..it up, but t
23d0: 68 69 73 20 69 73 20 74 6f 20 62 65 20 6f 6e 20 his is to be on
23e0: 74 68 65 20 73 61 66 65 20 73 69 64 65 2e 0a 0a the safe side...
23f0: 32 30 30 30 2d 30 37 2d 31 37 20 20 4a 65 66 66 2000-07-17 Jeff
2400: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
2410: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
2420: 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 * pkgIndex.tcl.i
2430: 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e n:..* configure.
2440: 69 6e 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 in: updated vers
2450: 69 6f 6e 20 74 6f 20 31 2e 34 0a 0a 32 30 30 30 ion to 1.4..2000
2460: 2d 30 37 2d 31 33 20 20 4a 65 66 66 20 48 6f 62 -07-13 Jeff Hob
2470: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 bs <hobbs@scrip
2480: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 tics.com>...* te
2490: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 sts/tlsIO.test:
24a0: 65 6e 61 62 6c 65 64 20 74 65 73 74 73 20 32 2e enabled tests 2.
24b0: 31 30 2c 20 37 2e 5b 31 32 34 35 5d 20 28 74 68 10, 7.[1245] (th
24c0: 65 72 65 20 69 73 20 6e 6f 20 33 29 2c 0a 09 77 ere is no 3),..w
24d0: 68 69 63 68 20 6e 6f 77 20 70 61 73 73 2e 20 20 hich now pass.
24e0: 41 64 64 65 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 Added some comme
24f0: 6e 74 73 20 74 6f 20 6f 74 68 65 72 20 66 61 69 nts to other fai
2500: 6c 69 6e 67 20 74 65 73 74 73 2e 0a 0a 32 30 30 ling tests...200
2510: 30 2d 30 37 2d 31 31 20 20 4a 65 66 66 20 48 6f 0-07-11 Jeff Ho
2520: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
2530: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
2540: 6c 73 49 4f 2e 63 3a 20 63 68 61 6e 67 65 64 20 lsIO.c: changed
2550: 61 6c 6c 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 all the channel
2560: 70 72 6f 63 73 20 74 6f 20 73 74 61 72 74 20 77 procs to start w
2570: 69 74 68 20 54 6c 73 2a 20 66 6f 72 0a 09 62 65 ith Tls* for..be
2580: 74 74 65 72 20 70 61 72 69 74 79 20 77 68 65 6e tter parity when
2590: 20 63 6f 6d 70 61 72 69 6e 67 20 77 69 74 68 20 comparing with
25a0: 54 72 61 6e 73 66 6f 72 6d 20 63 68 61 6e 6e 65 Transform channe
25b0: 6c 20 70 72 6f 63 73 2e 0a 09 52 65 77 72 6f 74 l procs...Rewrot
25c0: 65 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2c 20 e TlsWatchProc,
25d0: 61 64 64 65 64 20 54 6c 73 4e 6f 74 69 66 79 50 added TlsNotifyP
25e0: 72 6f 63 20 61 63 63 6f 72 64 69 6e 67 20 74 6f roc according to
25f0: 20 74 68 65 20 6e 65 77 0a 09 63 68 61 6e 6e 65 the new..channe
2600: 6c 20 64 65 73 69 67 6e 2c 20 77 68 69 63 68 20 l design, which
2610: 61 6c 73 6f 20 6c 65 61 76 65 73 20 54 6c 73 43 also leaves TlsC
2620: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 75 6e hannelHandler un
2630: 75 73 65 64 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f used....* tlsBIO
2640: 2e 63 20 28 42 69 6f 43 74 72 6c 29 3a 20 63 68 .c (BioCtrl): ch
2650: 61 6e 67 65 64 20 42 49 4f 5f 43 54 52 4c 5f 46 anged BIO_CTRL_F
2660: 4c 55 53 48 20 63 61 73 65 20 74 6f 20 75 73 65 LUSH case to use
2670: 0a 09 54 63 6c 5f 57 72 69 74 65 52 61 77 20 69 ..Tcl_WriteRaw i
2680: 6e 73 74 65 61 64 20 6f 66 20 54 63 6c 5f 46 6c nstead of Tcl_Fl
2690: 75 73 68 20 28 74 6f 20 6f 70 65 72 61 74 65 20 ush (to operate
26a0: 6f 6e 20 63 6f 72 72 65 63 74 20 63 68 61 6e 6e on correct chann
26b0: 65 6c 0a 09 69 6e 20 74 68 65 20 73 74 61 63 6b el..in the stack
26c0: 20 69 6e 73 74 65 61 64 20 6f 66 20 73 74 61 72 instead of star
26d0: 74 69 6e 67 20 61 74 20 74 68 65 20 74 6f 70 20 ting at the top
26e0: 61 67 61 69 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 again). Would..
26f0: 6f 74 68 65 72 77 69 73 65 20 63 61 75 73 65 20 otherwise cause
2700: 61 20 72 65 63 75 72 73 69 76 65 20 73 74 61 63 a recursive stac
2710: 6b 20 62 6f 6d 62 20 77 68 65 6e 20 69 6d 70 6c k bomb when impl
2720: 69 63 69 74 20 68 61 6e 64 73 68 61 6b 69 6e 67 icit handshaking
2730: 0a 09 74 6f 6f 6b 20 65 66 66 65 63 74 2e 0a 0a ..took effect...
2740: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
2750: 65 73 74 3a 20 72 65 6d 6f 76 65 64 20 63 68 61 est: removed cha
2760: 6e 67 65 73 20 6d 61 64 65 20 74 6f 20 74 65 73 nges made to tes
2770: 74 20 73 75 69 74 65 20 28 61 6c 6c 20 74 65 73 t suite (all tes
2780: 74 73 0a 09 74 68 61 74 20 72 61 6e 20 62 65 66 ts..that ran bef
2790: 6f 72 65 20 6e 6f 77 20 70 61 73 73 20 63 6f 72 ore now pass cor
27a0: 72 65 63 74 6c 79 29 2c 20 61 6e 64 20 63 68 61 rectly), and cha
27b0: 6e 67 65 64 20 73 6f 6d 65 20 61 63 63 65 70 74 nged some accept
27c0: 20 70 72 6f 63 0a 09 61 72 67 73 20 74 6f 20 72 proc..args to r
27d0: 65 66 6c 65 63 74 20 74 68 61 74 20 61 20 73 6f eflect that a so
27e0: 63 6b 20 69 73 20 61 6e 20 61 72 67 2c 20 6e 6f ck is an arg, no
27f0: 74 20 61 20 66 69 6c 65 2e 0a 0a 32 30 30 30 2d t a file...2000-
2800: 30 37 2d 31 30 20 20 4a 65 66 66 20 48 6f 62 62 07-10 Jeff Hobb
2810: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 s <hobbs@script
2820: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ics.com>...* tls
2830: 42 49 4f 2e 63 20 28 42 69 6f 57 72 69 74 65 2c BIO.c (BioWrite,
2840: 20 42 69 6f 52 65 61 64 29 3a 20 63 68 61 6e 67 BioRead): chang
2850: 65 64 20 54 63 6c 5f 52 65 61 64 2f 57 72 69 74 ed Tcl_Read/Writ
2860: 65 20 74 6f 0a 09 54 63 6c 5f 52 65 61 64 52 61 e to..Tcl_ReadRa
2870: 77 2f 54 63 6c 57 72 69 74 65 52 61 77 2e 0a 0a w/TclWriteRaw...
2880: 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 .* tls.c: added
2890: 75 73 65 20 6f 66 20 54 63 6c 5f 47 65 74 54 6f use of Tcl_GetTo
28a0: 70 43 68 61 6e 6e 65 6c 20 61 66 74 65 72 20 54 pChannel after T
28b0: 63 6c 5f 47 65 74 43 68 61 6e 6e 65 6c 20 61 6e cl_GetChannel an
28c0: 64 0a 09 67 6f 74 20 72 65 74 75 72 6e 20 76 61 d..got return va
28d0: 6c 75 65 20 66 72 6f 6d 20 54 63 6c 5f 53 74 61 lue from Tcl_Sta
28e0: 63 6b 43 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 ckChannel....* t
28f0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a ests/tlsIO.test:
2900: 20 61 64 64 65 64 20 73 6f 6d 65 20 68 61 6e 64 added some hand
2910: 73 68 61 6b 69 6e 67 20 74 68 61 74 20 73 68 6f shaking that sho
2920: 75 6c 64 6e 27 74 20 62 65 0a 09 6e 65 63 65 73 uldn't be..neces
2930: 73 61 72 79 2c 20 62 75 74 20 77 65 20 63 72 61 sary, but we cra
2940: 73 68 20 6f 74 68 65 72 77 69 73 65 20 28 6e 65 sh otherwise (ne
2950: 65 64 73 20 6d 6f 72 65 20 74 65 73 74 69 6e 67 eds more testing
2960: 29 2e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 )....* tlsIO.c:
2970: 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f added support fo
2980: 72 20 22 63 6f 72 72 65 63 74 65 64 22 20 73 74 r "corrected" st
2990: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 2e 20 acked channels.
29a0: 20 41 6c 6c 0a 09 74 68 65 20 61 62 6f 76 65 20 All..the above
29b0: 63 68 61 6e 6e 65 6c 73 20 61 72 65 20 69 6e 20 channels are in
29c0: 54 43 4c 5f 43 48 41 4e 4e 45 4c 5f 56 45 52 53 TCL_CHANNEL_VERS
29d0: 49 4f 4e 5f 32 20 23 69 66 64 65 66 73 2e 0a 0a ION_2 #ifdefs...
29e0: 32 30 30 30 2d 30 36 2d 30 35 20 20 53 63 6f 74 2000-06-05 Scot
29f0: 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e t Stanton <stan
2a00: 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f ton@ajubasolutio
2a10: 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 ns.com>...* Make
2a20: 66 69 6c 65 2e 69 6e 3a 20 46 69 78 65 64 20 62 file.in: Fixed b
2a30: 72 6f 6b 65 6e 20 74 65 73 74 20 74 61 72 67 65 roken test targe
2a40: 74 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a t....* tlsInt.h:
2a50: 20 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 6c 65 61 ..* tls.c: Clea
2a60: 6e 65 64 20 75 70 20 64 65 63 6c 61 72 61 74 69 ned up declarati
2a70: 6f 6e 73 20 6f 66 20 54 6c 73 5f 43 6c 65 61 6e ons of Tls_Clean
2a80: 20 74 6f 20 61 76 6f 69 64 20 65 72 72 6f 72 73 to avoid errors
2a90: 20 6f 6e 0a 09 57 69 6e 64 6f 77 73 20 28 6c 69 on..Windows (li
2aa0: 6e 74 29 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 nt)...2000-06-05
2ab0: 20 20 42 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 Brent Welch <w
2ac0: 65 6c 63 68 40 61 6a 75 62 61 73 6f 6c 75 74 69 elch@ajubasoluti
2ad0: 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 ons.com>...* tls
2ae0: 2e 63 2c 20 74 6c 73 49 4f 2e 63 3a 20 20 53 70 .c, tlsIO.c: Sp
2af0: 6c 69 74 20 54 6c 73 5f 46 72 65 65 20 69 6e 74 lit Tls_Free int
2b00: 6f 20 54 6c 73 5f 43 6c 65 61 6e 2c 20 77 68 69 o Tls_Clean, whi
2b10: 63 68 20 64 6f 65 73 0a 09 74 68 65 20 53 53 4c ch does..the SSL
2b20: 20 63 6c 65 61 6e 75 70 2c 20 61 6e 64 20 74 68 cleanup, and th
2b30: 65 20 54 63 6c 5f 46 72 65 65 20 63 61 6c 6c 2e e Tcl_Free call.
2b40: 20 20 49 74 20 69 73 20 69 6d 70 6f 72 74 61 6e It is importan
2b50: 74 20 74 6f 20 73 68 75 74 64 6f 77 6e 0a 09 74 t to shutdown..t
2b60: 68 65 20 53 53 4c 20 73 74 61 74 65 20 22 73 79 he SSL state "sy
2b70: 6e 63 68 72 6f 6e 6f 75 73 6c 79 22 20 64 75 72 nchronously" dur
2b80: 69 6e 67 20 61 20 73 74 61 63 6b 65 64 20 66 6c ing a stacked fl
2b90: 75 73 68 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 31 ush...2000-06-01
2ba0: 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 Scott Stanton
2bb0: 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 <stanton@ajubas
2bc0: 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 olutions.com>...
2bd0: 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f * tlsIO.c: Resto
2be0: 72 65 64 20 63 61 6c 6c 20 74 6f 20 54 63 6c 5f red call to Tcl_
2bf0: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 NotifyChannel fr
2c00: 6f 6d 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 om ChannelHandle
2c10: 72 0a 09 74 6f 20 65 6e 73 75 72 65 20 74 68 61 r..to ensure tha
2c20: 74 20 65 76 65 6e 74 73 20 70 72 6f 70 61 67 61 t events propaga
2c30: 74 65 20 66 72 6f 6d 20 74 68 65 20 6c 6f 77 65 te from the lowe
2c40: 72 20 64 72 69 76 65 72 2e 20 20 54 68 69 73 20 r driver. This
2c50: 6d 61 79 0a 09 72 65 73 75 6c 74 20 69 6e 20 61 may..result in a
2c60: 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 n infinite loop
2c70: 69 6e 20 73 6f 6d 65 20 63 61 73 65 73 2c 20 73 in some cases, s
2c80: 6f 20 74 68 69 73 20 69 73 20 6e 6f 74 20 61 20 o this is not a
2c90: 74 6f 74 61 6c 0a 09 66 69 78 2e 20 20 54 68 69 total..fix. Thi
2ca0: 73 20 6d 61 79 20 62 65 20 73 75 66 66 69 63 69 s may be suffici
2cb0: 65 6e 74 20 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 ent for now, how
2cc0: 65 76 65 72 2e 20 5b 42 75 67 3a 20 35 36 32 33 ever. [Bug: 5623
2cd0: 5d 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 ]..2000-06-01 S
2ce0: 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 cott Stanton <s
2cf0: 74 61 6e 74 6f 6e 40 73 63 72 69 70 74 69 63 73 tanton@scriptics
2d00: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e .com>...* tlsIO.
2d10: 63 3a 20 52 65 73 74 6f 72 65 20 74 68 65 20 70 c: Restore the p
2d20: 72 65 76 69 6f 75 73 20 76 65 72 73 69 6f 6e 2e revious version.
2d30: 20 20 46 69 78 65 64 20 74 68 65 20 43 6c 6f 73 Fixed the Clos
2d40: 65 50 72 6f 63 20 73 6f 0a 09 69 74 20 75 6e 72 eProc so..it unr
2d50: 65 67 69 73 74 65 72 73 20 74 68 65 20 63 68 61 egisters the cha
2d60: 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20 6f 6e 20 nnel handler on
2d70: 74 68 65 20 73 75 70 65 72 63 65 64 65 64 20 63 the superceded c
2d80: 68 61 6e 6e 65 6c 0a 09 69 6e 73 74 65 61 64 20 hannel..instead
2d90: 6f 66 20 74 68 65 20 75 70 70 65 72 20 63 68 61 of the upper cha
2da0: 6e 6e 65 6c 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 nnel. Also remov
2db0: 65 64 20 74 68 65 20 63 61 6c 6c 20 74 6f 0a 09 ed the call to..
2dc0: 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 Tcl_NotifyChanne
2dd0: 6c 20 69 6e 20 74 68 65 20 43 68 61 6e 6e 65 6c l in the Channel
2de0: 48 61 6e 64 6c 65 72 20 62 65 63 61 75 73 65 20 Handler because
2df0: 74 68 69 73 20 77 69 6c 6c 20 72 65 73 75 6c 74 this will result
2e00: 0a 09 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 ..in an infinite
2e10: 20 6c 6f 6f 70 20 69 66 20 64 61 74 61 20 69 73 loop if data is
2e20: 20 65 76 65 72 20 62 75 66 66 65 72 65 64 20 69 ever buffered i
2e30: 6e 20 74 68 65 20 42 49 4f 0a 09 73 74 72 75 63 n the BIO..struc
2e40: 74 75 72 65 2e 20 5b 42 75 67 3a 20 35 36 32 33 ture. [Bug: 5623
2e50: 5d 0a 0a 32 30 30 30 2d 30 35 2d 33 31 20 20 42 ]..2000-05-31 B
2e60: 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 rent Welch <welc
2e70: 68 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e h@scriptics.com>
2e80: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e ...* tls.c: Chan
2e90: 67 65 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 ge the ChannelHa
2ea0: 6e 64 6c 65 72 20 74 6f 20 62 65 20 72 65 67 69 ndler to be regi
2eb0: 73 74 65 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 stered on the ma
2ec0: 69 6e 0a 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f in..channel as o
2ed0: 70 70 73 65 64 20 74 6f 20 74 68 65 20 22 70 61 ppsed to the "pa
2ee0: 72 65 6e 74 22 2c 20 6f 72 20 73 75 70 65 72 63 rent", or superc
2ef0: 65 65 64 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 eeded, channel.
2f00: 20 54 68 69 73 0a 09 69 73 20 62 65 63 61 75 73 This..is becaus
2f10: 65 20 74 68 65 20 73 6f 63 6b 65 74 20 64 72 69 e the socket dri
2f20: 76 65 72 20 6e 6f 74 69 66 69 65 73 20 74 68 65 ver notifies the
2f30: 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 main channel, a
2f40: 6e 64 20 74 68 65 72 65 0a 09 61 72 65 20 74 69 nd there..are ti
2f50: 6d 65 73 20 77 69 74 68 20 74 68 65 20 6d 61 69 mes with the mai
2f60: 6e 20 63 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 n channel gets c
2f70: 6c 6f 73 65 64 2c 20 62 75 74 20 74 68 65 20 73 losed, but the s
2f80: 75 70 65 72 63 65 64 65 64 0a 09 6f 6e 65 20 69 uperceded..one i
2f90: 73 20 6e 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 s not yet closed
2fa0: 2e 20 20 49 66 20 74 68 65 20 63 68 61 6e 6e 65 . If the channe
2fb0: 6c 20 68 61 6e 64 6c 65 72 20 67 65 74 73 20 74 l handler gets t
2fc0: 72 69 67 67 65 72 65 64 20 69 6e 0a 09 74 68 69 riggered in..thi
2fd0: 73 20 68 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 s half-open stat
2fe0: 65 20 69 74 20 69 73 20 61 73 73 6f 63 69 61 74 e it is associat
2ff0: 65 64 20 77 69 74 68 20 74 68 65 20 73 75 70 65 ed with the supe
3000: 72 63 65 65 64 65 64 0a 09 63 68 61 6e 6e 65 64 rceeded..channed
3010: 6c 2c 20 62 75 74 20 75 73 65 73 20 69 74 73 20 l, but uses its
3020: 70 72 69 76 61 74 65 20 70 6f 69 6e 74 65 72 20 private pointer
3030: 74 6f 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e to the main chan
3040: 6e 65 6c 2c 20 77 68 69 63 68 0a 09 69 73 20 6d nel, which..is m
3050: 6f 73 74 6c 79 20 64 65 73 74 72 6f 79 65 64 2e ostly destroyed.
3060: 20 20 45 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 Eliminated the
3070: 20 72 65 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 redundant call
3080: 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 to..Tcl_NotifyCh
3090: 61 6e 6e 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 annel from TlsWa
30a0: 74 63 68 50 72 6f 63 2e 20 5b 42 75 67 3a 20 35 tchProc. [Bug: 5
30b0: 36 32 33 5d 0a 623].