Hex Artifact Content

Artifact 7f25e35bc38a82cbab02ba97696ef372ac377c26:


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