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