Hex Artifact Content

Artifact 7fb55e67987fd6ed15eec34c1d4c9e1de1bdc970:


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 0a 32 30 30 38 2d 30 33  414045]..2008-03
0080: 2d 31 39 20 20 50 61 74 20 54 68 6f 79 74 73 20  -19  Pat Thoyts 
0090: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72   <patthoyts@user
00a0: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65  s.sourceforge.ne
00b0: 74 3e 0a 0a 09 2a 20 77 69 6e 2f 4d 61 6b 65 66  t>...* win/Makef
00c0: 69 6c 65 2e 76 63 20 20 55 70 64 61 74 65 64 20  ile.vc  Updated 
00d0: 74 68 65 20 6e 6d 61 6b 65 20 62 75 69 6c 64 20  the nmake build 
00e0: 66 69 6c 65 73 20 77 69 74 68 20 4d 53 56 43 39  files with MSVC9
00f0: 20 73 75 70 70 6f 72 74 0a 09 2a 20 77 69 6e 2f   support..* win/
0100: 72 75 6c 65 73 2e 76 63 3a 20 20 20 20 61 6e 64  rules.vc:    and
0110: 20 66 69 78 65 64 20 74 6f 20 72 75 6e 20 74 68   fixed to run th
0120: 65 20 74 65 73 74 2d 73 75 69 74 65 20 70 72 6f  e test-suite pro
0130: 70 65 72 6c 79 2e 0a 09 2a 20 77 69 6e 2f 6e 6d  perly...* win/nm
0140: 61 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 74 6c 73  akehlp.c:..* tls
0150: 2e 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 6c  .tcl (tls::initl
0160: 69 62 29 3a 20 43 6f 72 72 65 63 74 65 64 20 6e  ib): Corrected n
0170: 61 6d 65 73 70 61 63 65 20 68 61 6e 64 6c 69 6e  amespace handlin
0180: 67 2e 0a 09 2a 20 74 6c 73 2e 63 3a 20 41 70 70  g...* tls.c: App
0190: 6c 69 65 64 20 23 31 38 39 30 32 32 33 20 74 6f  lied #1890223 to
01a0: 20 66 69 78 20 68 61 6e 64 73 68 61 6b 65 20 6f   fix handshake o
01b0: 6e 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 20 73  n non-blocking s
01c0: 6f 63 6b 65 74 73 0a 0a 32 30 30 38 2d 30 33 2d  ockets..2008-03-
01d0: 31 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  17  Jeff Hobbs  
01e0: 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61  <jeffh@ActiveSta
01f0: 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e  te.com>...* tls.
0200: 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 6c 69  tcl (tls::initli
0210: 62 29 3a 20 20 20 20 20 6c 6f 61 64 20 74 6c 73  b):     load tls
0220: 2e 74 63 6c 20 66 69 72 73 74 20 61 6e 64 20 63  .tcl first and c
0230: 61 6c 6c 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e  all..* Makefile.
0240: 69 6e 20 28 70 6b 67 49 6e 64 65 78 2e 74 63 6c  in (pkgIndex.tcl
0250: 29 3a 20 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 20  ): tls::initlib 
0260: 74 6f 20 6c 6f 61 64 20 6c 69 62 72 61 72 79 20  to load library 
0270: 74 6f 0a 09 68 61 6e 64 6c 65 20 63 77 64 20 63  to..handle cwd c
0280: 68 61 6e 67 65 73 2e 20 5b 42 75 67 20 31 38 38  hanges. [Bug 188
0290: 38 31 31 33 5d 0a 0a 32 30 30 37 2d 30 39 2d 30  8113]..2007-09-0
02a0: 36 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c  6  Pat Thoyts  <
02b0: 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e  patthoyts@users.
02c0: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e  sourceforge.net>
02d0: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20  ...* tls.c:     
02e0: 20 20 20 20 20 20 53 69 6c 65 6e 63 65 20 36 34        Silence 64
02f0: 20 62 69 74 20 69 6e 74 65 67 65 72 20 63 6f 6e   bit integer con
0300: 76 65 72 73 69 6f 6e 20 77 61 72 6e 69 6e 67 73  version warnings
0310: 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70  ..* win/nmakehlp
0320: 2e 63 3a 20 20 55 70 64 61 74 65 20 62 75 69 6c  .c:  Update buil
0330: 64 20 73 79 73 74 65 6d 20 74 6f 20 73 75 70 70  d system to supp
0340: 6f 72 74 20 41 4d 44 36 34 20 74 61 72 67 65 74  ort AMD64 target
0350: 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65  ..* win/makefile
0360: 2e 76 63 3a 20 77 69 74 68 20 4d 53 56 43 38 0a  .vc: with MSVC8.
0370: 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63 3a  .* win/rules.vc:
0380: 0a 0a 32 30 30 37 2d 30 36 2d 32 32 20 20 4a 65  ..2007-06-22  Je
0390: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68  ff Hobbs  <jeffh
03a0: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d  @ActiveState.com
03b0: 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e  >...* configure.
03c0: 69 6e 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20 77  in, configure, w
03d0: 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 20 28  in/makefile.vc (
03e0: 44 4f 54 56 45 52 53 49 4f 4e 29 3a 20 62 75 6d  DOTVERSION): bum
03f0: 70 20 74 6f 20 31 2e 36 0a 0a 09 2a 20 74 6c 73  p to 1.6...* tls
0400: 49 4f 2e 63 20 28 54 6c 73 49 6e 70 75 74 50 72  IO.c (TlsInputPr
0410: 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f  oc, TlsOutputPro
0420: 63 2c 20 54 6c 73 57 61 74 63 68 50 72 6f 63 29  c, TlsWatchProc)
0430: 3a 20 0a 09 2a 20 74 6c 73 2e 63 20 28 56 65 72  : ..* tls.c (Ver
0440: 69 66 79 43 61 6c 6c 62 61 63 6b 29 3a 20 61 64  ifyCallback): ad
0450: 64 20 61 6e 20 73 74 61 74 65 20 66 6c 61 67 20  d an state flag 
0460: 69 6e 20 74 68 65 20 76 65 72 69 66 79 20 63 61  in the verify ca
0470: 6c 6c 62 61 63 6b 0a 09 74 68 61 74 20 70 72 65  llback..that pre
0480: 76 65 6e 74 73 20 70 6f 73 73 69 62 6c 79 20 72  vents possibly r
0490: 65 63 75 72 73 69 6f 6e 20 28 6f 6e 20 27 75 70  ecursion (on 'up
04a0: 64 61 74 65 27 29 2e 20 5b 42 75 67 20 31 36 35  date'). [Bug 165
04b0: 32 33 38 30 5d 0a 0a 09 2a 20 74 65 73 74 73 2f  2380]...* tests/
04c0: 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 72 65  ciphers.test: re
04d0: 77 6f 72 6b 65 64 20 74 6f 20 6d 61 6b 65 20 74  worked to make t
04e0: 65 73 74 20 6f 75 74 70 75 74 20 63 6c 65 61 6e  est output clean
04f0: 65 72 20 74 6f 0a 09 75 6e 64 65 72 73 74 61 6e  er to..understan
0500: 64 20 6d 69 73 73 69 6e 67 20 63 69 70 68 65 72  d missing cipher
0510: 73 20 28 69 66 20 61 6e 79 29 0a 0a 09 2a 20 4d  s (if any)...* M
0520: 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c 63  akefile.in, tclc
0530: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75 70  onfig/tcl.m4: up
0540: 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e 36 0a  date to TEA 3.6.
0550: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f  .* configure, co
0560: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20 20  nfigure.in:     
0570: 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e 66    using autoconf
0580: 2d 32 2e 35 39 0a 0a 32 30 30 37 2d 30 32 2d 32  -2.59..2007-02-2
0590: 38 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c  8  Pat Thoyts  <
05a0: 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e  patthoyts@users.
05b0: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e  sourceforge.net>
05c0: 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c  ...* win/makefil
05d0: 65 2e 76 63 3a 20 52 65 62 61 73 65 20 74 68 65  e.vc: Rebase the
05e0: 20 44 4c 4c 20 73 65 6e 73 69 62 6c 79 2e 20 41   DLL sensibly. A
05f0: 64 64 69 74 69 6f 6e 61 6c 20 6c 69 62 73 20 66  dditional libs f
0600: 6f 72 20 0a 09 73 74 61 74 69 63 20 6c 69 6e 6b  or ..static link
0610: 20 6f 66 20 6f 70 65 6e 73 73 6c 2e 0a 09 2a 20   of openssl...* 
0620: 74 6c 73 2e 74 63 6c 3a 20 62 75 67 20 23 31 35  tls.tcl: bug #15
0630: 37 39 38 33 37 20 2d 20 54 49 50 20 32 37 38 20  79837 - TIP 278 
0640: 62 75 67 20 28 70 6f 73 73 69 62 6c 79 29 20 2d  bug (possibly) -
0650: 20 66 69 78 65 64 2e 0a 0a 32 30 30 36 2d 30 33   fixed...2006-03
0660: 2d 33 30 20 20 50 61 74 20 54 68 6f 79 74 73 20  -30  Pat Thoyts 
0670: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72   <patthoyts@user
0680: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65  s.sourceforge.ne
0690: 74 3e 0a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67  t>...* tclconfig
06a0: 2f 2a 3a 20 20 55 70 64 61 74 65 64 20 74 6f 20  /*:  Updated to 
06b0: 54 45 41 20 33 2e 35 20 69 6e 20 72 65 73 70 6f  TEA 3.5 in respo
06c0: 6e 73 65 20 74 6f 20 62 75 67 20 31 34 36 30 34  nse to bug 14604
06d0: 39 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2a  91..* configure*
06e0: 3a 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 20  :   Regenerated 
06f0: 63 6f 6e 66 69 67 75 72 65 2e 0a 0a 32 30 30 35  configure...2005
0700: 2d 30 32 2d 30 38 20 20 4a 65 66 66 20 48 6f 62  -02-08  Jeff Hob
0710: 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76  bs  <jeffh@Activ
0720: 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20  eState.com>...* 
0730: 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c  Makefile.in, tcl
0740: 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75  config/tcl.m4: u
0750: 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e 32  pdate to TEA 3.2
0760: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63  ..* configure, c
0770: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20  onfigure.in:    
0780: 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e     using autocon
0790: 66 2d 32 2e 35 39 0a 0a 32 30 30 34 2d 31 32 2d  f-2.59..2004-12-
07a0: 32 33 20 20 50 61 74 20 54 68 6f 79 74 73 20 20  23  Pat Thoyts  
07b0: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73  <patthoyts@users
07c0: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74  .sourceforge.net
07d0: 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69  >...* Makefile.i
07e0: 6e 3a 20 20 20 20 20 20 52 65 6d 6f 76 65 64 20  n:      Removed 
07f0: 73 70 75 72 69 6f 75 73 20 63 6f 70 79 69 6e 67  spurious copying
0800: 20 6f 66 20 74 6c 73 2e 74 63 6c 20 69 6e 74 6f   of tls.tcl into
0810: 20 74 68 65 0a 09 20 20 20 20 20 20 20 20 20 20   the..          
0820: 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 20            build 
0830: 64 69 72 65 63 74 6f 72 79 2e 0a 0a 32 30 30 34  directory...2004
0840: 2d 31 32 2d 32 32 20 20 50 61 74 20 54 68 6f 79  -12-22  Pat Thoy
0850: 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75  ts  <patthoyts@u
0860: 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65  sers.sourceforge
0870: 2e 6e 65 74 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67  .net>...* config
0880: 75 72 65 2e 69 6e 3a 20 20 20 20 20 49 6e 63 72  ure.in:     Incr
0890: 65 6d 65 6e 74 65 64 20 6d 69 6e 6f 72 20 76 65  emented minor ve
08a0: 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 31 0a 09  rsion to 1.5.1..
08b0: 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 20  * configure:    
08c0: 20 20 20 20 0a 0a 32 30 30 34 2d 31 32 2d 31 37      ..2004-12-17
08d0: 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70    Pat Thoyts  <p
08e0: 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73  [email protected]
08f0: 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a  ourceforge.net>.
0900: 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65  ..* win/makefile
0910: 2e 76 63 3a 20 20 41 64 64 65 64 20 74 68 65 20  .vc:  Added the 
0920: 4d 53 56 43 20 62 75 69 6c 64 20 73 79 73 74 65  MSVC build syste
0930: 6d 20 28 66 72 6f 6d 20 74 68 65 20 54 63 6c 0a  m (from the Tcl.
0940: 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63 3a  .* win/rules.vc:
0950: 20 20 20 20 20 73 61 6d 70 6c 65 65 78 74 65 6e       sampleexten
0960: 73 69 6f 6e 29 2e 0a 09 2a 20 77 69 6e 2f 6e 6d  sion)...* win/nm
0970: 61 6b 65 68 6c 70 2e 63 3a 0a 09 2a 20 77 69 6e  akehlp.c:..* win
0980: 2f 74 6c 73 2e 72 63 20 20 20 20 20 20 20 20 41  /tls.rc        A
0990: 64 64 65 64 20 57 69 6e 64 6f 77 73 20 72 65 73  dded Windows res
09a0: 6f 75 72 63 65 20 66 69 6c 65 2e 0a 09 0a 09 2a  ource file.....*
09b0: 20 74 6c 73 2e 74 63 6c 3a 20 20 20 20 20 20 20   tls.tcl:       
09c0: 20 20 20 46 72 6f 6d 20 70 61 74 63 68 20 23 39     From patch #9
09d0: 34 38 31 35 35 2c 20 61 64 64 65 64 20 73 75 70  48155, added sup
09e0: 70 6f 72 74 20 66 6f 72 0a 09 20 20 20 20 20 20  port for..      
09f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6c                al
0a00: 74 65 72 6e 61 74 65 20 73 6f 63 6b 65 74 20 63  ternate socket c
0a10: 6f 6d 6d 61 6e 64 73 2e 0a 09 2a 20 74 6c 73 2e  ommands...* tls.
0a20: 63 3a 20 20 20 20 20 20 20 20 20 20 20 20 51 75  c:            Qu
0a30: 69 65 74 65 6e 20 73 6f 6d 65 20 4d 53 56 43 20  ieten some MSVC 
0a40: 77 61 72 6e 69 6e 67 73 2e 20 50 72 65 66 65 72  warnings. Prefer
0a50: 20 63 6b 61 6c 6c 6f 63 0a 09 20 20 20 20 20 20   ckalloc..      
0a60: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 76                ov
0a70: 65 72 20 54 63 6c 5f 41 6c 6c 6f 63 2e 20 28 44  er Tcl_Alloc. (D
0a80: 61 76 69 64 20 47 72 61 76 65 72 61 75 78 29 2e  avid Graveraux).
0a90: 0a 0a 32 30 30 34 2d 30 36 2d 32 39 20 20 50 61  ..2004-06-29  Pa
0aa0: 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68  t Thoyts  <patth
0ab0: 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63  [email protected]
0ac0: 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20  eforge.net>...* 
0ad0: 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20 20 20  tls.c:          
0ae0: 20 20 46 69 78 75 70 20 74 6f 20 62 75 69 6c 64    Fixup to build
0af0: 20 61 67 61 69 6e 73 74 20 74 63 6c 20 38 2e 33   against tcl 8.3
0b00: 2e 33 2e 20 48 61 6e 64 6c 65 0a 09 2a 20 74 6c  .3. Handle..* tl
0b10: 73 49 4f 2e 63 3a 20 20 20 20 20 20 20 20 20 20  sIO.c:          
0b20: 38 2e 34 20 63 6f 6e 73 74 69 66 69 63 61 74 69  8.4 constificati
0b30: 6f 6e 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68  on....* tlsInt.h
0b40: 3a 20 20 20 20 20 20 20 20 20 41 64 64 65 64 20  :         Added 
0b50: 68 65 61 64 65 72 73 20 72 65 71 75 69 72 65 64  headers required
0b60: 20 77 69 74 68 20 4d 53 56 43 20 6f 6e 20 57 69   with MSVC on Wi
0b70: 6e 33 32 2e 0a 09 2a 20 74 6c 73 58 35 30 39 2e  n32...* tlsX509.
0b80: 63 3a 20 20 20 20 20 20 20 20 75 6e 64 65 66 20  c:        undef 
0b90: 6d 69 6e 20 61 6e 64 20 6d 61 78 20 69 66 20 64  min and max if d
0ba0: 65 66 69 6e 65 64 20 28 77 69 6e 33 32 29 2e 0a  efined (win32)..
0bb0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a  ..* Makefile.in:
0bc0: 20 20 20 20 20 20 46 69 78 65 64 20 74 6f 20 62        Fixed to b
0bd0: 75 69 6c 64 20 6f 6e 20 77 69 6e 33 32 20 75 73  uild on win32 us
0be0: 69 6e 67 20 6d 73 79 73 20 77 69 74 68 0a 09 2a  ing msys with..*
0bf0: 20 61 63 6c 6f 63 61 6c 2e 6d 34 3a 20 20 20 20   aclocal.m4:    
0c00: 20 20 20 4d 53 56 43 2e 20 41 6c 73 6f 20 66 69     MSVC. Also fi
0c10: 78 65 64 20 74 68 65 20 74 65 73 74 20 74 61 72  xed the test tar
0c20: 67 65 74 2e 0a 09 2a 20 63 6f 6e 66 69 67 75 72  get...* configur
0c30: 65 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69 67 75  e.in:..* configu
0c40: 72 65 3a 20 20 20 20 20 20 20 20 52 65 67 65 6e  re:        Regen
0c50: 65 72 61 74 65 64 2e 0a 09 2a 20 74 63 6c 63 6f  erated...* tclco
0c60: 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 55 70 64  nfig/tcl.m4: Upd
0c70: 61 74 65 64 20 74 6f 20 6d 6f 73 74 20 72 65 63  ated to most rec
0c80: 65 6e 74 20 76 65 72 73 69 6f 6e 2e 0a 0a 32 30  ent version...20
0c90: 30 34 2d 30 33 2d 32 33 20 20 44 61 6e 20 52 61  04-03-23  Dan Ra
0ca0: 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40  zzell <research@
0cb0: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e  starfishsystems.
0cc0: 63 61 3e 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a  ca>..* tls.c:..*
0cd0: 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c   tlsBIO.c:..* tl
0ce0: 73 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 6e 74  sIO.c:..* tlsInt
0cf0: 2e 68 3a 09 46 69 78 65 64 20 74 79 70 65 20 6d  .h:.Fixed type m
0d00: 61 74 63 68 20 77 61 72 6e 69 6e 67 73 2e 0a 0a  atch warnings...
0d10: 32 30 30 34 2d 30 33 2d 31 39 20 20 4a 65 66 66  2004-03-19  Jeff
0d20: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41   Hobbs  <jeffh@A
0d30: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a  ctiveState.com>.
0d40: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49  ..* tls.c (Tls_I
0d50: 6e 69 74 29 3a 20 20 20 72 65 70 6c 61 63 65 64  nit):   replaced
0d60: 20 6f 6c 64 65 72 20 54 45 41 20 63 6f 6e 66 69   older TEA confi
0d70: 67 20 77 69 74 68 20 6e 65 77 65 72 0a 09 2a 20  g with newer..* 
0d80: 63 6f 6e 66 69 67 2f 2a 20 28 72 65 6d 6f 76 65  config/* (remove
0d90: 64 29 3a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e  d):..* pkgIndex.
0da0: 74 63 6c 2e 69 6e 2c 20 73 74 72 6e 63 61 73 65  tcl.in, strncase
0db0: 63 6d 70 2e 63 20 28 72 65 6d 6f 76 65 64 29 3a  cmp.c (removed):
0dc0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c  ..* Makefile.in,
0dd0: 20 61 63 6c 6f 63 61 6c 2e 6d 34 2c 20 63 6f 6e   aclocal.m4, con
0de0: 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 72  figure, configur
0df0: 65 2e 69 6e 3a 0a 09 2a 20 74 63 6c 63 6f 6e 66  e.in:..* tclconf
0e00: 69 67 2f 52 45 41 44 4d 45 2e 74 78 74 2c 20 74  ig/README.txt, t
0e10: 63 6c 63 6f 6e 66 69 67 2f 69 6e 73 74 61 6c 6c  clconfig/install
0e20: 2d 73 68 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74  -sh, tclconfig/t
0e30: 63 6c 2e 6d 34 3a 0a 0a 32 30 30 34 2d 30 33 2d  cl.m4:..2004-03-
0e40: 31 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20  17  Dan Razzell 
0e50: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69  <research@starfi
0e60: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09  shsystems.ca>...
0e70: 2a 20 74 6c 73 58 35 30 39 2e 63 3a 09 41 64 64  * tlsX509.c:.Add
0e80: 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 6e   support for lon
0e90: 67 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 72 73  g serial numbers
0ea0: 20 70 65 72 20 52 46 43 20 33 32 38 30 2e 0a 09   per RFC 3280...
0eb0: 09 09 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77 20  ..Format is now 
0ec0: 68 65 78 61 64 65 63 69 6d 61 6c 2e 20 0a 09 09  hexadecimal. ...
0ed0: 09 5b 52 65 71 75 65 73 74 20 23 39 31 35 33 31  .[Request #91531
0ee0: 33 5d 0a 09 09 09 43 6f 72 72 65 63 74 6c 79 20  3]....Correctly 
0ef0: 63 6f 6e 76 65 72 74 20 63 65 72 74 69 66 69 63  convert certific
0f00: 61 74 65 20 44 69 73 74 69 6e 67 75 69 73 68 65  ate Distinguishe
0f10: 64 20 4e 61 6d 65 73 0a 09 09 09 74 6f 20 54 63  d Names....to Tc
0f20: 6c 20 73 74 72 69 6e 67 20 72 65 70 72 65 73 65  l string represe
0f30: 6e 74 61 74 69 6f 6e 2e 20 20 45 6c 69 6d 69 6e  ntation.  Elimin
0f40: 61 74 65 73 20 75 73 65 20 6f 66 0a 09 09 09 64  ates use of....d
0f50: 65 70 72 65 63 61 74 65 64 20 4f 70 65 6e 53 53  eprecated OpenSS
0f60: 4c 20 66 75 6e 63 74 69 6f 6e 2e 20 20 46 6f 72  L function.  For
0f70: 6d 61 74 20 69 73 20 6e 6f 77 20 63 6f 6d 70 6c  mat is now compl
0f80: 69 61 6e 74 0a 09 09 09 77 69 74 68 20 52 46 43  iant....with RFC
0f90: 20 32 32 35 33 2e 20 20 5b 52 65 71 75 65 73 74   2253.  [Request
0fa0: 20 23 39 31 35 33 31 35 5d 0a 0a 32 30 30 34 2d   #915315]..2004-
0fb0: 30 32 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a 65  02-17  Dan Razze
0fc0: 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61  ll <research@sta
0fd0: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e  rfishsystems.ca>
0fe0: 0a 0a 09 54 4c 53 20 31 2e 35 2e 30 20 52 45 4c  ...TLS 1.5.0 REL
0ff0: 45 41 53 45 0a 0a 32 30 30 34 2d 30 32 2d 31 32  EASE..2004-02-12
1000: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72    Dan Razzell.<r
1010: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68  esearch@starfish
1020: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20  systems.ca>...* 
1030: 74 6c 73 2e 63 3a 09 41 6c 6c 6f 77 20 76 65 72  tls.c:.Allow ver
1040: 69 66 79 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20  ify callback to 
1050: 72 65 74 75 72 6e 20 65 6d 70 74 79 20 72 65 73  return empty res
1060: 75 6c 74 2e 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a  ult...* tls.htm:
1070: 09 44 6f 63 75 6d 65 6e 74 20 63 61 6c 6c 62 61  .Document callba
1080: 63 6b 20 62 65 68 61 76 69 6f 72 73 2e 0a 0a 32  ck behaviors...2
1090: 30 30 34 2d 30 32 2d 31 31 20 20 44 61 6e 20 52  004-02-11  Dan R
10a0: 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68  azzell.<research
10b0: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73  @starfishsystems
10c0: 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  .ca>...* tests/t
10d0: 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 72 65  lsIO.test:..* re
10e0: 6d 6f 74 65 2e 74 63 6c 3a 09 43 6f 6d 70 6c 65  mote.tcl:.Comple
10f0: 74 65 20 70 72 69 76 61 74 65 20 6b 65 79 20 6e  te private key n
1100: 61 6d 65 20 63 68 61 6e 67 65 73 20 66 72 6f 6d  ame changes from
1110: 20 32 30 30 31 2d 30 36 2d 32 31 2e 0a 0a 32 30   2001-06-21...20
1120: 30 34 2d 30 32 2d 30 33 20 20 44 61 6e 20 52 61  04-02-03  Dan Ra
1130: 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40  zzell <research@
1140: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e  starfishsystems.
1150: 63 61 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65  ca>...* Makefile
1160: 2e 69 6e 3a 09 52 65 6d 6f 76 65 64 20 63 69 72  .in:.Removed cir
1170: 63 75 6c 61 72 20 64 65 70 65 6e 64 65 6e 63 79  cular dependency
1180: 2e 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 4d  ...* tlsInt.h:.M
1190: 61 6b 65 20 66 75 6e 63 74 69 6f 6e 20 64 65 63  ake function dec
11a0: 6c 61 72 61 74 69 6f 6e 73 20 65 78 70 6c 69 63  larations explic
11b0: 69 74 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09 46 69  it...* tls.c:.Fi
11c0: 78 20 74 79 70 65 20 6d 61 74 63 68 20 61 6e 64  x type match and
11d0: 20 75 6e 75 73 65 64 20 76 61 72 69 61 62 6c 65   unused variable
11e0: 20 77 61 72 6e 69 6e 67 73 2e 0a 09 2a 20 74 6c   warnings...* tl
11f0: 73 42 49 4f 2e 63 3a 09 46 69 78 20 74 79 70 65  sBIO.c:.Fix type
1200: 20 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 2e 0a   match warning..
1210: 0a 32 30 30 33 2d 31 32 2d 31 35 20 20 44 61 6e  .2003-12-15  Dan
1220: 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72   Razzell.<resear
1230: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65  ch@starfishsyste
1240: 6d 73 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67 49 6e  ms.ca>...* pkgIn
1250: 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 74  dex.tcl.in:..* t
1260: 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 65 73 74 73  ls.htm:..* tests
1270: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64  /tlsIO.test: upd
1280: 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20  ated version to 
1290: 31 2e 35 2e 0a 0a 32 30 30 33 2d 31 30 2d 30 37  1.5...2003-10-07
12a0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72    Dan Razzell.<r
12b0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68  esearch@starfish
12c0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20  systems.ca>...* 
12d0: 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65  tests/ciphers.te
12e0: 73 74 3a 20 75 70 64 61 74 65 64 20 6c 69 73 74  st: updated list
12f0: 20 6f 66 20 74 65 73 74 65 64 20 63 69 70 68 65   of tested ciphe
1300: 72 73 20 74 6f 20 63 6f 72 72 65 73 70 6f 6e 64  rs to correspond
1310: 0a 09 2a 20 77 69 74 68 20 74 68 6f 73 65 20 61  ..* with those a
1320: 76 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20 4f 70  vailable from Op
1330: 65 6e 53 53 4c 2e 20 5b 52 65 71 75 65 73 74 20  enSSL. [Request 
1340: 23 38 31 31 39 38 31 5d 0a 0a 32 30 30 33 2d 31  #811981]..2003-1
1350: 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c  0-07  Dan Razzel
1360: 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72  l <research@star
1370: 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a  fishsystems.ca>.
1380: 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64  ..* tls.c: added
1390: 20 43 4f 4e 53 54 20 77 69 74 68 20 69 6e 74 65   CONST with inte
13a0: 6e 74 20 73 69 6d 69 6c 61 72 20 74 6f 20 74 68  nt similar to th
13b0: 6f 73 65 20 66 72 6f 6d 20 32 30 30 32 2d 30 32  ose from 2002-02
13c0: 2d 30 34 2e 0a 09 5b 52 65 71 75 65 73 74 20 23  -04...[Request #
13d0: 38 31 31 39 31 31 5d 0a 0a 32 30 30 33 2d 30 37  811911]..2003-07
13e0: 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -07  Jeff Hobbs 
13f0: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
1400: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
1410: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20  .c (Tls_Init):  
1420: 20 61 64 64 65 64 20 74 6c 73 3a 3a 6d 69 73 63   added tls::misc
1430: 20 63 6f 6d 6d 61 6e 64 20 70 72 6f 76 69 64 65   command provide
1440: 64 20 62 79 0a 09 2a 20 74 6c 73 58 35 30 39 2e  d by..* tlsX509.
1450: 63 3a 20 20 20 20 20 20 20 20 20 20 57 6f 6a 63  c:          Wojc
1460: 69 65 63 68 20 4b 6f 63 6a 61 6e 20 28 77 6f 6a  iech Kocjan (woj
1470: 63 69 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f 72 67  ciech kocjan.org
1480: 29 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65  )..* tests/keyte
1490: 73 74 31 2e 74 63 6c 3a 20 74 6f 20 65 78 70 6f  st1.tcl: to expo
14a0: 73 65 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65 76 65  se more low-leve
14b0: 6c 20 53 53 4c 20 63 6f 6d 6d 61 6e 64 73 0a 09  l SSL commands..
14c0: 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73 74 32  * tests/keytest2
14d0: 2e 74 63 6c 3a 0a 0a 32 30 30 33 2d 30 35 2d 31  .tcl:..2003-05-1
14e0: 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c  5  Dan Razzell.<
14f0: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73  research@starfis
1500: 68 73 79 73 74 65 6d 73 2e 63 61 3e 20 0a 0a 09  hsystems.ca> ...
1510: 2a 20 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20 74 6c  * tls.tcl:..* tl
1520: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63  sInt.h:..* tls.c
1530: 3a 20 61 64 64 20 73 75 70 70 6f 72 74 20 66 6f  : add support fo
1540: 72 20 62 69 6e 64 69 6e 67 20 61 20 70 61 73 73  r binding a pass
1550: 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 20 74 6f  word callback to
1560: 20 74 68 65 20 73 6f 63 6b 65 74 2e 0a 09 4e 6f   the socket...No
1570: 77 20 65 61 63 68 20 73 6f 63 6b 65 74 20 63 61  w each socket ca
1580: 6e 20 68 61 76 65 20 69 74 73 20 6f 77 6e 20 63  n have its own c
1590: 6f 6d 6d 61 6e 64 20 61 6e 64 20 70 61 73 73 77  ommand and passw
15a0: 6f 72 64 20 63 61 6c 6c 62 61 63 6b 73 20 69 6e  ord callbacks in
15b0: 73 74 65 61 64 0a 09 6f 66 20 62 65 69 6e 67 20  stead..of being 
15c0: 66 6f 72 63 65 64 20 74 6f 20 68 61 76 65 20 61  forced to have a
15d0: 6c 6c 20 70 61 73 73 77 6f 72 64 20 6d 61 6e 61  ll password mana
15e0: 67 65 6d 65 6e 74 20 70 61 73 73 20 74 68 72 6f  gement pass thro
15f0: 75 67 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09 70 72  ugh a common..pr
1600: 6f 63 65 64 75 72 65 2e 20 20 54 68 65 20 63 6f  ocedure.  The co
1610: 6d 6d 6f 6e 20 70 61 73 73 77 6f 72 64 20 70 72  mmon password pr
1620: 6f 63 65 64 75 72 65 20 69 73 20 72 65 74 61 69  ocedure is retai
1630: 6e 65 64 20 66 6f 72 20 63 6f 6d 70 61 74 69 62  ned for compatib
1640: 69 6c 69 74 79 0a 09 62 75 74 20 69 74 73 20 75  ility..but its u
1650: 73 65 20 73 68 6f 75 6c 64 20 62 65 20 44 45 50  se should be DEP
1660: 52 45 43 41 54 45 44 2e 0a 09 41 64 64 20 76 65  RECATED...Add ve
1670: 72 73 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20 74 6f  rsion command to
1680: 20 72 65 74 75 72 6e 20 4f 70 65 6e 53 53 4c 20   return OpenSSL 
1690: 76 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 2e 0a  version string..
16a0: 09 52 65 6d 6f 76 65 20 75 6e 73 74 61 62 6c 65  .Remove unstable
16b0: 20 77 6f 72 6b 61 72 6f 75 6e 64 73 20 6e 65 65   workarounds nee
16c0: 64 65 64 20 66 6f 72 20 76 65 72 69 66 79 20 69  ded for verify i
16d0: 6e 20 6f 62 73 6f 6c 65 74 65 20 76 65 72 73 69  n obsolete versi
16e0: 6f 6e 73 20 6f 66 0a 09 4f 70 65 6e 53 53 4c 2e  ons of..OpenSSL.
16f0: 0a 09 46 69 78 20 6d 65 6d 6f 72 79 20 6c 65 61  ..Fix memory lea
1700: 6b 2e 20 5b 52 65 71 75 65 73 74 20 23 36 34 30  k. [Request #640
1710: 36 36 30 5d 0a 09 4d 6f 72 65 20 63 61 73 74 73  660]..More casts
1720: 20 74 6f 20 65 6c 69 6d 69 6e 61 74 65 20 63 6f   to eliminate co
1730: 6d 70 69 6c 65 72 20 77 61 72 6e 69 6e 67 73 2e  mpiler warnings.
1740: 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 64 6f  ...* tls.htm: do
1750: 63 75 6d 65 6e 74 20 70 61 73 73 77 6f 72 64 20  cument password 
1760: 63 61 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72 72 65  callback...Corre
1770: 63 74 20 74 65 63 68 6e 69 63 61 6c 20 61 6e 64  ct technical and
1780: 20 74 79 70 6f 67 72 61 70 68 69 63 20 65 72 72   typographic err
1790: 6f 72 73 2e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e  ors....* README.
17a0: 74 78 74 3a 20 69 64 65 6e 74 69 66 79 20 76 65  txt: identify ve
17b0: 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53  rsions of OpenSS
17c0: 4c 20 77 68 69 63 68 20 66 69 78 20 6b 6e 6f 77  L which fix know
17d0: 6e 20 70 72 6f 62 6c 65 6d 73 2e 0a 09 47 65 6e  n problems...Gen
17e0: 65 72 61 6c 20 77 61 72 6e 69 6e 67 20 6f 66 20  eral warning of 
17f0: 73 65 63 75 72 69 74 79 20 70 72 6f 62 6c 65 6d  security problem
1800: 73 20 69 6e 20 6f 6c 64 65 72 20 76 65 72 73 69  s in older versi
1810: 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c 2e 0a  ons of OpenSSL..
1820: 0a 32 30 30 32 2d 30 32 2d 30 34 20 20 4a 65 66  .2002-02-04  Jef
1830: 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40  f Hobbs  <jeffh@
1840: 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e  ActiveState.com>
1850: 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a  ...* tls.htm:..*
1860: 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 73 75   tls.c: added su
1870: 70 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61 6c 20  pport for local 
1880: 63 65 72 74 69 66 69 63 61 74 65 20 73 74 61 74  certificate stat
1890: 75 73 20 63 68 65 63 6b 2c 20 61 73 20 77 65 6c  us check, as wel
18a0: 6c 0a 09 61 73 20 72 65 74 75 72 6e 69 6e 67 20  l..as returning 
18b0: 74 68 65 20 23 20 6f 66 20 62 69 74 73 20 69 6e  the # of bits in
18c0: 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 79   the session key
18d0: 2e 20 5b 50 61 74 63 68 20 23 35 30 35 36 39 38  . [Patch #505698
18e0: 5d 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74 6c 73  ] (rose)...* tls
18f0: 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a  .c:..* tlsIO.c:.
1900: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61 64 64  .* tlsBIO.c: add
1910: 65 64 20 43 4f 4e 53 54 73 20 74 6f 20 73 61 74  ed CONSTs to sat
1920: 69 73 66 79 20 54 63 6c 20 38 2e 34 20 73 6f 75  isfy Tcl 8.4 sou
1930: 72 63 65 73 2e 20 20 54 68 69 73 20 6d 61 79 0a  rces.  This may.
1940: 09 67 69 76 65 20 77 61 72 6e 69 6e 67 73 20 77  .give warnings w
1950: 68 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61 67 61  hen compiled aga
1960: 69 6e 73 74 20 38 2e 33 2c 20 62 75 74 20 74 68  inst 8.3, but th
1970: 65 79 20 63 61 6e 20 62 65 20 69 67 6e 6f 72 65  ey can be ignore
1980: 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d  d....* tests/sim
1990: 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a 09  pleClient.tcl:..
19a0: 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65  * tests/simpleSe
19b0: 72 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e 74 20  rver.tcl: point 
19c0: 74 6f 20 75 70 64 61 74 65 64 20 63 6c 69 65 6e  to updated clien
19d0: 74 2f 73 65 72 76 65 72 20 6b 65 79 20 66 69 6c  t/server key fil
19e0: 65 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c  es....* tests/tl
19f0: 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 65 73  sIO.test:..* tes
1a00: 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a  ts/ciphers.test:
1a10: 20 75 70 64 61 74 65 64 20 74 6f 20 6c 6f 61 64   updated to load
1a20: 20 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c 64 20   tls from build 
1a30: 64 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  dir....* Makefil
1a40: 65 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20 73 74  e.in: removed st
1a50: 72 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d 20 64  rncasecmp from d
1a60: 65 66 61 75 6c 74 20 6f 62 6a 65 63 74 20 73 65  efault object se
1a70: 74 2e 20 20 54 68 69 73 0a 09 69 73 20 6f 6e 6c  t.  This..is onl
1a80: 79 20 6e 65 65 64 65 64 20 6f 6e 20 74 68 65 20  y needed on the 
1a90: 4d 61 63 2c 20 61 6e 64 20 54 63 6c 20 73 74 75  Mac, and Tcl stu
1aa0: 62 73 20 70 72 6f 76 69 64 65 73 20 69 74 2e 0a  bs provides it..
1ab0: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 72  ..* configure: r
1ac0: 65 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f 6e 66  egen'ed...* conf
1ad0: 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65  igure.in: update
1ae0: 64 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72 20 6e  d to 1.5.0 for n
1af0: 65 78 74 20 72 65 6c 65 61 73 65 2e 0a 09 43 68  ext release...Ch
1b00: 61 6e 67 65 64 20 64 65 66 61 75 6c 74 20 6f 70  anged default op
1b10: 65 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e 20 74  enssl location t
1b20: 6f 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 73 6c  o /usr/local/ssl
1b30: 20 28 74 68 69 73 20 69 73 20 77 68 65 72 65 0a   (this is where.
1b40: 09 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36 63 20  .openssl 0.9.6c 
1b50: 69 6e 73 74 61 6c 6c 73 20 62 79 20 64 65 66 61  installs by defa
1b60: 75 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64 20 74  ult)...Changed t
1b70: 6f 20 75 73 65 20 70 75 62 6c 69 63 20 54 63 6c  o use public Tcl
1b80: 20 68 65 61 64 65 72 73 20 28 70 72 69 76 61 74   headers (privat
1b90: 65 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e 0a 0a  e not needed)...
1ba0: 32 30 30 31 2d 30 36 2d 32 31 20 20 4a 65 66 66  2001-06-21  Jeff
1bb0: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41   Hobbs  <jeffh@A
1bc0: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a  ctiveState.com>.
1bd0: 0a 09 54 4c 53 20 31 2e 34 2e 31 20 52 45 4c 45  ..TLS 1.4.1 RELE
1be0: 41 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72  ASE...* configur
1bf0: 65 3a 20 61 64 64 65 64 20 63 6f 6e 66 69 67 75  e: added configu
1c00: 72 65 20 74 6f 20 43 56 53 0a 09 2a 20 63 6f 6e  re to CVS..* con
1c10: 66 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 65 64  figure.in: moved
1c20: 20 74 6f 20 70 61 74 63 68 6c 65 76 65 6c 20 31   to patchlevel 1
1c30: 2e 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  .4.1...* Makefil
1c40: 65 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65 64 20  e.in: corrected 
1c50: 27 64 69 73 74 27 20 74 61 72 67 65 74 0a 0a 09  'dist' target...
1c60: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 66 69  * tests/certs/fi
1c70: 6c 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 74 73  le.srl:..* tests
1c80: 2f 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a 0a 09  /certs/ca.pem:..
1c90: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c  * tests/certs/cl
1ca0: 69 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 65 73  ient.key:..* tes
1cb0: 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e  ts/certs/client.
1cc0: 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65  pem:..* tests/ce
1cd0: 72 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71 3a 0a  rts/client.req:.
1ce0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 70  .* tests/certs/p
1cf0: 72 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a 20 74  rivkey.pem:..* t
1d00: 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65  ests/certs/serve
1d10: 72 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f  r.key:..* tests/
1d20: 63 65 72 74 73 2f 73 65 72 76 65 72 2e 70 65 6d  certs/server.pem
1d30: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73  :..* tests/certs
1d40: 2f 73 65 72 76 65 72 2e 72 65 71 3a 0a 09 2a 20  /server.req:..* 
1d50: 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 63 65  tests/certs/cace
1d60: 72 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64  rt.pem: replaced
1d70: 20 62 79 20 6e 65 77 20 63 61 2e 70 65 6d 0a 09   by new ca.pem..
1d80: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 6b  * tests/certs/sk
1d90: 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64  ey.pem: replaced
1da0: 20 62 79 20 6e 65 77 20 73 65 72 76 65 72 2e 6b   by new server.k
1db0: 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  ey..* tests/cert
1dc0: 73 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c  s/ckey.pem: repl
1dd0: 61 63 65 64 20 62 79 20 6e 65 77 20 63 6c 69 65  aced by new clie
1de0: 6e 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f  nt.key..* tests/
1df0: 63 65 72 74 73 2f 52 45 41 44 4d 45 2e 74 78 74  certs/README.txt
1e00: 3a 20 6e 65 77 20 73 65 74 20 6f 66 20 74 65 73  : new set of tes
1e10: 74 20 63 65 72 74 69 66 69 63 61 74 65 73 20 77  t certificates w
1e20: 69 74 68 20 73 6f 6d 65 0a 09 52 45 41 44 4d 45  ith some..README
1e30: 20 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72 20 67   info on their g
1e40: 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74  eneration....* t
1e50: 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73  ests/ciphers.tes
1e60: 74 3a 20 75 70 64 61 74 65 64 20 63 69 70 68 65  t: updated ciphe
1e70: 72 73 20 65 78 70 65 63 74 65 64 20 77 69 74 68  rs expected with
1e80: 20 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e 73 73   default..openss
1e90: 6c 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 65 73  l build....* tes
1ea0: 74 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a 20 75  ts/tclIO.test: u
1eb0: 70 64 61 74 65 64 20 74 6f 20 75 73 65 20 6e 65  pdated to use ne
1ec0: 77 20 6e 61 6d 65 73 20 66 6f 72 20 63 65 72 74  w names for cert
1ed0: 73 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d 30 33  s/keys...2001-03
1ee0: 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -14  Jeff Hobbs 
1ef0: 20 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74 2e 61   <[email protected]
1f00: 63 74 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e 0a  ctivestate.com>.
1f10: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49  ..* tls.c (Tls_I
1f20: 6e 69 74 29 3a 20 61 64 64 20 64 6f 2f 77 68 69  nit): add do/whi
1f30: 6c 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20 6e 75  le for random nu
1f40: 6d 62 65 72 20 69 6e 69 74 69 61 6c 69 7a 61 74  mber initializat
1f50: 69 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 72 6f  ion..to work aro
1f60: 75 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20 71 75  und some OSes qu
1f70: 69 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e 42 69  irks.  (Ralph.Bi
1f80: 6c 6c 65 73 40 74 65 6c 74 65 63 68 2e 63 6f 6d  [email protected]
1f90: 2e 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d 30 37  .au)..2000-09-07
1fa0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
1fb0: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  [email protected]
1fc0: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20  om>...* tlsIO.c 
1fd0: 28 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70 65  (Tls_ChannelType
1fe0: 29 3a 20 73 65 74 20 74 79 70 65 4e 61 6d 65 20  ): set typeName 
1ff0: 66 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e 65 6c  field of channel
2000: 20 74 79 70 65 20 74 6f 0a 09 22 74 6c 73 22 20   type to.."tls" 
2010: 28 74 68 69 73 20 67 6f 74 20 6c 6f 73 74 20 69  (this got lost i
2020: 6e 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61 6d 69  n move to dynami
2030: 63 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61 74  c version compat
2040: 61 62 69 6c 69 74 79 0a 09 63 68 65 63 6b 69 6e  ability..checkin
2050: 67 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 33 20  g)...2000-08-23 
2060: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
2070: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  [email protected]
2080: 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52 45 4c  m>...TLS 1.4 REL
2090: 45 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 66 69  EASED...* Makefi
20a0: 6c 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 63 72  le.in (dist): cr
20b0: 65 61 74 65 20 64 69 73 74 20 74 61 72 67 65 74  eate dist target
20c0: 20 66 6f 72 20 61 72 63 68 69 76 65 20 64 69 73   for archive dis
20d0: 74 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a 20 74  tributions...* t
20e0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 20  ests/tlsIO.test 
20f0: 28 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 64 64  (tlsIO-8.1): add
2100: 65 64 20 61 20 64 65 6c 61 79 20 6f 6e 20 74 68  ed a delay on th
2110: 65 20 61 63 63 65 70 74 20 63 6c 6f 73 65 0a 09  e accept close..
2120: 74 6f 20 6d 61 6b 65 20 74 68 65 20 74 65 73 74  to make the test
2130: 20 77 6f 72 6b 20 77 69 74 68 20 4f 70 65 6e 53   work with OpenS
2140: 53 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20 28 64  SL on Windows (d
2150: 6f 65 73 6e 27 74 20 61 66 66 65 63 74 0a 09 6f  oesn't affect..o
2160: 74 68 65 72 20 62 75 69 6c 64 73 29 2e 0a 0a 09  ther builds)....
2170: 2a 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64 61 74  * tls.htm: updat
2180: 65 64 20 77 69 74 68 20 6e 6f 74 65 73 20 66 6f  ed with notes fo
2190: 72 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 38 2d  r 1.4...2000-08-
21a0: 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  21  Jeff Hobbs  
21b0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
21c0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f  .com>...* tests/
21d0: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 71 75  tlsIO.test: requ
21e0: 69 72 65 20 61 74 20 6c 65 61 73 74 20 74 6c 73  ire at least tls
21f0: 31 2e 34 20 69 6e 20 74 65 73 74 20 73 75 69 74  1.4 in test suit
2200: 65 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38 20 20  e...2000-08-18  
2210: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
2220: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  [email protected]
2230: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73  >...* tls.c (Tls
2240: 5f 49 6e 69 74 29 3a 20 61 64 64 65 64 20 63 61  _Init): added ca
2250: 6c 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65 64 20  ll to RAND_seed 
2260: 74 6f 20 73 65 65 64 20 74 68 65 20 53 53 4c 20  to seed the SSL 
2270: 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 20 67  random..number g
2280: 65 6e 65 72 61 74 6f 72 2e 20 20 57 69 74 68 6f  enerator.  Witho
2290: 75 74 20 74 68 69 73 2c 20 4f 70 65 6e 53 53 4c  ut this, OpenSSL
22a0: 20 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c 20 61   0.9.5 chokes, a
22b0: 6e 64 20 69 6e 20 61 6e 79 0a 09 63 61 73 65 20  nd in any..case 
22c0: 69 74 20 69 73 20 61 20 62 69 67 20 73 65 63 75  it is a big secu
22d0: 72 69 74 79 20 68 6f 6c 65 20 74 6f 20 64 6f 20  rity hole to do 
22e0: 77 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09 2a 20  without it....* 
22f0: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28 4f 50  configure.in (OP
2300: 45 4e 53 53 4c 29 3a 20 61 64 64 65 64 20 4e 4f  ENSSL): added NO
2310: 5f 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52 43 35  _IDEA and NO_RC5
2320: 20 64 65 66 69 6e 65 73 20 62 79 0a 09 64 65 66   defines by..def
2330: 61 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69 6c  ault when compil
2340: 69 6e 67 20 77 69 74 68 20 4f 70 65 6e 53 53 4c  ing with OpenSSL
2350: 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20  ....* tlsInt.h: 
2360: 61 64 64 65 64 20 65 72 72 2e 68 20 69 6e 63 6c  added err.h incl
2370: 75 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63  ude...* tlsBIO.c
2380: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f  :..* tlsIO.c: co
2390: 72 72 65 63 74 65 64 20 70 65 64 61 6e 74 69 63  rrected pedantic
23a0: 20 63 61 73 74 20 65 72 72 6f 72 73 2e 0a 0a 32   cast errors...2
23b0: 30 30 30 2d 30 38 2d 31 36 20 20 4a 65 66 66 20  000-08-16  Jeff 
23c0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63  Hobbs  <hobbs@sc
23d0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a  riptics.com>...*
23e0: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74   tests/ciphers.t
23f0: 65 73 74 3a 20 69 6d 70 72 6f 76 65 64 20 61 62  est: improved ab
2400: 69 6c 69 74 79 20 74 6f 20 63 68 61 6e 67 65 20  ility to change 
2410: 63 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65 74 74  constraint..sett
2420: 69 6e 67 20 66 6f 72 20 77 68 65 74 68 65 72 20  ing for whether 
2430: 75 73 65 72 20 63 6f 6d 70 69 6c 65 64 20 61 67  user compiled ag
2440: 61 69 6e 73 74 20 52 53 41 20 6f 72 20 4f 70 65  ainst RSA or Ope
2450: 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a 20 74  nSSL libs....* t
2460: 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a  ls.c (Tls_Init):
2470: 20 63 6f 72 72 65 63 74 65 64 20 69 6e 74 65 72   corrected inter
2480: 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 76 65 72  pretation of ver
2490: 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 70 61  sion number..(pa
24a0: 74 63 68 6c 65 76 65 6c 20 61 6e 64 20 72 65 6c  tchlevel and rel
24b0: 65 61 73 65 2f 73 65 72 69 61 6c 20 77 65 72 65  ease/serial were
24c0: 20 73 77 61 70 70 65 64 29 2e 0a 0a 32 30 30 30   swapped)...2000
24d0: 2d 30 38 2d 31 35 20 20 4a 65 66 66 20 48 6f 62  -08-15  Jeff Hob
24e0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
24f0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 52 45  tics.com>...* RE
2500: 41 44 4d 45 2e 74 78 74 3a 20 61 64 64 65 64 20  ADME.txt: added 
2510: 6e 6f 74 65 73 20 61 62 6f 75 74 20 6e 65 65 64  notes about need
2520: 20 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b 2e 0a   to use 8.2.0+..
2530: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a  ..* tlsInt.h:..*
2540: 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f   tls.c:..* tlsIO
2550: 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 73 74  .c: corrected st
2560: 72 75 63 74 75 72 65 20 69 6e 69 74 69 61 6c 69  ructure initiali
2570: 7a 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b 20 77  zation to work w
2580: 68 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 20 77  hen..compiling w
2590: 69 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20 63 6f  ith 8.2.  Now co
25a0: 6d 70 69 6c 65 73 20 77 69 74 68 20 38 2e 32 2b  mpiles with 8.2+
25b0: 20 61 6e 64 20 74 65 73 74 65 64 20 74 6f 20 77   and tested to w
25c0: 6f 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b 20 61  ork..with 8.2+ a
25d0: 6e 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 61  nd dynamically a
25e0: 64 6a 75 73 74 20 74 6f 20 74 68 65 20 76 65 72  djust to the ver
25f0: 73 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74 20 77  sion of Tcl it w
2600: 61 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74 6f 2e  as..loaded into.
2610: 20 20 54 4c 53 20 77 69 6c 6c 20 66 61 69 6c 20    TLS will fail 
2620: 74 68 65 20 74 65 73 74 20 73 75 69 74 65 20 77  the test suite w
2630: 69 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e 33 2e  ith Tcl 8.2-8.3.
2640: 31 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61 6c 6c  1....* tests/all
2650: 2e 74 63 6c 3a 20 61 64 64 65 64 20 63 61 74 63  .tcl: added catc
2660: 68 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c 74 65  h around ::tclte
2670: 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 61 74  st::normalizePat
2680: 68 0a 09 62 65 63 61 75 73 65 20 69 74 20 64 6f  h..because it do
2690: 65 73 6e 27 74 20 65 78 69 73 74 20 69 6e 20 70  esn't exist in p
26a0: 72 65 2d 38 2e 33 20 74 63 6c 74 65 73 74 2e 0a  re-8.3 tcltest..
26b0: 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65  ..* tests/simple
26c0: 43 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 2a 20  Client.tcl: ..* 
26d0: 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 76  tests/simpleServ
26e0: 65 72 2e 74 63 6c 3a 20 61 64 64 65 64 20 73 69  er.tcl: added si
26f0: 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65 72 76  mple client/serv
2700: 65 72 20 74 65 73 74 20 73 63 72 69 70 74 73 0a  er test scripts.
2710: 09 74 68 61 74 20 75 73 65 20 74 65 73 74 20 63  .that use test c
2720: 65 72 74 73 20 61 6e 64 20 63 61 6e 20 64 6f 20  erts and can do 
2730: 73 69 6d 70 6c 65 20 73 74 72 65 73 73 20 74 65  simple stress te
2740: 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 34  sts...2000-08-14
2750: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
2760: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  [email protected]
2770: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68  om>...* tlsInt.h
2780: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a  :..* tlsIO.c:..*
2790: 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c   tlsBIO.c:..* tl
27a0: 73 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 72 6f  s.c: changed aro
27b0: 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f 72 6b  und to only work
27c0: 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 30 2b 20  ing with 8.2.0+ 
27d0: 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65 72 72  (8.3.2+..preferr
27e0: 65 64 29 2c 20 77 69 74 68 20 72 75 6e 74 69 6d  ed), with runtim
27f0: 65 20 63 68 65 63 6b 73 20 66 6f 72 20 70 72 65  e checks for pre
2800: 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d 72 65  - and post-io-re
2810: 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 2e 63  write....* tls.c
2820: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 61   (Tls_Init): cha
2830: 6e 67 65 64 20 69 74 20 74 6f 20 72 65 71 75 69  nged it to requi
2840: 72 65 20 38 2e 33 2e 32 20 77 68 65 6e 20 54 63  re 8.3.2 when Tc
2850: 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09 77 61 73  l_InitStubs..was
2860: 20 63 61 6c 6c 65 64 20 62 65 63 61 75 73 65 20   called because 
2870: 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 70 65  we don't want pe
2880: 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c 53 20 77  ople using TLS w
2890: 69 74 68 20 74 68 65 0a 09 6f 72 69 67 69 6e 61  ith the..origina
28a0: 6c 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65  l stacked channe
28b0: 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e  l implementation
28c0: 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20 20 4a  ...2000-07-26  J
28d0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
28e0: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  [email protected]>
28f0: 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c 6c 20  ...* merged all 
2900: 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 74 6c 73  changes from tls
2910: 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74 65 20  -1-3-io-rewrite 
2920: 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e 20 62  back into main b
2930: 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74 73 2f  ranch...* tests/
2940: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 61  tlsIO.test: upda
2950: 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 66 69  ted comments, fi
2960: 78 65 64 20 61 20 70 63 43 72 61 73 68 20 63 61  xed a pcCrash ca
2970: 73 65 20 74 68 61 74 0a 09 77 61 73 20 64 75 65  se that..was due
2980: 20 74 6f 20 64 65 62 75 67 20 61 73 73 65 72 74   to debug assert
2990: 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73 20 53  ion in Windows S
29a0: 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 49  SL....* tls.c (I
29b0: 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 72 65  mportObjCmd): re
29c0: 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73 73 61 72  moved unnecessar
29d0: 79 20 75 73 65 20 6f 66 20 27 62 69 6f 27 20 61  y use of 'bio' a
29e0: 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 29 3a  rg...(Tls_Init):
29f0: 20 63 68 65 63 6b 20 72 65 74 75 72 6e 20 76 61   check return va
2a00: 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62 72 61  lue of SSL_libra
2a10: 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f 20 6c  ry_init.  Also l
2a20: 6f 74 73 20 6f 66 0a 09 77 68 69 74 65 73 70 61  ots of..whitespa
2a30: 63 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f 72 65  ce cleanup (more
2a40: 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20 73 74   like Tcl Eng st
2a50: 79 6c 65 20 67 75 69 64 65 29 2c 20 62 75 74 20  yle guide), but 
2a60: 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20 77 61  not all..code wa
2a70: 73 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a 0a 09  s cleaned up....
2a80: 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 6e 6f  * tlsBIO.c: mino
2a90: 72 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65  r whitespace cle
2aa0: 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63  anup...* tlsIO.c
2ab0: 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61  : minor whitespa
2ac0: 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28 54 6c  ce cleanup...(Tl
2ad0: 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 4f  sInputProc, TlsO
2ae0: 75 74 70 75 74 50 72 6f 63 29 3a 20 41 64 64 65  utputProc): Adde
2af0: 64 20 45 52 52 5f 63 6c 65 61 72 5f 65 72 72 6f  d ERR_clear_erro
2b00: 72 20 62 65 66 6f 72 65 20 63 61 6c 6c 73 0a 09  r before calls..
2b10: 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72 20 42  to BIO_read or B
2b20: 49 4f 5f 77 72 69 74 65 2c 20 62 65 63 61 75 73  IO_write, becaus
2b30: 65 20 77 65 20 63 6f 75 6c 64 20 6f 74 68 65 72  e we could other
2b40: 77 69 73 65 20 65 6e 64 20 75 70 0a 09 70 75 6c  wise end up..pul
2b50: 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72 20 6f 66  ling an error of
2b60: 66 20 74 68 65 20 73 74 61 63 6b 20 74 68 61 74  f the stack that
2b70: 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67 20 74   didn't belong t
2b80: 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63 6c 65  o us.  Also..cle
2b90: 61 6e 75 70 20 75 70 20 65 78 63 65 73 73 69 76  anup up excessiv
2ba0: 65 20 75 73 65 20 6f 66 20 67 6f 74 6f 73 2e 0a  e use of gotos..
2bb0: 0a 32 30 30 30 2d 30 37 2d 32 30 20 20 4a 65 66  .2000-07-20  Jef
2bc0: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40  f Hobbs  <hobbs@
2bd0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
2be0: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74  .* tests/tlsIO.t
2bf0: 65 73 74 3a 20 63 6f 72 72 65 63 74 65 64 20 76  est: corrected v
2c00: 61 72 69 6f 75 73 20 74 65 73 74 73 20 74 6f 20  arious tests to 
2c10: 62 65 20 63 6f 72 72 65 63 74 20 66 6f 72 20 54  be correct for T
2c20: 4c 53 0a 09 73 74 61 63 6b 65 64 20 63 68 61 6e  LS..stacked chan
2c30: 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f 73 65 64  nels (as opposed
2c40: 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64   to the standard
2c50: 20 73 6f 63 6b 65 74 73 20 74 68 65 20 74 65 73   sockets the tes
2c60: 74 0a 09 73 75 69 74 65 20 77 61 73 20 61 64 6f  t..suite was ado
2c70: 70 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b 65 79  pted from).  Key
2c80: 20 64 69 66 66 65 72 65 6e 63 65 73 20 61 72 65   differences are
2c90: 20 74 68 61 74 20 54 4c 53 20 63 61 6e 6e 6f 74   that TLS cannot
2ca0: 0a 09 6f 70 65 72 61 74 65 20 69 6e 20 6f 6e 65  ..operate in one
2cb0: 20 70 72 6f 63 65 73 73 20 77 69 74 68 6f 75 74   process without
2cc0: 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 62 65   all channels be
2cd0: 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67  ing non-blocking
2ce0: 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e 64 73 68  , or..the handsh
2cf0: 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b 2c 20  ake will block, 
2d00: 61 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e 67 20  and handshaking 
2d10: 6d 75 73 74 20 62 65 20 66 6f 72 63 65 64 20 69  must be forced i
2d20: 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e 20 20  n some..cases.  
2d30: 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b 65 73  Also, handshakes
2d40: 20 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20 63   don't seem to c
2d50: 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73 20 74  omplete unless t
2d60: 68 65 20 63 6c 69 65 6e 74 0a 09 68 61 73 20 70  he client..has p
2d70: 6c 61 63 65 64 20 61 74 20 6c 65 61 73 74 20 6f  laced at least o
2d80: 6e 65 20 62 79 74 65 20 66 6f 72 20 74 68 65 20  ne byte for the 
2d90: 73 65 72 76 65 72 20 74 6f 20 72 65 61 64 20 69  server to read i
2da0: 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e 0a 0a  n the channel...
2db0: 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74 65 2e  .* tests/remote.
2dc0: 74 63 6c 3a 20 63 6f 72 72 65 63 74 65 64 20 74  tcl: corrected t
2dd0: 68 65 20 66 69 6e 64 69 6e 67 20 6f 66 20 74 65  he finding of te
2de0: 73 74 73 20 63 65 72 74 69 66 69 63 61 74 65 73  sts certificates
2df0: 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c  ...* tlsIO.c (Tl
2e00: 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72 65 6d  sCloseProc): rem
2e10: 6f 76 65 64 20 64 65 6c 65 74 69 6e 67 20 6f 66  oved deleting of
2e20: 20 74 69 6d 65 72 20 68 61 6e 64 6c 65 72 20 61   timer handler a
2e30: 73 0a 09 74 68 61 74 20 69 73 20 68 61 6e 64 6c  s..that is handl
2e40: 65 64 20 62 79 20 54 6c 73 5f 43 6c 65 61 6e 2e  ed by Tls_Clean.
2e50: 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c  ...* tls.tcl (tl
2e60: 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63 6f 72  s::_accept): cor
2e70: 72 65 63 74 65 64 20 74 68 65 20 69 6e 74 65 72  rected the inter
2e80: 6e 61 6c 20 5f 61 63 63 65 70 74 20 74 6f 0a 09  nal _accept to..
2e90: 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61 63 6b  trickle callback
2ea0: 20 65 72 72 6f 72 73 20 74 6f 20 74 68 65 20 75   errors to the u
2eb0: 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  ser....* Makefil
2ec0: 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65 20 69  e.in: made the i
2ed0: 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20  nstall-binaries 
2ee0: 74 61 72 67 65 74 20 72 65 67 65 6e 65 72 61 74  target regenerat
2ef0: 65 20 74 68 65 0a 09 70 6b 67 49 6e 64 65 78 2e  e the..pkgIndex.
2f00: 74 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e 20 20  tcl correctly.  
2f10: 54 68 65 20 74 65 73 74 20 74 61 72 67 65 74 20  The test target 
2f20: 70 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c 64 6e  probably shouldn
2f30: 27 74 20 73 63 72 65 77 0a 09 69 74 20 75 70 2c  't screw..it up,
2f40: 20 62 75 74 20 74 68 69 73 20 69 73 20 74 6f 20   but this is to 
2f50: 62 65 20 6f 6e 20 74 68 65 20 73 61 66 65 20 73  be on the safe s
2f60: 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 37  ide...2000-07-17
2f70: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
2f80: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  [email protected]
2f90: 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78  om>...* pkgIndex
2fa0: 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66  .tcl.in:..* conf
2fb0: 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65  igure.in: update
2fc0: 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e 34  d version to 1.4
2fd0: 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20 20 4a 65  ..2000-07-13  Je
2fe0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
2ff0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
3000: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e  ..* tests/tlsIO.
3010: 74 65 73 74 3a 20 65 6e 61 62 6c 65 64 20 74 65  test: enabled te
3020: 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31 32 34  sts 2.10, 7.[124
3030: 35 5d 20 28 74 68 65 72 65 20 69 73 20 6e 6f 20  5] (there is no 
3040: 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77 20 70  3),..which now p
3050: 61 73 73 2e 20 20 41 64 64 65 64 20 73 6f 6d 65  ass.  Added some
3060: 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f 74 68   comments to oth
3070: 65 72 20 66 61 69 6c 69 6e 67 20 74 65 73 74 73  er failing tests
3080: 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20 20 4a  ...2000-07-11  J
3090: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
30a0: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  [email protected]>
30b0: 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 68  ...* tlsIO.c: ch
30c0: 61 6e 67 65 64 20 61 6c 6c 20 74 68 65 20 63 68  anged all the ch
30d0: 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f 20 73  annel procs to s
30e0: 74 61 72 74 20 77 69 74 68 20 54 6c 73 2a 20 66  tart with Tls* f
30f0: 6f 72 0a 09 62 65 74 74 65 72 20 70 61 72 69 74  or..better parit
3100: 79 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e 67  y when comparing
3110: 20 77 69 74 68 20 54 72 61 6e 73 66 6f 72 6d 20   with Transform 
3120: 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e 0a 09  channel procs...
3130: 52 65 77 72 6f 74 65 20 54 6c 73 57 61 74 63 68  Rewrote TlsWatch
3140: 50 72 6f 63 2c 20 61 64 64 65 64 20 54 6c 73 4e  Proc, added TlsN
3150: 6f 74 69 66 79 50 72 6f 63 20 61 63 63 6f 72 64  otifyProc accord
3160: 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 77 0a 09  ing to the new..
3170: 63 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e 2c 20  channel design, 
3180: 77 68 69 63 68 20 61 6c 73 6f 20 6c 65 61 76 65  which also leave
3190: 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61 6e 64  s TlsChannelHand
31a0: 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09 2a 20  ler unused....* 
31b0: 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43 74 72  tlsBIO.c (BioCtr
31c0: 6c 29 3a 20 63 68 61 6e 67 65 64 20 42 49 4f 5f  l): changed BIO_
31d0: 43 54 52 4c 5f 46 4c 55 53 48 20 63 61 73 65 20  CTRL_FLUSH case 
31e0: 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72 69 74  to use..Tcl_Writ
31f0: 65 52 61 77 20 69 6e 73 74 65 61 64 20 6f 66 20  eRaw instead of 
3200: 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20 6f 70  Tcl_Flush (to op
3210: 65 72 61 74 65 20 6f 6e 20 63 6f 72 72 65 63 74  erate on correct
3220: 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 68 65   channel..in the
3230: 20 73 74 61 63 6b 20 69 6e 73 74 65 61 64 20 6f   stack instead o
3240: 66 20 73 74 61 72 74 69 6e 67 20 61 74 20 74 68  f starting at th
3250: 65 20 74 6f 70 20 61 67 61 69 6e 29 2e 20 20 57  e top again).  W
3260: 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69 73 65 20  ould..otherwise 
3270: 63 61 75 73 65 20 61 20 72 65 63 75 72 73 69 76  cause a recursiv
3280: 65 20 73 74 61 63 6b 20 62 6f 6d 62 20 77 68 65  e stack bomb whe
3290: 6e 20 69 6d 70 6c 69 63 69 74 20 68 61 6e 64 73  n implicit hands
32a0: 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 66 66  haking..took eff
32b0: 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  ect....* tests/t
32c0: 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d 6f 76  lsIO.test: remov
32d0: 65 64 20 63 68 61 6e 67 65 73 20 6d 61 64 65 20  ed changes made 
32e0: 74 6f 20 74 65 73 74 20 73 75 69 74 65 20 28 61  to test suite (a
32f0: 6c 6c 20 74 65 73 74 73 0a 09 74 68 61 74 20 72  ll tests..that r
3300: 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20 70 61  an before now pa
3310: 73 73 20 63 6f 72 72 65 63 74 6c 79 29 2c 20 61  ss correctly), a
3320: 6e 64 20 63 68 61 6e 67 65 64 20 73 6f 6d 65 20  nd changed some 
3330: 61 63 63 65 70 74 20 70 72 6f 63 0a 09 61 72 67  accept proc..arg
3340: 73 20 74 6f 20 72 65 66 6c 65 63 74 20 74 68 61  s to reflect tha
3350: 74 20 61 20 73 6f 63 6b 20 69 73 20 61 6e 20 61  t a sock is an a
3360: 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e 0a  rg, not a file..
3370: 0a 32 30 30 30 2d 30 37 2d 31 30 20 20 4a 65 66  .2000-07-10  Jef
3380: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40  f Hobbs  <hobbs@
3390: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
33a0: 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f  .* tlsBIO.c (Bio
33b0: 57 72 69 74 65 2c 20 42 69 6f 52 65 61 64 29 3a  Write, BioRead):
33c0: 20 63 68 61 6e 67 65 64 20 54 63 6c 5f 52 65 61   changed Tcl_Rea
33d0: 64 2f 57 72 69 74 65 20 74 6f 0a 09 54 63 6c 5f  d/Write to..Tcl_
33e0: 52 65 61 64 52 61 77 2f 54 63 6c 57 72 69 74 65  ReadRaw/TclWrite
33f0: 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20  Raw....* tls.c: 
3400: 61 64 64 65 64 20 75 73 65 20 6f 66 20 54 63 6c  added use of Tcl
3410: 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c 20 61  _GetTopChannel a
3420: 66 74 65 72 20 54 63 6c 5f 47 65 74 43 68 61 6e  fter Tcl_GetChan
3430: 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72 65 74  nel and..got ret
3440: 75 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20 54  urn value from T
3450: 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c 2e  cl_StackChannel.
3460: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f  ...* tests/tlsIO
3470: 2e 74 65 73 74 3a 20 61 64 64 65 64 20 73 6f 6d  .test: added som
3480: 65 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 74 68  e handshaking th
3490: 61 74 20 73 68 6f 75 6c 64 6e 27 74 20 62 65 0a  at shouldn't be.
34a0: 09 6e 65 63 65 73 73 61 72 79 2c 20 62 75 74 20  .necessary, but 
34b0: 77 65 20 63 72 61 73 68 20 6f 74 68 65 72 77 69  we crash otherwi
34c0: 73 65 20 28 6e 65 65 64 73 20 6d 6f 72 65 20 74  se (needs more t
34d0: 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 6c 73  esting)....* tls
34e0: 49 4f 2e 63 3a 20 61 64 64 65 64 20 73 75 70 70  IO.c: added supp
34f0: 6f 72 74 20 66 6f 72 20 22 63 6f 72 72 65 63 74  ort for "correct
3500: 65 64 22 20 73 74 61 63 6b 65 64 20 63 68 61 6e  ed" stacked chan
3510: 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 65 20  nels.  All..the 
3520: 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73 20 61  above channels a
3530: 72 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e 4e 45  re in TCL_CHANNE
3540: 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69 66 64  L_VERSION_2 #ifd
3550: 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35  efs...2000-06-05
3560: 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20    Scott Stanton 
3570: 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73   <stanton@ajubas
3580: 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09  olutions.com>...
3590: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 46  * Makefile.in: F
35a0: 69 78 65 64 20 62 72 6f 6b 65 6e 20 74 65 73 74  ixed broken test
35b0: 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74 6c 73   target....* tls
35c0: 49 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 2e 63  Int.h: ..* tls.c
35d0: 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 64 65 63  : Cleaned up dec
35e0: 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 54 6c 73  larations of Tls
35f0: 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69 64 20  _Clean to avoid 
3600: 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e 64 6f  errors on..Windo
3610: 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 30 30  ws (lint)...2000
3620: 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 20 57 65  -06-05  Brent We
3630: 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a 75 62 61  lch <welch@ajuba
3640: 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a  solutions.com>..
3650: 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49 4f 2e  .* tls.c, tlsIO.
3660: 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f 46 72  c:  Split Tls_Fr
3670: 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c 65 61  ee into Tls_Clea
3680: 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 0a 09 74  n, which does..t
3690: 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 70 2c 20  he SSL cleanup, 
36a0: 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 72 65 65  and the Tcl_Free
36b0: 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 20 69 6d   call.  It is im
36c0: 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 75 74 64  portant to shutd
36d0: 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 73 74 61  own..the SSL sta
36e0: 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75 73 6c  te "synchronousl
36f0: 79 22 20 64 75 72 69 6e 67 20 61 20 73 74 61 63  y" during a stac
3700: 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30 30 30  ked flush...2000
3710: 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74  -06-01  Scott St
3720: 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40  anton  <stanton@
3730: 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63  ajubasolutions.c
3740: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a  om>...* tlsIO.c:
3750: 20 52 65 73 74 6f 72 65 64 20 63 61 6c 6c 20 74   Restored call t
3760: 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e  o Tcl_NotifyChan
3770: 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e 65 6c  nel from Channel
3780: 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e 73 75  Handler..to ensu
3790: 72 65 20 74 68 61 74 20 65 76 65 6e 74 73 20 70  re that events p
37a0: 72 6f 70 61 67 61 74 65 20 66 72 6f 6d 20 74 68  ropagate from th
37b0: 65 20 6c 6f 77 65 72 20 64 72 69 76 65 72 2e 20  e lower driver. 
37c0: 20 54 68 69 73 20 6d 61 79 0a 09 72 65 73 75 6c   This may..resul
37d0: 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65  t in an infinite
37e0: 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 63 61   loop in some ca
37f0: 73 65 73 2c 20 73 6f 20 74 68 69 73 20 69 73 20  ses, so this is 
3800: 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66 69 78  not a total..fix
3810: 2e 20 20 54 68 69 73 20 6d 61 79 20 62 65 20 73  .  This may be s
3820: 75 66 66 69 63 69 65 6e 74 20 66 6f 72 20 6e 6f  ufficient for no
3830: 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42 75 67  w, however. [Bug
3840: 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 36  : 5623]..2000-06
3850: 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e 74  -01  Scott Stant
3860: 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73 63 72  on  <stanton@scr
3870: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
3880: 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65  tlsIO.c: Restore
3890: 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 76 65   the previous ve
38a0: 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 20 74 68  rsion.  Fixed th
38b0: 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f 0a 09  e CloseProc so..
38c0: 69 74 20 75 6e 72 65 67 69 73 74 65 72 73 20 74  it unregisters t
38d0: 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c  he channel handl
38e0: 65 72 20 6f 6e 20 74 68 65 20 73 75 70 65 72 63  er on the superc
38f0: 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09 69 6e  eded channel..in
3900: 73 74 65 61 64 20 6f 66 20 74 68 65 20 75 70 70  stead of the upp
3910: 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c 73 6f  er channel. Also
3920: 20 72 65 6d 6f 76 65 64 20 74 68 65 20 63 61 6c   removed the cal
3930: 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79  l to..Tcl_Notify
3940: 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65 20 43  Channel in the C
3950: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 62 65  hannelHandler be
3960: 63 61 75 73 65 20 74 68 69 73 20 77 69 6c 6c 20  cause this will 
3970: 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20 69 6e  result..in an in
3980: 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66 20 64  finite loop if d
3990: 61 74 61 20 69 73 20 65 76 65 72 20 62 75 66 66  ata is ever buff
39a0: 65 72 65 64 20 69 6e 20 74 68 65 20 42 49 4f 0a  ered in the BIO.
39b0: 09 73 74 72 75 63 74 75 72 65 2e 20 5b 42 75 67  .structure. [Bug
39c0: 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 35  : 5623]..2000-05
39d0: 2d 33 31 20 20 42 72 65 6e 74 20 57 65 6c 63 68  -31  Brent Welch
39e0: 20 3c 77 65 6c 63 68 40 73 63 72 69 70 74 69 63   <welch@scriptic
39f0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63  s.com>...* tls.c
3a00: 3a 20 43 68 61 6e 67 65 20 74 68 65 20 43 68 61  : Change the Cha
3a10: 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f 20 62  nnelHandler to b
3a20: 65 20 72 65 67 69 73 74 65 72 65 64 20 6f 6e 20  e registered on 
3a30: 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e 6e 65  the main..channe
3a40: 6c 20 61 73 20 6f 70 70 73 65 64 20 74 6f 20 74  l as oppsed to t
3a50: 68 65 20 22 70 61 72 65 6e 74 22 2c 20 6f 72 20  he "parent", or 
3a60: 73 75 70 65 72 63 65 65 64 65 64 2c 20 63 68 61  superceeded, cha
3a70: 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69 73 20  nnel.  This..is 
3a80: 62 65 63 61 75 73 65 20 74 68 65 20 73 6f 63 6b  because the sock
3a90: 65 74 20 64 72 69 76 65 72 20 6e 6f 74 69 66 69  et driver notifi
3aa0: 65 73 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e  es the main chan
3ab0: 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 65 0a 09  nel, and there..
3ac0: 61 72 65 20 74 69 6d 65 73 20 77 69 74 68 20 74  are times with t
3ad0: 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 20  he main channel 
3ae0: 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 62 75 74  gets closed, but
3af0: 20 74 68 65 20 73 75 70 65 72 63 65 64 65 64 0a   the superceded.
3b00: 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65 74 20  .one is not yet 
3b10: 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 65 20  closed.  If the 
3b20: 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20  channel handler 
3b30: 67 65 74 73 20 74 72 69 67 67 65 72 65 64 20 69  gets triggered i
3b40: 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f 70 65  n..this half-ope
3b50: 6e 20 73 74 61 74 65 20 69 74 20 69 73 20 61 73  n state it is as
3b60: 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68  sociated with th
3b70: 65 20 73 75 70 65 72 63 65 65 64 65 64 0a 09 63  e superceeded..c
3b80: 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75 73 65  hannedl, but use
3b90: 73 20 69 74 73 20 70 72 69 76 61 74 65 20 70 6f  s its private po
3ba0: 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6d 61 69  inter to the mai
3bb0: 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69 63 68  n channel, which
3bc0: 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 65 73 74  ..is mostly dest
3bd0: 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e 61 74  royed.  Eliminat
3be0: 65 64 20 74 68 65 20 72 65 64 75 6e 64 61 6e 74  ed the redundant
3bf0: 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f   call to..Tcl_No
3c00: 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d  tifyChannel from
3c10: 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2e 20 5b   TlsWatchProc. [
3c20: 42 75 67 3a 20 35 36 32 33 5d 0a                 Bug: 5623].