Artifact
fec6460738391942ca75222c4b63d4ad92f142aa:
0000: 32 30 30 34 2d 30 36 2d 32 39 20 20 50 61 74 20 2004-06-29 Pat
0010: 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 Thoyts <patthoy
0020: 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 ts@users.sourcef
0030: 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 6c orge.net>...* tl
0040: 73 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20 20 s.c:
0050: 46 69 78 75 70 20 74 6f 20 62 75 69 6c 64 20 61 Fixup to build a
0060: 67 61 69 6e 73 74 20 74 63 6c 20 38 2e 33 2e 33 gainst tcl 8.3.3
0070: 2e 20 48 61 6e 64 6c 65 0a 09 2a 20 74 6c 73 49 . Handle..* tlsI
0080: 4f 2e 63 3a 20 20 20 20 20 20 20 20 20 20 38 2e O.c: 8.
0090: 34 20 63 6f 6e 73 74 69 66 69 63 61 74 69 6f 6e 4 constification
00a0: 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 ....* tlsInt.h:
00b0: 20 20 20 20 20 20 20 20 41 64 64 65 64 20 68 65 Added he
00c0: 61 64 65 72 73 20 72 65 71 75 69 72 65 64 20 77 aders required w
00d0: 69 74 68 20 4d 53 56 43 20 6f 6e 20 57 69 6e 33 ith MSVC on Win3
00e0: 32 2e 0a 09 2a 20 74 6c 73 58 35 30 39 2e 63 3a 2...* tlsX509.c:
00f0: 20 20 20 20 20 20 20 20 75 6e 64 65 66 20 6d 69 undef mi
0100: 6e 20 61 6e 64 20 6d 61 78 20 69 66 20 64 65 66 n and max if def
0110: 69 6e 65 64 20 28 77 69 6e 33 32 29 2e 0a 0a 09 ined (win32)....
0120: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 20 * Makefile.in:
0130: 20 20 20 20 46 69 78 65 64 20 74 6f 20 62 75 69 Fixed to bui
0140: 6c 64 20 6f 6e 20 77 69 6e 33 32 20 75 73 69 6e ld on win32 usin
0150: 67 20 6d 73 79 73 20 77 69 74 68 0a 09 2a 20 61 g msys with..* a
0160: 63 6c 6f 63 61 6c 2e 6d 34 3a 20 20 20 20 20 20 clocal.m4:
0170: 20 4d 53 56 43 2e 20 41 6c 73 6f 20 66 69 78 65 MSVC. Also fixe
0180: 64 20 74 68 65 20 74 65 73 74 20 74 61 72 67 65 d the test targe
0190: 74 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e t...* configure.
01a0: 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 in:..* configure
01b0: 3a 20 20 20 20 20 20 20 20 52 65 67 65 6e 65 72 : Regener
01c0: 61 74 65 64 2e 0a 09 2a 20 74 63 6c 63 6f 6e 66 ated...* tclconf
01d0: 69 67 2f 74 63 6c 2e 6d 34 3a 20 55 70 64 61 74 ig/tcl.m4: Updat
01e0: 65 64 20 74 6f 20 6d 6f 73 74 20 72 65 63 65 6e ed to most recen
01f0: 74 20 76 65 72 73 69 6f 6e 2e 0a 0a 32 30 30 34 t version...2004
0200: 2d 30 33 2d 32 33 20 20 44 61 6e 20 52 61 7a 7a -03-23 Dan Razz
0210: 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 ell <research@st
0220: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 arfishsystems.ca
0230: 3e 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 >..* tls.c:..* t
0240: 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 lsBIO.c:..* tlsI
0250: 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 O.c:..* tlsInt.h
0260: 3a 09 46 69 78 65 64 20 74 79 70 65 20 6d 61 74 :.Fixed type mat
0270: 63 68 20 77 61 72 6e 69 6e 67 73 2e 0a 0a 32 30 ch warnings...20
0280: 30 34 2d 30 33 2d 31 39 20 20 4a 65 66 66 20 48 04-03-19 Jeff H
0290: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 obbs <jeffh@Act
02a0: 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 iveState.com>...
02b0: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 * tls.c (Tls_Ini
02c0: 74 29 3a 20 20 20 72 65 70 6c 61 63 65 64 20 6f t): replaced o
02d0: 6c 64 65 72 20 54 45 41 20 63 6f 6e 66 69 67 20 lder TEA config
02e0: 77 69 74 68 20 6e 65 77 65 72 0a 09 2a 20 63 6f with newer..* co
02f0: 6e 66 69 67 2f 2a 20 28 72 65 6d 6f 76 65 64 29 nfig/* (removed)
0300: 3a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 :..* pkgIndex.tc
0310: 6c 2e 69 6e 2c 20 73 74 72 6e 63 61 73 65 63 6d l.in, strncasecm
0320: 70 2e 63 20 28 72 65 6d 6f 76 65 64 29 3a 0a 09 p.c (removed):..
0330: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 61 * Makefile.in, a
0340: 63 6c 6f 63 61 6c 2e 6d 34 2c 20 63 6f 6e 66 69 clocal.m4, confi
0350: 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 72 65 2e gure, configure.
0360: 69 6e 3a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 in:..* tclconfig
0370: 2f 52 45 41 44 4d 45 2e 74 78 74 2c 20 74 63 6c /README.txt, tcl
0380: 63 6f 6e 66 69 67 2f 69 6e 73 74 61 6c 6c 2d 73 config/install-s
0390: 68 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c h, tclconfig/tcl
03a0: 2e 6d 34 3a 0a 0a 32 30 30 34 2d 30 33 2d 31 37 .m4:..2004-03-17
03b0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 Dan Razzell <r
03c0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 esearch@starfish
03d0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 systems.ca>...*
03e0: 74 6c 73 58 35 30 39 2e 63 3a 09 41 64 64 20 73 tlsX509.c:.Add s
03f0: 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 6e 67 20 upport for long
0400: 73 65 72 69 61 6c 20 6e 75 6d 62 65 72 73 20 70 serial numbers p
0410: 65 72 20 52 46 43 20 33 32 38 30 2e 0a 09 09 09 er RFC 3280.....
0420: 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77 20 68 65 Format is now he
0430: 78 61 64 65 63 69 6d 61 6c 2e 20 0a 09 09 09 5b xadecimal. ....[
0440: 52 65 71 75 65 73 74 20 23 39 31 35 33 31 33 5d Request #915313]
0450: 0a 09 09 09 43 6f 72 72 65 63 74 6c 79 20 63 6f ....Correctly co
0460: 6e 76 65 72 74 20 63 65 72 74 69 66 69 63 61 74 nvert certificat
0470: 65 20 44 69 73 74 69 6e 67 75 69 73 68 65 64 20 e Distinguished
0480: 4e 61 6d 65 73 0a 09 09 09 74 6f 20 54 63 6c 20 Names....to Tcl
0490: 73 74 72 69 6e 67 20 72 65 70 72 65 73 65 6e 74 string represent
04a0: 61 74 69 6f 6e 2e 20 20 45 6c 69 6d 69 6e 61 74 ation. Eliminat
04b0: 65 73 20 75 73 65 20 6f 66 0a 09 09 09 64 65 70 es use of....dep
04c0: 72 65 63 61 74 65 64 20 4f 70 65 6e 53 53 4c 20 recated OpenSSL
04d0: 66 75 6e 63 74 69 6f 6e 2e 20 20 46 6f 72 6d 61 function. Forma
04e0: 74 20 69 73 20 6e 6f 77 20 63 6f 6d 70 6c 69 61 t is now complia
04f0: 6e 74 0a 09 09 09 77 69 74 68 20 52 46 43 20 32 nt....with RFC 2
0500: 32 35 33 2e 20 20 5b 52 65 71 75 65 73 74 20 23 253. [Request #
0510: 39 31 35 33 31 35 5d 0a 0a 32 30 30 34 2d 30 32 915315]..2004-02
0520: 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c -17 Dan Razzell
0530: 20 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 54 4c 53 20 31 2e 35 2e 30 20 52 45 4c 45 41 .TLS 1.5.0 RELEA
0560: 53 45 0a 0a 32 30 30 34 2d 30 32 2d 31 32 20 20 SE..2004-02-12
0570: 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 Dan Razzell.<res
0580: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
0590: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c stems.ca>...* tl
05a0: 73 2e 63 3a 09 41 6c 6c 6f 77 20 76 65 72 69 66 s.c:.Allow verif
05b0: 79 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20 72 65 y callback to re
05c0: 74 75 72 6e 20 65 6d 70 74 79 20 72 65 73 75 6c turn empty resul
05d0: 74 2e 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 09 44 t...* tls.htm:.D
05e0: 6f 63 75 6d 65 6e 74 20 63 61 6c 6c 62 61 63 6b ocument callback
05f0: 20 62 65 68 61 76 69 6f 72 73 2e 0a 0a 32 30 30 behaviors...200
0600: 34 2d 30 32 2d 31 31 20 20 44 61 6e 20 52 61 7a 4-02-11 Dan Raz
0610: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 zell.<research@s
0620: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 tarfishsystems.c
0630: 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 a>...* tests/tls
0640: 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 72 65 6d 6f IO.test:..* remo
0650: 74 65 2e 74 63 6c 3a 09 43 6f 6d 70 6c 65 74 65 te.tcl:.Complete
0660: 20 70 72 69 76 61 74 65 20 6b 65 79 20 6e 61 6d private key nam
0670: 65 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 32 e changes from 2
0680: 30 30 31 2d 30 36 2d 32 31 2e 0a 0a 32 30 30 34 001-06-21...2004
0690: 2d 30 32 2d 30 33 20 20 44 61 6e 20 52 61 7a 7a -02-03 Dan Razz
06a0: 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 ell <research@st
06b0: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 arfishsystems.ca
06c0: 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 >...* Makefile.i
06d0: 6e 3a 09 52 65 6d 6f 76 65 64 20 63 69 72 63 75 n:.Removed circu
06e0: 6c 61 72 20 64 65 70 65 6e 64 65 6e 63 79 2e 0a lar dependency..
06f0: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 4d 61 6b .* tlsInt.h:.Mak
0700: 65 20 66 75 6e 63 74 69 6f 6e 20 64 65 63 6c 61 e function decla
0710: 72 61 74 69 6f 6e 73 20 65 78 70 6c 69 63 69 74 rations explicit
0720: 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09 46 69 78 20 ...* tls.c:.Fix
0730: 74 79 70 65 20 6d 61 74 63 68 20 61 6e 64 20 75 type match and u
0740: 6e 75 73 65 64 20 76 61 72 69 61 62 6c 65 20 77 nused variable w
0750: 61 72 6e 69 6e 67 73 2e 0a 09 2a 20 74 6c 73 42 arnings...* tlsB
0760: 49 4f 2e 63 3a 09 46 69 78 20 74 79 70 65 20 6d IO.c:.Fix type m
0770: 61 74 63 68 20 77 61 72 6e 69 6e 67 2e 0a 0a 32 atch warning...2
0780: 30 30 33 2d 31 32 2d 31 35 20 20 44 61 6e 20 52 003-12-15 Dan R
0790: 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 azzell.<research
07a0: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 @starfishsystems
07b0: 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 .ca>...* pkgInde
07c0: 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 74 6c 73 x.tcl.in:..* tls
07d0: 2e 68 74 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 74 .htm:..* tests/t
07e0: 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 lsIO.test: updat
07f0: 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e ed version to 1.
0800: 35 2e 0a 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 5...2003-10-07
0810: 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 Dan Razzell.<res
0820: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 earch@starfishsy
0830: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 stems.ca>...* te
0840: 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 sts/ciphers.test
0850: 3a 20 75 70 64 61 74 65 64 20 6c 69 73 74 20 6f : updated list o
0860: 66 20 74 65 73 74 65 64 20 63 69 70 68 65 72 73 f tested ciphers
0870: 20 74 6f 20 63 6f 72 72 65 73 70 6f 6e 64 0a 09 to correspond..
0880: 2a 20 77 69 74 68 20 74 68 6f 73 65 20 61 76 61 * with those ava
0890: 69 6c 61 62 6c 65 20 66 72 6f 6d 20 4f 70 65 6e ilable from Open
08a0: 53 53 4c 2e 20 5b 52 65 71 75 65 73 74 20 23 38 SSL. [Request #8
08b0: 31 31 39 38 31 5d 0a 0a 32 30 30 33 2d 31 30 2d 11981]..2003-10-
08c0: 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 07 Dan Razzell
08d0: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 <research@starfi
08e0: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 shsystems.ca>...
08f0: 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 43 * tls.c: added C
0900: 4f 4e 53 54 20 77 69 74 68 20 69 6e 74 65 6e 74 ONST with intent
0910: 20 73 69 6d 69 6c 61 72 20 74 6f 20 74 68 6f 73 similar to thos
0920: 65 20 66 72 6f 6d 20 32 30 30 32 2d 30 32 2d 30 e from 2002-02-0
0930: 34 2e 0a 09 5b 52 65 71 75 65 73 74 20 23 38 31 4...[Request #81
0940: 31 39 31 31 5d 0a 0a 32 30 30 33 2d 30 37 2d 30 1911]..2003-07-0
0950: 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 7 Jeff Hobbs <
0960: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 jeffh@ActiveStat
0970: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 e.com>...* tls.c
0980: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20 61 (Tls_Init): a
0990: 64 64 65 64 20 74 6c 73 3a 3a 6d 69 73 63 20 63 dded tls::misc c
09a0: 6f 6d 6d 61 6e 64 20 70 72 6f 76 69 64 65 64 20 ommand provided
09b0: 62 79 0a 09 2a 20 74 6c 73 58 35 30 39 2e 63 3a by..* tlsX509.c:
09c0: 20 20 20 20 20 20 20 20 20 20 57 6f 6a 63 69 65 Wojcie
09d0: 63 68 20 4b 6f 63 6a 61 6e 20 28 77 6f 6a 63 69 ch Kocjan (wojci
09e0: 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f 72 67 29 0a ech kocjan.org).
09f0: 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73 74 .* tests/keytest
0a00: 31 2e 74 63 6c 3a 20 74 6f 20 65 78 70 6f 73 65 1.tcl: to expose
0a10: 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65 76 65 6c 20 more low-level
0a20: 53 53 4c 20 63 6f 6d 6d 61 6e 64 73 0a 09 2a 20 SSL commands..*
0a30: 74 65 73 74 73 2f 6b 65 79 74 65 73 74 32 2e 74 tests/keytest2.t
0a40: 63 6c 3a 0a 0a 32 30 30 33 2d 30 35 2d 31 35 20 cl:..2003-05-15
0a50: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 Dan Razzell.<re
0a60: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 search@starfishs
0a70: 79 73 74 65 6d 73 2e 63 61 3e 20 0a 0a 09 2a 20 ystems.ca> ...*
0a80: 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20 74 6c 73 49 tls.tcl:..* tlsI
0a90: 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 nt.h:..* tls.c:
0aa0: 61 64 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 add support for
0ab0: 62 69 6e 64 69 6e 67 20 61 20 70 61 73 73 77 6f binding a passwo
0ac0: 72 64 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20 74 rd callback to t
0ad0: 68 65 20 73 6f 63 6b 65 74 2e 0a 09 4e 6f 77 20 he socket...Now
0ae0: 65 61 63 68 20 73 6f 63 6b 65 74 20 63 61 6e 20 each socket can
0af0: 68 61 76 65 20 69 74 73 20 6f 77 6e 20 63 6f 6d have its own com
0b00: 6d 61 6e 64 20 61 6e 64 20 70 61 73 73 77 6f 72 mand and passwor
0b10: 64 20 63 61 6c 6c 62 61 63 6b 73 20 69 6e 73 74 d callbacks inst
0b20: 65 61 64 0a 09 6f 66 20 62 65 69 6e 67 20 66 6f ead..of being fo
0b30: 72 63 65 64 20 74 6f 20 68 61 76 65 20 61 6c 6c rced to have all
0b40: 20 70 61 73 73 77 6f 72 64 20 6d 61 6e 61 67 65 password manage
0b50: 6d 65 6e 74 20 70 61 73 73 20 74 68 72 6f 75 67 ment pass throug
0b60: 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09 70 72 6f 63 h a common..proc
0b70: 65 64 75 72 65 2e 20 20 54 68 65 20 63 6f 6d 6d edure. The comm
0b80: 6f 6e 20 70 61 73 73 77 6f 72 64 20 70 72 6f 63 on password proc
0b90: 65 64 75 72 65 20 69 73 20 72 65 74 61 69 6e 65 edure is retaine
0ba0: 64 20 66 6f 72 20 63 6f 6d 70 61 74 69 62 69 6c d for compatibil
0bb0: 69 74 79 0a 09 62 75 74 20 69 74 73 20 75 73 65 ity..but its use
0bc0: 20 73 68 6f 75 6c 64 20 62 65 20 44 45 50 52 45 should be DEPRE
0bd0: 43 41 54 45 44 2e 0a 09 41 64 64 20 76 65 72 73 CATED...Add vers
0be0: 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 72 ion command to r
0bf0: 65 74 75 72 6e 20 4f 70 65 6e 53 53 4c 20 76 65 eturn OpenSSL ve
0c00: 72 73 69 6f 6e 20 73 74 72 69 6e 67 2e 0a 09 52 rsion string...R
0c10: 65 6d 6f 76 65 20 75 6e 73 74 61 62 6c 65 20 77 emove unstable w
0c20: 6f 72 6b 61 72 6f 75 6e 64 73 20 6e 65 65 64 65 orkarounds neede
0c30: 64 20 66 6f 72 20 76 65 72 69 66 79 20 69 6e 20 d for verify in
0c40: 6f 62 73 6f 6c 65 74 65 20 76 65 72 73 69 6f 6e obsolete version
0c50: 73 20 6f 66 0a 09 4f 70 65 6e 53 53 4c 2e 0a 09 s of..OpenSSL...
0c60: 46 69 78 20 6d 65 6d 6f 72 79 20 6c 65 61 6b 2e Fix memory leak.
0c70: 20 5b 52 65 71 75 65 73 74 20 23 36 34 30 36 36 [Request #64066
0c80: 30 5d 0a 09 4d 6f 72 65 20 63 61 73 74 73 20 74 0]..More casts t
0c90: 6f 20 65 6c 69 6d 69 6e 61 74 65 20 63 6f 6d 70 o eliminate comp
0ca0: 69 6c 65 72 20 77 61 72 6e 69 6e 67 73 2e 0a 0a iler warnings...
0cb0: 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 64 6f 63 75 .* tls.htm: docu
0cc0: 6d 65 6e 74 20 70 61 73 73 77 6f 72 64 20 63 61 ment password ca
0cd0: 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72 72 65 63 74 llback...Correct
0ce0: 20 74 65 63 68 6e 69 63 61 6c 20 61 6e 64 20 74 technical and t
0cf0: 79 70 6f 67 72 61 70 68 69 63 20 65 72 72 6f 72 ypographic error
0d00: 73 2e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 s....* README.tx
0d10: 74 3a 20 69 64 65 6e 74 69 66 79 20 76 65 72 73 t: identify vers
0d20: 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c 20 ions of OpenSSL
0d30: 77 68 69 63 68 20 66 69 78 20 6b 6e 6f 77 6e 20 which fix known
0d40: 70 72 6f 62 6c 65 6d 73 2e 0a 09 47 65 6e 65 72 problems...Gener
0d50: 61 6c 20 77 61 72 6e 69 6e 67 20 6f 66 20 73 65 al warning of se
0d60: 63 75 72 69 74 79 20 70 72 6f 62 6c 65 6d 73 20 curity problems
0d70: 69 6e 20 6f 6c 64 65 72 20 76 65 72 73 69 6f 6e in older version
0d80: 73 20 6f 66 20 4f 70 65 6e 53 53 4c 2e 0a 0a 32 s of OpenSSL...2
0d90: 30 30 32 2d 30 32 2d 30 34 20 20 4a 65 66 66 20 002-02-04 Jeff
0da0: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 Hobbs <jeffh@Ac
0db0: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a tiveState.com>..
0dc0: 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 .* tls.htm:..* t
0dd0: 6c 73 2e 63 3a 20 61 64 64 65 64 20 73 75 70 70 ls.c: added supp
0de0: 6f 72 74 20 66 6f 72 20 6c 6f 63 61 6c 20 63 65 ort for local ce
0df0: 72 74 69 66 69 63 61 74 65 20 73 74 61 74 75 73 rtificate status
0e00: 20 63 68 65 63 6b 2c 20 61 73 20 77 65 6c 6c 0a check, as well.
0e10: 09 61 73 20 72 65 74 75 72 6e 69 6e 67 20 74 68 .as returning th
0e20: 65 20 23 20 6f 66 20 62 69 74 73 20 69 6e 20 74 e # of bits in t
0e30: 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 79 2e 20 he session key.
0e40: 5b 50 61 74 63 68 20 23 35 30 35 36 39 38 5d 20 [Patch #505698]
0e50: 28 72 6f 73 65 29 0a 0a 09 2a 20 74 6c 73 2e 63 (rose)...* tls.c
0e60: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a :..* tlsIO.c:..*
0e70: 20 74 6c 73 42 49 4f 2e 63 3a 20 61 64 64 65 64 tlsBIO.c: added
0e80: 20 43 4f 4e 53 54 73 20 74 6f 20 73 61 74 69 73 CONSTs to satis
0e90: 66 79 20 54 63 6c 20 38 2e 34 20 73 6f 75 72 63 fy Tcl 8.4 sourc
0ea0: 65 73 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 67 es. This may..g
0eb0: 69 76 65 20 77 61 72 6e 69 6e 67 73 20 77 68 65 ive warnings whe
0ec0: 6e 20 63 6f 6d 70 69 6c 65 64 20 61 67 61 69 6e n compiled again
0ed0: 73 74 20 38 2e 33 2c 20 62 75 74 20 74 68 65 79 st 8.3, but they
0ee0: 20 63 61 6e 20 62 65 20 69 67 6e 6f 72 65 64 2e can be ignored.
0ef0: 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c ...* tests/simpl
0f00: 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a 09 2a 20 eClient.tcl:..*
0f10: 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 76 tests/simpleServ
0f20: 65 72 2e 74 63 6c 3a 20 70 6f 69 6e 74 20 74 6f er.tcl: point to
0f30: 20 75 70 64 61 74 65 64 20 63 6c 69 65 6e 74 2f updated client/
0f40: 73 65 72 76 65 72 20 6b 65 79 20 66 69 6c 65 73 server key files
0f50: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 ....* tests/tlsI
0f60: 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 65 73 74 73 O.test:..* tests
0f70: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 /ciphers.test: u
0f80: 70 64 61 74 65 64 20 74 6f 20 6c 6f 61 64 20 74 pdated to load t
0f90: 6c 73 20 66 72 6f 6d 20 62 75 69 6c 64 20 64 69 ls from build di
0fa0: 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e r....* Makefile.
0fb0: 69 6e 3a 20 72 65 6d 6f 76 65 64 20 73 74 72 6e in: removed strn
0fc0: 63 61 73 65 63 6d 70 20 66 72 6f 6d 20 64 65 66 casecmp from def
0fd0: 61 75 6c 74 20 6f 62 6a 65 63 74 20 73 65 74 2e ault object set.
0fe0: 20 20 54 68 69 73 0a 09 69 73 20 6f 6e 6c 79 20 This..is only
0ff0: 6e 65 65 64 65 64 20 6f 6e 20 74 68 65 20 4d 61 needed on the Ma
1000: 63 2c 20 61 6e 64 20 54 63 6c 20 73 74 75 62 73 c, and Tcl stubs
1010: 20 70 72 6f 76 69 64 65 73 20 69 74 2e 0a 0a 09 provides it....
1020: 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 72 65 67 * configure: reg
1030: 65 6e 27 65 64 2e 0a 09 2a 20 63 6f 6e 66 69 67 en'ed...* config
1040: 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65 64 20 ure.in: updated
1050: 74 6f 20 31 2e 35 2e 30 20 66 6f 72 20 6e 65 78 to 1.5.0 for nex
1060: 74 20 72 65 6c 65 61 73 65 2e 0a 09 43 68 61 6e t release...Chan
1070: 67 65 64 20 64 65 66 61 75 6c 74 20 6f 70 65 6e ged default open
1080: 73 73 6c 20 6c 6f 63 61 74 69 6f 6e 20 74 6f 20 ssl location to
1090: 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 73 6c 20 28 /usr/local/ssl (
10a0: 74 68 69 73 20 69 73 20 77 68 65 72 65 0a 09 6f this is where..o
10b0: 70 65 6e 73 73 6c 20 30 2e 39 2e 36 63 20 69 6e penssl 0.9.6c in
10c0: 73 74 61 6c 6c 73 20 62 79 20 64 65 66 61 75 6c stalls by defaul
10d0: 74 29 2e 0a 09 43 68 61 6e 67 65 64 20 74 6f 20 t)...Changed to
10e0: 75 73 65 20 70 75 62 6c 69 63 20 54 63 6c 20 68 use public Tcl h
10f0: 65 61 64 65 72 73 20 28 70 72 69 76 61 74 65 20 eaders (private
1100: 6e 6f 74 20 6e 65 65 64 65 64 29 2e 0a 0a 32 30 not needed)...20
1110: 30 31 2d 30 36 2d 32 31 20 20 4a 65 66 66 20 48 01-06-21 Jeff H
1120: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 obbs <jeffh@Act
1130: 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 iveState.com>...
1140: 54 4c 53 20 31 2e 34 2e 31 20 52 45 4c 45 41 53 TLS 1.4.1 RELEAS
1150: 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a E...* configure:
1160: 20 61 64 64 65 64 20 63 6f 6e 66 69 67 75 72 65 added configure
1170: 20 74 6f 20 43 56 53 0a 09 2a 20 63 6f 6e 66 69 to CVS..* confi
1180: 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 65 64 20 74 gure.in: moved t
1190: 6f 20 70 61 74 63 68 6c 65 76 65 6c 20 31 2e 34 o patchlevel 1.4
11a0: 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e .1...* Makefile.
11b0: 69 6e 3a 20 63 6f 72 72 65 63 74 65 64 20 27 64 in: corrected 'd
11c0: 69 73 74 27 20 74 61 72 67 65 74 0a 0a 09 2a 20 ist' target...*
11d0: 74 65 73 74 73 2f 63 65 72 74 73 2f 66 69 6c 65 tests/certs/file
11e0: 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 63 .srl:..* tests/c
11f0: 65 72 74 73 2f 63 61 2e 70 65 6d 3a 0a 09 2a 20 erts/ca.pem:..*
1200: 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 tests/certs/clie
1210: 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 nt.key:..* tests
1220: 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 70 65 /certs/client.pe
1230: 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 m:..* tests/cert
1240: 73 2f 63 6c 69 65 6e 74 2e 72 65 71 3a 0a 09 2a s/client.req:..*
1250: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 70 72 69 tests/certs/pri
1260: 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 vkey.pem:..* tes
1270: 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e ts/certs/server.
1280: 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 key:..* tests/ce
1290: 72 74 73 2f 73 65 72 76 65 72 2e 70 65 6d 3a 0a rts/server.pem:.
12a0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 .* tests/certs/s
12b0: 65 72 76 65 72 2e 72 65 71 3a 0a 09 2a 20 74 65 erver.req:..* te
12c0: 73 74 73 2f 63 65 72 74 73 2f 63 61 63 65 72 74 sts/certs/cacert
12d0: 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 .pem: replaced b
12e0: 79 20 6e 65 77 20 63 61 2e 70 65 6d 0a 09 2a 20 y new ca.pem..*
12f0: 74 65 73 74 73 2f 63 65 72 74 73 2f 73 6b 65 79 tests/certs/skey
1300: 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 .pem: replaced b
1310: 79 20 6e 65 77 20 73 65 72 76 65 72 2e 6b 65 79 y new server.key
1320: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f ..* tests/certs/
1330: 63 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 ckey.pem: replac
1340: 65 64 20 62 79 20 6e 65 77 20 63 6c 69 65 6e 74 ed by new client
1350: 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 .key..* tests/ce
1360: 72 74 73 2f 52 45 41 44 4d 45 2e 74 78 74 3a 20 rts/README.txt:
1370: 6e 65 77 20 73 65 74 20 6f 66 20 74 65 73 74 20 new set of test
1380: 63 65 72 74 69 66 69 63 61 74 65 73 20 77 69 74 certificates wit
1390: 68 20 73 6f 6d 65 0a 09 52 45 41 44 4d 45 20 69 h some..README i
13a0: 6e 66 6f 20 6f 6e 20 74 68 65 69 72 20 67 65 6e nfo on their gen
13b0: 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74 65 73 eration....* tes
13c0: 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a ts/ciphers.test:
13d0: 20 75 70 64 61 74 65 64 20 63 69 70 68 65 72 73 updated ciphers
13e0: 20 65 78 70 65 63 74 65 64 20 77 69 74 68 20 64 expected with d
13f0: 65 66 61 75 6c 74 0a 09 6f 70 65 6e 73 73 6c 20 efault..openssl
1400: 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 65 73 74 73 build....* tests
1410: 2f 74 63 6c 49 4f 2e 74 65 73 74 3a 20 75 70 64 /tclIO.test: upd
1420: 61 74 65 64 20 74 6f 20 75 73 65 20 6e 65 77 20 ated to use new
1430: 6e 61 6d 65 73 20 66 6f 72 20 63 65 72 74 73 2f names for certs/
1440: 6b 65 79 73 2e 0a 0a 32 30 30 31 2d 30 33 2d 31 keys...2001-03-1
1450: 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 4 Jeff Hobbs <
1460: 6a 65 66 66 68 40 67 69 6d 6c 65 74 2e 61 63 74 jeffh@gimlet.act
1470: 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 ivestate.com>...
1480: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 * tls.c (Tls_Ini
1490: 74 29 3a 20 61 64 64 20 64 6f 2f 77 68 69 6c 65 t): add do/while
14a0: 20 66 6f 72 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 for random numb
14b0: 65 72 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f er initializatio
14c0: 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 72 6f 75 6e n..to work aroun
14d0: 64 20 73 6f 6d 65 20 4f 53 65 73 20 71 75 69 72 d some OSes quir
14e0: 6b 73 2e 20 20 28 52 61 6c 70 68 2e 42 69 6c 6c ks. (Ralph.Bill
14f0: 65 73 40 74 65 6c 74 65 63 68 2e 63 6f 6d 2e 61 es@teltech.com.a
1500: 75 29 0a 0a 32 30 30 30 2d 30 39 2d 30 37 20 20 u)..2000-09-07
1510: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
1520: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
1530: 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 >...* tlsIO.c (T
1540: 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70 65 29 3a ls_ChannelType):
1550: 20 73 65 74 20 74 79 70 65 4e 61 6d 65 20 66 69 set typeName fi
1560: 65 6c 64 20 6f 66 20 63 68 61 6e 6e 65 6c 20 74 eld of channel t
1570: 79 70 65 20 74 6f 0a 09 22 74 6c 73 22 20 28 74 ype to.."tls" (t
1580: 68 69 73 20 67 6f 74 20 6c 6f 73 74 20 69 6e 20 his got lost in
1590: 6d 6f 76 65 20 74 6f 20 64 79 6e 61 6d 69 63 20 move to dynamic
15a0: 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61 74 61 62 version compatab
15b0: 69 6c 69 74 79 0a 09 63 68 65 63 6b 69 6e 67 29 ility..checking)
15c0: 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 33 20 20 4a ...2000-08-23 J
15d0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 eff Hobbs <hobb
15e0: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e s@scriptics.com>
15f0: 0a 0a 09 54 4c 53 20 31 2e 34 20 52 45 4c 45 41 ...TLS 1.4 RELEA
1600: 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 SED...* Makefile
1610: 2e 69 6e 20 28 64 69 73 74 29 3a 20 63 72 65 61 .in (dist): crea
1620: 74 65 20 64 69 73 74 20 74 61 72 67 65 74 20 66 te dist target f
1630: 6f 72 20 61 72 63 68 69 76 65 20 64 69 73 74 72 or archive distr
1640: 69 62 75 74 69 6f 6e 73 0a 0a 09 2a 20 74 65 73 ibutions...* tes
1650: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 20 28 74 ts/tlsIO.test (t
1660: 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 64 64 65 64 lsIO-8.1): added
1670: 20 61 20 64 65 6c 61 79 20 6f 6e 20 74 68 65 20 a delay on the
1680: 61 63 63 65 70 74 20 63 6c 6f 73 65 0a 09 74 6f accept close..to
1690: 20 6d 61 6b 65 20 74 68 65 20 74 65 73 74 20 77 make the test w
16a0: 6f 72 6b 20 77 69 74 68 20 4f 70 65 6e 53 53 4c ork with OpenSSL
16b0: 20 6f 6e 20 57 69 6e 64 6f 77 73 20 28 64 6f 65 on Windows (doe
16c0: 73 6e 27 74 20 61 66 66 65 63 74 0a 09 6f 74 68 sn't affect..oth
16d0: 65 72 20 62 75 69 6c 64 73 29 2e 0a 0a 09 2a 20 er builds)....*
16e0: 74 6c 73 2e 68 74 6d 3a 20 75 70 64 61 74 65 64 tls.htm: updated
16f0: 20 77 69 74 68 20 6e 6f 74 65 73 20 66 6f 72 20 with notes for
1700: 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 31 1.4...2000-08-21
1710: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 Jeff Hobbs <h
1720: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 obbs@scriptics.c
1730: 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c om>...* tests/tl
1740: 73 49 4f 2e 74 65 73 74 3a 20 72 65 71 75 69 72 sIO.test: requir
1750: 65 20 61 74 20 6c 65 61 73 74 20 74 6c 73 31 2e e at least tls1.
1760: 34 20 69 6e 20 74 65 73 74 20 73 75 69 74 65 2e 4 in test suite.
1770: 0a 0a 32 30 30 30 2d 30 38 2d 31 38 20 20 4a 65 ..2000-08-18 Je
1780: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 ff Hobbs <hobbs
1790: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a @scriptics.com>.
17a0: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 ..* tls.c (Tls_I
17b0: 6e 69 74 29 3a 20 61 64 64 65 64 20 63 61 6c 6c nit): added call
17c0: 20 74 6f 20 52 41 4e 44 5f 73 65 65 64 20 74 6f to RAND_seed to
17d0: 20 73 65 65 64 20 74 68 65 20 53 53 4c 20 72 61 seed the SSL ra
17e0: 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 20 67 65 6e ndom..number gen
17f0: 65 72 61 74 6f 72 2e 20 20 57 69 74 68 6f 75 74 erator. Without
1800: 20 74 68 69 73 2c 20 4f 70 65 6e 53 53 4c 20 30 this, OpenSSL 0
1810: 2e 39 2e 35 20 63 68 6f 6b 65 73 2c 20 61 6e 64 .9.5 chokes, and
1820: 20 69 6e 20 61 6e 79 0a 09 63 61 73 65 20 69 74 in any..case it
1830: 20 69 73 20 61 20 62 69 67 20 73 65 63 75 72 69 is a big securi
1840: 74 79 20 68 6f 6c 65 20 74 6f 20 64 6f 20 77 69 ty hole to do wi
1850: 74 68 6f 75 74 20 69 74 2e 0a 0a 09 2a 20 63 6f thout it....* co
1860: 6e 66 69 67 75 72 65 2e 69 6e 20 28 4f 50 45 4e nfigure.in (OPEN
1870: 53 53 4c 29 3a 20 61 64 64 65 64 20 4e 4f 5f 49 SSL): added NO_I
1880: 44 45 41 20 61 6e 64 20 4e 4f 5f 52 43 35 20 64 DEA and NO_RC5 d
1890: 65 66 69 6e 65 73 20 62 79 0a 09 64 65 66 61 75 efines by..defau
18a0: 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 6e lt when compilin
18b0: 67 20 77 69 74 68 20 4f 70 65 6e 53 53 4c 2e 0a g with OpenSSL..
18c0: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 61 64 ..* tlsInt.h: ad
18d0: 64 65 64 20 65 72 72 2e 68 20 69 6e 63 6c 75 64 ded err.h includ
18e0: 65 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a e...* tlsBIO.c:.
18f0: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 .* tlsIO.c: corr
1900: 65 63 74 65 64 20 70 65 64 61 6e 74 69 63 20 63 ected pedantic c
1910: 61 73 74 20 65 72 72 6f 72 73 2e 0a 0a 32 30 30 ast errors...200
1920: 30 2d 30 38 2d 31 36 20 20 4a 65 66 66 20 48 6f 0-08-16 Jeff Ho
1930: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 bbs <hobbs@scri
1940: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 ptics.com>...* t
1950: 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 ests/ciphers.tes
1960: 74 3a 20 69 6d 70 72 6f 76 65 64 20 61 62 69 6c t: improved abil
1970: 69 74 79 20 74 6f 20 63 68 61 6e 67 65 20 63 6f ity to change co
1980: 6e 73 74 72 61 69 6e 74 0a 09 73 65 74 74 69 6e nstraint..settin
1990: 67 20 66 6f 72 20 77 68 65 74 68 65 72 20 75 73 g for whether us
19a0: 65 72 20 63 6f 6d 70 69 6c 65 64 20 61 67 61 69 er compiled agai
19b0: 6e 73 74 20 52 53 41 20 6f 72 20 4f 70 65 6e 53 nst RSA or OpenS
19c0: 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a 20 74 6c 73 SL libs....* tls
19d0: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 .c (Tls_Init): c
19e0: 6f 72 72 65 63 74 65 64 20 69 6e 74 65 72 70 72 orrected interpr
19f0: 65 74 61 74 69 6f 6e 20 6f 66 20 76 65 72 73 69 etation of versi
1a00: 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 70 61 74 63 on number..(patc
1a10: 68 6c 65 76 65 6c 20 61 6e 64 20 72 65 6c 65 61 hlevel and relea
1a20: 73 65 2f 73 65 72 69 61 6c 20 77 65 72 65 20 73 se/serial were s
1a30: 77 61 70 70 65 64 29 2e 0a 0a 32 30 30 30 2d 30 wapped)...2000-0
1a40: 38 2d 31 35 20 20 4a 65 66 66 20 48 6f 62 62 73 8-15 Jeff Hobbs
1a50: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 <hobbs@scripti
1a60: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 52 45 41 44 cs.com>...* READ
1a70: 4d 45 2e 74 78 74 3a 20 61 64 64 65 64 20 6e 6f ME.txt: added no
1a80: 74 65 73 20 61 62 6f 75 74 20 6e 65 65 64 20 74 tes about need t
1a90: 6f 20 75 73 65 20 38 2e 32 2e 30 2b 2e 0a 0a 09 o use 8.2.0+....
1aa0: 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 * tlsInt.h:..* t
1ab0: 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 ls.c:..* tlsIO.c
1ac0: 3a 20 63 6f 72 72 65 63 74 65 64 20 73 74 72 75 : corrected stru
1ad0: 63 74 75 72 65 20 69 6e 69 74 69 61 6c 69 7a 61 cture initializa
1ae0: 74 69 6f 6e 20 74 6f 20 77 6f 72 6b 20 77 68 65 tion to work whe
1af0: 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 n..compiling wit
1b00: 68 20 38 2e 32 2e 20 20 4e 6f 77 20 63 6f 6d 70 h 8.2. Now comp
1b10: 69 6c 65 73 20 77 69 74 68 20 38 2e 32 2b 20 61 iles with 8.2+ a
1b20: 6e 64 20 74 65 73 74 65 64 20 74 6f 20 77 6f 72 nd tested to wor
1b30: 6b 0a 09 77 69 74 68 20 38 2e 32 2b 20 61 6e 64 k..with 8.2+ and
1b40: 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 61 64 6a dynamically adj
1b50: 75 73 74 20 74 6f 20 74 68 65 20 76 65 72 73 69 ust to the versi
1b60: 6f 6e 20 6f 66 20 54 63 6c 20 69 74 20 77 61 73 on of Tcl it was
1b70: 0a 09 6c 6f 61 64 65 64 20 69 6e 74 6f 2e 20 20 ..loaded into.
1b80: 54 4c 53 20 77 69 6c 6c 20 66 61 69 6c 20 74 68 TLS will fail th
1b90: 65 20 74 65 73 74 20 73 75 69 74 65 20 77 69 74 e test suite wit
1ba0: 68 20 54 63 6c 20 38 2e 32 2d 38 2e 33 2e 31 2e h Tcl 8.2-8.3.1.
1bb0: 0a 0a 09 2a 20 74 65 73 74 73 2f 61 6c 6c 2e 74 ...* tests/all.t
1bc0: 63 6c 3a 20 61 64 64 65 64 20 63 61 74 63 68 20 cl: added catch
1bd0: 61 72 6f 75 6e 64 20 3a 3a 74 63 6c 74 65 73 74 around ::tcltest
1be0: 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 61 74 68 0a ::normalizePath.
1bf0: 09 62 65 63 61 75 73 65 20 69 74 20 64 6f 65 73 .because it does
1c00: 6e 27 74 20 65 78 69 73 74 20 69 6e 20 70 72 65 n't exist in pre
1c10: 2d 38 2e 33 20 74 63 6c 74 65 73 74 2e 0a 0a 09 -8.3 tcltest....
1c20: 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 6c * tests/simpleCl
1c30: 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 2a 20 74 65 ient.tcl: ..* te
1c40: 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 76 65 72 sts/simpleServer
1c50: 2e 74 63 6c 3a 20 61 64 64 65 64 20 73 69 6d 70 .tcl: added simp
1c60: 6c 65 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 le client/server
1c70: 20 74 65 73 74 20 73 63 72 69 70 74 73 0a 09 74 test scripts..t
1c80: 68 61 74 20 75 73 65 20 74 65 73 74 20 63 65 72 hat use test cer
1c90: 74 73 20 61 6e 64 20 63 61 6e 20 64 6f 20 73 69 ts and can do si
1ca0: 6d 70 6c 65 20 73 74 72 65 73 73 20 74 65 73 74 mple stress test
1cb0: 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 34 20 20 s...2000-08-14
1cc0: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
1cd0: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
1ce0: 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a >...* tlsInt.h:.
1cf0: 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 .* tlsIO.c:..* t
1d00: 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 2e lsBIO.c:..* tls.
1d10: 63 3a 20 63 68 61 6e 67 65 64 20 61 72 6f 75 6e c: changed aroun
1d20: 64 20 74 6f 20 6f 6e 6c 79 20 77 6f 72 6b 69 6e d to only workin
1d30: 67 20 77 69 74 68 20 38 2e 32 2e 30 2b 20 28 38 g with 8.2.0+ (8
1d40: 2e 33 2e 32 2b 0a 09 70 72 65 66 65 72 72 65 64 .3.2+..preferred
1d50: 29 2c 20 77 69 74 68 20 72 75 6e 74 69 6d 65 20 ), with runtime
1d60: 63 68 65 63 6b 73 20 66 6f 72 20 70 72 65 2d 20 checks for pre-
1d70: 61 6e 64 20 70 6f 73 74 2d 69 6f 2d 72 65 77 72 and post-io-rewr
1d80: 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 ite....* tls.c (
1d90: 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 61 6e 67 Tls_Init): chang
1da0: 65 64 20 69 74 20 74 6f 20 72 65 71 75 69 72 65 ed it to require
1db0: 20 38 2e 33 2e 32 20 77 68 65 6e 20 54 63 6c 5f 8.3.2 when Tcl_
1dc0: 49 6e 69 74 53 74 75 62 73 0a 09 77 61 73 20 63 InitStubs..was c
1dd0: 61 6c 6c 65 64 20 62 65 63 61 75 73 65 20 77 65 alled because we
1de0: 20 64 6f 6e 27 74 20 77 61 6e 74 20 70 65 6f 70 don't want peop
1df0: 6c 65 20 75 73 69 6e 67 20 54 4c 53 20 77 69 74 le using TLS wit
1e00: 68 20 74 68 65 0a 09 6f 72 69 67 69 6e 61 6c 20 h the..original
1e10: 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 20 stacked channel
1e20: 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 2e 0a implementation..
1e30: 0a 32 30 30 30 2d 30 37 2d 32 36 20 20 4a 65 66 .2000-07-26 Jef
1e40: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 f Hobbs <hobbs@
1e50: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a scriptics.com>..
1e60: 09 2a 20 6d 65 72 67 65 64 20 61 6c 6c 20 63 68 .* merged all ch
1e70: 61 6e 67 65 73 20 66 72 6f 6d 20 74 6c 73 2d 31 anges from tls-1
1e80: 2d 33 2d 69 6f 2d 72 65 77 72 69 74 65 20 62 61 -3-io-rewrite ba
1e90: 63 6b 20 69 6e 74 6f 20 6d 61 69 6e 20 62 72 61 ck into main bra
1ea0: 6e 63 68 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c nch...* tests/tl
1eb0: 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 65 sIO.test: update
1ec0: 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 66 69 78 65 d comments, fixe
1ed0: 64 20 61 20 70 63 43 72 61 73 68 20 63 61 73 65 d a pcCrash case
1ee0: 20 74 68 61 74 0a 09 77 61 73 20 64 75 65 20 74 that..was due t
1ef0: 6f 20 64 65 62 75 67 20 61 73 73 65 72 74 69 6f o debug assertio
1f00: 6e 20 69 6e 20 57 69 6e 64 6f 77 73 20 53 53 4c n in Windows SSL
1f10: 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 49 6d 70 ....* tls.c (Imp
1f20: 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 72 65 6d 6f ortObjCmd): remo
1f30: 76 65 64 20 75 6e 6e 65 63 65 73 73 61 72 79 20 ved unnecessary
1f40: 75 73 65 20 6f 66 20 27 62 69 6f 27 20 61 72 67 use of 'bio' arg
1f50: 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 ...(Tls_Init): c
1f60: 68 65 63 6b 20 72 65 74 75 72 6e 20 76 61 6c 75 heck return valu
1f70: 65 20 6f 66 20 53 53 4c 5f 6c 69 62 72 61 72 79 e of SSL_library
1f80: 5f 69 6e 69 74 2e 20 20 41 6c 73 6f 20 6c 6f 74 _init. Also lot
1f90: 73 20 6f 66 0a 09 77 68 69 74 65 73 70 61 63 65 s of..whitespace
1fa0: 20 63 6c 65 61 6e 75 70 20 28 6d 6f 72 65 20 6c cleanup (more l
1fb0: 69 6b 65 20 54 63 6c 20 45 6e 67 20 73 74 79 6c ike Tcl Eng styl
1fc0: 65 20 67 75 69 64 65 29 2c 20 62 75 74 20 6e 6f e guide), but no
1fd0: 74 20 61 6c 6c 0a 09 63 6f 64 65 20 77 61 73 20 t all..code was
1fe0: 63 6c 65 61 6e 65 64 20 75 70 2e 0a 0a 09 2a 20 cleaned up....*
1ff0: 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 tlsBIO.c: minor
2000: 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e whitespace clean
2010: 75 70 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 up...* tlsIO.c:
2020: 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61 63 65 minor whitespace
2030: 20 63 6c 65 61 6e 75 70 2e 0a 09 28 54 6c 73 49 cleanup...(TlsI
2040: 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 4f 75 74 nputProc, TlsOut
2050: 70 75 74 50 72 6f 63 29 3a 20 41 64 64 65 64 20 putProc): Added
2060: 45 52 52 5f 63 6c 65 61 72 5f 65 72 72 6f 72 20 ERR_clear_error
2070: 62 65 66 6f 72 65 20 63 61 6c 6c 73 0a 09 74 6f before calls..to
2080: 20 42 49 4f 5f 72 65 61 64 20 6f 72 20 42 49 4f BIO_read or BIO
2090: 5f 77 72 69 74 65 2c 20 62 65 63 61 75 73 65 20 _write, because
20a0: 77 65 20 63 6f 75 6c 64 20 6f 74 68 65 72 77 69 we could otherwi
20b0: 73 65 20 65 6e 64 20 75 70 0a 09 70 75 6c 6c 69 se end up..pulli
20c0: 6e 67 20 61 6e 20 65 72 72 6f 72 20 6f 66 66 20 ng an error off
20d0: 74 68 65 20 73 74 61 63 6b 20 74 68 61 74 20 64 the stack that d
20e0: 69 64 6e 27 74 20 62 65 6c 6f 6e 67 20 74 6f 20 idn't belong to
20f0: 75 73 2e 20 20 41 6c 73 6f 0a 09 63 6c 65 61 6e us. Also..clean
2100: 75 70 20 75 70 20 65 78 63 65 73 73 69 76 65 20 up up excessive
2110: 75 73 65 20 6f 66 20 67 6f 74 6f 73 2e 0a 0a 32 use of gotos...2
2120: 30 30 30 2d 30 37 2d 32 30 20 20 4a 65 66 66 20 000-07-20 Jeff
2130: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
2140: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
2150: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 tests/tlsIO.tes
2160: 74 3a 20 63 6f 72 72 65 63 74 65 64 20 76 61 72 t: corrected var
2170: 69 6f 75 73 20 74 65 73 74 73 20 74 6f 20 62 65 ious tests to be
2180: 20 63 6f 72 72 65 63 74 20 66 6f 72 20 54 4c 53 correct for TLS
2190: 0a 09 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 ..stacked channe
21a0: 6c 73 20 28 61 73 20 6f 70 70 6f 73 65 64 20 74 ls (as opposed t
21b0: 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 73 o the standard s
21c0: 6f 63 6b 65 74 73 20 74 68 65 20 74 65 73 74 0a ockets the test.
21d0: 09 73 75 69 74 65 20 77 61 73 20 61 64 6f 70 74 .suite was adopt
21e0: 65 64 20 66 72 6f 6d 29 2e 20 20 4b 65 79 20 64 ed from). Key d
21f0: 69 66 66 65 72 65 6e 63 65 73 20 61 72 65 20 74 ifferences are t
2200: 68 61 74 20 54 4c 53 20 63 61 6e 6e 6f 74 0a 09 hat TLS cannot..
2210: 6f 70 65 72 61 74 65 20 69 6e 20 6f 6e 65 20 70 operate in one p
2220: 72 6f 63 65 73 73 20 77 69 74 68 6f 75 74 20 61 rocess without a
2230: 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 62 65 69 6e ll channels bein
2240: 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 2c 20 g non-blocking,
2250: 6f 72 0a 09 74 68 65 20 68 61 6e 64 73 68 61 6b or..the handshak
2260: 65 20 77 69 6c 6c 20 62 6c 6f 63 6b 2c 20 61 6e e will block, an
2270: 64 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 6d 75 d handshaking mu
2280: 73 74 20 62 65 20 66 6f 72 63 65 64 20 69 6e 20 st be forced in
2290: 73 6f 6d 65 0a 09 63 61 73 65 73 2e 20 20 41 6c some..cases. Al
22a0: 73 6f 2c 20 68 61 6e 64 73 68 61 6b 65 73 20 64 so, handshakes d
22b0: 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20 63 6f 6d on't seem to com
22c0: 70 6c 65 74 65 20 75 6e 6c 65 73 73 20 74 68 65 plete unless the
22d0: 20 63 6c 69 65 6e 74 0a 09 68 61 73 20 70 6c 61 client..has pla
22e0: 63 65 64 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 ced at least one
22f0: 20 62 79 74 65 20 66 6f 72 20 74 68 65 20 73 65 byte for the se
2300: 72 76 65 72 20 74 6f 20 72 65 61 64 20 69 6e 20 rver to read in
2310: 74 68 65 20 63 68 61 6e 6e 65 6c 2e 0a 0a 09 2a the channel....*
2320: 20 74 65 73 74 73 2f 72 65 6d 6f 74 65 2e 74 63 tests/remote.tc
2330: 6c 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 65 l: corrected the
2340: 20 66 69 6e 64 69 6e 67 20 6f 66 20 74 65 73 74 finding of test
2350: 73 20 63 65 72 74 69 66 69 63 61 74 65 73 0a 0a s certificates..
2360: 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 43 .* tlsIO.c (TlsC
2370: 6c 6f 73 65 50 72 6f 63 29 3a 20 72 65 6d 6f 76 loseProc): remov
2380: 65 64 20 64 65 6c 65 74 69 6e 67 20 6f 66 20 74 ed deleting of t
2390: 69 6d 65 72 20 68 61 6e 64 6c 65 72 20 61 73 0a imer handler as.
23a0: 09 74 68 61 74 20 69 73 20 68 61 6e 64 6c 65 64 .that is handled
23b0: 20 62 79 20 54 6c 73 5f 43 6c 65 61 6e 2e 0a 0a by Tls_Clean...
23c0: 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c 73 3a .* tls.tcl (tls:
23d0: 3a 5f 61 63 63 65 70 74 29 3a 20 63 6f 72 72 65 :_accept): corre
23e0: 63 74 65 64 20 74 68 65 20 69 6e 74 65 72 6e 61 cted the interna
23f0: 6c 20 5f 61 63 63 65 70 74 20 74 6f 0a 09 74 72 l _accept to..tr
2400: 69 63 6b 6c 65 20 63 61 6c 6c 62 61 63 6b 20 65 ickle callback e
2410: 72 72 6f 72 73 20 74 6f 20 74 68 65 20 75 73 65 rrors to the use
2420: 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e r....* Makefile.
2430: 69 6e 3a 20 6d 61 64 65 20 74 68 65 20 69 6e 73 in: made the ins
2440: 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20 74 61 tall-binaries ta
2450: 72 67 65 74 20 72 65 67 65 6e 65 72 61 74 65 20 rget regenerate
2460: 74 68 65 0a 09 70 6b 67 49 6e 64 65 78 2e 74 63 the..pkgIndex.tc
2470: 6c 20 63 6f 72 72 65 63 74 6c 79 2e 20 20 54 68 l correctly. Th
2480: 65 20 74 65 73 74 20 74 61 72 67 65 74 20 70 72 e test target pr
2490: 6f 62 61 62 6c 79 20 73 68 6f 75 6c 64 6e 27 74 obably shouldn't
24a0: 20 73 63 72 65 77 0a 09 69 74 20 75 70 2c 20 62 screw..it up, b
24b0: 75 74 20 74 68 69 73 20 69 73 20 74 6f 20 62 65 ut this is to be
24c0: 20 6f 6e 20 74 68 65 20 73 61 66 65 20 73 69 64 on the safe sid
24d0: 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 37 20 20 e...2000-07-17
24e0: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 Jeff Hobbs <hob
24f0: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d bs@scriptics.com
2500: 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 >...* pkgIndex.t
2510: 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 cl.in:..* config
2520: 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65 64 20 ure.in: updated
2530: 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e 34 0a 0a version to 1.4..
2540: 32 30 30 30 2d 30 37 2d 31 33 20 20 4a 65 66 66 2000-07-13 Jeff
2550: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 Hobbs <hobbs@s
2560: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 criptics.com>...
2570: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 * tests/tlsIO.te
2580: 73 74 3a 20 65 6e 61 62 6c 65 64 20 74 65 73 74 st: enabled test
2590: 73 20 32 2e 31 30 2c 20 37 2e 5b 31 32 34 35 5d s 2.10, 7.[1245]
25a0: 20 28 74 68 65 72 65 20 69 73 20 6e 6f 20 33 29 (there is no 3)
25b0: 2c 0a 09 77 68 69 63 68 20 6e 6f 77 20 70 61 73 ,..which now pas
25c0: 73 2e 20 20 41 64 64 65 64 20 73 6f 6d 65 20 63 s. Added some c
25d0: 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f 74 68 65 72 omments to other
25e0: 20 66 61 69 6c 69 6e 67 20 74 65 73 74 73 2e 0a failing tests..
25f0: 0a 32 30 30 30 2d 30 37 2d 31 31 20 20 4a 65 66 .2000-07-11 Jef
2600: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 f Hobbs <hobbs@
2610: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a scriptics.com>..
2620: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 68 61 6e .* tlsIO.c: chan
2630: 67 65 64 20 61 6c 6c 20 74 68 65 20 63 68 61 6e ged all the chan
2640: 6e 65 6c 20 70 72 6f 63 73 20 74 6f 20 73 74 61 nel procs to sta
2650: 72 74 20 77 69 74 68 20 54 6c 73 2a 20 66 6f 72 rt with Tls* for
2660: 0a 09 62 65 74 74 65 72 20 70 61 72 69 74 79 20 ..better parity
2670: 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e 67 20 77 when comparing w
2680: 69 74 68 20 54 72 61 6e 73 66 6f 72 6d 20 63 68 ith Transform ch
2690: 61 6e 6e 65 6c 20 70 72 6f 63 73 2e 0a 09 52 65 annel procs...Re
26a0: 77 72 6f 74 65 20 54 6c 73 57 61 74 63 68 50 72 wrote TlsWatchPr
26b0: 6f 63 2c 20 61 64 64 65 64 20 54 6c 73 4e 6f 74 oc, added TlsNot
26c0: 69 66 79 50 72 6f 63 20 61 63 63 6f 72 64 69 6e ifyProc accordin
26d0: 67 20 74 6f 20 74 68 65 20 6e 65 77 0a 09 63 68 g to the new..ch
26e0: 61 6e 6e 65 6c 20 64 65 73 69 67 6e 2c 20 77 68 annel design, wh
26f0: 69 63 68 20 61 6c 73 6f 20 6c 65 61 76 65 73 20 ich also leaves
2700: 54 6c 73 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 TlsChannelHandle
2710: 72 20 75 6e 75 73 65 64 2e 0a 0a 09 2a 20 74 6c r unused....* tl
2720: 73 42 49 4f 2e 63 20 28 42 69 6f 43 74 72 6c 29 sBIO.c (BioCtrl)
2730: 3a 20 63 68 61 6e 67 65 64 20 42 49 4f 5f 43 54 : changed BIO_CT
2740: 52 4c 5f 46 4c 55 53 48 20 63 61 73 65 20 74 6f RL_FLUSH case to
2750: 20 75 73 65 0a 09 54 63 6c 5f 57 72 69 74 65 52 use..Tcl_WriteR
2760: 61 77 20 69 6e 73 74 65 61 64 20 6f 66 20 54 63 aw instead of Tc
2770: 6c 5f 46 6c 75 73 68 20 28 74 6f 20 6f 70 65 72 l_Flush (to oper
2780: 61 74 65 20 6f 6e 20 63 6f 72 72 65 63 74 20 63 ate on correct c
2790: 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 68 65 20 73 hannel..in the s
27a0: 74 61 63 6b 20 69 6e 73 74 65 61 64 20 6f 66 20 tack instead of
27b0: 73 74 61 72 74 69 6e 67 20 61 74 20 74 68 65 20 starting at the
27c0: 74 6f 70 20 61 67 61 69 6e 29 2e 20 20 57 6f 75 top again). Wou
27d0: 6c 64 0a 09 6f 74 68 65 72 77 69 73 65 20 63 61 ld..otherwise ca
27e0: 75 73 65 20 61 20 72 65 63 75 72 73 69 76 65 20 use a recursive
27f0: 73 74 61 63 6b 20 62 6f 6d 62 20 77 68 65 6e 20 stack bomb when
2800: 69 6d 70 6c 69 63 69 74 20 68 61 6e 64 73 68 61 implicit handsha
2810: 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 66 66 65 63 king..took effec
2820: 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 t....* tests/tls
2830: 49 4f 2e 74 65 73 74 3a 20 72 65 6d 6f 76 65 64 IO.test: removed
2840: 20 63 68 61 6e 67 65 73 20 6d 61 64 65 20 74 6f changes made to
2850: 20 74 65 73 74 20 73 75 69 74 65 20 28 61 6c 6c test suite (all
2860: 20 74 65 73 74 73 0a 09 74 68 61 74 20 72 61 6e tests..that ran
2870: 20 62 65 66 6f 72 65 20 6e 6f 77 20 70 61 73 73 before now pass
2880: 20 63 6f 72 72 65 63 74 6c 79 29 2c 20 61 6e 64 correctly), and
2890: 20 63 68 61 6e 67 65 64 20 73 6f 6d 65 20 61 63 changed some ac
28a0: 63 65 70 74 20 70 72 6f 63 0a 09 61 72 67 73 20 cept proc..args
28b0: 74 6f 20 72 65 66 6c 65 63 74 20 74 68 61 74 20 to reflect that
28c0: 61 20 73 6f 63 6b 20 69 73 20 61 6e 20 61 72 67 a sock is an arg
28d0: 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e 0a 0a 32 , not a file...2
28e0: 30 30 30 2d 30 37 2d 31 30 20 20 4a 65 66 66 20 000-07-10 Jeff
28f0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 Hobbs <hobbs@sc
2900: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a riptics.com>...*
2910: 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 57 72 tlsBIO.c (BioWr
2920: 69 74 65 2c 20 42 69 6f 52 65 61 64 29 3a 20 63 ite, BioRead): c
2930: 68 61 6e 67 65 64 20 54 63 6c 5f 52 65 61 64 2f hanged Tcl_Read/
2940: 57 72 69 74 65 20 74 6f 0a 09 54 63 6c 5f 52 65 Write to..Tcl_Re
2950: 61 64 52 61 77 2f 54 63 6c 57 72 69 74 65 52 61 adRaw/TclWriteRa
2960: 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 w....* tls.c: ad
2970: 64 65 64 20 75 73 65 20 6f 66 20 54 63 6c 5f 47 ded use of Tcl_G
2980: 65 74 54 6f 70 43 68 61 6e 6e 65 6c 20 61 66 74 etTopChannel aft
2990: 65 72 20 54 63 6c 5f 47 65 74 43 68 61 6e 6e 65 er Tcl_GetChanne
29a0: 6c 20 61 6e 64 0a 09 67 6f 74 20 72 65 74 75 72 l and..got retur
29b0: 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20 54 63 6c n value from Tcl
29c0: 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c 2e 0a 0a _StackChannel...
29d0: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 .* tests/tlsIO.t
29e0: 65 73 74 3a 20 61 64 64 65 64 20 73 6f 6d 65 20 est: added some
29f0: 68 61 6e 64 73 68 61 6b 69 6e 67 20 74 68 61 74 handshaking that
2a00: 20 73 68 6f 75 6c 64 6e 27 74 20 62 65 0a 09 6e shouldn't be..n
2a10: 65 63 65 73 73 61 72 79 2c 20 62 75 74 20 77 65 ecessary, but we
2a20: 20 63 72 61 73 68 20 6f 74 68 65 72 77 69 73 65 crash otherwise
2a30: 20 28 6e 65 65 64 73 20 6d 6f 72 65 20 74 65 73 (needs more tes
2a40: 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 6c 73 49 4f ting)....* tlsIO
2a50: 2e 63 3a 20 61 64 64 65 64 20 73 75 70 70 6f 72 .c: added suppor
2a60: 74 20 66 6f 72 20 22 63 6f 72 72 65 63 74 65 64 t for "corrected
2a70: 22 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 " stacked channe
2a80: 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 65 20 61 62 ls. All..the ab
2a90: 6f 76 65 20 63 68 61 6e 6e 65 6c 73 20 61 72 65 ove channels are
2aa0: 20 69 6e 20 54 43 4c 5f 43 48 41 4e 4e 45 4c 5f in TCL_CHANNEL_
2ab0: 56 45 52 53 49 4f 4e 5f 32 20 23 69 66 64 65 66 VERSION_2 #ifdef
2ac0: 73 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 s...2000-06-05
2ad0: 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c Scott Stanton <
2ae0: 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c stanton@ajubasol
2af0: 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 utions.com>...*
2b00: 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 46 69 78 Makefile.in: Fix
2b10: 65 64 20 62 72 6f 6b 65 6e 20 74 65 73 74 20 74 ed broken test t
2b20: 61 72 67 65 74 2e 0a 0a 09 2a 20 74 6c 73 49 6e arget....* tlsIn
2b30: 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 2e 63 3a 20 t.h: ..* tls.c:
2b40: 43 6c 65 61 6e 65 64 20 75 70 20 64 65 63 6c 61 Cleaned up decla
2b50: 72 61 74 69 6f 6e 73 20 6f 66 20 54 6c 73 5f 43 rations of Tls_C
2b60: 6c 65 61 6e 20 74 6f 20 61 76 6f 69 64 20 65 72 lean to avoid er
2b70: 72 6f 72 73 20 6f 6e 0a 09 57 69 6e 64 6f 77 73 rors on..Windows
2b80: 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 30 30 2d 30 (lint)...2000-0
2b90: 36 2d 30 35 20 20 42 72 65 6e 74 20 57 65 6c 63 6-05 Brent Welc
2ba0: 68 20 3c 77 65 6c 63 68 40 61 6a 75 62 61 73 6f h <welch@ajubaso
2bb0: 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a lutions.com>...*
2bc0: 20 74 6c 73 2e 63 2c 20 74 6c 73 49 4f 2e 63 3a tls.c, tlsIO.c:
2bd0: 20 20 53 70 6c 69 74 20 54 6c 73 5f 46 72 65 65 Split Tls_Free
2be0: 20 69 6e 74 6f 20 54 6c 73 5f 43 6c 65 61 6e 2c into Tls_Clean,
2bf0: 20 77 68 69 63 68 20 64 6f 65 73 0a 09 74 68 65 which does..the
2c00: 20 53 53 4c 20 63 6c 65 61 6e 75 70 2c 20 61 6e SSL cleanup, an
2c10: 64 20 74 68 65 20 54 63 6c 5f 46 72 65 65 20 63 d the Tcl_Free c
2c20: 61 6c 6c 2e 20 20 49 74 20 69 73 20 69 6d 70 6f all. It is impo
2c30: 72 74 61 6e 74 20 74 6f 20 73 68 75 74 64 6f 77 rtant to shutdow
2c40: 6e 0a 09 74 68 65 20 53 53 4c 20 73 74 61 74 65 n..the SSL state
2c50: 20 22 73 79 6e 63 68 72 6f 6e 6f 75 73 6c 79 22 "synchronously"
2c60: 20 64 75 72 69 6e 67 20 61 20 73 74 61 63 6b 65 during a stacke
2c70: 64 20 66 6c 75 73 68 2e 0a 0a 32 30 30 30 2d 30 d flush...2000-0
2c80: 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e 6-01 Scott Stan
2c90: 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a ton <stanton@aj
2ca0: 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d ubasolutions.com
2cb0: 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 >...* tlsIO.c: R
2cc0: 65 73 74 6f 72 65 64 20 63 61 6c 6c 20 74 6f 20 estored call to
2cd0: 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 Tcl_NotifyChanne
2ce0: 6c 20 66 72 6f 6d 20 43 68 61 6e 6e 65 6c 48 61 l from ChannelHa
2cf0: 6e 64 6c 65 72 0a 09 74 6f 20 65 6e 73 75 72 65 ndler..to ensure
2d00: 20 74 68 61 74 20 65 76 65 6e 74 73 20 70 72 6f that events pro
2d10: 70 61 67 61 74 65 20 66 72 6f 6d 20 74 68 65 20 pagate from the
2d20: 6c 6f 77 65 72 20 64 72 69 76 65 72 2e 20 20 54 lower driver. T
2d30: 68 69 73 20 6d 61 79 0a 09 72 65 73 75 6c 74 20 his may..result
2d40: 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c in an infinite l
2d50: 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 63 61 73 65 oop in some case
2d60: 73 2c 20 73 6f 20 74 68 69 73 20 69 73 20 6e 6f s, so this is no
2d70: 74 20 61 20 74 6f 74 61 6c 0a 09 66 69 78 2e 20 t a total..fix.
2d80: 20 54 68 69 73 20 6d 61 79 20 62 65 20 73 75 66 This may be suf
2d90: 66 69 63 69 65 6e 74 20 66 6f 72 20 6e 6f 77 2c ficient for now,
2da0: 20 68 6f 77 65 76 65 72 2e 20 5b 42 75 67 3a 20 however. [Bug:
2db0: 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 36 2d 30 5623]..2000-06-0
2dc0: 31 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 1 Scott Stanton
2dd0: 20 20 3c 73 74 61 6e 74 6f 6e 40 73 63 72 69 70 <stanton@scrip
2de0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c tics.com>...* tl
2df0: 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 20 74 sIO.c: Restore t
2e00: 68 65 20 70 72 65 76 69 6f 75 73 20 76 65 72 73 he previous vers
2e10: 69 6f 6e 2e 20 20 46 69 78 65 64 20 74 68 65 20 ion. Fixed the
2e20: 43 6c 6f 73 65 50 72 6f 63 20 73 6f 0a 09 69 74 CloseProc so..it
2e30: 20 75 6e 72 65 67 69 73 74 65 72 73 20 74 68 65 unregisters the
2e40: 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 channel handler
2e50: 20 6f 6e 20 74 68 65 20 73 75 70 65 72 63 65 64 on the superced
2e60: 65 64 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 73 74 ed channel..inst
2e70: 65 61 64 20 6f 66 20 74 68 65 20 75 70 70 65 72 ead of the upper
2e80: 20 63 68 61 6e 6e 65 6c 2e 20 41 6c 73 6f 20 72 channel. Also r
2e90: 65 6d 6f 76 65 64 20 74 68 65 20 63 61 6c 6c 20 emoved the call
2ea0: 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 to..Tcl_NotifyCh
2eb0: 61 6e 6e 65 6c 20 69 6e 20 74 68 65 20 43 68 61 annel in the Cha
2ec0: 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 62 65 63 61 nnelHandler beca
2ed0: 75 73 65 20 74 68 69 73 20 77 69 6c 6c 20 72 65 use this will re
2ee0: 73 75 6c 74 0a 09 69 6e 20 61 6e 20 69 6e 66 69 sult..in an infi
2ef0: 6e 69 74 65 20 6c 6f 6f 70 20 69 66 20 64 61 74 nite loop if dat
2f00: 61 20 69 73 20 65 76 65 72 20 62 75 66 66 65 72 a is ever buffer
2f10: 65 64 20 69 6e 20 74 68 65 20 42 49 4f 0a 09 73 ed in the BIO..s
2f20: 74 72 75 63 74 75 72 65 2e 20 5b 42 75 67 3a 20 tructure. [Bug:
2f30: 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 35 2d 33 5623]..2000-05-3
2f40: 31 20 20 42 72 65 6e 74 20 57 65 6c 63 68 20 3c 1 Brent Welch <
2f50: 77 65 6c 63 68 40 73 63 72 69 70 74 69 63 73 2e welch@scriptics.
2f60: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 com>...* tls.c:
2f70: 43 68 61 6e 67 65 20 74 68 65 20 43 68 61 6e 6e Change the Chann
2f80: 65 6c 48 61 6e 64 6c 65 72 20 74 6f 20 62 65 20 elHandler to be
2f90: 72 65 67 69 73 74 65 72 65 64 20 6f 6e 20 74 68 registered on th
2fa0: 65 20 6d 61 69 6e 0a 09 63 68 61 6e 6e 65 6c 20 e main..channel
2fb0: 61 73 20 6f 70 70 73 65 64 20 74 6f 20 74 68 65 as oppsed to the
2fc0: 20 22 70 61 72 65 6e 74 22 2c 20 6f 72 20 73 75 "parent", or su
2fd0: 70 65 72 63 65 65 64 65 64 2c 20 63 68 61 6e 6e perceeded, chann
2fe0: 65 6c 2e 20 20 54 68 69 73 0a 09 69 73 20 62 65 el. This..is be
2ff0: 63 61 75 73 65 20 74 68 65 20 73 6f 63 6b 65 74 cause the socket
3000: 20 64 72 69 76 65 72 20 6e 6f 74 69 66 69 65 73 driver notifies
3010: 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 the main channe
3020: 6c 2c 20 61 6e 64 20 74 68 65 72 65 0a 09 61 72 l, and there..ar
3030: 65 20 74 69 6d 65 73 20 77 69 74 68 20 74 68 65 e times with the
3040: 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 20 67 65 main channel ge
3050: 74 73 20 63 6c 6f 73 65 64 2c 20 62 75 74 20 74 ts closed, but t
3060: 68 65 20 73 75 70 65 72 63 65 64 65 64 0a 09 6f he superceded..o
3070: 6e 65 20 69 73 20 6e 6f 74 20 79 65 74 20 63 6c ne is not yet cl
3080: 6f 73 65 64 2e 20 20 49 66 20 74 68 65 20 63 68 osed. If the ch
3090: 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20 67 65 annel handler ge
30a0: 74 73 20 74 72 69 67 67 65 72 65 64 20 69 6e 0a ts triggered in.
30b0: 09 74 68 69 73 20 68 61 6c 66 2d 6f 70 65 6e 20 .this half-open
30c0: 73 74 61 74 65 20 69 74 20 69 73 20 61 73 73 6f state it is asso
30d0: 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 ciated with the
30e0: 73 75 70 65 72 63 65 65 64 65 64 0a 09 63 68 61 superceeded..cha
30f0: 6e 6e 65 64 6c 2c 20 62 75 74 20 75 73 65 73 20 nnedl, but uses
3100: 69 74 73 20 70 72 69 76 61 74 65 20 70 6f 69 6e its private poin
3110: 74 65 72 20 74 6f 20 74 68 65 20 6d 61 69 6e 20 ter to the main
3120: 63 68 61 6e 6e 65 6c 2c 20 77 68 69 63 68 0a 09 channel, which..
3130: 69 73 20 6d 6f 73 74 6c 79 20 64 65 73 74 72 6f is mostly destro
3140: 79 65 64 2e 20 20 45 6c 69 6d 69 6e 61 74 65 64 yed. Eliminated
3150: 20 74 68 65 20 72 65 64 75 6e 64 61 6e 74 20 63 the redundant c
3160: 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 all to..Tcl_Noti
3170: 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 54 fyChannel from T
3180: 6c 73 57 61 74 63 68 50 72 6f 63 2e 20 5b 42 75 lsWatchProc. [Bu
3190: 67 3a 20 35 36 32 33 5d 0a g: 5623].