Hex Artifact Content

Artifact 0ff3f450f9c3e1bb077806b515a46c87937db4ea:


0000: 32 30 30 37 2d 30 32 2d 32 38 20 20 50 61 74 20  2007-02-28  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 52  n/makefile.vc: R
0050: 65 62 61 73 65 20 74 68 65 20 44 4c 4c 20 73 65  ebase the DLL se
0060: 6e 73 69 62 6c 79 2e 20 41 64 64 69 74 69 6f 6e  nsibly. Addition
0070: 61 6c 20 6c 69 62 73 20 66 6f 72 20 0a 09 73 74  al libs for ..st
0080: 61 74 69 63 20 6c 69 6e 6b 20 6f 66 20 6f 70 65  atic link of ope
0090: 6e 73 73 6c 2e 0a 09 2a 20 74 6c 73 2e 74 63 6c  nssl...* tls.tcl
00a0: 3a 20 62 75 67 20 23 31 35 37 39 38 33 37 20 2d  : bug #1579837 -
00b0: 20 54 49 50 20 32 37 38 20 62 75 67 20 28 70 6f   TIP 278 bug (po
00c0: 73 73 69 62 6c 79 29 20 2d 20 66 69 78 65 64 2e  ssibly) - fixed.
00d0: 0a 0a 32 30 30 36 2d 30 33 2d 33 30 20 20 50 61  ..2006-03-30  Pa
00e0: 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68  t Thoyts  <patth
00f0: 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63  oyts@users.sourc
0100: 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20  eforge.net>...* 
0110: 74 63 6c 63 6f 6e 66 69 67 2f 2a 3a 20 20 55 70  tclconfig/*:  Up
0120: 64 61 74 65 64 20 74 6f 20 54 45 41 20 33 2e 35  dated to TEA 3.5
0130: 20 69 6e 20 72 65 73 70 6f 6e 73 65 20 74 6f 20   in response to 
0140: 62 75 67 20 31 34 36 30 34 39 31 0a 09 2a 20 63  bug 1460491..* c
0150: 6f 6e 66 69 67 75 72 65 2a 3a 20 20 20 52 65 67  onfigure*:   Reg
0160: 65 6e 65 72 61 74 65 64 20 63 6f 6e 66 69 67 75  enerated configu
0170: 72 65 2e 0a 0a 32 30 30 35 2d 30 32 2d 30 38 20  re...2005-02-08 
0180: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65   Jeff Hobbs  <je
0190: 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e  ffh@ActiveState.
01a0: 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  com>...* Makefil
01b0: 65 2e 69 6e 2c 20 74 63 6c 63 6f 6e 66 69 67 2f  e.in, tclconfig/
01c0: 74 63 6c 2e 6d 34 3a 20 75 70 64 61 74 65 20 74  tcl.m4: update t
01d0: 6f 20 54 45 41 20 33 2e 32 0a 09 2a 20 63 6f 6e  o TEA 3.2..* con
01e0: 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 72  figure, configur
01f0: 65 2e 69 6e 3a 20 20 20 20 20 20 20 75 73 69 6e  e.in:       usin
0200: 67 20 61 75 74 6f 63 6f 6e 66 2d 32 2e 35 39 0a  g autoconf-2.59.
0210: 0a 32 30 30 34 2d 31 32 2d 32 33 20 20 50 61 74  .2004-12-23  Pat
0220: 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f   Thoyts  <pattho
0230: 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65  yts@users.source
0240: 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 4d  forge.net>...* M
0250: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 20 20 20 20  akefile.in:     
0260: 20 52 65 6d 6f 76 65 64 20 73 70 75 72 69 6f 75   Removed spuriou
0270: 73 20 63 6f 70 79 69 6e 67 20 6f 66 20 74 6c 73  s copying of tls
0280: 2e 74 63 6c 20 69 6e 74 6f 20 74 68 65 0a 09 20  .tcl into the.. 
0290: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
02a0: 20 20 20 62 75 69 6c 64 20 64 69 72 65 63 74 6f     build directo
02b0: 72 79 2e 0a 0a 32 30 30 34 2d 31 32 2d 32 32 20  ry...2004-12-22 
02c0: 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61   Pat Thoyts  <pa
02d0: 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f  tthoyts@users.so
02e0: 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a  urceforge.net>..
02f0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a  .* configure.in:
0300: 20 20 20 20 20 49 6e 63 72 65 6d 65 6e 74 65 64       Incremented
0310: 20 6d 69 6e 6f 72 20 76 65 72 73 69 6f 6e 20 74   minor version t
0320: 6f 20 31 2e 35 2e 31 0a 09 2a 20 63 6f 6e 66 69  o 1.5.1..* confi
0330: 67 75 72 65 3a 20 20 20 20 20 20 20 20 0a 0a 32  gure:        ..2
0340: 30 30 34 2d 31 32 2d 31 37 20 20 50 61 74 20 54  004-12-17  Pat T
0350: 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74  hoyts  <patthoyt
0360: 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f  s@users.sourcefo
0370: 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e  rge.net>...* win
0380: 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 20 41  /makefile.vc:  A
0390: 64 64 65 64 20 74 68 65 20 4d 53 56 43 20 62 75  dded the MSVC bu
03a0: 69 6c 64 20 73 79 73 74 65 6d 20 28 66 72 6f 6d  ild system (from
03b0: 20 74 68 65 20 54 63 6c 0a 09 2a 20 77 69 6e 2f   the Tcl..* win/
03c0: 72 75 6c 65 73 2e 76 63 3a 20 20 20 20 20 73 61  rules.vc:     sa
03d0: 6d 70 6c 65 65 78 74 65 6e 73 69 6f 6e 29 2e 0a  mpleextension)..
03e0: 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e  .* win/nmakehlp.
03f0: 63 3a 0a 09 2a 20 77 69 6e 2f 74 6c 73 2e 72 63  c:..* win/tls.rc
0400: 20 20 20 20 20 20 20 20 41 64 64 65 64 20 57 69          Added Wi
0410: 6e 64 6f 77 73 20 72 65 73 6f 75 72 63 65 20 66  ndows resource f
0420: 69 6c 65 2e 0a 09 0a 09 2a 20 74 6c 73 2e 74 63  ile.....* tls.tc
0430: 6c 3a 20 20 20 20 20 20 20 20 20 20 46 72 6f 6d  l:          From
0440: 20 70 61 74 63 68 20 23 39 34 38 31 35 35 2c 20   patch #948155, 
0450: 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f  added support fo
0460: 72 0a 09 20 20 20 20 20 20 20 20 20 20 20 20 20  r..             
0470: 20 20 20 20 20 20 20 61 6c 74 65 72 6e 61 74 65         alternate
0480: 20 73 6f 63 6b 65 74 20 63 6f 6d 6d 61 6e 64 73   socket commands
0490: 2e 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20  ...* tls.c:     
04a0: 20 20 20 20 20 20 20 51 75 69 65 74 65 6e 20 73         Quieten s
04b0: 6f 6d 65 20 4d 53 56 43 20 77 61 72 6e 69 6e 67  ome MSVC warning
04c0: 73 2e 20 50 72 65 66 65 72 20 63 6b 61 6c 6c 6f  s. Prefer ckallo
04d0: 63 0a 09 20 20 20 20 20 20 20 20 20 20 20 20 20  c..             
04e0: 20 20 20 20 20 20 20 6f 76 65 72 20 54 63 6c 5f         over Tcl_
04f0: 41 6c 6c 6f 63 2e 20 28 44 61 76 69 64 20 47 72  Alloc. (David Gr
0500: 61 76 65 72 61 75 78 29 2e 0a 0a 32 30 30 34 2d  averaux)...2004-
0510: 30 36 2d 32 39 20 20 50 61 74 20 54 68 6f 79 74  06-29  Pat Thoyt
0520: 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73  s  <patthoyts@us
0530: 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e  ers.sourceforge.
0540: 6e 65 74 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20  net>...* tls.c: 
0550: 20 20 20 20 20 20 20 20 20 20 20 46 69 78 75 70             Fixup
0560: 20 74 6f 20 62 75 69 6c 64 20 61 67 61 69 6e 73   to build agains
0570: 74 20 74 63 6c 20 38 2e 33 2e 33 2e 20 48 61 6e  t tcl 8.3.3. Han
0580: 64 6c 65 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20  dle..* tlsIO.c: 
0590: 20 20 20 20 20 20 20 20 20 38 2e 34 20 63 6f 6e           8.4 con
05a0: 73 74 69 66 69 63 61 74 69 6f 6e 2e 0a 0a 09 2a  stification....*
05b0: 20 74 6c 73 49 6e 74 2e 68 3a 20 20 20 20 20 20   tlsInt.h:      
05c0: 20 20 20 41 64 64 65 64 20 68 65 61 64 65 72 73     Added headers
05d0: 20 72 65 71 75 69 72 65 64 20 77 69 74 68 20 4d   required with M
05e0: 53 56 43 20 6f 6e 20 57 69 6e 33 32 2e 0a 09 2a  SVC on Win32...*
05f0: 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 20   tlsX509.c:     
0600: 20 20 20 75 6e 64 65 66 20 6d 69 6e 20 61 6e 64     undef min and
0610: 20 6d 61 78 20 69 66 20 64 65 66 69 6e 65 64 20   max if defined 
0620: 28 77 69 6e 33 32 29 2e 0a 0a 09 2a 20 4d 61 6b  (win32)....* Mak
0630: 65 66 69 6c 65 2e 69 6e 3a 20 20 20 20 20 20 46  efile.in:      F
0640: 69 78 65 64 20 74 6f 20 62 75 69 6c 64 20 6f 6e  ixed to build on
0650: 20 77 69 6e 33 32 20 75 73 69 6e 67 20 6d 73 79   win32 using msy
0660: 73 20 77 69 74 68 0a 09 2a 20 61 63 6c 6f 63 61  s with..* acloca
0670: 6c 2e 6d 34 3a 20 20 20 20 20 20 20 4d 53 56 43  l.m4:       MSVC
0680: 2e 20 41 6c 73 6f 20 66 69 78 65 64 20 74 68 65  . Also fixed the
0690: 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 09 2a   test target...*
06a0: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09   configure.in:..
06b0: 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 20  * configure:    
06c0: 20 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 2e      Regenerated.
06d0: 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63  ..* tclconfig/tc
06e0: 6c 2e 6d 34 3a 20 55 70 64 61 74 65 64 20 74 6f  l.m4: Updated to
06f0: 20 6d 6f 73 74 20 72 65 63 65 6e 74 20 76 65 72   most recent ver
0700: 73 69 6f 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d 32  sion...2004-03-2
0710: 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c  3  Dan Razzell <
0720: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73  research@starfis
0730: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 09 2a 20  hsystems.ca>..* 
0740: 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f  tls.c:..* tlsBIO
0750: 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a  .c:..* tlsIO.c:.
0760: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 46 69 78  .* tlsInt.h:.Fix
0770: 65 64 20 74 79 70 65 20 6d 61 74 63 68 20 77 61  ed type match wa
0780: 72 6e 69 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 33  rnings...2004-03
0790: 2d 31 39 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -19  Jeff Hobbs 
07a0: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
07b0: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
07c0: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20  .c (Tls_Init):  
07d0: 20 72 65 70 6c 61 63 65 64 20 6f 6c 64 65 72 20   replaced older 
07e0: 54 45 41 20 63 6f 6e 66 69 67 20 77 69 74 68 20  TEA config with 
07f0: 6e 65 77 65 72 0a 09 2a 20 63 6f 6e 66 69 67 2f  newer..* config/
0800: 2a 20 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20  * (removed):..* 
0810: 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 2c  pkgIndex.tcl.in,
0820: 20 73 74 72 6e 63 61 73 65 63 6d 70 2e 63 20 28   strncasecmp.c (
0830: 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 6b  removed):..* Mak
0840: 65 66 69 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 61  efile.in, acloca
0850: 6c 2e 6d 34 2c 20 63 6f 6e 66 69 67 75 72 65 2c  l.m4, configure,
0860: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09   configure.in:..
0870: 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 52 45 41 44  * tclconfig/READ
0880: 4d 45 2e 74 78 74 2c 20 74 63 6c 63 6f 6e 66 69  ME.txt, tclconfi
0890: 67 2f 69 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 63  g/install-sh, tc
08a0: 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 0a  lconfig/tcl.m4:.
08b0: 0a 32 30 30 34 2d 30 33 2d 31 37 20 20 44 61 6e  .2004-03-17  Dan
08c0: 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72   Razzell <resear
08d0: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65  ch@starfishsyste
08e0: 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 35  ms.ca>...* tlsX5
08f0: 30 39 2e 63 3a 09 41 64 64 20 73 75 70 70 6f 72  09.c:.Add suppor
0900: 74 20 66 6f 72 20 6c 6f 6e 67 20 73 65 72 69 61  t for long seria
0910: 6c 20 6e 75 6d 62 65 72 73 20 70 65 72 20 52 46  l numbers per RF
0920: 43 20 33 32 38 30 2e 0a 09 09 09 46 6f 72 6d 61  C 3280.....Forma
0930: 74 20 69 73 20 6e 6f 77 20 68 65 78 61 64 65 63  t is now hexadec
0940: 69 6d 61 6c 2e 20 0a 09 09 09 5b 52 65 71 75 65  imal. ....[Reque
0950: 73 74 20 23 39 31 35 33 31 33 5d 0a 09 09 09 43  st #915313]....C
0960: 6f 72 72 65 63 74 6c 79 20 63 6f 6e 76 65 72 74  orrectly convert
0970: 20 63 65 72 74 69 66 69 63 61 74 65 20 44 69 73   certificate Dis
0980: 74 69 6e 67 75 69 73 68 65 64 20 4e 61 6d 65 73  tinguished Names
0990: 0a 09 09 09 74 6f 20 54 63 6c 20 73 74 72 69 6e  ....to Tcl strin
09a0: 67 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e  g representation
09b0: 2e 20 20 45 6c 69 6d 69 6e 61 74 65 73 20 75 73  .  Eliminates us
09c0: 65 20 6f 66 0a 09 09 09 64 65 70 72 65 63 61 74  e of....deprecat
09d0: 65 64 20 4f 70 65 6e 53 53 4c 20 66 75 6e 63 74  ed OpenSSL funct
09e0: 69 6f 6e 2e 20 20 46 6f 72 6d 61 74 20 69 73 20  ion.  Format is 
09f0: 6e 6f 77 20 63 6f 6d 70 6c 69 61 6e 74 0a 09 09  now compliant...
0a00: 09 77 69 74 68 20 52 46 43 20 32 32 35 33 2e 20  .with RFC 2253. 
0a10: 20 5b 52 65 71 75 65 73 74 20 23 39 31 35 33 31   [Request #91531
0a20: 35 5d 0a 0a 32 30 30 34 2d 30 32 2d 31 37 20 20  5]..2004-02-17  
0a30: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73  Dan Razzell <res
0a40: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79  earch@starfishsy
0a50: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 54 4c 53 20  stems.ca>...TLS 
0a60: 31 2e 35 2e 30 20 52 45 4c 45 41 53 45 0a 0a 32  1.5.0 RELEASE..2
0a70: 30 30 34 2d 30 32 2d 31 32 20 20 44 61 6e 20 52  004-02-12  Dan R
0a80: 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68  azzell.<research
0a90: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73  @starfishsystems
0aa0: 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 09  .ca>...* tls.c:.
0ab0: 41 6c 6c 6f 77 20 76 65 72 69 66 79 20 63 61 6c  Allow verify cal
0ac0: 6c 62 61 63 6b 20 74 6f 20 72 65 74 75 72 6e 20  lback to return 
0ad0: 65 6d 70 74 79 20 72 65 73 75 6c 74 2e 0a 09 2a  empty result...*
0ae0: 20 74 6c 73 2e 68 74 6d 3a 09 44 6f 63 75 6d 65   tls.htm:.Docume
0af0: 6e 74 20 63 61 6c 6c 62 61 63 6b 20 62 65 68 61  nt callback beha
0b00: 76 69 6f 72 73 2e 0a 0a 32 30 30 34 2d 30 32 2d  viors...2004-02-
0b10: 31 31 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09  11  Dan Razzell.
0b20: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69  <research@starfi
0b30: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09  shsystems.ca>...
0b40: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65  * tests/tlsIO.te
0b50: 73 74 3a 0a 09 2a 20 72 65 6d 6f 74 65 2e 74 63  st:..* remote.tc
0b60: 6c 3a 09 43 6f 6d 70 6c 65 74 65 20 70 72 69 76  l:.Complete priv
0b70: 61 74 65 20 6b 65 79 20 6e 61 6d 65 20 63 68 61  ate key name cha
0b80: 6e 67 65 73 20 66 72 6f 6d 20 32 30 30 31 2d 30  nges from 2001-0
0b90: 36 2d 32 31 2e 0a 0a 32 30 30 34 2d 30 32 2d 30  6-21...2004-02-0
0ba0: 33 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c  3  Dan Razzell <
0bb0: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73  research@starfis
0bc0: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a  hsystems.ca>...*
0bd0: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 09 52 65   Makefile.in:.Re
0be0: 6d 6f 76 65 64 20 63 69 72 63 75 6c 61 72 20 64  moved circular d
0bf0: 65 70 65 6e 64 65 6e 63 79 2e 0a 09 2a 20 74 6c  ependency...* tl
0c00: 73 49 6e 74 2e 68 3a 09 4d 61 6b 65 20 66 75 6e  sInt.h:.Make fun
0c10: 63 74 69 6f 6e 20 64 65 63 6c 61 72 61 74 69 6f  ction declaratio
0c20: 6e 73 20 65 78 70 6c 69 63 69 74 2e 0a 09 2a 20  ns explicit...* 
0c30: 74 6c 73 2e 63 3a 09 46 69 78 20 74 79 70 65 20  tls.c:.Fix type 
0c40: 6d 61 74 63 68 20 61 6e 64 20 75 6e 75 73 65 64  match and unused
0c50: 20 76 61 72 69 61 62 6c 65 20 77 61 72 6e 69 6e   variable warnin
0c60: 67 73 2e 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a  gs...* tlsBIO.c:
0c70: 09 46 69 78 20 74 79 70 65 20 6d 61 74 63 68 20  .Fix type match 
0c80: 77 61 72 6e 69 6e 67 2e 0a 0a 32 30 30 33 2d 31  warning...2003-1
0c90: 32 2d 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c  2-15  Dan Razzel
0ca0: 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 72  l.<research@star
0cb0: 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a  fishsystems.ca>.
0cc0: 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c  ..* pkgIndex.tcl
0cd0: 2e 69 6e 3a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a  .in:..* tls.htm:
0ce0: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e  ..* tests/tlsIO.
0cf0: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 76 65  test: updated ve
0d00: 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 0a 0a 32  rsion to 1.5...2
0d10: 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 52  003-10-07  Dan R
0d20: 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68  azzell.<research
0d30: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73  @starfishsystems
0d40: 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63  .ca>...* tests/c
0d50: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64  iphers.test: upd
0d60: 61 74 65 64 20 6c 69 73 74 20 6f 66 20 74 65 73  ated list of tes
0d70: 74 65 64 20 63 69 70 68 65 72 73 20 74 6f 20 63  ted ciphers to c
0d80: 6f 72 72 65 73 70 6f 6e 64 0a 09 2a 20 77 69 74  orrespond..* wit
0d90: 68 20 74 68 6f 73 65 20 61 76 61 69 6c 61 62 6c  h those availabl
0da0: 65 20 66 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e 20  e from OpenSSL. 
0db0: 5b 52 65 71 75 65 73 74 20 23 38 31 31 39 38 31  [Request #811981
0dc0: 5d 0a 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 44  ]..2003-10-07  D
0dd0: 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65  an Razzell <rese
0de0: 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73  arch@starfishsys
0df0: 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73  tems.ca>...* tls
0e00: 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 20  .c: added CONST 
0e10: 77 69 74 68 20 69 6e 74 65 6e 74 20 73 69 6d 69  with intent simi
0e20: 6c 61 72 20 74 6f 20 74 68 6f 73 65 20 66 72 6f  lar to those fro
0e30: 6d 20 32 30 30 32 2d 30 32 2d 30 34 2e 0a 09 5b  m 2002-02-04...[
0e40: 52 65 71 75 65 73 74 20 23 38 31 31 39 31 31 5d  Request #811911]
0e50: 0a 0a 32 30 30 33 2d 30 37 2d 30 37 20 20 4a 65  ..2003-07-07  Je
0e60: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68  ff Hobbs  <jeffh
0e70: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d  @ActiveState.com
0e80: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73  >...* tls.c (Tls
0e90: 5f 49 6e 69 74 29 3a 20 20 20 61 64 64 65 64 20  _Init):   added 
0ea0: 74 6c 73 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e  tls::misc comman
0eb0: 64 20 70 72 6f 76 69 64 65 64 20 62 79 0a 09 2a  d provided by..*
0ec0: 20 74 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 20   tlsX509.c:     
0ed0: 20 20 20 20 20 57 6f 6a 63 69 65 63 68 20 4b 6f       Wojciech Ko
0ee0: 63 6a 61 6e 20 28 77 6f 6a 63 69 65 63 68 20 6b  cjan (wojciech k
0ef0: 6f 63 6a 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 65  ocjan.org)..* te
0f00: 73 74 73 2f 6b 65 79 74 65 73 74 31 2e 74 63 6c  sts/keytest1.tcl
0f10: 3a 20 74 6f 20 65 78 70 6f 73 65 20 6d 6f 72 65  : to expose more
0f20: 20 6c 6f 77 2d 6c 65 76 65 6c 20 53 53 4c 20 63   low-level SSL c
0f30: 6f 6d 6d 61 6e 64 73 0a 09 2a 20 74 65 73 74 73  ommands..* tests
0f40: 2f 6b 65 79 74 65 73 74 32 2e 74 63 6c 3a 0a 0a  /keytest2.tcl:..
0f50: 32 30 30 33 2d 30 35 2d 31 35 20 20 44 61 6e 20  2003-05-15  Dan 
0f60: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63  Razzell.<researc
0f70: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d  h@starfishsystem
0f80: 73 2e 63 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e 74  s.ca> ...* tls.t
0f90: 63 6c 3a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a  cl:..* tlsInt.h:
0fa0: 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 20 73  ..* tls.c: add s
0fb0: 75 70 70 6f 72 74 20 66 6f 72 20 62 69 6e 64 69  upport for bindi
0fc0: 6e 67 20 61 20 70 61 73 73 77 6f 72 64 20 63 61  ng a password ca
0fd0: 6c 6c 62 61 63 6b 20 74 6f 20 74 68 65 20 73 6f  llback to the so
0fe0: 63 6b 65 74 2e 0a 09 4e 6f 77 20 65 61 63 68 20  cket...Now each 
0ff0: 73 6f 63 6b 65 74 20 63 61 6e 20 68 61 76 65 20  socket can have 
1000: 69 74 73 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20  its own command 
1010: 61 6e 64 20 70 61 73 73 77 6f 72 64 20 63 61 6c  and password cal
1020: 6c 62 61 63 6b 73 20 69 6e 73 74 65 61 64 0a 09  lbacks instead..
1030: 6f 66 20 62 65 69 6e 67 20 66 6f 72 63 65 64 20  of being forced 
1040: 74 6f 20 68 61 76 65 20 61 6c 6c 20 70 61 73 73  to have all pass
1050: 77 6f 72 64 20 6d 61 6e 61 67 65 6d 65 6e 74 20  word management 
1060: 70 61 73 73 20 74 68 72 6f 75 67 68 20 61 20 63  pass through a c
1070: 6f 6d 6d 6f 6e 0a 09 70 72 6f 63 65 64 75 72 65  ommon..procedure
1080: 2e 20 20 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 61  .  The common pa
1090: 73 73 77 6f 72 64 20 70 72 6f 63 65 64 75 72 65  ssword procedure
10a0: 20 69 73 20 72 65 74 61 69 6e 65 64 20 66 6f 72   is retained for
10b0: 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 0a 09   compatibility..
10c0: 62 75 74 20 69 74 73 20 75 73 65 20 73 68 6f 75  but its use shou
10d0: 6c 64 20 62 65 20 44 45 50 52 45 43 41 54 45 44  ld be DEPRECATED
10e0: 2e 0a 09 41 64 64 20 76 65 72 73 69 6f 6e 20 63  ...Add version c
10f0: 6f 6d 6d 61 6e 64 20 74 6f 20 72 65 74 75 72 6e  ommand to return
1100: 20 4f 70 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e   OpenSSL version
1110: 20 73 74 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 65   string...Remove
1120: 20 75 6e 73 74 61 62 6c 65 20 77 6f 72 6b 61 72   unstable workar
1130: 6f 75 6e 64 73 20 6e 65 65 64 65 64 20 66 6f 72  ounds needed for
1140: 20 76 65 72 69 66 79 20 69 6e 20 6f 62 73 6f 6c   verify in obsol
1150: 65 74 65 20 76 65 72 73 69 6f 6e 73 20 6f 66 0a  ete versions of.
1160: 09 4f 70 65 6e 53 53 4c 2e 0a 09 46 69 78 20 6d  .OpenSSL...Fix m
1170: 65 6d 6f 72 79 20 6c 65 61 6b 2e 20 5b 52 65 71  emory leak. [Req
1180: 75 65 73 74 20 23 36 34 30 36 36 30 5d 0a 09 4d  uest #640660]..M
1190: 6f 72 65 20 63 61 73 74 73 20 74 6f 20 65 6c 69  ore casts to eli
11a0: 6d 69 6e 61 74 65 20 63 6f 6d 70 69 6c 65 72 20  minate compiler 
11b0: 77 61 72 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c  warnings....* tl
11c0: 73 2e 68 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 20  s.htm: document 
11d0: 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63  password callbac
11e0: 6b 2e 0a 09 43 6f 72 72 65 63 74 20 74 65 63 68  k...Correct tech
11f0: 6e 69 63 61 6c 20 61 6e 64 20 74 79 70 6f 67 72  nical and typogr
1200: 61 70 68 69 63 20 65 72 72 6f 72 73 2e 0a 0a 09  aphic errors....
1210: 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 69 64  * README.txt: id
1220: 65 6e 74 69 66 79 20 76 65 72 73 69 6f 6e 73 20  entify versions 
1230: 6f 66 20 4f 70 65 6e 53 53 4c 20 77 68 69 63 68  of OpenSSL which
1240: 20 66 69 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c   fix known probl
1250: 65 6d 73 2e 0a 09 47 65 6e 65 72 61 6c 20 77 61  ems...General wa
1260: 72 6e 69 6e 67 20 6f 66 20 73 65 63 75 72 69 74  rning of securit
1270: 79 20 70 72 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c  y problems in ol
1280: 64 65 72 20 76 65 72 73 69 6f 6e 73 20 6f 66 20  der versions of 
1290: 4f 70 65 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d 30  OpenSSL...2002-0
12a0: 32 2d 30 34 20 20 4a 65 66 66 20 48 6f 62 62 73  2-04  Jeff Hobbs
12b0: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53    <jeffh@ActiveS
12c0: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tate.com>...* tl
12d0: 73 2e 68 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a  s.htm:..* tls.c:
12e0: 20 61 64 64 65 64 20 73 75 70 70 6f 72 74 20 66   added support f
12f0: 6f 72 20 6c 6f 63 61 6c 20 63 65 72 74 69 66 69  or local certifi
1300: 63 61 74 65 20 73 74 61 74 75 73 20 63 68 65 63  cate status chec
1310: 6b 2c 20 61 73 20 77 65 6c 6c 0a 09 61 73 20 72  k, as well..as r
1320: 65 74 75 72 6e 69 6e 67 20 74 68 65 20 23 20 6f  eturning the # o
1330: 66 20 62 69 74 73 20 69 6e 20 74 68 65 20 73 65  f bits in the se
1340: 73 73 69 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 63  ssion key. [Patc
1350: 68 20 23 35 30 35 36 39 38 5d 20 28 72 6f 73 65  h #505698] (rose
1360: 29 0a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20  )...* tls.c:..* 
1370: 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42  tlsIO.c:..* tlsB
1380: 49 4f 2e 63 3a 20 61 64 64 65 64 20 43 4f 4e 53  IO.c: added CONS
1390: 54 73 20 74 6f 20 73 61 74 69 73 66 79 20 54 63  Ts to satisfy Tc
13a0: 6c 20 38 2e 34 20 73 6f 75 72 63 65 73 2e 20 20  l 8.4 sources.  
13b0: 54 68 69 73 20 6d 61 79 0a 09 67 69 76 65 20 77  This may..give w
13c0: 61 72 6e 69 6e 67 73 20 77 68 65 6e 20 63 6f 6d  arnings when com
13d0: 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 38 2e  piled against 8.
13e0: 33 2c 20 62 75 74 20 74 68 65 79 20 63 61 6e 20  3, but they can 
13f0: 62 65 20 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20  be ignored....* 
1400: 74 65 73 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65  tests/simpleClie
1410: 6e 74 2e 74 63 6c 3a 0a 09 2a 20 74 65 73 74 73  nt.tcl:..* tests
1420: 2f 73 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 63  /simpleServer.tc
1430: 6c 3a 20 70 6f 69 6e 74 20 74 6f 20 75 70 64 61  l: point to upda
1440: 74 65 64 20 63 6c 69 65 6e 74 2f 73 65 72 76 65  ted client/serve
1450: 72 20 6b 65 79 20 66 69 6c 65 73 2e 0a 0a 09 2a  r key files....*
1460: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73   tests/tlsIO.tes
1470: 74 3a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68  t:..* tests/ciph
1480: 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65  ers.test: update
1490: 64 20 74 6f 20 6c 6f 61 64 20 74 6c 73 20 66 72  d to load tls fr
14a0: 6f 6d 20 62 75 69 6c 64 20 64 69 72 2e 0a 0a 09  om build dir....
14b0: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 72  * Makefile.in: r
14c0: 65 6d 6f 76 65 64 20 73 74 72 6e 63 61 73 65 63  emoved strncasec
14d0: 6d 70 20 66 72 6f 6d 20 64 65 66 61 75 6c 74 20  mp from default 
14e0: 6f 62 6a 65 63 74 20 73 65 74 2e 20 20 54 68 69  object set.  Thi
14f0: 73 0a 09 69 73 20 6f 6e 6c 79 20 6e 65 65 64 65  s..is only neede
1500: 64 20 6f 6e 20 74 68 65 20 4d 61 63 2c 20 61 6e  d on the Mac, an
1510: 64 20 54 63 6c 20 73 74 75 62 73 20 70 72 6f 76  d Tcl stubs prov
1520: 69 64 65 73 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e  ides it....* con
1530: 66 69 67 75 72 65 3a 20 72 65 67 65 6e 27 65 64  figure: regen'ed
1540: 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69  ...* configure.i
1550: 6e 3a 20 75 70 64 61 74 65 64 20 74 6f 20 31 2e  n: updated to 1.
1560: 35 2e 30 20 66 6f 72 20 6e 65 78 74 20 72 65 6c  5.0 for next rel
1570: 65 61 73 65 2e 0a 09 43 68 61 6e 67 65 64 20 64  ease...Changed d
1580: 65 66 61 75 6c 74 20 6f 70 65 6e 73 73 6c 20 6c  efault openssl l
1590: 6f 63 61 74 69 6f 6e 20 74 6f 20 2f 75 73 72 2f  ocation to /usr/
15a0: 6c 6f 63 61 6c 2f 73 73 6c 20 28 74 68 69 73 20  local/ssl (this 
15b0: 69 73 20 77 68 65 72 65 0a 09 6f 70 65 6e 73 73  is where..openss
15c0: 6c 20 30 2e 39 2e 36 63 20 69 6e 73 74 61 6c 6c  l 0.9.6c install
15d0: 73 20 62 79 20 64 65 66 61 75 6c 74 29 2e 0a 09  s by default)...
15e0: 43 68 61 6e 67 65 64 20 74 6f 20 75 73 65 20 70  Changed to use p
15f0: 75 62 6c 69 63 20 54 63 6c 20 68 65 61 64 65 72  ublic Tcl header
1600: 73 20 28 70 72 69 76 61 74 65 20 6e 6f 74 20 6e  s (private not n
1610: 65 65 64 65 64 29 2e 0a 0a 32 30 30 31 2d 30 36  eeded)...2001-06
1620: 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -21  Jeff Hobbs 
1630: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
1640: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31  ate.com>...TLS 1
1650: 2e 34 2e 31 20 52 45 4c 45 41 53 45 0a 0a 09 2a  .4.1 RELEASE...*
1660: 20 63 6f 6e 66 69 67 75 72 65 3a 20 61 64 64 65   configure: adde
1670: 64 20 63 6f 6e 66 69 67 75 72 65 20 74 6f 20 43  d configure to C
1680: 56 53 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e  VS..* configure.
1690: 69 6e 3a 20 6d 6f 76 65 64 20 74 6f 20 70 61 74  in: moved to pat
16a0: 63 68 6c 65 76 65 6c 20 31 2e 34 2e 31 0a 0a 09  chlevel 1.4.1...
16b0: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 63  * Makefile.in: c
16c0: 6f 72 72 65 63 74 65 64 20 27 64 69 73 74 27 20  orrected 'dist' 
16d0: 74 61 72 67 65 74 0a 0a 09 2a 20 74 65 73 74 73  target...* tests
16e0: 2f 63 65 72 74 73 2f 66 69 6c 65 2e 73 72 6c 3a  /certs/file.srl:
16f0: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f  ..* tests/certs/
1700: 63 61 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73  ca.pem:..* tests
1710: 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 6b 65  /certs/client.ke
1720: 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  y:..* tests/cert
1730: 73 2f 63 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a  s/client.pem:..*
1740: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69   tests/certs/cli
1750: 65 6e 74 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74  ent.req:..* test
1760: 73 2f 63 65 72 74 73 2f 70 72 69 76 6b 65 79 2e  s/certs/privkey.
1770: 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65  pem:..* tests/ce
1780: 72 74 73 2f 73 65 72 76 65 72 2e 6b 65 79 3a 0a  rts/server.key:.
1790: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73  .* tests/certs/s
17a0: 65 72 76 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 65  erver.pem:..* te
17b0: 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72  sts/certs/server
17c0: 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63  .req:..* tests/c
17d0: 65 72 74 73 2f 63 61 63 65 72 74 2e 70 65 6d 3a  erts/cacert.pem:
17e0: 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77   replaced by new
17f0: 20 63 61 2e 70 65 6d 0a 09 2a 20 74 65 73 74 73   ca.pem..* tests
1800: 2f 63 65 72 74 73 2f 73 6b 65 79 2e 70 65 6d 3a  /certs/skey.pem:
1810: 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77   replaced by new
1820: 20 73 65 72 76 65 72 2e 6b 65 79 0a 09 2a 20 74   server.key..* t
1830: 65 73 74 73 2f 63 65 72 74 73 2f 63 6b 65 79 2e  ests/certs/ckey.
1840: 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20 62 79  pem: replaced by
1850: 20 6e 65 77 20 63 6c 69 65 6e 74 2e 6b 65 79 0a   new client.key.
1860: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 52  .* tests/certs/R
1870: 45 41 44 4d 45 2e 74 78 74 3a 20 6e 65 77 20 73  EADME.txt: new s
1880: 65 74 20 6f 66 20 74 65 73 74 20 63 65 72 74 69  et of test certi
1890: 66 69 63 61 74 65 73 20 77 69 74 68 20 73 6f 6d  ficates with som
18a0: 65 0a 09 52 45 41 44 4d 45 20 69 6e 66 6f 20 6f  e..README info o
18b0: 6e 20 74 68 65 69 72 20 67 65 6e 65 72 61 74 69  n their generati
18c0: 6f 6e 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69  on....* tests/ci
18d0: 70 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61  phers.test: upda
18e0: 74 65 64 20 63 69 70 68 65 72 73 20 65 78 70 65  ted ciphers expe
18f0: 63 74 65 64 20 77 69 74 68 20 64 65 66 61 75 6c  cted with defaul
1900: 74 0a 09 6f 70 65 6e 73 73 6c 20 62 75 69 6c 64  t..openssl build
1910: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 63 6c 49  ....* tests/tclI
1920: 4f 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20  O.test: updated 
1930: 74 6f 20 75 73 65 20 6e 65 77 20 6e 61 6d 65 73  to use new names
1940: 20 66 6f 72 20 63 65 72 74 73 2f 6b 65 79 73 2e   for certs/keys.
1950: 0a 0a 32 30 30 31 2d 30 33 2d 31 34 20 20 4a 65  ..2001-03-14  Je
1960: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68  ff Hobbs  <jeffh
1970: 40 67 69 6d 6c 65 74 2e 61 63 74 69 76 65 73 74  @gimlet.activest
1980: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
1990: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61  .c (Tls_Init): a
19a0: 64 64 20 64 6f 2f 77 68 69 6c 65 20 66 6f 72 20  dd do/while for 
19b0: 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 69 6e  random number in
19c0: 69 74 69 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f  itialization..to
19d0: 20 77 6f 72 6b 20 61 72 6f 75 6e 64 20 73 6f 6d   work around som
19e0: 65 20 4f 53 65 73 20 71 75 69 72 6b 73 2e 20 20  e OSes quirks.  
19f0: 28 52 61 6c 70 68 2e 42 69 6c 6c 65 73 40 74 65  (Ralph.Billes@te
1a00: 6c 74 65 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32  ltech.com.au)..2
1a10: 30 30 30 2d 30 39 2d 30 37 20 20 4a 65 66 66 20  000-09-07  Jeff 
1a20: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63  Hobbs  <hobbs@sc
1a30: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a  riptics.com>...*
1a40: 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 5f 43 68   tlsIO.c (Tls_Ch
1a50: 61 6e 6e 65 6c 54 79 70 65 29 3a 20 73 65 74 20  annelType): set 
1a60: 74 79 70 65 4e 61 6d 65 20 66 69 65 6c 64 20 6f  typeName field o
1a70: 66 20 63 68 61 6e 6e 65 6c 20 74 79 70 65 20 74  f channel type t
1a80: 6f 0a 09 22 74 6c 73 22 20 28 74 68 69 73 20 67  o.."tls" (this g
1a90: 6f 74 20 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 20  ot lost in move 
1aa0: 74 6f 20 64 79 6e 61 6d 69 63 20 76 65 72 73 69  to dynamic versi
1ab0: 6f 6e 20 63 6f 6d 70 61 74 61 62 69 6c 69 74 79  on compatability
1ac0: 0a 09 63 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 30  ..checking)...20
1ad0: 30 30 2d 30 38 2d 32 33 20 20 4a 65 66 66 20 48  00-08-23  Jeff H
1ae0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72  obbs  <hobbs@scr
1af0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c  iptics.com>...TL
1b00: 53 20 31 2e 34 20 52 45 4c 45 41 53 45 44 0a 0a  S 1.4 RELEASED..
1b10: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28  .* Makefile.in (
1b20: 64 69 73 74 29 3a 20 63 72 65 61 74 65 20 64 69  dist): create di
1b30: 73 74 20 74 61 72 67 65 74 20 66 6f 72 20 61 72  st target for ar
1b40: 63 68 69 76 65 20 64 69 73 74 72 69 62 75 74 69  chive distributi
1b50: 6f 6e 73 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c  ons...* tests/tl
1b60: 73 49 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d  sIO.test (tlsIO-
1b70: 38 2e 31 29 3a 20 61 64 64 65 64 20 61 20 64 65  8.1): added a de
1b80: 6c 61 79 20 6f 6e 20 74 68 65 20 61 63 63 65 70  lay on the accep
1b90: 74 20 63 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65  t close..to make
1ba0: 20 74 68 65 20 74 65 73 74 20 77 6f 72 6b 20 77   the test work w
1bb0: 69 74 68 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57  ith OpenSSL on W
1bc0: 69 6e 64 6f 77 73 20 28 64 6f 65 73 6e 27 74 20  indows (doesn't 
1bd0: 61 66 66 65 63 74 0a 09 6f 74 68 65 72 20 62 75  affect..other bu
1be0: 69 6c 64 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68  ilds)....* tls.h
1bf0: 74 6d 3a 20 75 70 64 61 74 65 64 20 77 69 74 68  tm: updated with
1c00: 20 6e 6f 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a   notes for 1.4..
1c10: 0a 32 30 30 30 2d 30 38 2d 32 31 20 20 4a 65 66  .2000-08-21  Jef
1c20: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40  f Hobbs  <hobbs@
1c30: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
1c40: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74  .* tests/tlsIO.t
1c50: 65 73 74 3a 20 72 65 71 75 69 72 65 20 61 74 20  est: require at 
1c60: 6c 65 61 73 74 20 74 6c 73 31 2e 34 20 69 6e 20  least tls1.4 in 
1c70: 74 65 73 74 20 73 75 69 74 65 2e 0a 0a 32 30 30  test suite...200
1c80: 30 2d 30 38 2d 31 38 20 20 4a 65 66 66 20 48 6f  0-08-18  Jeff Ho
1c90: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69  bbs  <hobbs@scri
1ca0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74  ptics.com>...* t
1cb0: 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a  ls.c (Tls_Init):
1cc0: 20 61 64 64 65 64 20 63 61 6c 6c 20 74 6f 20 52   added call to R
1cd0: 41 4e 44 5f 73 65 65 64 20 74 6f 20 73 65 65 64  AND_seed to seed
1ce0: 20 74 68 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a   the SSL random.
1cf0: 09 6e 75 6d 62 65 72 20 67 65 6e 65 72 61 74 6f  .number generato
1d00: 72 2e 20 20 57 69 74 68 6f 75 74 20 74 68 69 73  r.  Without this
1d10: 2c 20 4f 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20  , OpenSSL 0.9.5 
1d20: 63 68 6f 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61  chokes, and in a
1d30: 6e 79 0a 09 63 61 73 65 20 69 74 20 69 73 20 61  ny..case it is a
1d40: 20 62 69 67 20 73 65 63 75 72 69 74 79 20 68 6f   big security ho
1d50: 6c 65 20 74 6f 20 64 6f 20 77 69 74 68 6f 75 74  le to do without
1d60: 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75   it....* configu
1d70: 72 65 2e 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a  re.in (OPENSSL):
1d80: 20 61 64 64 65 64 20 4e 4f 5f 49 44 45 41 20 61   added NO_IDEA a
1d90: 6e 64 20 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65  nd NO_RC5 define
1da0: 73 20 62 79 0a 09 64 65 66 61 75 6c 74 20 77 68  s by..default wh
1db0: 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74  en compiling wit
1dc0: 68 20 4f 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74  h OpenSSL....* t
1dd0: 6c 73 49 6e 74 2e 68 3a 20 61 64 64 65 64 20 65  lsInt.h: added e
1de0: 72 72 2e 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a  rr.h include...*
1df0: 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c   tlsBIO.c:..* tl
1e00: 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64  sIO.c: corrected
1e10: 20 70 65 64 61 6e 74 69 63 20 63 61 73 74 20 65   pedantic cast e
1e20: 72 72 6f 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d  rrors...2000-08-
1e30: 31 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  16  Jeff Hobbs  
1e40: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
1e50: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f  .com>...* tests/
1e60: 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 69 6d  ciphers.test: im
1e70: 70 72 6f 76 65 64 20 61 62 69 6c 69 74 79 20 74  proved ability t
1e80: 6f 20 63 68 61 6e 67 65 20 63 6f 6e 73 74 72 61  o change constra
1e90: 69 6e 74 0a 09 73 65 74 74 69 6e 67 20 66 6f 72  int..setting for
1ea0: 20 77 68 65 74 68 65 72 20 75 73 65 72 20 63 6f   whether user co
1eb0: 6d 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 52  mpiled against R
1ec0: 53 41 20 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69  SA or OpenSSL li
1ed0: 62 73 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54  bs....* tls.c (T
1ee0: 6c 73 5f 49 6e 69 74 29 3a 20 63 6f 72 72 65 63  ls_Init): correc
1ef0: 74 65 64 20 69 6e 74 65 72 70 72 65 74 61 74 69  ted interpretati
1f00: 6f 6e 20 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75  on of version nu
1f10: 6d 62 65 72 0a 09 28 70 61 74 63 68 6c 65 76 65  mber..(patchleve
1f20: 6c 20 61 6e 64 20 72 65 6c 65 61 73 65 2f 73 65  l and release/se
1f30: 72 69 61 6c 20 77 65 72 65 20 73 77 61 70 70 65  rial were swappe
1f40: 64 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20  d)...2000-08-15 
1f50: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
1f60: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
1f70: 6d 3e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78  m>...* README.tx
1f80: 74 3a 20 61 64 64 65 64 20 6e 6f 74 65 73 20 61  t: added notes a
1f90: 62 6f 75 74 20 6e 65 65 64 20 74 6f 20 75 73 65  bout need to use
1fa0: 20 38 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73   8.2.0+....* tls
1fb0: 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a  Int.h:..* tls.c:
1fc0: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72  ..* tlsIO.c: cor
1fd0: 72 65 63 74 65 64 20 73 74 72 75 63 74 75 72 65  rected structure
1fe0: 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20   initialization 
1ff0: 74 6f 20 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f  to work when..co
2000: 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 38 2e 32  mpiling with 8.2
2010: 2e 20 20 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20  .  Now compiles 
2020: 77 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 74 65  with 8.2+ and te
2030: 73 74 65 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69  sted to work..wi
2040: 74 68 20 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61  th 8.2+ and dyna
2050: 6d 69 63 61 6c 6c 79 20 61 64 6a 75 73 74 20 74  mically adjust t
2060: 6f 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66  o the version of
2070: 20 54 63 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61   Tcl it was..loa
2080: 64 65 64 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77  ded into.  TLS w
2090: 69 6c 6c 20 66 61 69 6c 20 74 68 65 20 74 65 73  ill fail the tes
20a0: 74 20 73 75 69 74 65 20 77 69 74 68 20 54 63 6c  t suite with Tcl
20b0: 20 38 2e 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20   8.2-8.3.1....* 
20c0: 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61  tests/all.tcl: a
20d0: 64 64 65 64 20 63 61 74 63 68 20 61 72 6f 75 6e  dded catch aroun
20e0: 64 20 3a 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72  d ::tcltest::nor
20f0: 6d 61 6c 69 7a 65 50 61 74 68 0a 09 62 65 63 61  malizePath..beca
2100: 75 73 65 20 69 74 20 64 6f 65 73 6e 27 74 20 65  use it doesn't e
2110: 78 69 73 74 20 69 6e 20 70 72 65 2d 38 2e 33 20  xist in pre-8.3 
2120: 74 63 6c 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73  tcltest....* tes
2130: 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e  ts/simpleClient.
2140: 74 63 6c 3a 20 0a 09 2a 20 74 65 73 74 73 2f 73  tcl: ..* tests/s
2150: 69 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a  impleServer.tcl:
2160: 20 61 64 64 65 64 20 73 69 6d 70 6c 65 20 63 6c   added simple cl
2170: 69 65 6e 74 2f 73 65 72 76 65 72 20 74 65 73 74  ient/server test
2180: 20 73 63 72 69 70 74 73 0a 09 74 68 61 74 20 75   scripts..that u
2190: 73 65 20 74 65 73 74 20 63 65 72 74 73 20 61 6e  se test certs an
21a0: 64 20 63 61 6e 20 64 6f 20 73 69 6d 70 6c 65 20  d can do simple 
21b0: 73 74 72 65 73 73 20 74 65 73 74 73 2e 0a 0a 32  stress tests...2
21c0: 30 30 30 2d 30 38 2d 31 34 20 20 4a 65 66 66 20  000-08-14  Jeff 
21d0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63  Hobbs  <hobbs@sc
21e0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a  riptics.com>...*
21f0: 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c   tlsInt.h:..* tl
2200: 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f  sIO.c:..* tlsBIO
2210: 2e 63 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 68  .c:..* tls.c: ch
2220: 61 6e 67 65 64 20 61 72 6f 75 6e 64 20 74 6f 20  anged around to 
2230: 6f 6e 6c 79 20 77 6f 72 6b 69 6e 67 20 77 69 74  only working wit
2240: 68 20 38 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 2b  h 8.2.0+ (8.3.2+
2250: 0a 09 70 72 65 66 65 72 72 65 64 29 2c 20 77 69  ..preferred), wi
2260: 74 68 20 72 75 6e 74 69 6d 65 20 63 68 65 63 6b  th runtime check
2270: 73 20 66 6f 72 20 70 72 65 2d 20 61 6e 64 20 70  s for pre- and p
2280: 6f 73 74 2d 69 6f 2d 72 65 77 72 69 74 65 2e 0a  ost-io-rewrite..
2290: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49  ..* tls.c (Tls_I
22a0: 6e 69 74 29 3a 20 63 68 61 6e 67 65 64 20 69 74  nit): changed it
22b0: 20 74 6f 20 72 65 71 75 69 72 65 20 38 2e 33 2e   to require 8.3.
22c0: 32 20 77 68 65 6e 20 54 63 6c 5f 49 6e 69 74 53  2 when Tcl_InitS
22d0: 74 75 62 73 0a 09 77 61 73 20 63 61 6c 6c 65 64  tubs..was called
22e0: 20 62 65 63 61 75 73 65 20 77 65 20 64 6f 6e 27   because we don'
22f0: 74 20 77 61 6e 74 20 70 65 6f 70 6c 65 20 75 73  t want people us
2300: 69 6e 67 20 54 4c 53 20 77 69 74 68 20 74 68 65  ing TLS with the
2310: 0a 09 6f 72 69 67 69 6e 61 6c 20 73 74 61 63 6b  ..original stack
2320: 65 64 20 63 68 61 6e 6e 65 6c 20 69 6d 70 6c 65  ed channel imple
2330: 6d 65 6e 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 30  mentation...2000
2340: 2d 30 37 2d 32 36 20 20 4a 65 66 66 20 48 6f 62  -07-26  Jeff Hob
2350: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
2360: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65  tics.com>...* me
2370: 72 67 65 64 20 61 6c 6c 20 63 68 61 6e 67 65 73  rged all changes
2380: 20 66 72 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f   from tls-1-3-io
2390: 2d 72 65 77 72 69 74 65 20 62 61 63 6b 20 69 6e  -rewrite back in
23a0: 74 6f 20 6d 61 69 6e 20 62 72 61 6e 63 68 0a 0a  to main branch..
23b0: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74  .* tests/tlsIO.t
23c0: 65 73 74 3a 20 75 70 64 61 74 65 64 20 63 6f 6d  est: updated com
23d0: 6d 65 6e 74 73 2c 20 66 69 78 65 64 20 61 20 70  ments, fixed a p
23e0: 63 43 72 61 73 68 20 63 61 73 65 20 74 68 61 74  cCrash case that
23f0: 0a 09 77 61 73 20 64 75 65 20 74 6f 20 64 65 62  ..was due to deb
2400: 75 67 20 61 73 73 65 72 74 69 6f 6e 20 69 6e 20  ug assertion in 
2410: 57 69 6e 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a  Windows SSL....*
2420: 20 74 6c 73 2e 63 20 28 49 6d 70 6f 72 74 4f 62   tls.c (ImportOb
2430: 6a 43 6d 64 29 3a 20 72 65 6d 6f 76 65 64 20 75  jCmd): removed u
2440: 6e 6e 65 63 65 73 73 61 72 79 20 75 73 65 20 6f  nnecessary use o
2450: 66 20 27 62 69 6f 27 20 61 72 67 2e 0a 09 28 54  f 'bio' arg...(T
2460: 6c 73 5f 49 6e 69 74 29 3a 20 63 68 65 63 6b 20  ls_Init): check 
2470: 72 65 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 20  return value of 
2480: 53 53 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74  SSL_library_init
2490: 2e 20 20 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a  .  Also lots of.
24a0: 09 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 61  .whitespace clea
24b0: 6e 75 70 20 28 6d 6f 72 65 20 6c 69 6b 65 20 54  nup (more like T
24c0: 63 6c 20 45 6e 67 20 73 74 79 6c 65 20 67 75 69  cl Eng style gui
24d0: 64 65 29 2c 20 62 75 74 20 6e 6f 74 20 61 6c 6c  de), but not all
24e0: 0a 09 63 6f 64 65 20 77 61 73 20 63 6c 65 61 6e  ..code was clean
24f0: 65 64 20 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 49  ed up....* tlsBI
2500: 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65  O.c: minor white
2510: 73 70 61 63 65 20 63 6c 65 61 6e 75 70 0a 0a 09  space cleanup...
2520: 2a 20 74 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72  * tlsIO.c: minor
2530: 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 61   whitespace clea
2540: 6e 75 70 2e 0a 09 28 54 6c 73 49 6e 70 75 74 50  nup...(TlsInputP
2550: 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72  roc, TlsOutputPr
2560: 6f 63 29 3a 20 41 64 64 65 64 20 45 52 52 5f 63  oc): Added ERR_c
2570: 6c 65 61 72 5f 65 72 72 6f 72 20 62 65 66 6f 72  lear_error befor
2580: 65 20 63 61 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f  e calls..to BIO_
2590: 72 65 61 64 20 6f 72 20 42 49 4f 5f 77 72 69 74  read or BIO_writ
25a0: 65 2c 20 62 65 63 61 75 73 65 20 77 65 20 63 6f  e, because we co
25b0: 75 6c 64 20 6f 74 68 65 72 77 69 73 65 20 65 6e  uld otherwise en
25c0: 64 20 75 70 0a 09 70 75 6c 6c 69 6e 67 20 61 6e  d up..pulling an
25d0: 20 65 72 72 6f 72 20 6f 66 66 20 74 68 65 20 73   error off the s
25e0: 74 61 63 6b 20 74 68 61 74 20 64 69 64 6e 27 74  tack that didn't
25f0: 20 62 65 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 20   belong to us.  
2600: 41 6c 73 6f 0a 09 63 6c 65 61 6e 75 70 20 75 70  Also..cleanup up
2610: 20 65 78 63 65 73 73 69 76 65 20 75 73 65 20 6f   excessive use o
2620: 66 20 67 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d 30  f gotos...2000-0
2630: 37 2d 32 30 20 20 4a 65 66 66 20 48 6f 62 62 73  7-20  Jeff Hobbs
2640: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69    <hobbs@scripti
2650: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74  cs.com>...* test
2660: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 63 6f  s/tlsIO.test: co
2670: 72 72 65 63 74 65 64 20 76 61 72 69 6f 75 73 20  rrected various 
2680: 74 65 73 74 73 20 74 6f 20 62 65 20 63 6f 72 72  tests to be corr
2690: 65 63 74 20 66 6f 72 20 54 4c 53 0a 09 73 74 61  ect for TLS..sta
26a0: 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 20 28 61  cked channels (a
26b0: 73 20 6f 70 70 6f 73 65 64 20 74 6f 20 74 68 65  s opposed to the
26c0: 20 73 74 61 6e 64 61 72 64 20 73 6f 63 6b 65 74   standard socket
26d0: 73 20 74 68 65 20 74 65 73 74 0a 09 73 75 69 74  s the test..suit
26e0: 65 20 77 61 73 20 61 64 6f 70 74 65 64 20 66 72  e was adopted fr
26f0: 6f 6d 29 2e 20 20 4b 65 79 20 64 69 66 66 65 72  om).  Key differ
2700: 65 6e 63 65 73 20 61 72 65 20 74 68 61 74 20 54  ences are that T
2710: 4c 53 20 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 61  LS cannot..opera
2720: 74 65 20 69 6e 20 6f 6e 65 20 70 72 6f 63 65 73  te in one proces
2730: 73 20 77 69 74 68 6f 75 74 20 61 6c 6c 20 63 68  s without all ch
2740: 61 6e 6e 65 6c 73 20 62 65 69 6e 67 20 6e 6f 6e  annels being non
2750: 2d 62 6c 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 74  -blocking, or..t
2760: 68 65 20 68 61 6e 64 73 68 61 6b 65 20 77 69 6c  he handshake wil
2770: 6c 20 62 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 6e  l block, and han
2780: 64 73 68 61 6b 69 6e 67 20 6d 75 73 74 20 62 65  dshaking must be
2790: 20 66 6f 72 63 65 64 20 69 6e 20 73 6f 6d 65 0a   forced in some.
27a0: 09 63 61 73 65 73 2e 20 20 41 6c 73 6f 2c 20 68  .cases.  Also, h
27b0: 61 6e 64 73 68 61 6b 65 73 20 64 6f 6e 27 74 20  andshakes don't 
27c0: 73 65 65 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 65  seem to complete
27d0: 20 75 6e 6c 65 73 73 20 74 68 65 20 63 6c 69 65   unless the clie
27e0: 6e 74 0a 09 68 61 73 20 70 6c 61 63 65 64 20 61  nt..has placed a
27f0: 74 20 6c 65 61 73 74 20 6f 6e 65 20 62 79 74 65  t least one byte
2800: 20 66 6f 72 20 74 68 65 20 73 65 72 76 65 72 20   for the server 
2810: 74 6f 20 72 65 61 64 20 69 6e 20 74 68 65 20 63  to read in the c
2820: 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74  hannel....* test
2830: 73 2f 72 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f  s/remote.tcl: co
2840: 72 72 65 63 74 65 64 20 74 68 65 20 66 69 6e 64  rrected the find
2850: 69 6e 67 20 6f 66 20 74 65 73 74 73 20 63 65 72  ing of tests cer
2860: 74 69 66 69 63 61 74 65 73 0a 0a 09 2a 20 74 6c  tificates...* tl
2870: 73 49 4f 2e 63 20 28 54 6c 73 43 6c 6f 73 65 50  sIO.c (TlsCloseP
2880: 72 6f 63 29 3a 20 72 65 6d 6f 76 65 64 20 64 65  roc): removed de
2890: 6c 65 74 69 6e 67 20 6f 66 20 74 69 6d 65 72 20  leting of timer 
28a0: 68 61 6e 64 6c 65 72 20 61 73 0a 09 74 68 61 74  handler as..that
28b0: 20 69 73 20 68 61 6e 64 6c 65 64 20 62 79 20 54   is handled by T
28c0: 6c 73 5f 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c  ls_Clean....* tl
28d0: 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 63  s.tcl (tls::_acc
28e0: 65 70 74 29 3a 20 63 6f 72 72 65 63 74 65 64 20  ept): corrected 
28f0: 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 5f 61 63  the internal _ac
2900: 63 65 70 74 20 74 6f 0a 09 74 72 69 63 6b 6c 65  cept to..trickle
2910: 20 63 61 6c 6c 62 61 63 6b 20 65 72 72 6f 72 73   callback errors
2920: 20 74 6f 20 74 68 65 20 75 73 65 72 2e 0a 0a 09   to the user....
2930: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d  * Makefile.in: m
2940: 61 64 65 20 74 68 65 20 69 6e 73 74 61 6c 6c 2d  ade the install-
2950: 62 69 6e 61 72 69 65 73 20 74 61 72 67 65 74 20  binaries target 
2960: 72 65 67 65 6e 65 72 61 74 65 20 74 68 65 0a 09  regenerate the..
2970: 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 63 6f 72  pkgIndex.tcl cor
2980: 72 65 63 74 6c 79 2e 20 20 54 68 65 20 74 65 73  rectly.  The tes
2990: 74 20 74 61 72 67 65 74 20 70 72 6f 62 61 62 6c  t target probabl
29a0: 79 20 73 68 6f 75 6c 64 6e 27 74 20 73 63 72 65  y shouldn't scre
29b0: 77 0a 09 69 74 20 75 70 2c 20 62 75 74 20 74 68  w..it up, but th
29c0: 69 73 20 69 73 20 74 6f 20 62 65 20 6f 6e 20 74  is is to be on t
29d0: 68 65 20 73 61 66 65 20 73 69 64 65 2e 0a 0a 32  he safe side...2
29e0: 30 30 30 2d 30 37 2d 31 37 20 20 4a 65 66 66 20  000-07-17  Jeff 
29f0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63  Hobbs  <hobbs@sc
2a00: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a  riptics.com>...*
2a10: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e   pkgIndex.tcl.in
2a20: 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69  :..* configure.i
2a30: 6e 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 69  n: updated versi
2a40: 6f 6e 20 74 6f 20 31 2e 34 0a 0a 32 30 30 30 2d  on to 1.4..2000-
2a50: 30 37 2d 31 33 20 20 4a 65 66 66 20 48 6f 62 62  07-13  Jeff Hobb
2a60: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
2a70: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73  ics.com>...* tes
2a80: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 65  ts/tlsIO.test: e
2a90: 6e 61 62 6c 65 64 20 74 65 73 74 73 20 32 2e 31  nabled tests 2.1
2aa0: 30 2c 20 37 2e 5b 31 32 34 35 5d 20 28 74 68 65  0, 7.[1245] (the
2ab0: 72 65 20 69 73 20 6e 6f 20 33 29 2c 0a 09 77 68  re is no 3),..wh
2ac0: 69 63 68 20 6e 6f 77 20 70 61 73 73 2e 20 20 41  ich now pass.  A
2ad0: 64 64 65 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e  dded some commen
2ae0: 74 73 20 74 6f 20 6f 74 68 65 72 20 66 61 69 6c  ts to other fail
2af0: 69 6e 67 20 74 65 73 74 73 2e 0a 0a 32 30 30 30  ing tests...2000
2b00: 2d 30 37 2d 31 31 20 20 4a 65 66 66 20 48 6f 62  -07-11  Jeff Hob
2b10: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
2b20: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tics.com>...* tl
2b30: 73 49 4f 2e 63 3a 20 63 68 61 6e 67 65 64 20 61  sIO.c: changed a
2b40: 6c 6c 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 70  ll the channel p
2b50: 72 6f 63 73 20 74 6f 20 73 74 61 72 74 20 77 69  rocs to start wi
2b60: 74 68 20 54 6c 73 2a 20 66 6f 72 0a 09 62 65 74  th Tls* for..bet
2b70: 74 65 72 20 70 61 72 69 74 79 20 77 68 65 6e 20  ter parity when 
2b80: 63 6f 6d 70 61 72 69 6e 67 20 77 69 74 68 20 54  comparing with T
2b90: 72 61 6e 73 66 6f 72 6d 20 63 68 61 6e 6e 65 6c  ransform channel
2ba0: 20 70 72 6f 63 73 2e 0a 09 52 65 77 72 6f 74 65   procs...Rewrote
2bb0: 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2c 20 61   TlsWatchProc, a
2bc0: 64 64 65 64 20 54 6c 73 4e 6f 74 69 66 79 50 72  dded TlsNotifyPr
2bd0: 6f 63 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20  oc according to 
2be0: 74 68 65 20 6e 65 77 0a 09 63 68 61 6e 6e 65 6c  the new..channel
2bf0: 20 64 65 73 69 67 6e 2c 20 77 68 69 63 68 20 61   design, which a
2c00: 6c 73 6f 20 6c 65 61 76 65 73 20 54 6c 73 43 68  lso leaves TlsCh
2c10: 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 75 6e 75  annelHandler unu
2c20: 73 65 64 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e  sed....* tlsBIO.
2c30: 63 20 28 42 69 6f 43 74 72 6c 29 3a 20 63 68 61  c (BioCtrl): cha
2c40: 6e 67 65 64 20 42 49 4f 5f 43 54 52 4c 5f 46 4c  nged BIO_CTRL_FL
2c50: 55 53 48 20 63 61 73 65 20 74 6f 20 75 73 65 0a  USH case to use.
2c60: 09 54 63 6c 5f 57 72 69 74 65 52 61 77 20 69 6e  .Tcl_WriteRaw in
2c70: 73 74 65 61 64 20 6f 66 20 54 63 6c 5f 46 6c 75  stead of Tcl_Flu
2c80: 73 68 20 28 74 6f 20 6f 70 65 72 61 74 65 20 6f  sh (to operate o
2c90: 6e 20 63 6f 72 72 65 63 74 20 63 68 61 6e 6e 65  n correct channe
2ca0: 6c 0a 09 69 6e 20 74 68 65 20 73 74 61 63 6b 20  l..in the stack 
2cb0: 69 6e 73 74 65 61 64 20 6f 66 20 73 74 61 72 74  instead of start
2cc0: 69 6e 67 20 61 74 20 74 68 65 20 74 6f 70 20 61  ing at the top a
2cd0: 67 61 69 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 6f  gain).  Would..o
2ce0: 74 68 65 72 77 69 73 65 20 63 61 75 73 65 20 61  therwise cause a
2cf0: 20 72 65 63 75 72 73 69 76 65 20 73 74 61 63 6b   recursive stack
2d00: 20 62 6f 6d 62 20 77 68 65 6e 20 69 6d 70 6c 69   bomb when impli
2d10: 63 69 74 20 68 61 6e 64 73 68 61 6b 69 6e 67 0a  cit handshaking.
2d20: 09 74 6f 6f 6b 20 65 66 66 65 63 74 2e 0a 0a 09  .took effect....
2d30: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65  * tests/tlsIO.te
2d40: 73 74 3a 20 72 65 6d 6f 76 65 64 20 63 68 61 6e  st: removed chan
2d50: 67 65 73 20 6d 61 64 65 20 74 6f 20 74 65 73 74  ges made to test
2d60: 20 73 75 69 74 65 20 28 61 6c 6c 20 74 65 73 74   suite (all test
2d70: 73 0a 09 74 68 61 74 20 72 61 6e 20 62 65 66 6f  s..that ran befo
2d80: 72 65 20 6e 6f 77 20 70 61 73 73 20 63 6f 72 72  re now pass corr
2d90: 65 63 74 6c 79 29 2c 20 61 6e 64 20 63 68 61 6e  ectly), and chan
2da0: 67 65 64 20 73 6f 6d 65 20 61 63 63 65 70 74 20  ged some accept 
2db0: 70 72 6f 63 0a 09 61 72 67 73 20 74 6f 20 72 65  proc..args to re
2dc0: 66 6c 65 63 74 20 74 68 61 74 20 61 20 73 6f 63  flect that a soc
2dd0: 6b 20 69 73 20 61 6e 20 61 72 67 2c 20 6e 6f 74  k is an arg, not
2de0: 20 61 20 66 69 6c 65 2e 0a 0a 32 30 30 30 2d 30   a file...2000-0
2df0: 37 2d 31 30 20 20 4a 65 66 66 20 48 6f 62 62 73  7-10  Jeff Hobbs
2e00: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69    <hobbs@scripti
2e10: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42  cs.com>...* tlsB
2e20: 49 4f 2e 63 20 28 42 69 6f 57 72 69 74 65 2c 20  IO.c (BioWrite, 
2e30: 42 69 6f 52 65 61 64 29 3a 20 63 68 61 6e 67 65  BioRead): change
2e40: 64 20 54 63 6c 5f 52 65 61 64 2f 57 72 69 74 65  d Tcl_Read/Write
2e50: 20 74 6f 0a 09 54 63 6c 5f 52 65 61 64 52 61 77   to..Tcl_ReadRaw
2e60: 2f 54 63 6c 57 72 69 74 65 52 61 77 2e 0a 0a 09  /TclWriteRaw....
2e70: 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 75  * tls.c: added u
2e80: 73 65 20 6f 66 20 54 63 6c 5f 47 65 74 54 6f 70  se of Tcl_GetTop
2e90: 43 68 61 6e 6e 65 6c 20 61 66 74 65 72 20 54 63  Channel after Tc
2ea0: 6c 5f 47 65 74 43 68 61 6e 6e 65 6c 20 61 6e 64  l_GetChannel and
2eb0: 0a 09 67 6f 74 20 72 65 74 75 72 6e 20 76 61 6c  ..got return val
2ec0: 75 65 20 66 72 6f 6d 20 54 63 6c 5f 53 74 61 63  ue from Tcl_Stac
2ed0: 6b 43 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65  kChannel....* te
2ee0: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20  sts/tlsIO.test: 
2ef0: 61 64 64 65 64 20 73 6f 6d 65 20 68 61 6e 64 73  added some hands
2f00: 68 61 6b 69 6e 67 20 74 68 61 74 20 73 68 6f 75  haking that shou
2f10: 6c 64 6e 27 74 20 62 65 0a 09 6e 65 63 65 73 73  ldn't be..necess
2f20: 61 72 79 2c 20 62 75 74 20 77 65 20 63 72 61 73  ary, but we cras
2f30: 68 20 6f 74 68 65 72 77 69 73 65 20 28 6e 65 65  h otherwise (nee
2f40: 64 73 20 6d 6f 72 65 20 74 65 73 74 69 6e 67 29  ds more testing)
2f50: 2e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 61  ....* tlsIO.c: a
2f60: 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72  dded support for
2f70: 20 22 63 6f 72 72 65 63 74 65 64 22 20 73 74 61   "corrected" sta
2f80: 63 6b 65 64 20 63 68 61 6e 6e 65 6c 73 2e 20 20  cked channels.  
2f90: 41 6c 6c 0a 09 74 68 65 20 61 62 6f 76 65 20 63  All..the above c
2fa0: 68 61 6e 6e 65 6c 73 20 61 72 65 20 69 6e 20 54  hannels are in T
2fb0: 43 4c 5f 43 48 41 4e 4e 45 4c 5f 56 45 52 53 49  CL_CHANNEL_VERSI
2fc0: 4f 4e 5f 32 20 23 69 66 64 65 66 73 2e 0a 0a 32  ON_2 #ifdefs...2
2fd0: 30 30 30 2d 30 36 2d 30 35 20 20 53 63 6f 74 74  000-06-05  Scott
2fe0: 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74   Stanton  <stant
2ff0: 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e  on@ajubasolution
3000: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66  s.com>...* Makef
3010: 69 6c 65 2e 69 6e 3a 20 46 69 78 65 64 20 62 72  ile.in: Fixed br
3020: 6f 6b 65 6e 20 74 65 73 74 20 74 61 72 67 65 74  oken test target
3030: 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20  ....* tlsInt.h: 
3040: 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 6c 65 61 6e  ..* tls.c: Clean
3050: 65 64 20 75 70 20 64 65 63 6c 61 72 61 74 69 6f  ed up declaratio
3060: 6e 73 20 6f 66 20 54 6c 73 5f 43 6c 65 61 6e 20  ns of Tls_Clean 
3070: 74 6f 20 61 76 6f 69 64 20 65 72 72 6f 72 73 20  to avoid errors 
3080: 6f 6e 0a 09 57 69 6e 64 6f 77 73 20 28 6c 69 6e  on..Windows (lin
3090: 74 29 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20  t)...2000-06-05 
30a0: 20 42 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65   Brent Welch <we
30b0: 6c 63 68 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f  lch@ajubasolutio
30c0: 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e  ns.com>...* tls.
30d0: 63 2c 20 74 6c 73 49 4f 2e 63 3a 20 20 53 70 6c  c, tlsIO.c:  Spl
30e0: 69 74 20 54 6c 73 5f 46 72 65 65 20 69 6e 74 6f  it Tls_Free into
30f0: 20 54 6c 73 5f 43 6c 65 61 6e 2c 20 77 68 69 63   Tls_Clean, whic
3100: 68 20 64 6f 65 73 0a 09 74 68 65 20 53 53 4c 20  h does..the SSL 
3110: 63 6c 65 61 6e 75 70 2c 20 61 6e 64 20 74 68 65  cleanup, and the
3120: 20 54 63 6c 5f 46 72 65 65 20 63 61 6c 6c 2e 20   Tcl_Free call. 
3130: 20 49 74 20 69 73 20 69 6d 70 6f 72 74 61 6e 74   It is important
3140: 20 74 6f 20 73 68 75 74 64 6f 77 6e 0a 09 74 68   to shutdown..th
3150: 65 20 53 53 4c 20 73 74 61 74 65 20 22 73 79 6e  e SSL state "syn
3160: 63 68 72 6f 6e 6f 75 73 6c 79 22 20 64 75 72 69  chronously" duri
3170: 6e 67 20 61 20 73 74 61 63 6b 65 64 20 66 6c 75  ng a stacked flu
3180: 73 68 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20  sh...2000-06-01 
3190: 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20   Scott Stanton  
31a0: 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f  <stanton@ajubaso
31b0: 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a  lutions.com>...*
31c0: 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72   tlsIO.c: Restor
31d0: 65 64 20 63 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e  ed call to Tcl_N
31e0: 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f  otifyChannel fro
31f0: 6d 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72  m ChannelHandler
3200: 0a 09 74 6f 20 65 6e 73 75 72 65 20 74 68 61 74  ..to ensure that
3210: 20 65 76 65 6e 74 73 20 70 72 6f 70 61 67 61 74   events propagat
3220: 65 20 66 72 6f 6d 20 74 68 65 20 6c 6f 77 65 72  e from the lower
3230: 20 64 72 69 76 65 72 2e 20 20 54 68 69 73 20 6d   driver.  This m
3240: 61 79 0a 09 72 65 73 75 6c 74 20 69 6e 20 61 6e  ay..result in an
3250: 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69   infinite loop i
3260: 6e 20 73 6f 6d 65 20 63 61 73 65 73 2c 20 73 6f  n some cases, so
3270: 20 74 68 69 73 20 69 73 20 6e 6f 74 20 61 20 74   this is not a t
3280: 6f 74 61 6c 0a 09 66 69 78 2e 20 20 54 68 69 73  otal..fix.  This
3290: 20 6d 61 79 20 62 65 20 73 75 66 66 69 63 69 65   may be sufficie
32a0: 6e 74 20 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 65  nt for now, howe
32b0: 76 65 72 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d  ver. [Bug: 5623]
32c0: 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63  ..2000-06-01  Sc
32d0: 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74  ott Stanton  <st
32e0: 61 6e 74 6f 6e 40 73 63 72 69 70 74 69 63 73 2e  anton@scriptics.
32f0: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63  com>...* tlsIO.c
3300: 3a 20 52 65 73 74 6f 72 65 20 74 68 65 20 70 72  : Restore the pr
3310: 65 76 69 6f 75 73 20 76 65 72 73 69 6f 6e 2e 20  evious version. 
3320: 20 46 69 78 65 64 20 74 68 65 20 43 6c 6f 73 65   Fixed the Close
3330: 50 72 6f 63 20 73 6f 0a 09 69 74 20 75 6e 72 65  Proc so..it unre
3340: 67 69 73 74 65 72 73 20 74 68 65 20 63 68 61 6e  gisters the chan
3350: 6e 65 6c 20 68 61 6e 64 6c 65 72 20 6f 6e 20 74  nel handler on t
3360: 68 65 20 73 75 70 65 72 63 65 64 65 64 20 63 68  he superceded ch
3370: 61 6e 6e 65 6c 0a 09 69 6e 73 74 65 61 64 20 6f  annel..instead o
3380: 66 20 74 68 65 20 75 70 70 65 72 20 63 68 61 6e  f the upper chan
3390: 6e 65 6c 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 65  nel. Also remove
33a0: 64 20 74 68 65 20 63 61 6c 6c 20 74 6f 0a 09 54  d the call to..T
33b0: 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c  cl_NotifyChannel
33c0: 20 69 6e 20 74 68 65 20 43 68 61 6e 6e 65 6c 48   in the ChannelH
33d0: 61 6e 64 6c 65 72 20 62 65 63 61 75 73 65 20 74  andler because t
33e0: 68 69 73 20 77 69 6c 6c 20 72 65 73 75 6c 74 0a  his will result.
33f0: 09 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 20  .in an infinite 
3400: 6c 6f 6f 70 20 69 66 20 64 61 74 61 20 69 73 20  loop if data is 
3410: 65 76 65 72 20 62 75 66 66 65 72 65 64 20 69 6e  ever buffered in
3420: 20 74 68 65 20 42 49 4f 0a 09 73 74 72 75 63 74   the BIO..struct
3430: 75 72 65 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d  ure. [Bug: 5623]
3440: 0a 0a 32 30 30 30 2d 30 35 2d 33 31 20 20 42 72  ..2000-05-31  Br
3450: 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68  ent Welch <welch
3460: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
3470: 0a 09 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67  ..* tls.c: Chang
3480: 65 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e  e the ChannelHan
3490: 64 6c 65 72 20 74 6f 20 62 65 20 72 65 67 69 73  dler to be regis
34a0: 74 65 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 69  tered on the mai
34b0: 6e 0a 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70  n..channel as op
34c0: 70 73 65 64 20 74 6f 20 74 68 65 20 22 70 61 72  psed to the "par
34d0: 65 6e 74 22 2c 20 6f 72 20 73 75 70 65 72 63 65  ent", or superce
34e0: 65 64 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20  eded, channel.  
34f0: 54 68 69 73 0a 09 69 73 20 62 65 63 61 75 73 65  This..is because
3500: 20 74 68 65 20 73 6f 63 6b 65 74 20 64 72 69 76   the socket driv
3510: 65 72 20 6e 6f 74 69 66 69 65 73 20 74 68 65 20  er notifies the 
3520: 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e  main channel, an
3530: 64 20 74 68 65 72 65 0a 09 61 72 65 20 74 69 6d  d there..are tim
3540: 65 73 20 77 69 74 68 20 74 68 65 20 6d 61 69 6e  es with the main
3550: 20 63 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c   channel gets cl
3560: 6f 73 65 64 2c 20 62 75 74 20 74 68 65 20 73 75  osed, but the su
3570: 70 65 72 63 65 64 65 64 0a 09 6f 6e 65 20 69 73  perceded..one is
3580: 20 6e 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 2e   not yet closed.
3590: 20 20 49 66 20 74 68 65 20 63 68 61 6e 6e 65 6c    If the channel
35a0: 20 68 61 6e 64 6c 65 72 20 67 65 74 73 20 74 72   handler gets tr
35b0: 69 67 67 65 72 65 64 20 69 6e 0a 09 74 68 69 73  iggered in..this
35c0: 20 68 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65   half-open state
35d0: 20 69 74 20 69 73 20 61 73 73 6f 63 69 61 74 65   it is associate
35e0: 64 20 77 69 74 68 20 74 68 65 20 73 75 70 65 72  d with the super
35f0: 63 65 65 64 65 64 0a 09 63 68 61 6e 6e 65 64 6c  ceeded..channedl
3600: 2c 20 62 75 74 20 75 73 65 73 20 69 74 73 20 70  , but uses its p
3610: 72 69 76 61 74 65 20 70 6f 69 6e 74 65 72 20 74  rivate pointer t
3620: 6f 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e  o the main chann
3630: 65 6c 2c 20 77 68 69 63 68 0a 09 69 73 20 6d 6f  el, which..is mo
3640: 73 74 6c 79 20 64 65 73 74 72 6f 79 65 64 2e 20  stly destroyed. 
3650: 20 45 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 20   Eliminated the 
3660: 72 65 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74  redundant call t
3670: 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61  o..Tcl_NotifyCha
3680: 6e 6e 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74  nnel from TlsWat
3690: 63 68 50 72 6f 63 2e 20 5b 42 75 67 3a 20 35 36  chProc. [Bug: 56
36a0: 32 33 5d 0a                                      23].