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