Hex Artifact Content

Artifact eaeb6e927ed9242daa500ab57c2fe368aab370a9:


0000: 32 30 30 38 2d 30 33 2d 31 39 20 20 4a 65 66 66  2008-03-19  Jeff
0010: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41   Hobbs  <jeffh@A
0020: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a  ctiveState.com>.
0030: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 43  ..* tls.c (Tls_C
0040: 6c 65 61 6e 2c 20 49 6d 70 6f 72 74 4f 62 6a 43  lean, ImportObjC
0050: 6d 64 29 3a 20 46 69 78 20 63 6c 65 61 6e 75 70  md): Fix cleanup
0060: 20 6d 65 6d 20 6c 65 61 6b 20 5b 42 75 67 20 31   mem leak [Bug 1
0070: 34 31 34 30 34 35 5d 0a 09 55 73 65 20 62 65 74  414045]..Use bet
0080: 74 65 72 20 45 76 61 6c 20 41 50 49 73 2c 20 63  ter Eval APIs, c
0090: 6c 65 61 6e 65 72 20 54 63 6c 5f 4f 62 6a 2d 68  leaner Tcl_Obj-h
00a0: 61 6e 64 6c 69 6e 67 2e 0a 0a 32 30 30 38 2d 30  andling...2008-0
00b0: 33 2d 31 39 20 20 50 61 74 20 54 68 6f 79 74 73  3-19  Pat Thoyts
00c0: 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65    <patthoyts@use
00d0: 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e  rs.sourceforge.n
00e0: 65 74 3e 0a 0a 09 2a 20 77 69 6e 2f 4d 61 6b 65  et>...* win/Make
00f0: 66 69 6c 65 2e 76 63 20 20 55 70 64 61 74 65 64  file.vc  Updated
0100: 20 74 68 65 20 6e 6d 61 6b 65 20 62 75 69 6c 64   the nmake build
0110: 20 66 69 6c 65 73 20 77 69 74 68 20 4d 53 56 43   files with MSVC
0120: 39 20 73 75 70 70 6f 72 74 0a 09 2a 20 77 69 6e  9 support..* win
0130: 2f 72 75 6c 65 73 2e 76 63 3a 20 20 20 20 61 6e  /rules.vc:    an
0140: 64 20 66 69 78 65 64 20 74 6f 20 72 75 6e 20 74  d fixed to run t
0150: 68 65 20 74 65 73 74 2d 73 75 69 74 65 20 70 72  he test-suite pr
0160: 6f 70 65 72 6c 79 2e 0a 09 2a 20 77 69 6e 2f 6e  operly...* win/n
0170: 6d 61 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 74 6c  makehlp.c:..* tl
0180: 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74  s.tcl (tls::init
0190: 6c 69 62 29 3a 20 43 6f 72 72 65 63 74 65 64 20  lib): Corrected 
01a0: 6e 61 6d 65 73 70 61 63 65 20 68 61 6e 64 6c 69  namespace handli
01b0: 6e 67 2e 0a 09 2a 20 74 6c 73 2e 63 3a 20 41 70  ng...* tls.c: Ap
01c0: 70 6c 69 65 64 20 23 31 38 39 30 32 32 33 20 74  plied #1890223 t
01d0: 6f 20 66 69 78 20 68 61 6e 64 73 68 61 6b 65 20  o fix handshake 
01e0: 6f 6e 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 20  on non-blocking 
01f0: 73 6f 63 6b 65 74 73 0a 0a 32 30 30 38 2d 30 33  sockets..2008-03
0200: 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -17  Jeff Hobbs 
0210: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
0220: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
0230: 2e 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 6c  .tcl (tls::initl
0240: 69 62 29 3a 20 20 20 20 20 6c 6f 61 64 20 74 6c  ib):     load tl
0250: 73 2e 74 63 6c 20 66 69 72 73 74 20 61 6e 64 20  s.tcl first and 
0260: 63 61 6c 6c 0a 09 2a 20 4d 61 6b 65 66 69 6c 65  call..* Makefile
0270: 2e 69 6e 20 28 70 6b 67 49 6e 64 65 78 2e 74 63  .in (pkgIndex.tc
0280: 6c 29 3a 20 74 6c 73 3a 3a 69 6e 69 74 6c 69 62  l): tls::initlib
0290: 20 74 6f 20 6c 6f 61 64 20 6c 69 62 72 61 72 79   to load library
02a0: 20 74 6f 0a 09 68 61 6e 64 6c 65 20 63 77 64 20   to..handle cwd 
02b0: 63 68 61 6e 67 65 73 2e 20 5b 42 75 67 20 31 38  changes. [Bug 18
02c0: 38 38 31 31 33 5d 0a 0a 32 30 30 37 2d 30 39 2d  88113]..2007-09-
02d0: 30 36 20 20 50 61 74 20 54 68 6f 79 74 73 20 20  06  Pat Thoyts  
02e0: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73  <patthoyts@users
02f0: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74  .sourceforge.net
0300: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20  >...* tls.c:    
0310: 20 20 20 20 20 20 20 53 69 6c 65 6e 63 65 20 36         Silence 6
0320: 34 20 62 69 74 20 69 6e 74 65 67 65 72 20 63 6f  4 bit integer co
0330: 6e 76 65 72 73 69 6f 6e 20 77 61 72 6e 69 6e 67  nversion warning
0340: 73 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c  s..* win/nmakehl
0350: 70 2e 63 3a 20 20 55 70 64 61 74 65 20 62 75 69  p.c:  Update bui
0360: 6c 64 20 73 79 73 74 65 6d 20 74 6f 20 73 75 70  ld system to sup
0370: 70 6f 72 74 20 41 4d 44 36 34 20 74 61 72 67 65  port AMD64 targe
0380: 74 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c  t..* win/makefil
0390: 65 2e 76 63 3a 20 77 69 74 68 20 4d 53 56 43 38  e.vc: with MSVC8
03a0: 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63  ..* win/rules.vc
03b0: 3a 0a 0a 32 30 30 37 2d 30 36 2d 32 32 20 20 4a  :..2007-06-22  J
03c0: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66  eff Hobbs  <jeff
03d0: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f  h@ActiveState.co
03e0: 6d 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65  m>...* configure
03f0: 2e 69 6e 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20  .in, configure, 
0400: 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 20  win/makefile.vc 
0410: 28 44 4f 54 56 45 52 53 49 4f 4e 29 3a 20 62 75  (DOTVERSION): bu
0420: 6d 70 20 74 6f 20 31 2e 36 0a 0a 09 2a 20 74 6c  mp to 1.6...* tl
0430: 73 49 4f 2e 63 20 28 54 6c 73 49 6e 70 75 74 50  sIO.c (TlsInputP
0440: 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72  roc, TlsOutputPr
0450: 6f 63 2c 20 54 6c 73 57 61 74 63 68 50 72 6f 63  oc, TlsWatchProc
0460: 29 3a 20 0a 09 2a 20 74 6c 73 2e 63 20 28 56 65  ): ..* tls.c (Ve
0470: 72 69 66 79 43 61 6c 6c 62 61 63 6b 29 3a 20 61  rifyCallback): a
0480: 64 64 20 61 6e 20 73 74 61 74 65 20 66 6c 61 67  dd an state flag
0490: 20 69 6e 20 74 68 65 20 76 65 72 69 66 79 20 63   in the verify c
04a0: 61 6c 6c 62 61 63 6b 0a 09 74 68 61 74 20 70 72  allback..that pr
04b0: 65 76 65 6e 74 73 20 70 6f 73 73 69 62 6c 79 20  events possibly 
04c0: 72 65 63 75 72 73 69 6f 6e 20 28 6f 6e 20 27 75  recursion (on 'u
04d0: 70 64 61 74 65 27 29 2e 20 5b 42 75 67 20 31 36  pdate'). [Bug 16
04e0: 35 32 33 38 30 5d 0a 0a 09 2a 20 74 65 73 74 73  52380]...* tests
04f0: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 72  /ciphers.test: r
0500: 65 77 6f 72 6b 65 64 20 74 6f 20 6d 61 6b 65 20  eworked to make 
0510: 74 65 73 74 20 6f 75 74 70 75 74 20 63 6c 65 61  test output clea
0520: 6e 65 72 20 74 6f 0a 09 75 6e 64 65 72 73 74 61  ner to..understa
0530: 6e 64 20 6d 69 73 73 69 6e 67 20 63 69 70 68 65  nd missing ciphe
0540: 72 73 20 28 69 66 20 61 6e 79 29 0a 0a 09 2a 20  rs (if any)...* 
0550: 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c  Makefile.in, tcl
0560: 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75  config/tcl.m4: u
0570: 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e 36  pdate to TEA 3.6
0580: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63  ..* configure, c
0590: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20  onfigure.in:    
05a0: 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e     using autocon
05b0: 66 2d 32 2e 35 39 0a 0a 32 30 30 37 2d 30 32 2d  f-2.59..2007-02-
05c0: 32 38 20 20 50 61 74 20 54 68 6f 79 74 73 20 20  28  Pat Thoyts  
05d0: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73  <patthoyts@users
05e0: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74  .sourceforge.net
05f0: 3e 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69  >...* win/makefi
0600: 6c 65 2e 76 63 3a 20 52 65 62 61 73 65 20 74 68  le.vc: Rebase th
0610: 65 20 44 4c 4c 20 73 65 6e 73 69 62 6c 79 2e 20  e DLL sensibly. 
0620: 41 64 64 69 74 69 6f 6e 61 6c 20 6c 69 62 73 20  Additional libs 
0630: 66 6f 72 20 0a 09 73 74 61 74 69 63 20 6c 69 6e  for ..static lin
0640: 6b 20 6f 66 20 6f 70 65 6e 73 73 6c 2e 0a 09 2a  k of openssl...*
0650: 20 74 6c 73 2e 74 63 6c 3a 20 62 75 67 20 23 31   tls.tcl: bug #1
0660: 35 37 39 38 33 37 20 2d 20 54 49 50 20 32 37 38  579837 - TIP 278
0670: 20 62 75 67 20 28 70 6f 73 73 69 62 6c 79 29 20   bug (possibly) 
0680: 2d 20 66 69 78 65 64 2e 0a 0a 32 30 30 36 2d 30  - fixed...2006-0
0690: 33 2d 33 30 20 20 50 61 74 20 54 68 6f 79 74 73  3-30  Pat Thoyts
06a0: 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65    <patthoyts@use
06b0: 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e  rs.sourceforge.n
06c0: 65 74 3e 0a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69  et>...* tclconfi
06d0: 67 2f 2a 3a 20 20 55 70 64 61 74 65 64 20 74 6f  g/*:  Updated to
06e0: 20 54 45 41 20 33 2e 35 20 69 6e 20 72 65 73 70   TEA 3.5 in resp
06f0: 6f 6e 73 65 20 74 6f 20 62 75 67 20 31 34 36 30  onse to bug 1460
0700: 34 39 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65  491..* configure
0710: 2a 3a 20 20 20 52 65 67 65 6e 65 72 61 74 65 64  *:   Regenerated
0720: 20 63 6f 6e 66 69 67 75 72 65 2e 0a 0a 32 30 30   configure...200
0730: 35 2d 30 32 2d 30 38 20 20 4a 65 66 66 20 48 6f  5-02-08  Jeff Ho
0740: 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69  bbs  <jeffh@Acti
0750: 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a  veState.com>...*
0760: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63   Makefile.in, tc
0770: 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20  lconfig/tcl.m4: 
0780: 75 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e  update to TEA 3.
0790: 32 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20  2..* configure, 
07a0: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20  configure.in:   
07b0: 20 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f      using autoco
07c0: 6e 66 2d 32 2e 35 39 0a 0a 32 30 30 34 2d 31 32  nf-2.59..2004-12
07d0: 2d 32 33 20 20 50 61 74 20 54 68 6f 79 74 73 20  -23  Pat Thoyts 
07e0: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72   <patthoyts@user
07f0: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65  s.sourceforge.ne
0800: 74 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e  t>...* Makefile.
0810: 69 6e 3a 20 20 20 20 20 20 52 65 6d 6f 76 65 64  in:      Removed
0820: 20 73 70 75 72 69 6f 75 73 20 63 6f 70 79 69 6e   spurious copyin
0830: 67 20 6f 66 20 74 6c 73 2e 74 63 6c 20 69 6e 74  g of tls.tcl int
0840: 6f 20 74 68 65 0a 09 20 20 20 20 20 20 20 20 20  o the..         
0850: 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64             build
0860: 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 32 30 30   directory...200
0870: 34 2d 31 32 2d 32 32 20 20 50 61 74 20 54 68 6f  4-12-22  Pat Tho
0880: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40  yts  <patthoyts@
0890: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67  users.sourceforg
08a0: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 63 6f 6e 66 69  e.net>...* confi
08b0: 67 75 72 65 2e 69 6e 3a 20 20 20 20 20 49 6e 63  gure.in:     Inc
08c0: 72 65 6d 65 6e 74 65 64 20 6d 69 6e 6f 72 20 76  remented minor v
08d0: 65 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 31 0a  ersion to 1.5.1.
08e0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20  .* configure:   
08f0: 20 20 20 20 20 0a 0a 32 30 30 34 2d 31 32 2d 31       ..2004-12-1
0900: 37 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c  7  Pat Thoyts  <
0910: 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e  patthoyts@users.
0920: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e  sourceforge.net>
0930: 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c  ...* win/makefil
0940: 65 2e 76 63 3a 20 20 41 64 64 65 64 20 74 68 65  e.vc:  Added the
0950: 20 4d 53 56 43 20 62 75 69 6c 64 20 73 79 73 74   MSVC build syst
0960: 65 6d 20 28 66 72 6f 6d 20 74 68 65 20 54 63 6c  em (from the Tcl
0970: 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63  ..* win/rules.vc
0980: 3a 20 20 20 20 20 73 61 6d 70 6c 65 65 78 74 65  :     sampleexte
0990: 6e 73 69 6f 6e 29 2e 0a 09 2a 20 77 69 6e 2f 6e  nsion)...* win/n
09a0: 6d 61 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 77 69  makehlp.c:..* wi
09b0: 6e 2f 74 6c 73 2e 72 63 20 20 20 20 20 20 20 20  n/tls.rc        
09c0: 41 64 64 65 64 20 57 69 6e 64 6f 77 73 20 72 65  Added Windows re
09d0: 73 6f 75 72 63 65 20 66 69 6c 65 2e 0a 09 0a 09  source file.....
09e0: 2a 20 74 6c 73 2e 74 63 6c 3a 20 20 20 20 20 20  * tls.tcl:      
09f0: 20 20 20 20 46 72 6f 6d 20 70 61 74 63 68 20 23      From patch #
0a00: 39 34 38 31 35 35 2c 20 61 64 64 65 64 20 73 75  948155, added su
0a10: 70 70 6f 72 74 20 66 6f 72 0a 09 20 20 20 20 20  pport for..     
0a20: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61                 a
0a30: 6c 74 65 72 6e 61 74 65 20 73 6f 63 6b 65 74 20  lternate socket 
0a40: 63 6f 6d 6d 61 6e 64 73 2e 0a 09 2a 20 74 6c 73  commands...* tls
0a50: 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20 20 51  .c:            Q
0a60: 75 69 65 74 65 6e 20 73 6f 6d 65 20 4d 53 56 43  uieten some MSVC
0a70: 20 77 61 72 6e 69 6e 67 73 2e 20 50 72 65 66 65   warnings. Prefe
0a80: 72 20 63 6b 61 6c 6c 6f 63 0a 09 20 20 20 20 20  r ckalloc..     
0a90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f                 o
0aa0: 76 65 72 20 54 63 6c 5f 41 6c 6c 6f 63 2e 20 28  ver Tcl_Alloc. (
0ab0: 44 61 76 69 64 20 47 72 61 76 65 72 61 75 78 29  David Graveraux)
0ac0: 2e 0a 0a 32 30 30 34 2d 30 36 2d 32 39 20 20 50  ...2004-06-29  P
0ad0: 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74  at Thoyts  <patt
0ae0: 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72  hoyts@users.sour
0af0: 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a  ceforge.net>...*
0b00: 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20 20   tls.c:         
0b10: 20 20 20 46 69 78 75 70 20 74 6f 20 62 75 69 6c     Fixup to buil
0b20: 64 20 61 67 61 69 6e 73 74 20 74 63 6c 20 38 2e  d against tcl 8.
0b30: 33 2e 33 2e 20 48 61 6e 64 6c 65 0a 09 2a 20 74  3.3. Handle..* t
0b40: 6c 73 49 4f 2e 63 3a 20 20 20 20 20 20 20 20 20  lsIO.c:         
0b50: 20 38 2e 34 20 63 6f 6e 73 74 69 66 69 63 61 74   8.4 constificat
0b60: 69 6f 6e 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e  ion....* tlsInt.
0b70: 68 3a 20 20 20 20 20 20 20 20 20 41 64 64 65 64  h:         Added
0b80: 20 68 65 61 64 65 72 73 20 72 65 71 75 69 72 65   headers require
0b90: 64 20 77 69 74 68 20 4d 53 56 43 20 6f 6e 20 57  d with MSVC on W
0ba0: 69 6e 33 32 2e 0a 09 2a 20 74 6c 73 58 35 30 39  in32...* tlsX509
0bb0: 2e 63 3a 20 20 20 20 20 20 20 20 75 6e 64 65 66  .c:        undef
0bc0: 20 6d 69 6e 20 61 6e 64 20 6d 61 78 20 69 66 20   min and max if 
0bd0: 64 65 66 69 6e 65 64 20 28 77 69 6e 33 32 29 2e  defined (win32).
0be0: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e  ...* Makefile.in
0bf0: 3a 20 20 20 20 20 20 46 69 78 65 64 20 74 6f 20  :      Fixed to 
0c00: 62 75 69 6c 64 20 6f 6e 20 77 69 6e 33 32 20 75  build on win32 u
0c10: 73 69 6e 67 20 6d 73 79 73 20 77 69 74 68 0a 09  sing msys with..
0c20: 2a 20 61 63 6c 6f 63 61 6c 2e 6d 34 3a 20 20 20  * aclocal.m4:   
0c30: 20 20 20 20 4d 53 56 43 2e 20 41 6c 73 6f 20 66      MSVC. Also f
0c40: 69 78 65 64 20 74 68 65 20 74 65 73 74 20 74 61  ixed the test ta
0c50: 72 67 65 74 2e 0a 09 2a 20 63 6f 6e 66 69 67 75  rget...* configu
0c60: 72 65 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67  re.in:..* config
0c70: 75 72 65 3a 20 20 20 20 20 20 20 20 52 65 67 65  ure:        Rege
0c80: 6e 65 72 61 74 65 64 2e 0a 09 2a 20 74 63 6c 63  nerated...* tclc
0c90: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 55 70  onfig/tcl.m4: Up
0ca0: 64 61 74 65 64 20 74 6f 20 6d 6f 73 74 20 72 65  dated to most re
0cb0: 63 65 6e 74 20 76 65 72 73 69 6f 6e 2e 0a 0a 32  cent version...2
0cc0: 30 30 34 2d 30 33 2d 32 33 20 20 44 61 6e 20 52  004-03-23  Dan R
0cd0: 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68  azzell <research
0ce0: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73  @starfishsystems
0cf0: 2e 63 61 3e 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09  .ca>..* tls.c:..
0d00: 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74  * tlsBIO.c:..* t
0d10: 6c 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 6e  lsIO.c:..* tlsIn
0d20: 74 2e 68 3a 09 46 69 78 65 64 20 74 79 70 65 20  t.h:.Fixed type 
0d30: 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 73 2e 0a  match warnings..
0d40: 0a 32 30 30 34 2d 30 33 2d 31 39 20 20 4a 65 66  .2004-03-19  Jef
0d50: 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40  f Hobbs  <jeffh@
0d60: 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e  ActiveState.com>
0d70: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f  ...* tls.c (Tls_
0d80: 49 6e 69 74 29 3a 20 20 20 72 65 70 6c 61 63 65  Init):   replace
0d90: 64 20 6f 6c 64 65 72 20 54 45 41 20 63 6f 6e 66  d older TEA conf
0da0: 69 67 20 77 69 74 68 20 6e 65 77 65 72 0a 09 2a  ig with newer..*
0db0: 20 63 6f 6e 66 69 67 2f 2a 20 28 72 65 6d 6f 76   config/* (remov
0dc0: 65 64 29 3a 0a 09 2a 20 70 6b 67 49 6e 64 65 78  ed):..* pkgIndex
0dd0: 2e 74 63 6c 2e 69 6e 2c 20 73 74 72 6e 63 61 73  .tcl.in, strncas
0de0: 65 63 6d 70 2e 63 20 28 72 65 6d 6f 76 65 64 29  ecmp.c (removed)
0df0: 3a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e  :..* Makefile.in
0e00: 2c 20 61 63 6c 6f 63 61 6c 2e 6d 34 2c 20 63 6f  , aclocal.m4, co
0e10: 6e 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75  nfigure, configu
0e20: 72 65 2e 69 6e 3a 0a 09 2a 20 74 63 6c 63 6f 6e  re.in:..* tclcon
0e30: 66 69 67 2f 52 45 41 44 4d 45 2e 74 78 74 2c 20  fig/README.txt, 
0e40: 74 63 6c 63 6f 6e 66 69 67 2f 69 6e 73 74 61 6c  tclconfig/instal
0e50: 6c 2d 73 68 2c 20 74 63 6c 63 6f 6e 66 69 67 2f  l-sh, tclconfig/
0e60: 74 63 6c 2e 6d 34 3a 0a 0a 32 30 30 34 2d 30 33  tcl.m4:..2004-03
0e70: 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c  -17  Dan Razzell
0e80: 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66   <research@starf
0e90: 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a  ishsystems.ca>..
0ea0: 09 2a 20 74 6c 73 58 35 30 39 2e 63 3a 09 41 64  .* tlsX509.c:.Ad
0eb0: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f  d support for lo
0ec0: 6e 67 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 72  ng serial number
0ed0: 73 20 70 65 72 20 52 46 43 20 33 32 38 30 2e 0a  s per RFC 3280..
0ee0: 09 09 09 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77  ...Format is now
0ef0: 20 68 65 78 61 64 65 63 69 6d 61 6c 2e 20 0a 09   hexadecimal. ..
0f00: 09 09 5b 52 65 71 75 65 73 74 20 23 39 31 35 33  ..[Request #9153
0f10: 31 33 5d 0a 09 09 09 43 6f 72 72 65 63 74 6c 79  13]....Correctly
0f20: 20 63 6f 6e 76 65 72 74 20 63 65 72 74 69 66 69   convert certifi
0f30: 63 61 74 65 20 44 69 73 74 69 6e 67 75 69 73 68  cate Distinguish
0f40: 65 64 20 4e 61 6d 65 73 0a 09 09 09 74 6f 20 54  ed Names....to T
0f50: 63 6c 20 73 74 72 69 6e 67 20 72 65 70 72 65 73  cl string repres
0f60: 65 6e 74 61 74 69 6f 6e 2e 20 20 45 6c 69 6d 69  entation.  Elimi
0f70: 6e 61 74 65 73 20 75 73 65 20 6f 66 0a 09 09 09  nates use of....
0f80: 64 65 70 72 65 63 61 74 65 64 20 4f 70 65 6e 53  deprecated OpenS
0f90: 53 4c 20 66 75 6e 63 74 69 6f 6e 2e 20 20 46 6f  SL function.  Fo
0fa0: 72 6d 61 74 20 69 73 20 6e 6f 77 20 63 6f 6d 70  rmat is now comp
0fb0: 6c 69 61 6e 74 0a 09 09 09 77 69 74 68 20 52 46  liant....with RF
0fc0: 43 20 32 32 35 33 2e 20 20 5b 52 65 71 75 65 73  C 2253.  [Reques
0fd0: 74 20 23 39 31 35 33 31 35 5d 0a 0a 32 30 30 34  t #915315]..2004
0fe0: 2d 30 32 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a  -02-17  Dan Razz
0ff0: 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74  ell <research@st
1000: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61  arfishsystems.ca
1010: 3e 0a 0a 09 54 4c 53 20 31 2e 35 2e 30 20 52 45  >...TLS 1.5.0 RE
1020: 4c 45 41 53 45 0a 0a 32 30 30 34 2d 30 32 2d 31  LEASE..2004-02-1
1030: 32 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c  2  Dan Razzell.<
1040: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73  research@starfis
1050: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a  hsystems.ca>...*
1060: 20 74 6c 73 2e 63 3a 09 41 6c 6c 6f 77 20 76 65   tls.c:.Allow ve
1070: 72 69 66 79 20 63 61 6c 6c 62 61 63 6b 20 74 6f  rify callback to
1080: 20 72 65 74 75 72 6e 20 65 6d 70 74 79 20 72 65   return empty re
1090: 73 75 6c 74 2e 0a 09 2a 20 74 6c 73 2e 68 74 6d  sult...* tls.htm
10a0: 3a 09 44 6f 63 75 6d 65 6e 74 20 63 61 6c 6c 62  :.Document callb
10b0: 61 63 6b 20 62 65 68 61 76 69 6f 72 73 2e 0a 0a  ack behaviors...
10c0: 32 30 30 34 2d 30 32 2d 31 31 20 20 44 61 6e 20  2004-02-11  Dan 
10d0: 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63  Razzell.<researc
10e0: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d  h@starfishsystem
10f0: 73 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f  s.ca>...* tests/
1100: 74 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 72  tlsIO.test:..* r
1110: 65 6d 6f 74 65 2e 74 63 6c 3a 09 43 6f 6d 70 6c  emote.tcl:.Compl
1120: 65 74 65 20 70 72 69 76 61 74 65 20 6b 65 79 20  ete private key 
1130: 6e 61 6d 65 20 63 68 61 6e 67 65 73 20 66 72 6f  name changes fro
1140: 6d 20 32 30 30 31 2d 30 36 2d 32 31 2e 0a 0a 32  m 2001-06-21...2
1150: 30 30 34 2d 30 32 2d 30 33 20 20 44 61 6e 20 52  004-02-03  Dan R
1160: 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68  azzell <research
1170: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73  @starfishsystems
1180: 2e 63 61 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  .ca>...* Makefil
1190: 65 2e 69 6e 3a 09 52 65 6d 6f 76 65 64 20 63 69  e.in:.Removed ci
11a0: 72 63 75 6c 61 72 20 64 65 70 65 6e 64 65 6e 63  rcular dependenc
11b0: 79 2e 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09  y...* tlsInt.h:.
11c0: 4d 61 6b 65 20 66 75 6e 63 74 69 6f 6e 20 64 65  Make function de
11d0: 63 6c 61 72 61 74 69 6f 6e 73 20 65 78 70 6c 69  clarations expli
11e0: 63 69 74 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09 46  cit...* tls.c:.F
11f0: 69 78 20 74 79 70 65 20 6d 61 74 63 68 20 61 6e  ix type match an
1200: 64 20 75 6e 75 73 65 64 20 76 61 72 69 61 62 6c  d unused variabl
1210: 65 20 77 61 72 6e 69 6e 67 73 2e 0a 09 2a 20 74  e warnings...* t
1220: 6c 73 42 49 4f 2e 63 3a 09 46 69 78 20 74 79 70  lsBIO.c:.Fix typ
1230: 65 20 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 2e  e match warning.
1240: 0a 0a 32 30 30 33 2d 31 32 2d 31 35 20 20 44 61  ..2003-12-15  Da
1250: 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61  n Razzell.<resea
1260: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74  rch@starfishsyst
1270: 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67 49  ems.ca>...* pkgI
1280: 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20  ndex.tcl.in:..* 
1290: 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 65 73 74  tls.htm:..* test
12a0: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70  s/tlsIO.test: up
12b0: 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f  dated version to
12c0: 20 31 2e 35 2e 0a 0a 32 30 30 33 2d 31 30 2d 30   1.5...2003-10-0
12d0: 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c  7  Dan Razzell.<
12e0: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73  research@starfis
12f0: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a  hsystems.ca>...*
1300: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74   tests/ciphers.t
1310: 65 73 74 3a 20 75 70 64 61 74 65 64 20 6c 69 73  est: updated lis
1320: 74 20 6f 66 20 74 65 73 74 65 64 20 63 69 70 68  t of tested ciph
1330: 65 72 73 20 74 6f 20 63 6f 72 72 65 73 70 6f 6e  ers to correspon
1340: 64 0a 09 2a 20 77 69 74 68 20 74 68 6f 73 65 20  d..* with those 
1350: 61 76 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20 4f  available from O
1360: 70 65 6e 53 53 4c 2e 20 5b 52 65 71 75 65 73 74  penSSL. [Request
1370: 20 23 38 31 31 39 38 31 5d 0a 0a 32 30 30 33 2d   #811981]..2003-
1380: 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a 65  10-07  Dan Razze
1390: 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61  ll <research@sta
13a0: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e  rfishsystems.ca>
13b0: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65  ...* tls.c: adde
13c0: 64 20 43 4f 4e 53 54 20 77 69 74 68 20 69 6e 74  d CONST with int
13d0: 65 6e 74 20 73 69 6d 69 6c 61 72 20 74 6f 20 74  ent similar to t
13e0: 68 6f 73 65 20 66 72 6f 6d 20 32 30 30 32 2d 30  hose from 2002-0
13f0: 32 2d 30 34 2e 0a 09 5b 52 65 71 75 65 73 74 20  2-04...[Request 
1400: 23 38 31 31 39 31 31 5d 0a 0a 32 30 30 33 2d 30  #811911]..2003-0
1410: 37 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73  7-07  Jeff Hobbs
1420: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53    <jeffh@ActiveS
1430: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tate.com>...* tl
1440: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20  s.c (Tls_Init): 
1450: 20 20 61 64 64 65 64 20 74 6c 73 3a 3a 6d 69 73    added tls::mis
1460: 63 20 63 6f 6d 6d 61 6e 64 20 70 72 6f 76 69 64  c command provid
1470: 65 64 20 62 79 0a 09 2a 20 74 6c 73 58 35 30 39  ed by..* tlsX509
1480: 2e 63 3a 20 20 20 20 20 20 20 20 20 20 57 6f 6a  .c:          Woj
1490: 63 69 65 63 68 20 4b 6f 63 6a 61 6e 20 28 77 6f  ciech Kocjan (wo
14a0: 6a 63 69 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f 72  jciech kocjan.or
14b0: 67 29 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 74  g)..* tests/keyt
14c0: 65 73 74 31 2e 74 63 6c 3a 20 74 6f 20 65 78 70  est1.tcl: to exp
14d0: 6f 73 65 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65 76  ose more low-lev
14e0: 65 6c 20 53 53 4c 20 63 6f 6d 6d 61 6e 64 73 0a  el SSL commands.
14f0: 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73 74  .* tests/keytest
1500: 32 2e 74 63 6c 3a 0a 0a 32 30 30 33 2d 30 35 2d  2.tcl:..2003-05-
1510: 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09  15  Dan Razzell.
1520: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69  <research@starfi
1530: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 20 0a 0a  shsystems.ca> ..
1540: 09 2a 20 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20 74  .* tls.tcl:..* t
1550: 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e  lsInt.h:..* tls.
1560: 63 3a 20 61 64 64 20 73 75 70 70 6f 72 74 20 66  c: add support f
1570: 6f 72 20 62 69 6e 64 69 6e 67 20 61 20 70 61 73  or binding a pas
1580: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 20 74  sword callback t
1590: 6f 20 74 68 65 20 73 6f 63 6b 65 74 2e 0a 09 4e  o the socket...N
15a0: 6f 77 20 65 61 63 68 20 73 6f 63 6b 65 74 20 63  ow each socket c
15b0: 61 6e 20 68 61 76 65 20 69 74 73 20 6f 77 6e 20  an have its own 
15c0: 63 6f 6d 6d 61 6e 64 20 61 6e 64 20 70 61 73 73  command and pass
15d0: 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 73 20 69  word callbacks i
15e0: 6e 73 74 65 61 64 0a 09 6f 66 20 62 65 69 6e 67  nstead..of being
15f0: 20 66 6f 72 63 65 64 20 74 6f 20 68 61 76 65 20   forced to have 
1600: 61 6c 6c 20 70 61 73 73 77 6f 72 64 20 6d 61 6e  all password man
1610: 61 67 65 6d 65 6e 74 20 70 61 73 73 20 74 68 72  agement pass thr
1620: 6f 75 67 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09 70  ough a common..p
1630: 72 6f 63 65 64 75 72 65 2e 20 20 54 68 65 20 63  rocedure.  The c
1640: 6f 6d 6d 6f 6e 20 70 61 73 73 77 6f 72 64 20 70  ommon password p
1650: 72 6f 63 65 64 75 72 65 20 69 73 20 72 65 74 61  rocedure is reta
1660: 69 6e 65 64 20 66 6f 72 20 63 6f 6d 70 61 74 69  ined for compati
1670: 62 69 6c 69 74 79 0a 09 62 75 74 20 69 74 73 20  bility..but its 
1680: 75 73 65 20 73 68 6f 75 6c 64 20 62 65 20 44 45  use should be DE
1690: 50 52 45 43 41 54 45 44 2e 0a 09 41 64 64 20 76  PRECATED...Add v
16a0: 65 72 73 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20 74  ersion command t
16b0: 6f 20 72 65 74 75 72 6e 20 4f 70 65 6e 53 53 4c  o return OpenSSL
16c0: 20 76 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 2e   version string.
16d0: 0a 09 52 65 6d 6f 76 65 20 75 6e 73 74 61 62 6c  ..Remove unstabl
16e0: 65 20 77 6f 72 6b 61 72 6f 75 6e 64 73 20 6e 65  e workarounds ne
16f0: 65 64 65 64 20 66 6f 72 20 76 65 72 69 66 79 20  eded for verify 
1700: 69 6e 20 6f 62 73 6f 6c 65 74 65 20 76 65 72 73  in obsolete vers
1710: 69 6f 6e 73 20 6f 66 0a 09 4f 70 65 6e 53 53 4c  ions of..OpenSSL
1720: 2e 0a 09 46 69 78 20 6d 65 6d 6f 72 79 20 6c 65  ...Fix memory le
1730: 61 6b 2e 20 5b 52 65 71 75 65 73 74 20 23 36 34  ak. [Request #64
1740: 30 36 36 30 5d 0a 09 4d 6f 72 65 20 63 61 73 74  0660]..More cast
1750: 73 20 74 6f 20 65 6c 69 6d 69 6e 61 74 65 20 63  s to eliminate c
1760: 6f 6d 70 69 6c 65 72 20 77 61 72 6e 69 6e 67 73  ompiler warnings
1770: 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 64  ....* tls.htm: d
1780: 6f 63 75 6d 65 6e 74 20 70 61 73 73 77 6f 72 64  ocument password
1790: 20 63 61 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72 72   callback...Corr
17a0: 65 63 74 20 74 65 63 68 6e 69 63 61 6c 20 61 6e  ect technical an
17b0: 64 20 74 79 70 6f 67 72 61 70 68 69 63 20 65 72  d typographic er
17c0: 72 6f 72 73 2e 0a 0a 09 2a 20 52 45 41 44 4d 45  rors....* README
17d0: 2e 74 78 74 3a 20 69 64 65 6e 74 69 66 79 20 76  .txt: identify v
17e0: 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53  ersions of OpenS
17f0: 53 4c 20 77 68 69 63 68 20 66 69 78 20 6b 6e 6f  SL which fix kno
1800: 77 6e 20 70 72 6f 62 6c 65 6d 73 2e 0a 09 47 65  wn problems...Ge
1810: 6e 65 72 61 6c 20 77 61 72 6e 69 6e 67 20 6f 66  neral warning of
1820: 20 73 65 63 75 72 69 74 79 20 70 72 6f 62 6c 65   security proble
1830: 6d 73 20 69 6e 20 6f 6c 64 65 72 20 76 65 72 73  ms in older vers
1840: 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c 2e  ions of OpenSSL.
1850: 0a 0a 32 30 30 32 2d 30 32 2d 30 34 20 20 4a 65  ..2002-02-04  Je
1860: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68  ff Hobbs  <jeffh
1870: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d  @ActiveState.com
1880: 3e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09  >...* tls.htm:..
1890: 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 73  * tls.c: added s
18a0: 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61 6c  upport for local
18b0: 20 63 65 72 74 69 66 69 63 61 74 65 20 73 74 61   certificate sta
18c0: 74 75 73 20 63 68 65 63 6b 2c 20 61 73 20 77 65  tus check, as we
18d0: 6c 6c 0a 09 61 73 20 72 65 74 75 72 6e 69 6e 67  ll..as returning
18e0: 20 74 68 65 20 23 20 6f 66 20 62 69 74 73 20 69   the # of bits i
18f0: 6e 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65  n the session ke
1900: 79 2e 20 5b 50 61 74 63 68 20 23 35 30 35 36 39  y. [Patch #50569
1910: 38 5d 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74 6c  8] (rose)...* tl
1920: 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a  s.c:..* tlsIO.c:
1930: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61 64  ..* tlsBIO.c: ad
1940: 64 65 64 20 43 4f 4e 53 54 73 20 74 6f 20 73 61  ded CONSTs to sa
1950: 74 69 73 66 79 20 54 63 6c 20 38 2e 34 20 73 6f  tisfy Tcl 8.4 so
1960: 75 72 63 65 73 2e 20 20 54 68 69 73 20 6d 61 79  urces.  This may
1970: 0a 09 67 69 76 65 20 77 61 72 6e 69 6e 67 73 20  ..give warnings 
1980: 77 68 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61 67  when compiled ag
1990: 61 69 6e 73 74 20 38 2e 33 2c 20 62 75 74 20 74  ainst 8.3, but t
19a0: 68 65 79 20 63 61 6e 20 62 65 20 69 67 6e 6f 72  hey can be ignor
19b0: 65 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69  ed....* tests/si
19c0: 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a  mpleClient.tcl:.
19d0: 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53  .* tests/simpleS
19e0: 65 72 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e 74  erver.tcl: point
19f0: 20 74 6f 20 75 70 64 61 74 65 64 20 63 6c 69 65   to updated clie
1a00: 6e 74 2f 73 65 72 76 65 72 20 6b 65 79 20 66 69  nt/server key fi
1a10: 6c 65 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  les....* tests/t
1a20: 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 65  lsIO.test:..* te
1a30: 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74  sts/ciphers.test
1a40: 3a 20 75 70 64 61 74 65 64 20 74 6f 20 6c 6f 61  : updated to loa
1a50: 64 20 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c 64  d tls from build
1a60: 20 64 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69   dir....* Makefi
1a70: 6c 65 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20 73  le.in: removed s
1a80: 74 72 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d 20  trncasecmp from 
1a90: 64 65 66 61 75 6c 74 20 6f 62 6a 65 63 74 20 73  default object s
1aa0: 65 74 2e 20 20 54 68 69 73 0a 09 69 73 20 6f 6e  et.  This..is on
1ab0: 6c 79 20 6e 65 65 64 65 64 20 6f 6e 20 74 68 65  ly needed on the
1ac0: 20 4d 61 63 2c 20 61 6e 64 20 54 63 6c 20 73 74   Mac, and Tcl st
1ad0: 75 62 73 20 70 72 6f 76 69 64 65 73 20 69 74 2e  ubs provides it.
1ae0: 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20  ...* configure: 
1af0: 72 65 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f 6e  regen'ed...* con
1b00: 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74  figure.in: updat
1b10: 65 64 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72 20  ed to 1.5.0 for 
1b20: 6e 65 78 74 20 72 65 6c 65 61 73 65 2e 0a 09 43  next release...C
1b30: 68 61 6e 67 65 64 20 64 65 66 61 75 6c 74 20 6f  hanged default o
1b40: 70 65 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e 20  penssl location 
1b50: 74 6f 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 73  to /usr/local/ss
1b60: 6c 20 28 74 68 69 73 20 69 73 20 77 68 65 72 65  l (this is where
1b70: 0a 09 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36 63  ..openssl 0.9.6c
1b80: 20 69 6e 73 74 61 6c 6c 73 20 62 79 20 64 65 66   installs by def
1b90: 61 75 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64 20  ault)...Changed 
1ba0: 74 6f 20 75 73 65 20 70 75 62 6c 69 63 20 54 63  to use public Tc
1bb0: 6c 20 68 65 61 64 65 72 73 20 28 70 72 69 76 61  l headers (priva
1bc0: 74 65 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e 0a  te not needed)..
1bd0: 0a 32 30 30 31 2d 30 36 2d 32 31 20 20 4a 65 66  .2001-06-21  Jef
1be0: 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40  f Hobbs  <jeffh@
1bf0: 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e  ActiveState.com>
1c00: 0a 0a 09 54 4c 53 20 31 2e 34 2e 31 20 52 45 4c  ...TLS 1.4.1 REL
1c10: 45 41 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 75  EASE...* configu
1c20: 72 65 3a 20 61 64 64 65 64 20 63 6f 6e 66 69 67  re: added config
1c30: 75 72 65 20 74 6f 20 43 56 53 0a 09 2a 20 63 6f  ure to CVS..* co
1c40: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 65  nfigure.in: move
1c50: 64 20 74 6f 20 70 61 74 63 68 6c 65 76 65 6c 20  d to patchlevel 
1c60: 31 2e 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 69  1.4.1...* Makefi
1c70: 6c 65 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65 64  le.in: corrected
1c80: 20 27 64 69 73 74 27 20 74 61 72 67 65 74 0a 0a   'dist' target..
1c90: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 66  .* tests/certs/f
1ca0: 69 6c 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 74  ile.srl:..* test
1cb0: 73 2f 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a 0a  s/certs/ca.pem:.
1cc0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63  .* tests/certs/c
1cd0: 6c 69 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 65  lient.key:..* te
1ce0: 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74  sts/certs/client
1cf0: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63  .pem:..* tests/c
1d00: 65 72 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71 3a  erts/client.req:
1d10: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f  ..* tests/certs/
1d20: 70 72 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a 20  privkey.pem:..* 
1d30: 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76  tests/certs/serv
1d40: 65 72 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73  er.key:..* tests
1d50: 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 70 65  /certs/server.pe
1d60: 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  m:..* tests/cert
1d70: 73 2f 73 65 72 76 65 72 2e 72 65 71 3a 0a 09 2a  s/server.req:..*
1d80: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 63   tests/certs/cac
1d90: 65 72 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65  ert.pem: replace
1da0: 64 20 62 79 20 6e 65 77 20 63 61 2e 70 65 6d 0a  d by new ca.pem.
1db0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73  .* tests/certs/s
1dc0: 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65  key.pem: replace
1dd0: 64 20 62 79 20 6e 65 77 20 73 65 72 76 65 72 2e  d by new server.
1de0: 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 72  key..* tests/cer
1df0: 74 73 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65 70  ts/ckey.pem: rep
1e00: 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 6c 69  laced by new cli
1e10: 65 6e 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73  ent.key..* tests
1e20: 2f 63 65 72 74 73 2f 52 45 41 44 4d 45 2e 74 78  /certs/README.tx
1e30: 74 3a 20 6e 65 77 20 73 65 74 20 6f 66 20 74 65  t: new set of te
1e40: 73 74 20 63 65 72 74 69 66 69 63 61 74 65 73 20  st certificates 
1e50: 77 69 74 68 20 73 6f 6d 65 0a 09 52 45 41 44 4d  with some..READM
1e60: 45 20 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72 20  E info on their 
1e70: 67 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a 20  generation....* 
1e80: 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65  tests/ciphers.te
1e90: 73 74 3a 20 75 70 64 61 74 65 64 20 63 69 70 68  st: updated ciph
1ea0: 65 72 73 20 65 78 70 65 63 74 65 64 20 77 69 74  ers expected wit
1eb0: 68 20 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e 73  h default..opens
1ec0: 73 6c 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 65  sl build....* te
1ed0: 73 74 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a 20  sts/tclIO.test: 
1ee0: 75 70 64 61 74 65 64 20 74 6f 20 75 73 65 20 6e  updated to use n
1ef0: 65 77 20 6e 61 6d 65 73 20 66 6f 72 20 63 65 72  ew names for cer
1f00: 74 73 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d 30  ts/keys...2001-0
1f10: 33 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73  3-14  Jeff Hobbs
1f20: 20 20 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74 2e    <jeffh@gimlet.
1f30: 61 63 74 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e  activestate.com>
1f40: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f  ...* tls.c (Tls_
1f50: 49 6e 69 74 29 3a 20 61 64 64 20 64 6f 2f 77 68  Init): add do/wh
1f60: 69 6c 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20 6e  ile for random n
1f70: 75 6d 62 65 72 20 69 6e 69 74 69 61 6c 69 7a 61  umber initializa
1f80: 74 69 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 72  tion..to work ar
1f90: 6f 75 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20 71  ound some OSes q
1fa0: 75 69 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e 42  uirks.  (Ralph.B
1fb0: 69 6c 6c 65 73 40 74 65 6c 74 65 63 68 2e 63 6f  illes@teltech.co
1fc0: 6d 2e 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d 30  m.au)..2000-09-0
1fd0: 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  7  Jeff Hobbs  <
1fe0: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
1ff0: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63  com>...* tlsIO.c
2000: 20 28 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70   (Tls_ChannelTyp
2010: 65 29 3a 20 73 65 74 20 74 79 70 65 4e 61 6d 65  e): set typeName
2020: 20 66 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e 65   field of channe
2030: 6c 20 74 79 70 65 20 74 6f 0a 09 22 74 6c 73 22  l type to.."tls"
2040: 20 28 74 68 69 73 20 67 6f 74 20 6c 6f 73 74 20   (this got lost 
2050: 69 6e 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61 6d  in move to dynam
2060: 69 63 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61  ic version compa
2070: 74 61 62 69 6c 69 74 79 0a 09 63 68 65 63 6b 69  tability..checki
2080: 6e 67 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 33  ng)...2000-08-23
2090: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
20a0: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
20b0: 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52 45  om>...TLS 1.4 RE
20c0: 4c 45 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 66  LEASED...* Makef
20d0: 69 6c 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 63  ile.in (dist): c
20e0: 72 65 61 74 65 20 64 69 73 74 20 74 61 72 67 65  reate dist targe
20f0: 74 20 66 6f 72 20 61 72 63 68 69 76 65 20 64 69  t for archive di
2100: 73 74 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a 20  stributions...* 
2110: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74  tests/tlsIO.test
2120: 20 28 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 64   (tlsIO-8.1): ad
2130: 64 65 64 20 61 20 64 65 6c 61 79 20 6f 6e 20 74  ded a delay on t
2140: 68 65 20 61 63 63 65 70 74 20 63 6c 6f 73 65 0a  he accept close.
2150: 09 74 6f 20 6d 61 6b 65 20 74 68 65 20 74 65 73  .to make the tes
2160: 74 20 77 6f 72 6b 20 77 69 74 68 20 4f 70 65 6e  t work with Open
2170: 53 53 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20 28  SSL on Windows (
2180: 64 6f 65 73 6e 27 74 20 61 66 66 65 63 74 0a 09  doesn't affect..
2190: 6f 74 68 65 72 20 62 75 69 6c 64 73 29 2e 0a 0a  other builds)...
21a0: 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64 61  .* tls.htm: upda
21b0: 74 65 64 20 77 69 74 68 20 6e 6f 74 65 73 20 66  ted with notes f
21c0: 6f 72 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 38  or 1.4...2000-08
21d0: 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -21  Jeff Hobbs 
21e0: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
21f0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73  s.com>...* tests
2200: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 71  /tlsIO.test: req
2210: 75 69 72 65 20 61 74 20 6c 65 61 73 74 20 74 6c  uire at least tl
2220: 73 31 2e 34 20 69 6e 20 74 65 73 74 20 73 75 69  s1.4 in test sui
2230: 74 65 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38 20  te...2000-08-18 
2240: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
2250: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
2260: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c  m>...* tls.c (Tl
2270: 73 5f 49 6e 69 74 29 3a 20 61 64 64 65 64 20 63  s_Init): added c
2280: 61 6c 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65 64  all to RAND_seed
2290: 20 74 6f 20 73 65 65 64 20 74 68 65 20 53 53 4c   to seed the SSL
22a0: 20 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 20   random..number 
22b0: 67 65 6e 65 72 61 74 6f 72 2e 20 20 57 69 74 68  generator.  With
22c0: 6f 75 74 20 74 68 69 73 2c 20 4f 70 65 6e 53 53  out this, OpenSS
22d0: 4c 20 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c 20  L 0.9.5 chokes, 
22e0: 61 6e 64 20 69 6e 20 61 6e 79 0a 09 63 61 73 65  and in any..case
22f0: 20 69 74 20 69 73 20 61 20 62 69 67 20 73 65 63   it is a big sec
2300: 75 72 69 74 79 20 68 6f 6c 65 20 74 6f 20 64 6f  urity hole to do
2310: 20 77 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09 2a   without it....*
2320: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28 4f   configure.in (O
2330: 50 45 4e 53 53 4c 29 3a 20 61 64 64 65 64 20 4e  PENSSL): added N
2340: 4f 5f 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52 43  O_IDEA and NO_RC
2350: 35 20 64 65 66 69 6e 65 73 20 62 79 0a 09 64 65  5 defines by..de
2360: 66 61 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69  fault when compi
2370: 6c 69 6e 67 20 77 69 74 68 20 4f 70 65 6e 53 53  ling with OpenSS
2380: 4c 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a  L....* tlsInt.h:
2390: 20 61 64 64 65 64 20 65 72 72 2e 68 20 69 6e 63   added err.h inc
23a0: 6c 75 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e  lude...* tlsBIO.
23b0: 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63  c:..* tlsIO.c: c
23c0: 6f 72 72 65 63 74 65 64 20 70 65 64 61 6e 74 69  orrected pedanti
23d0: 63 20 63 61 73 74 20 65 72 72 6f 72 73 2e 0a 0a  c cast errors...
23e0: 32 30 30 30 2d 30 38 2d 31 36 20 20 4a 65 66 66  2000-08-16  Jeff
23f0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73   Hobbs  <hobbs@s
2400: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
2410: 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e  * tests/ciphers.
2420: 74 65 73 74 3a 20 69 6d 70 72 6f 76 65 64 20 61  test: improved a
2430: 62 69 6c 69 74 79 20 74 6f 20 63 68 61 6e 67 65  bility to change
2440: 20 63 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65 74   constraint..set
2450: 74 69 6e 67 20 66 6f 72 20 77 68 65 74 68 65 72  ting for whether
2460: 20 75 73 65 72 20 63 6f 6d 70 69 6c 65 64 20 61   user compiled a
2470: 67 61 69 6e 73 74 20 52 53 41 20 6f 72 20 4f 70  gainst RSA or Op
2480: 65 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a 20  enSSL libs....* 
2490: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29  tls.c (Tls_Init)
24a0: 3a 20 63 6f 72 72 65 63 74 65 64 20 69 6e 74 65  : corrected inte
24b0: 72 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 76 65  rpretation of ve
24c0: 72 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 70  rsion number..(p
24d0: 61 74 63 68 6c 65 76 65 6c 20 61 6e 64 20 72 65  atchlevel and re
24e0: 6c 65 61 73 65 2f 73 65 72 69 61 6c 20 77 65 72  lease/serial wer
24f0: 65 20 73 77 61 70 70 65 64 29 2e 0a 0a 32 30 30  e swapped)...200
2500: 30 2d 30 38 2d 31 35 20 20 4a 65 66 66 20 48 6f  0-08-15  Jeff Ho
2510: 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69  bbs  <hobbs@scri
2520: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 52  ptics.com>...* R
2530: 45 41 44 4d 45 2e 74 78 74 3a 20 61 64 64 65 64  EADME.txt: added
2540: 20 6e 6f 74 65 73 20 61 62 6f 75 74 20 6e 65 65   notes about nee
2550: 64 20 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b 2e  d to use 8.2.0+.
2560: 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09  ...* tlsInt.h:..
2570: 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49  * tls.c:..* tlsI
2580: 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 73  O.c: corrected s
2590: 74 72 75 63 74 75 72 65 20 69 6e 69 74 69 61 6c  tructure initial
25a0: 69 7a 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b 20  ization to work 
25b0: 77 68 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 20  when..compiling 
25c0: 77 69 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20 63  with 8.2.  Now c
25d0: 6f 6d 70 69 6c 65 73 20 77 69 74 68 20 38 2e 32  ompiles with 8.2
25e0: 2b 20 61 6e 64 20 74 65 73 74 65 64 20 74 6f 20  + and tested to 
25f0: 77 6f 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b 20  work..with 8.2+ 
2600: 61 6e 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20  and dynamically 
2610: 61 64 6a 75 73 74 20 74 6f 20 74 68 65 20 76 65  adjust to the ve
2620: 72 73 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74 20  rsion of Tcl it 
2630: 77 61 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74 6f  was..loaded into
2640: 2e 20 20 54 4c 53 20 77 69 6c 6c 20 66 61 69 6c  .  TLS will fail
2650: 20 74 68 65 20 74 65 73 74 20 73 75 69 74 65 20   the test suite 
2660: 77 69 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e 33  with Tcl 8.2-8.3
2670: 2e 31 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61 6c  .1....* tests/al
2680: 6c 2e 74 63 6c 3a 20 61 64 64 65 64 20 63 61 74  l.tcl: added cat
2690: 63 68 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c 74  ch around ::tclt
26a0: 65 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 61  est::normalizePa
26b0: 74 68 0a 09 62 65 63 61 75 73 65 20 69 74 20 64  th..because it d
26c0: 6f 65 73 6e 27 74 20 65 78 69 73 74 20 69 6e 20  oesn't exist in 
26d0: 70 72 65 2d 38 2e 33 20 74 63 6c 74 65 73 74 2e  pre-8.3 tcltest.
26e0: 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c  ...* tests/simpl
26f0: 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 2a  eClient.tcl: ..*
2700: 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72   tests/simpleSer
2710: 76 65 72 2e 74 63 6c 3a 20 61 64 64 65 64 20 73  ver.tcl: added s
2720: 69 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65 72  imple client/ser
2730: 76 65 72 20 74 65 73 74 20 73 63 72 69 70 74 73  ver test scripts
2740: 0a 09 74 68 61 74 20 75 73 65 20 74 65 73 74 20  ..that use test 
2750: 63 65 72 74 73 20 61 6e 64 20 63 61 6e 20 64 6f  certs and can do
2760: 20 73 69 6d 70 6c 65 20 73 74 72 65 73 73 20 74   simple stress t
2770: 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31  ests...2000-08-1
2780: 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  4  Jeff Hobbs  <
2790: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
27a0: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e  com>...* tlsInt.
27b0: 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09  h:..* tlsIO.c:..
27c0: 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74  * tlsBIO.c:..* t
27d0: 6c 73 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 72  ls.c: changed ar
27e0: 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f 72  ound to only wor
27f0: 6b 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 30 2b  king with 8.2.0+
2800: 20 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65 72   (8.3.2+..prefer
2810: 72 65 64 29 2c 20 77 69 74 68 20 72 75 6e 74 69  red), with runti
2820: 6d 65 20 63 68 65 63 6b 73 20 66 6f 72 20 70 72  me checks for pr
2830: 65 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d 72  e- and post-io-r
2840: 65 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 2e  ewrite....* tls.
2850: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68  c (Tls_Init): ch
2860: 61 6e 67 65 64 20 69 74 20 74 6f 20 72 65 71 75  anged it to requ
2870: 69 72 65 20 38 2e 33 2e 32 20 77 68 65 6e 20 54  ire 8.3.2 when T
2880: 63 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09 77 61  cl_InitStubs..wa
2890: 73 20 63 61 6c 6c 65 64 20 62 65 63 61 75 73 65  s called because
28a0: 20 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 70   we don't want p
28b0: 65 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c 53 20  eople using TLS 
28c0: 77 69 74 68 20 74 68 65 0a 09 6f 72 69 67 69 6e  with the..origin
28d0: 61 6c 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e  al stacked chann
28e0: 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f  el implementatio
28f0: 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20 20  n...2000-07-26  
2900: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
2910: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
2920: 3e 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c 6c  >...* merged all
2930: 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 74 6c   changes from tl
2940: 73 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74 65  s-1-3-io-rewrite
2950: 20 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e 20   back into main 
2960: 62 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74 73  branch...* tests
2970: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64  /tlsIO.test: upd
2980: 61 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 66  ated comments, f
2990: 69 78 65 64 20 61 20 70 63 43 72 61 73 68 20 63  ixed a pcCrash c
29a0: 61 73 65 20 74 68 61 74 0a 09 77 61 73 20 64 75  ase that..was du
29b0: 65 20 74 6f 20 64 65 62 75 67 20 61 73 73 65 72  e to debug asser
29c0: 74 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73 20  tion in Windows 
29d0: 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28  SSL....* tls.c (
29e0: 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 72  ImportObjCmd): r
29f0: 65 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73 73 61  emoved unnecessa
2a00: 72 79 20 75 73 65 20 6f 66 20 27 62 69 6f 27 20  ry use of 'bio' 
2a10: 61 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 29  arg...(Tls_Init)
2a20: 3a 20 63 68 65 63 6b 20 72 65 74 75 72 6e 20 76  : check return v
2a30: 61 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62 72  alue of SSL_libr
2a40: 61 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f 20  ary_init.  Also 
2a50: 6c 6f 74 73 20 6f 66 0a 09 77 68 69 74 65 73 70  lots of..whitesp
2a60: 61 63 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f 72  ace cleanup (mor
2a70: 65 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20 73  e like Tcl Eng s
2a80: 74 79 6c 65 20 67 75 69 64 65 29 2c 20 62 75 74  tyle guide), but
2a90: 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20 77   not all..code w
2aa0: 61 73 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a 0a  as cleaned up...
2ab0: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 6e  .* tlsBIO.c: min
2ac0: 6f 72 20 77 68 69 74 65 73 70 61 63 65 20 63 6c  or whitespace cl
2ad0: 65 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f 2e  eanup...* tlsIO.
2ae0: 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70  c: minor whitesp
2af0: 61 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28 54  ace cleanup...(T
2b00: 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73  lsInputProc, Tls
2b10: 4f 75 74 70 75 74 50 72 6f 63 29 3a 20 41 64 64  OutputProc): Add
2b20: 65 64 20 45 52 52 5f 63 6c 65 61 72 5f 65 72 72  ed ERR_clear_err
2b30: 6f 72 20 62 65 66 6f 72 65 20 63 61 6c 6c 73 0a  or before calls.
2b40: 09 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72 20  .to BIO_read or 
2b50: 42 49 4f 5f 77 72 69 74 65 2c 20 62 65 63 61 75  BIO_write, becau
2b60: 73 65 20 77 65 20 63 6f 75 6c 64 20 6f 74 68 65  se we could othe
2b70: 72 77 69 73 65 20 65 6e 64 20 75 70 0a 09 70 75  rwise end up..pu
2b80: 6c 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72 20 6f  lling an error o
2b90: 66 66 20 74 68 65 20 73 74 61 63 6b 20 74 68 61  ff the stack tha
2ba0: 74 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67 20  t didn't belong 
2bb0: 74 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63 6c  to us.  Also..cl
2bc0: 65 61 6e 75 70 20 75 70 20 65 78 63 65 73 73 69  eanup up excessi
2bd0: 76 65 20 75 73 65 20 6f 66 20 67 6f 74 6f 73 2e  ve use of gotos.
2be0: 0a 0a 32 30 30 30 2d 30 37 2d 32 30 20 20 4a 65  ..2000-07-20  Je
2bf0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
2c00: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
2c10: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e  ..* tests/tlsIO.
2c20: 74 65 73 74 3a 20 63 6f 72 72 65 63 74 65 64 20  test: corrected 
2c30: 76 61 72 69 6f 75 73 20 74 65 73 74 73 20 74 6f  various tests to
2c40: 20 62 65 20 63 6f 72 72 65 63 74 20 66 6f 72 20   be correct for 
2c50: 54 4c 53 0a 09 73 74 61 63 6b 65 64 20 63 68 61  TLS..stacked cha
2c60: 6e 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f 73 65  nnels (as oppose
2c70: 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72  d to the standar
2c80: 64 20 73 6f 63 6b 65 74 73 20 74 68 65 20 74 65  d sockets the te
2c90: 73 74 0a 09 73 75 69 74 65 20 77 61 73 20 61 64  st..suite was ad
2ca0: 6f 70 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b 65  opted from).  Ke
2cb0: 79 20 64 69 66 66 65 72 65 6e 63 65 73 20 61 72  y differences ar
2cc0: 65 20 74 68 61 74 20 54 4c 53 20 63 61 6e 6e 6f  e that TLS canno
2cd0: 74 0a 09 6f 70 65 72 61 74 65 20 69 6e 20 6f 6e  t..operate in on
2ce0: 65 20 70 72 6f 63 65 73 73 20 77 69 74 68 6f 75  e process withou
2cf0: 74 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 62  t all channels b
2d00: 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e  eing non-blockin
2d10: 67 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e 64 73  g, or..the hands
2d20: 68 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b 2c  hake will block,
2d30: 20 61 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e 67   and handshaking
2d40: 20 6d 75 73 74 20 62 65 20 66 6f 72 63 65 64 20   must be forced 
2d50: 69 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e 20  in some..cases. 
2d60: 20 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b 65   Also, handshake
2d70: 73 20 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20  s don't seem to 
2d80: 63 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73 20  complete unless 
2d90: 74 68 65 20 63 6c 69 65 6e 74 0a 09 68 61 73 20  the client..has 
2da0: 70 6c 61 63 65 64 20 61 74 20 6c 65 61 73 74 20  placed at least 
2db0: 6f 6e 65 20 62 79 74 65 20 66 6f 72 20 74 68 65  one byte for the
2dc0: 20 73 65 72 76 65 72 20 74 6f 20 72 65 61 64 20   server to read 
2dd0: 69 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e 0a  in the channel..
2de0: 0a 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74 65  ..* tests/remote
2df0: 2e 74 63 6c 3a 20 63 6f 72 72 65 63 74 65 64 20  .tcl: corrected 
2e00: 74 68 65 20 66 69 6e 64 69 6e 67 20 6f 66 20 74  the finding of t
2e10: 65 73 74 73 20 63 65 72 74 69 66 69 63 61 74 65  ests certificate
2e20: 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54  s...* tlsIO.c (T
2e30: 6c 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72 65  lsCloseProc): re
2e40: 6d 6f 76 65 64 20 64 65 6c 65 74 69 6e 67 20 6f  moved deleting o
2e50: 66 20 74 69 6d 65 72 20 68 61 6e 64 6c 65 72 20  f timer handler 
2e60: 61 73 0a 09 74 68 61 74 20 69 73 20 68 61 6e 64  as..that is hand
2e70: 6c 65 64 20 62 79 20 54 6c 73 5f 43 6c 65 61 6e  led by Tls_Clean
2e80: 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74  ....* tls.tcl (t
2e90: 6c 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63 6f  ls::_accept): co
2ea0: 72 72 65 63 74 65 64 20 74 68 65 20 69 6e 74 65  rrected the inte
2eb0: 72 6e 61 6c 20 5f 61 63 63 65 70 74 20 74 6f 0a  rnal _accept to.
2ec0: 09 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61 63  .trickle callbac
2ed0: 6b 20 65 72 72 6f 72 73 20 74 6f 20 74 68 65 20  k errors to the 
2ee0: 75 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69  user....* Makefi
2ef0: 6c 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65 20  le.in: made the 
2f00: 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73  install-binaries
2f10: 20 74 61 72 67 65 74 20 72 65 67 65 6e 65 72 61   target regenera
2f20: 74 65 20 74 68 65 0a 09 70 6b 67 49 6e 64 65 78  te the..pkgIndex
2f30: 2e 74 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e 20  .tcl correctly. 
2f40: 20 54 68 65 20 74 65 73 74 20 74 61 72 67 65 74   The test target
2f50: 20 70 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c 64   probably should
2f60: 6e 27 74 20 73 63 72 65 77 0a 09 69 74 20 75 70  n't screw..it up
2f70: 2c 20 62 75 74 20 74 68 69 73 20 69 73 20 74 6f  , but this is to
2f80: 20 62 65 20 6f 6e 20 74 68 65 20 73 61 66 65 20   be on the safe 
2f90: 73 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31  side...2000-07-1
2fa0: 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  7  Jeff Hobbs  <
2fb0: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
2fc0: 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65  com>...* pkgInde
2fd0: 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f 6e  x.tcl.in:..* con
2fe0: 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74  figure.in: updat
2ff0: 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e  ed version to 1.
3000: 34 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20 20 4a  4..2000-07-13  J
3010: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
3020: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  s@scriptics.com>
3030: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f  ...* tests/tlsIO
3040: 2e 74 65 73 74 3a 20 65 6e 61 62 6c 65 64 20 74  .test: enabled t
3050: 65 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31 32  ests 2.10, 7.[12
3060: 34 35 5d 20 28 74 68 65 72 65 20 69 73 20 6e 6f  45] (there is no
3070: 20 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77 20   3),..which now 
3080: 70 61 73 73 2e 20 20 41 64 64 65 64 20 73 6f 6d  pass.  Added som
3090: 65 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f 74  e comments to ot
30a0: 68 65 72 20 66 61 69 6c 69 6e 67 20 74 65 73 74  her failing test
30b0: 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20 20  s...2000-07-11  
30c0: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
30d0: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
30e0: 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63  >...* tlsIO.c: c
30f0: 68 61 6e 67 65 64 20 61 6c 6c 20 74 68 65 20 63  hanged all the c
3100: 68 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f 20  hannel procs to 
3110: 73 74 61 72 74 20 77 69 74 68 20 54 6c 73 2a 20  start with Tls* 
3120: 66 6f 72 0a 09 62 65 74 74 65 72 20 70 61 72 69  for..better pari
3130: 74 79 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e  ty when comparin
3140: 67 20 77 69 74 68 20 54 72 61 6e 73 66 6f 72 6d  g with Transform
3150: 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e 0a   channel procs..
3160: 09 52 65 77 72 6f 74 65 20 54 6c 73 57 61 74 63  .Rewrote TlsWatc
3170: 68 50 72 6f 63 2c 20 61 64 64 65 64 20 54 6c 73  hProc, added Tls
3180: 4e 6f 74 69 66 79 50 72 6f 63 20 61 63 63 6f 72  NotifyProc accor
3190: 64 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 77 0a  ding to the new.
31a0: 09 63 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e 2c  .channel design,
31b0: 20 77 68 69 63 68 20 61 6c 73 6f 20 6c 65 61 76   which also leav
31c0: 65 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61 6e  es TlsChannelHan
31d0: 64 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09 2a  dler unused....*
31e0: 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43 74   tlsBIO.c (BioCt
31f0: 72 6c 29 3a 20 63 68 61 6e 67 65 64 20 42 49 4f  rl): changed BIO
3200: 5f 43 54 52 4c 5f 46 4c 55 53 48 20 63 61 73 65  _CTRL_FLUSH case
3210: 20 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72 69   to use..Tcl_Wri
3220: 74 65 52 61 77 20 69 6e 73 74 65 61 64 20 6f 66  teRaw instead of
3230: 20 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20 6f   Tcl_Flush (to o
3240: 70 65 72 61 74 65 20 6f 6e 20 63 6f 72 72 65 63  perate on correc
3250: 74 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 68  t channel..in th
3260: 65 20 73 74 61 63 6b 20 69 6e 73 74 65 61 64 20  e stack instead 
3270: 6f 66 20 73 74 61 72 74 69 6e 67 20 61 74 20 74  of starting at t
3280: 68 65 20 74 6f 70 20 61 67 61 69 6e 29 2e 20 20  he top again).  
3290: 57 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69 73 65  Would..otherwise
32a0: 20 63 61 75 73 65 20 61 20 72 65 63 75 72 73 69   cause a recursi
32b0: 76 65 20 73 74 61 63 6b 20 62 6f 6d 62 20 77 68  ve stack bomb wh
32c0: 65 6e 20 69 6d 70 6c 69 63 69 74 20 68 61 6e 64  en implicit hand
32d0: 73 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 66  shaking..took ef
32e0: 66 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f  fect....* tests/
32f0: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d 6f  tlsIO.test: remo
3300: 76 65 64 20 63 68 61 6e 67 65 73 20 6d 61 64 65  ved changes made
3310: 20 74 6f 20 74 65 73 74 20 73 75 69 74 65 20 28   to test suite (
3320: 61 6c 6c 20 74 65 73 74 73 0a 09 74 68 61 74 20  all tests..that 
3330: 72 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20 70  ran before now p
3340: 61 73 73 20 63 6f 72 72 65 63 74 6c 79 29 2c 20  ass correctly), 
3350: 61 6e 64 20 63 68 61 6e 67 65 64 20 73 6f 6d 65  and changed some
3360: 20 61 63 63 65 70 74 20 70 72 6f 63 0a 09 61 72   accept proc..ar
3370: 67 73 20 74 6f 20 72 65 66 6c 65 63 74 20 74 68  gs to reflect th
3380: 61 74 20 61 20 73 6f 63 6b 20 69 73 20 61 6e 20  at a sock is an 
3390: 61 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e  arg, not a file.
33a0: 0a 0a 32 30 30 30 2d 30 37 2d 31 30 20 20 4a 65  ..2000-07-10  Je
33b0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
33c0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
33d0: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69  ..* tlsBIO.c (Bi
33e0: 6f 57 72 69 74 65 2c 20 42 69 6f 52 65 61 64 29  oWrite, BioRead)
33f0: 3a 20 63 68 61 6e 67 65 64 20 54 63 6c 5f 52 65  : changed Tcl_Re
3400: 61 64 2f 57 72 69 74 65 20 74 6f 0a 09 54 63 6c  ad/Write to..Tcl
3410: 5f 52 65 61 64 52 61 77 2f 54 63 6c 57 72 69 74  _ReadRaw/TclWrit
3420: 65 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 3a  eRaw....* tls.c:
3430: 20 61 64 64 65 64 20 75 73 65 20 6f 66 20 54 63   added use of Tc
3440: 6c 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c 20  l_GetTopChannel 
3450: 61 66 74 65 72 20 54 63 6c 5f 47 65 74 43 68 61  after Tcl_GetCha
3460: 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72 65  nnel and..got re
3470: 74 75 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20  turn value from 
3480: 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c  Tcl_StackChannel
3490: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49  ....* tests/tlsI
34a0: 4f 2e 74 65 73 74 3a 20 61 64 64 65 64 20 73 6f  O.test: added so
34b0: 6d 65 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 74  me handshaking t
34c0: 68 61 74 20 73 68 6f 75 6c 64 6e 27 74 20 62 65  hat shouldn't be
34d0: 0a 09 6e 65 63 65 73 73 61 72 79 2c 20 62 75 74  ..necessary, but
34e0: 20 77 65 20 63 72 61 73 68 20 6f 74 68 65 72 77   we crash otherw
34f0: 69 73 65 20 28 6e 65 65 64 73 20 6d 6f 72 65 20  ise (needs more 
3500: 74 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 6c  testing)....* tl
3510: 73 49 4f 2e 63 3a 20 61 64 64 65 64 20 73 75 70  sIO.c: added sup
3520: 70 6f 72 74 20 66 6f 72 20 22 63 6f 72 72 65 63  port for "correc
3530: 74 65 64 22 20 73 74 61 63 6b 65 64 20 63 68 61  ted" stacked cha
3540: 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 65  nnels.  All..the
3550: 20 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73 20   above channels 
3560: 61 72 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e 4e  are in TCL_CHANN
3570: 45 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69 66  EL_VERSION_2 #if
3580: 64 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d 30  defs...2000-06-0
3590: 35 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e  5  Scott Stanton
35a0: 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61    <stanton@ajuba
35b0: 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a  solutions.com>..
35c0: 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20  .* Makefile.in: 
35d0: 46 69 78 65 64 20 62 72 6f 6b 65 6e 20 74 65 73  Fixed broken tes
35e0: 74 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74 6c  t target....* tl
35f0: 73 49 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 2e  sInt.h: ..* tls.
3600: 63 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 64 65  c: Cleaned up de
3610: 63 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 54 6c  clarations of Tl
3620: 73 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69 64  s_Clean to avoid
3630: 20 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e 64   errors on..Wind
3640: 6f 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 30  ows (lint)...200
3650: 30 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 20 57  0-06-05  Brent W
3660: 65 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a 75 62  elch <welch@ajub
3670: 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a  asolutions.com>.
3680: 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49 4f  ..* tls.c, tlsIO
3690: 2e 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f 46  .c:  Split Tls_F
36a0: 72 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c 65  ree into Tls_Cle
36b0: 61 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 0a 09  an, which does..
36c0: 74 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 70 2c  the SSL cleanup,
36d0: 20 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 72 65   and the Tcl_Fre
36e0: 65 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 20 69  e call.  It is i
36f0: 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 75 74  mportant to shut
3700: 64 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 73 74  down..the SSL st
3710: 61 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75 73  ate "synchronous
3720: 6c 79 22 20 64 75 72 69 6e 67 20 61 20 73 74 61  ly" during a sta
3730: 63 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30 30  cked flush...200
3740: 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53  0-06-01  Scott S
3750: 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e  tanton  <stanton
3760: 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e  @ajubasolutions.
3770: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63  com>...* tlsIO.c
3780: 3a 20 52 65 73 74 6f 72 65 64 20 63 61 6c 6c 20  : Restored call 
3790: 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61  to Tcl_NotifyCha
37a0: 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e 65  nnel from Channe
37b0: 6c 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e 73  lHandler..to ens
37c0: 75 72 65 20 74 68 61 74 20 65 76 65 6e 74 73 20  ure that events 
37d0: 70 72 6f 70 61 67 61 74 65 20 66 72 6f 6d 20 74  propagate from t
37e0: 68 65 20 6c 6f 77 65 72 20 64 72 69 76 65 72 2e  he lower driver.
37f0: 20 20 54 68 69 73 20 6d 61 79 0a 09 72 65 73 75    This may..resu
3800: 6c 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74  lt in an infinit
3810: 65 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 63  e loop in some c
3820: 61 73 65 73 2c 20 73 6f 20 74 68 69 73 20 69 73  ases, so this is
3830: 20 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66 69   not a total..fi
3840: 78 2e 20 20 54 68 69 73 20 6d 61 79 20 62 65 20  x.  This may be 
3850: 73 75 66 66 69 63 69 65 6e 74 20 66 6f 72 20 6e  sufficient for n
3860: 6f 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42 75  ow, however. [Bu
3870: 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30  g: 5623]..2000-0
3880: 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e  6-01  Scott Stan
3890: 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73 63  ton  <stanton@sc
38a0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a  riptics.com>...*
38b0: 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72   tlsIO.c: Restor
38c0: 65 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 76  e the previous v
38d0: 65 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 20 74  ersion.  Fixed t
38e0: 68 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f 0a  he CloseProc so.
38f0: 09 69 74 20 75 6e 72 65 67 69 73 74 65 72 73 20  .it unregisters 
3900: 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64  the channel hand
3910: 6c 65 72 20 6f 6e 20 74 68 65 20 73 75 70 65 72  ler on the super
3920: 63 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09 69  ceded channel..i
3930: 6e 73 74 65 61 64 20 6f 66 20 74 68 65 20 75 70  nstead of the up
3940: 70 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c 73  per channel. Als
3950: 6f 20 72 65 6d 6f 76 65 64 20 74 68 65 20 63 61  o removed the ca
3960: 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66  ll to..Tcl_Notif
3970: 79 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65 20  yChannel in the 
3980: 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 62  ChannelHandler b
3990: 65 63 61 75 73 65 20 74 68 69 73 20 77 69 6c 6c  ecause this will
39a0: 20 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20 69   result..in an i
39b0: 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66 20  nfinite loop if 
39c0: 64 61 74 61 20 69 73 20 65 76 65 72 20 62 75 66  data is ever buf
39d0: 66 65 72 65 64 20 69 6e 20 74 68 65 20 42 49 4f  fered in the BIO
39e0: 0a 09 73 74 72 75 63 74 75 72 65 2e 20 5b 42 75  ..structure. [Bu
39f0: 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30  g: 5623]..2000-0
3a00: 35 2d 33 31 20 20 42 72 65 6e 74 20 57 65 6c 63  5-31  Brent Welc
3a10: 68 20 3c 77 65 6c 63 68 40 73 63 72 69 70 74 69  h <welch@scripti
3a20: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e  cs.com>...* tls.
3a30: 63 3a 20 43 68 61 6e 67 65 20 74 68 65 20 43 68  c: Change the Ch
3a40: 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f 20  annelHandler to 
3a50: 62 65 20 72 65 67 69 73 74 65 72 65 64 20 6f 6e  be registered on
3a60: 20 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e 6e   the main..chann
3a70: 65 6c 20 61 73 20 6f 70 70 73 65 64 20 74 6f 20  el as oppsed to 
3a80: 74 68 65 20 22 70 61 72 65 6e 74 22 2c 20 6f 72  the "parent", or
3a90: 20 73 75 70 65 72 63 65 65 64 65 64 2c 20 63 68   superceeded, ch
3aa0: 61 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69 73  annel.  This..is
3ab0: 20 62 65 63 61 75 73 65 20 74 68 65 20 73 6f 63   because the soc
3ac0: 6b 65 74 20 64 72 69 76 65 72 20 6e 6f 74 69 66  ket driver notif
3ad0: 69 65 73 20 74 68 65 20 6d 61 69 6e 20 63 68 61  ies the main cha
3ae0: 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 65 0a  nnel, and there.
3af0: 09 61 72 65 20 74 69 6d 65 73 20 77 69 74 68 20  .are times with 
3b00: 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c  the main channel
3b10: 20 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 62 75   gets closed, bu
3b20: 74 20 74 68 65 20 73 75 70 65 72 63 65 64 65 64  t the superceded
3b30: 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65 74  ..one is not yet
3b40: 20 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 65   closed.  If the
3b50: 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72   channel handler
3b60: 20 67 65 74 73 20 74 72 69 67 67 65 72 65 64 20   gets triggered 
3b70: 69 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f 70  in..this half-op
3b80: 65 6e 20 73 74 61 74 65 20 69 74 20 69 73 20 61  en state it is a
3b90: 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74  ssociated with t
3ba0: 68 65 20 73 75 70 65 72 63 65 65 64 65 64 0a 09  he superceeded..
3bb0: 63 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75 73  channedl, but us
3bc0: 65 73 20 69 74 73 20 70 72 69 76 61 74 65 20 70  es its private p
3bd0: 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6d 61  ointer to the ma
3be0: 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69 63  in channel, whic
3bf0: 68 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 65 73  h..is mostly des
3c00: 74 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e 61  troyed.  Elimina
3c10: 74 65 64 20 74 68 65 20 72 65 64 75 6e 64 61 6e  ted the redundan
3c20: 74 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e  t call to..Tcl_N
3c30: 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f  otifyChannel fro
3c40: 6d 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2e 20  m TlsWatchProc. 
3c50: 5b 42 75 67 3a 20 35 36 32 33 5d 0a              [Bug: 5623].