Hex Artifact Content

Artifact aaaa7bddd12cfe88c3873882dd95fc6703a827e9a113b6a017872d98320582c8:


0000: 32 30 31 35 2d 30 35 2d 30 31 20 20 41 6e 64 72  2015-05-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 63 6f 6e 66  te.com>...* conf
0040: 69 67 75 72 65 2e 69 6e 3a 20 42 75 6d 70 20 74  igure.in: Bump t
0050: 6f 20 76 65 72 73 69 6f 6e 20 31 2e 36 2e 35 2e  o version 1.6.5.
0060: 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65  ..* win/makefile
0070: 2e 76 63 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72  .vc:..* configur
0080: 65 3a 20 72 65 67 65 6e 20 77 69 74 68 20 61 63  e: regen with ac
0090: 2d 32 2e 35 39 0a 09 2a 20 74 6c 73 2e 63 3a 20  -2.59..* tls.c: 
00a0: 41 63 63 65 70 74 65 64 20 53 46 20 54 4c 53 20  Accepted SF TLS 
00b0: 5b 62 75 67 2f 70 61 74 63 68 20 23 35 37 5d 28  [bug/patch #57](
00c0: 68 74 74 70 73 3a 2f 2f 73 6f 75 72 63 65 66 6f  https://sourcefo
00d0: 72 67 65 2e 6e 65 74 2f 70 2f 74 6c 73 2f 62 75  rge.net/p/tls/bu
00e0: 67 73 2f 35 37 2f 29 2e 0a 09 2a 20 74 6c 73 49  gs/57/)...* tlsI
00f0: 4f 2e 63 3a 20 41 63 63 65 70 74 65 64 20 63 6f  O.c: Accepted co
0100: 72 65 20 54 63 6c 20 70 61 74 63 68 20 69 6e 20  re Tcl patch in 
0110: 5b 74 69 63 6b 65 74 5d 28 68 74 74 70 3a 2f 2f  [ticket](http://
0120: 63 6f 72 65 2e 74 63 6c 2e 74 6b 2f 74 63 6c 2f  core.tcl.tk/tcl/
0130: 74 6b 74 76 69 65 77 2f 30 66 39 34 66 38 35 35  tktview/0f94f855
0140: 63 61 66 65 64 39 32 64 30 65 31 37 34 62 37 64  cafed92d0e174b7d
0150: 38 33 35 34 35 33 61 30 32 38 33 31 62 34 64 64  835453a02831b4dd
0160: 29 2e 0a 0a 32 30 31 34 2d 31 32 2d 30 35 20 20  )...2014-12-05  
0170: 41 6e 64 72 65 61 73 20 4b 75 70 72 69 65 73 20  Andreas Kupries 
0180: 20 3c 61 6e 64 72 65 61 73 6b 40 61 63 74 69 76   <andreask@activ
0190: 65 73 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20  estate.com>...* 
01a0: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 42 75  configure.in: Bu
01b0: 6d 70 20 74 6f 20 76 65 72 73 69 6f 6e 20 31 2e  mp to version 1.
01c0: 36 2e 34 2e 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65  6.4...* win/make
01d0: 66 69 6c 65 2e 76 63 3a 0a 09 2a 20 63 6f 6e 66  file.vc:..* conf
01e0: 69 67 75 72 65 3a 20 72 65 67 65 6e 20 77 69 74  igure: regen wit
01f0: 68 20 61 63 2d 32 2e 35 39 0a 09 2a 20 74 6c 73  h ac-2.59..* tls
0200: 2e 63 3a 20 41 63 63 65 70 74 65 64 20 53 46 20  .c: Accepted SF 
0210: 54 4c 53 20 70 61 74 63 68 65 73 20 23 31 32 20  TLS patches #12 
0220: 61 6e 64 20 23 31 33 20 69 6d 70 6c 65 6d 65 6e  and #13 implemen
0230: 74 69 6e 67 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a  ting..* tls.htm:
0240: 20 73 75 70 70 6f 72 74 20 66 6f 72 20 53 4e 49   support for SNI
0250: 2c 20 61 6e 64 20 54 4c 53 20 31 2e 31 20 2b 20  , and TLS 1.1 + 
0260: 31 2e 32 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a  1.2..* tlsInt.h:
0270: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 54 68 69  ..* tlsIO.c: Thi
0280: 73 20 61 6c 73 6f 20 61 63 63 65 70 74 65 64 20  s also accepted 
0290: 70 61 74 63 68 20 66 6f 72 20 62 75 67 20 23 35  patch for bug #5
02a0: 33 2e 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 20 50  3...* tls.tcl: P
02b0: 61 74 63 68 20 61 76 61 69 6c 61 62 6c 65 20 73  atch available s
02c0: 69 6e 63 65 20 4a 75 6e 65 2c 20 6e 6f 77 20 63  ince June, now c
02d0: 6f 6d 6d 69 74 74 65 64 2e 0a 0a 32 30 31 32 2d  ommitted...2012-
02e0: 30 37 2d 30 39 20 20 41 6e 64 72 65 61 73 20 4b  07-09  Andreas K
02f0: 75 70 72 69 65 73 20 20 3c 61 6e 64 72 65 61 73  upries  <andreas
0300: 6b 40 61 63 74 69 76 65 73 74 61 74 65 2e 63 6f  k@activestate.co
0310: 6d 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65  m>...* configure
0320: 2e 69 6e 3a 20 42 75 6d 70 20 74 6f 20 76 65 72  .in: Bump to ver
0330: 73 69 6f 6e 20 31 2e 36 2e 33 2e 0a 09 2a 20 77  sion 1.6.3...* w
0340: 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 0a  in/makefile.vc:.
0350: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 72 65  .* configure: re
0360: 67 65 6e 20 77 69 74 68 20 61 63 2d 32 2e 35 39  gen with ac-2.59
0370: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 4d 69 73 63  ...* tls.c (Misc
0380: 4f 62 6a 43 6d 64 29 3a 20 46 69 78 65 64 20 6e  ObjCmd): Fixed n
0390: 6f 6e 2d 73 74 61 74 69 63 20 73 74 72 69 6e 67  on-static string
03a0: 20 61 72 72 61 79 20 75 73 65 64 20 69 6e 20 63   array used in c
03b0: 61 6c 6c 0a 09 20 20 6f 66 20 54 63 6c 5f 47 65  all..  of Tcl_Ge
03c0: 74 49 6e 64 65 78 46 72 6f 6d 4f 62 6a 28 29 2e  tIndexFromObj().
03d0: 20 4d 65 6d 6f 72 79 20 73 6d 61 73 68 20 77 61   Memory smash wa
03e0: 69 74 69 6e 67 20 74 6f 20 68 61 70 70 65 6e 2e  iting to happen.
03f0: 20 54 68 61 6e 6b 73 0a 09 20 20 74 6f 20 42 72   Thanks..  to Br
0400: 69 61 6e 20 47 72 69 66 66 69 6e 20 66 6f 72 20  ian Griffin for 
0410: 61 6c 65 72 74 69 6e 67 20 75 73 20 61 6c 6c 20  alerting us all 
0420: 74 6f 20 74 68 65 20 70 72 6f 62 6c 65 6d 2e 0a  to the problem..
0430: 0a 32 30 31 32 2d 30 36 2d 30 31 20 20 41 6e 64  .2012-06-01  And
0440: 72 65 61 73 20 4b 75 70 72 69 65 73 20 20 3c 61  reas Kupries  <a
0450: 6e 64 72 65 61 73 6b 40 61 63 74 69 76 65 73 74  ndreask@activest
0460: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
0470: 2e 63 3a 20 41 70 70 6c 69 65 64 20 4a 65 66 66  .c: Applied Jeff
0480: 27 73 20 70 61 74 63 68 20 66 72 6f 6d 0a 09 20  's patch from.. 
0490: 20 68 74 74 70 3a 2f 2f 77 77 77 2e 6d 61 69 6c   http://www.mail
04a0: 2d 61 72 63 68 69 76 65 2e 63 6f 6d 2f 61 6f 6c  -archive.com/aol
04b0: 73 65 72 76 65 72 40 6c 69 73 74 73 65 72 76 2e  server@listserv.
04c0: 61 6f 6c 2e 63 6f 6d 2f 6d 73 67 31 32 33 35 36  aol.com/msg12356
04d0: 2e 68 74 6d 6c 0a 0a 09 2a 20 63 6f 6e 66 69 67  .html...* config
04e0: 75 72 65 2e 69 6e 3a 20 42 75 6d 70 20 74 6f 20  ure.in: Bump to 
04f0: 76 65 72 73 69 6f 6e 20 31 2e 36 2e 32 2e 0a 09  version 1.6.2...
0500: 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76  * win/makefile.v
0510: 63 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a  c:..* configure:
0520: 20 72 65 67 65 6e 20 77 69 74 68 20 61 63 2d 32   regen with ac-2
0530: 2e 35 39 0a 0a 32 30 31 30 2d 30 38 2d 31 31 20  .59..2010-08-11 
0540: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65   Jeff Hobbs  <je
0550: 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e  ffh@ActiveState.
0560: 63 6f 6d 3e 0a 0a 09 2a 2a 2a 20 54 4c 53 20 31  com>...*** TLS 1
0570: 2e 36 2e 31 20 54 41 47 47 45 44 20 2a 2a 2a 0a  .6.1 TAGGED ***.
0580: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 72  ..* configure: r
0590: 65 67 65 6e 20 77 69 74 68 20 61 63 2d 32 2e 35  egen with ac-2.5
05a0: 39 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c  9..* win/makefil
05b0: 65 2e 76 63 2c 20 63 6f 6e 66 69 67 75 72 65 2e  e.vc, configure.
05c0: 69 6e 3a 20 62 75 6d 70 20 76 65 72 73 69 6f 6e  in: bump version
05d0: 20 74 6f 20 31 2e 36 2e 31 0a 09 2a 20 74 63 6c   to 1.6.1..* tcl
05e0: 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75  config/tcl.m4: u
05f0: 70 64 61 74 65 64 20 74 6f 20 54 45 41 20 33 2e  pdated to TEA 3.
0600: 38 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 53 74 61  8...* tls.c (Sta
0610: 74 75 73 4f 62 6a 43 6d 64 29 3a 20 6d 65 6d 6c  tusObjCmd): meml
0620: 65 61 6b 3a 20 66 72 65 65 20 70 65 65 72 20 69  eak: free peer i
0630: 66 20 6c 6f 61 64 65 64 2e 20 5b 42 75 67 20 33  f loaded. [Bug 3
0640: 30 34 31 39 32 35 5d 0a 0a 32 30 31 30 2d 30 37  041925]..2010-07
0650: 2d 32 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -27  Jeff Hobbs 
0660: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
0670: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
0680: 2e 74 63 6c 20 28 74 6c 73 3a 3a 73 6f 63 6b 65  .tcl (tls::socke
0690: 74 29 3a 20 73 6f 6d 65 20 73 6f 63 6b 65 74 20  t): some socket 
06a0: 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 73 20  implementations 
06b0: 68 61 76 65 20 61 20 2d 74 79 70 65 0a 09 73 75  have a -type..su
06c0: 70 70 6f 72 74 20 28 65 2e 67 2e 20 66 6f 72 20  pport (e.g. for 
06d0: 69 6e 65 74 36 29 2e 0a 0a 32 30 30 39 2d 30 34  inet6)...2009-04
06e0: 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -23  Jeff Hobbs 
06f0: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
0700: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
0710: 2e 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 6c  .tcl (tls::initl
0720: 69 62 29 3a 20 61 64 64 20 73 75 70 70 6f 72 74  ib): add support
0730: 20 66 6f 72 20 57 69 6e 64 6f 77 73 20 73 74 61   for Windows sta
0740: 72 70 61 63 6b 0a 09 6f 70 65 72 61 74 69 6f 6e  rpack..operation
0750: 20 74 68 61 74 20 75 6e 62 75 6e 64 6c 65 73 20   that unbundles 
0760: 61 6e 79 20 63 6f 6e 73 74 69 74 75 65 6e 74 20  any constituent 
0770: 6c 69 62 72 61 72 69 65 73 2e 20 5b 41 53 20 42  libraries. [AS B
0780: 75 67 20 38 32 38 38 38 5d 0a 0a 32 30 30 38 2d  ug 82888]..2008-
0790: 30 36 2d 31 38 20 20 50 61 74 20 54 68 6f 79 74  06-18  Pat Thoyt
07a0: 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73  s  <patthoyts@us
07b0: 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e  ers.sourceforge.
07c0: 6e 65 74 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63  net>...* tests/c
07d0: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 46 69 78  iphers.test: Fix
07e0: 20 66 6f 72 20 64 69 66 66 65 72 65 6e 74 20 6f   for different o
07f0: 70 65 6e 73 73 6c 20 76 65 72 73 69 6f 6e 73 2e  penssl versions.
0800: 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65  ..* win/makefile
0810: 2e 76 63 3a 20 20 20 20 55 70 64 61 74 65 73 20  .vc:    Updates 
0820: 74 6f 20 73 75 70 70 6f 72 74 20 74 65 73 74 73  to support tests
0830: 2e 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76  ...* win/rules.v
0840: 63 3a 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68  c:..* win/nmakeh
0850: 6c 70 2e 63 3a 0a 0a 32 30 30 38 2d 30 33 2d 31  lp.c:..2008-03-1
0860: 39 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  9  Jeff Hobbs  <
0870: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74  jeffh@ActiveStat
0880: 65 2e 63 6f 6d 3e 0a 0a 09 2a 2a 2a 20 54 4c 53  e.com>...*** TLS
0890: 20 31 2e 36 20 54 41 47 47 45 44 20 2a 2a 2a 0a   1.6 TAGGED ***.
08a0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20  ..* Makefile.in 
08b0: 28 64 69 73 74 29 3a 20 75 70 64 61 74 65 20 74  (dist): update t
08c0: 6f 20 69 6e 63 6c 75 64 65 20 77 69 6e 2f 20 61  o include win/ a
08d0: 6e 64 20 66 69 6c 65 2e 73 72 6c 0a 0a 09 2a 20  nd file.srl...* 
08e0: 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a  win/makefile.vc:
08f0: 20 62 75 6d 70 20 76 65 72 73 69 6f 6e 20 74 6f   bump version to
0900: 20 31 2e 36 0a 09 2a 20 63 6f 6e 66 69 67 75 72   1.6..* configur
0910: 65 2e 69 6e 3a 20 75 73 65 20 2d 4c 20 61 6e 64  e.in: use -L and
0920: 20 2d 52 20 77 68 65 72 65 20 6e 65 63 65 73 73   -R where necess
0930: 61 72 79 2e 20 5b 42 75 67 20 31 37 34 32 38 35  ary. [Bug 174285
0940: 39 5d 0a 0a 09 2a 20 61 63 6c 6f 63 61 6c 2e 6d  9]...* aclocal.m
0950: 34 3a 20 69 6d 70 72 6f 76 65 20 2d 2d 77 69 74  4: improve --wit
0960: 68 2d 73 73 6c 2d 64 69 72 20 63 68 65 63 6b 2e  h-ssl-dir check.
0970: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f  ...* tests/tlsIO
0980: 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 31 34 2e  .test (tlsIO-14.
0990: 2a 29 3a 20 20 20 41 64 64 20 74 6c 73 3a 3a 75  *):   Add tls::u
09a0: 6e 69 6d 70 6f 72 74 20 66 6f 72 20 73 79 6d 6d  nimport for symm
09b0: 65 74 72 79 0a 09 2a 20 74 6c 73 2e 68 74 6d 2c  etry..* tls.htm,
09c0: 20 74 6c 73 2e 63 20 28 55 6e 69 6d 70 6f 72 74   tls.c (Unimport
09d0: 4f 62 6a 43 6d 64 29 3a 20 74 6f 20 74 6c 73 3a  ObjCmd): to tls:
09e0: 3a 69 6d 70 6f 72 74 2e 20 5b 42 75 67 20 31 32  :import. [Bug 12
09f0: 30 33 32 37 33 5d 0a 0a 09 2a 20 74 6c 73 2e 63  03273]...* tls.c
0a00: 20 28 54 6c 73 5f 43 6c 65 61 6e 2c 20 49 6d 70   (Tls_Clean, Imp
0a10: 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 46 69 78 20  ortObjCmd): Fix 
0a20: 63 6c 65 61 6e 75 70 20 6d 65 6d 20 6c 65 61 6b  cleanup mem leak
0a30: 20 5b 42 75 67 20 31 34 31 34 30 34 35 5d 0a 09   [Bug 1414045]..
0a40: 55 73 65 20 62 65 74 74 65 72 20 45 76 61 6c 20  Use better Eval 
0a50: 41 50 49 73 2c 20 63 6c 65 61 6e 65 72 20 54 63  APIs, cleaner Tc
0a60: 6c 5f 4f 62 6a 2d 68 61 6e 64 6c 69 6e 67 2e 0a  l_Obj-handling..
0a70: 0a 32 30 30 38 2d 30 33 2d 31 39 20 20 50 61 74  .2008-03-19  Pat
0a80: 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f   Thoyts  <pattho
0a90: 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65  yts@users.source
0aa0: 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77  forge.net>...* w
0ab0: 69 6e 2f 4d 61 6b 65 66 69 6c 65 2e 76 63 20 20  in/Makefile.vc  
0ac0: 55 70 64 61 74 65 64 20 74 68 65 20 6e 6d 61 6b  Updated the nmak
0ad0: 65 20 62 75 69 6c 64 20 66 69 6c 65 73 20 77 69  e build files wi
0ae0: 74 68 20 4d 53 56 43 39 20 73 75 70 70 6f 72 74  th MSVC9 support
0af0: 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e 76 63  ..* win/rules.vc
0b00: 3a 20 20 20 20 61 6e 64 20 66 69 78 65 64 20 74  :    and fixed t
0b10: 6f 20 72 75 6e 20 74 68 65 20 74 65 73 74 2d 73  o run the test-s
0b20: 75 69 74 65 20 70 72 6f 70 65 72 6c 79 2e 0a 09  uite properly...
0b30: 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63  * win/nmakehlp.c
0b40: 3a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c  :..* tls.tcl (tl
0b50: 73 3a 3a 69 6e 69 74 6c 69 62 29 3a 20 43 6f 72  s::initlib): Cor
0b60: 72 65 63 74 65 64 20 6e 61 6d 65 73 70 61 63 65  rected namespace
0b70: 20 68 61 6e 64 6c 69 6e 67 2e 0a 09 2a 20 74 6c   handling...* tl
0b80: 73 2e 63 3a 20 41 70 70 6c 69 65 64 20 23 31 38  s.c: Applied #18
0b90: 39 30 32 32 33 20 74 6f 20 66 69 78 20 68 61 6e  90223 to fix han
0ba0: 64 73 68 61 6b 65 20 6f 6e 20 6e 6f 6e 2d 62 6c  dshake on non-bl
0bb0: 6f 63 6b 69 6e 67 20 73 6f 63 6b 65 74 73 0a 0a  ocking sockets..
0bc0: 32 30 30 38 2d 30 33 2d 31 37 20 20 4a 65 66 66  2008-03-17  Jeff
0bd0: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41   Hobbs  <jeffh@A
0be0: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a  ctiveState.com>.
0bf0: 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c 73  ..* tls.tcl (tls
0c00: 3a 3a 69 6e 69 74 6c 69 62 29 3a 20 20 20 20 20  ::initlib):     
0c10: 6c 6f 61 64 20 74 6c 73 2e 74 63 6c 20 66 69 72  load tls.tcl fir
0c20: 73 74 20 61 6e 64 20 63 61 6c 6c 0a 09 2a 20 4d  st and call..* M
0c30: 61 6b 65 66 69 6c 65 2e 69 6e 20 28 70 6b 67 49  akefile.in (pkgI
0c40: 6e 64 65 78 2e 74 63 6c 29 3a 20 74 6c 73 3a 3a  ndex.tcl): tls::
0c50: 69 6e 69 74 6c 69 62 20 74 6f 20 6c 6f 61 64 20  initlib to load 
0c60: 6c 69 62 72 61 72 79 20 74 6f 0a 09 68 61 6e 64  library to..hand
0c70: 6c 65 20 63 77 64 20 63 68 61 6e 67 65 73 2e 20  le cwd changes. 
0c80: 5b 42 75 67 20 31 38 38 38 31 31 33 5d 0a 0a 32  [Bug 1888113]..2
0c90: 30 30 37 2d 30 39 2d 30 36 20 20 50 61 74 20 54  007-09-06  Pat T
0ca0: 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74  hoyts  <patthoyt
0cb0: 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f  s@users.sourcefo
0cc0: 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 6c 73  rge.net>...* tls
0cd0: 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20 53 69  .c:           Si
0ce0: 6c 65 6e 63 65 20 36 34 20 62 69 74 20 69 6e 74  lence 64 bit int
0cf0: 65 67 65 72 20 63 6f 6e 76 65 72 73 69 6f 6e 20  eger conversion 
0d00: 77 61 72 6e 69 6e 67 73 0a 09 2a 20 77 69 6e 2f  warnings..* win/
0d10: 6e 6d 61 6b 65 68 6c 70 2e 63 3a 20 20 55 70 64  nmakehlp.c:  Upd
0d20: 61 74 65 20 62 75 69 6c 64 20 73 79 73 74 65 6d  ate build system
0d30: 20 74 6f 20 73 75 70 70 6f 72 74 20 41 4d 44 36   to support AMD6
0d40: 34 20 74 61 72 67 65 74 0a 09 2a 20 77 69 6e 2f  4 target..* win/
0d50: 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 77 69 74  makefile.vc: wit
0d60: 68 20 4d 53 56 43 38 0a 09 2a 20 77 69 6e 2f 72  h MSVC8..* win/r
0d70: 75 6c 65 73 2e 76 63 3a 0a 0a 32 30 30 37 2d 30  ules.vc:..2007-0
0d80: 36 2d 32 32 20 20 4a 65 66 66 20 48 6f 62 62 73  6-22  Jeff Hobbs
0d90: 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53    <jeffh@ActiveS
0da0: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tate.com>...* tl
0db0: 73 49 4f 2e 63 20 28 54 6c 73 49 6e 70 75 74 50  sIO.c (TlsInputP
0dc0: 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72  roc, TlsOutputPr
0dd0: 6f 63 2c 20 54 6c 73 57 61 74 63 68 50 72 6f 63  oc, TlsWatchProc
0de0: 29 3a 0a 09 2a 20 74 6c 73 2e 63 20 28 56 65 72  ):..* tls.c (Ver
0df0: 69 66 79 43 61 6c 6c 62 61 63 6b 29 3a 20 61 64  ifyCallback): ad
0e00: 64 20 61 6e 20 73 74 61 74 65 20 66 6c 61 67 20  d an state flag 
0e10: 69 6e 20 74 68 65 20 76 65 72 69 66 79 20 63 61  in the verify ca
0e20: 6c 6c 62 61 63 6b 0a 09 74 68 61 74 20 70 72 65  llback..that pre
0e30: 76 65 6e 74 73 20 70 6f 73 73 69 62 6c 79 20 72  vents possibly r
0e40: 65 63 75 72 73 69 6f 6e 20 28 6f 6e 20 27 75 70  ecursion (on 'up
0e50: 64 61 74 65 27 29 2e 20 5b 42 75 67 20 31 36 35  date'). [Bug 165
0e60: 32 33 38 30 5d 0a 0a 09 2a 20 74 65 73 74 73 2f  2380]...* tests/
0e70: 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 72 65  ciphers.test: re
0e80: 77 6f 72 6b 65 64 20 74 6f 20 6d 61 6b 65 20 74  worked to make t
0e90: 65 73 74 20 6f 75 74 70 75 74 20 63 6c 65 61 6e  est output clean
0ea0: 65 72 20 74 6f 0a 09 75 6e 64 65 72 73 74 61 6e  er to..understan
0eb0: 64 20 6d 69 73 73 69 6e 67 20 63 69 70 68 65 72  d missing cipher
0ec0: 73 20 28 69 66 20 61 6e 79 29 0a 0a 09 2a 20 4d  s (if any)...* M
0ed0: 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c 63  akefile.in, tclc
0ee0: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75 70  onfig/tcl.m4: up
0ef0: 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e 36 0a  date to TEA 3.6.
0f00: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f  .* configure, co
0f10: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20 20  nfigure.in:     
0f20: 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e 66    using autoconf
0f30: 2d 32 2e 35 39 0a 0a 32 30 30 37 2d 30 32 2d 32  -2.59..2007-02-2
0f40: 38 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c  8  Pat Thoyts  <
0f50: 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e  patthoyts@users.
0f60: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e  sourceforge.net>
0f70: 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c  ...* win/makefil
0f80: 65 2e 76 63 3a 20 52 65 62 61 73 65 20 74 68 65  e.vc: Rebase the
0f90: 20 44 4c 4c 20 73 65 6e 73 69 62 6c 79 2e 20 41   DLL sensibly. A
0fa0: 64 64 69 74 69 6f 6e 61 6c 20 6c 69 62 73 20 66  dditional libs f
0fb0: 6f 72 0a 09 73 74 61 74 69 63 20 6c 69 6e 6b 20  or..static link 
0fc0: 6f 66 20 6f 70 65 6e 73 73 6c 2e 0a 09 2a 20 74  of openssl...* t
0fd0: 6c 73 2e 74 63 6c 3a 20 62 75 67 20 23 31 35 37  ls.tcl: bug #157
0fe0: 39 38 33 37 20 2d 20 54 49 50 20 32 37 38 20 62  9837 - TIP 278 b
0ff0: 75 67 20 28 70 6f 73 73 69 62 6c 79 29 20 2d 20  ug (possibly) - 
1000: 66 69 78 65 64 2e 0a 0a 32 30 30 36 2d 30 33 2d  fixed...2006-03-
1010: 33 30 20 20 50 61 74 20 54 68 6f 79 74 73 20 20  30  Pat Thoyts  
1020: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73  <patthoyts@users
1030: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74  .sourceforge.net
1040: 3e 0a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f  >...* tclconfig/
1050: 2a 3a 20 20 55 70 64 61 74 65 64 20 74 6f 20 54  *:  Updated to T
1060: 45 41 20 33 2e 35 20 69 6e 20 72 65 73 70 6f 6e  EA 3.5 in respon
1070: 73 65 20 74 6f 20 62 75 67 20 31 34 36 30 34 39  se to bug 146049
1080: 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2a 3a  1..* configure*:
1090: 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 20 63     Regenerated c
10a0: 6f 6e 66 69 67 75 72 65 2e 0a 0a 32 30 30 35 2d  onfigure...2005-
10b0: 30 32 2d 30 38 20 20 4a 65 66 66 20 48 6f 62 62  02-08  Jeff Hobb
10c0: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65  s  <jeffh@Active
10d0: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d  State.com>...* M
10e0: 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63 6c 63  akefile.in, tclc
10f0: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20 75 70  onfig/tcl.m4: up
1100: 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e 32 0a  date to TEA 3.2.
1110: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f  .* configure, co
1120: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20 20 20  nfigure.in:     
1130: 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f 6e 66    using autoconf
1140: 2d 32 2e 35 39 0a 0a 32 30 30 34 2d 31 32 2d 32  -2.59..2004-12-2
1150: 33 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c  3  Pat Thoyts  <
1160: 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e  patthoyts@users.
1170: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e  sourceforge.net>
1180: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e  ...* Makefile.in
1190: 3a 20 20 20 20 20 20 52 65 6d 6f 76 65 64 20 73  :      Removed s
11a0: 70 75 72 69 6f 75 73 20 63 6f 70 79 69 6e 67 20  purious copying 
11b0: 6f 66 20 74 6c 73 2e 74 63 6c 20 69 6e 74 6f 20  of tls.tcl into 
11c0: 74 68 65 0a 09 20 20 20 20 20 20 20 20 20 20 20  the..           
11d0: 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 20 64           build d
11e0: 69 72 65 63 74 6f 72 79 2e 0a 0a 32 30 30 34 2d  irectory...2004-
11f0: 31 32 2d 32 32 20 20 50 61 74 20 54 68 6f 79 74  12-22  Pat Thoyt
1200: 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73  s  <patthoyts@us
1210: 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e  ers.sourceforge.
1220: 6e 65 74 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75  net>...* configu
1230: 72 65 2e 69 6e 3a 20 20 20 20 20 49 6e 63 72 65  re.in:     Incre
1240: 6d 65 6e 74 65 64 20 6d 69 6e 6f 72 20 76 65 72  mented minor ver
1250: 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 31 0a 09 2a  sion to 1.5.1..*
1260: 20 63 6f 6e 66 69 67 75 72 65 3a 0a 0a 32 30 30   configure:..200
1270: 34 2d 31 32 2d 31 37 20 20 50 61 74 20 54 68 6f  4-12-17  Pat Tho
1280: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40  yts  <patthoyts@
1290: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67  users.sourceforg
12a0: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e 2f 6d  e.net>...* win/m
12b0: 61 6b 65 66 69 6c 65 2e 76 63 3a 20 20 41 64 64  akefile.vc:  Add
12c0: 65 64 20 74 68 65 20 4d 53 56 43 20 62 75 69 6c  ed the MSVC buil
12d0: 64 20 73 79 73 74 65 6d 20 28 66 72 6f 6d 20 74  d system (from t
12e0: 68 65 20 54 63 6c 0a 09 2a 20 77 69 6e 2f 72 75  he Tcl..* win/ru
12f0: 6c 65 73 2e 76 63 3a 20 20 20 20 20 73 61 6d 70  les.vc:     samp
1300: 6c 65 65 78 74 65 6e 73 69 6f 6e 29 2e 0a 09 2a  leextension)...*
1310: 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a   win/nmakehlp.c:
1320: 0a 09 2a 20 77 69 6e 2f 74 6c 73 2e 72 63 20 20  ..* win/tls.rc  
1330: 20 20 20 20 20 20 41 64 64 65 64 20 57 69 6e 64        Added Wind
1340: 6f 77 73 20 72 65 73 6f 75 72 63 65 20 66 69 6c  ows resource fil
1350: 65 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 20  e....* tls.tcl: 
1360: 20 20 20 20 20 20 20 20 20 46 72 6f 6d 20 70 61           From pa
1370: 74 63 68 20 23 39 34 38 31 35 35 2c 20 61 64 64  tch #948155, add
1380: 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 0a 09  ed support for..
1390: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
13a0: 20 20 20 20 61 6c 74 65 72 6e 61 74 65 20 73 6f      alternate so
13b0: 63 6b 65 74 20 63 6f 6d 6d 61 6e 64 73 2e 0a 09  cket commands...
13c0: 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20  * tls.c:        
13d0: 20 20 20 20 51 75 69 65 74 65 6e 20 73 6f 6d 65      Quieten some
13e0: 20 4d 53 56 43 20 77 61 72 6e 69 6e 67 73 2e 20   MSVC warnings. 
13f0: 50 72 65 66 65 72 20 63 6b 61 6c 6c 6f 63 0a 09  Prefer ckalloc..
1400: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
1410: 20 20 20 20 6f 76 65 72 20 54 63 6c 5f 41 6c 6c      over Tcl_All
1420: 6f 63 2e 20 28 44 61 76 69 64 20 47 72 61 76 65  oc. (David Grave
1430: 72 61 75 78 29 2e 0a 0a 32 30 30 34 2d 30 36 2d  raux)...2004-06-
1440: 32 39 20 20 50 61 74 20 54 68 6f 79 74 73 20 20  29  Pat Thoyts  
1450: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73  <patthoyts@users
1460: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74  .sourceforge.net
1470: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20  >...* tls.c:    
1480: 20 20 20 20 20 20 20 20 46 69 78 75 70 20 74 6f          Fixup to
1490: 20 62 75 69 6c 64 20 61 67 61 69 6e 73 74 20 74   build against t
14a0: 63 6c 20 38 2e 33 2e 33 2e 20 48 61 6e 64 6c 65  cl 8.3.3. Handle
14b0: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 20 20 20  ..* tlsIO.c:    
14c0: 20 20 20 20 20 20 38 2e 34 20 63 6f 6e 73 74 69        8.4 consti
14d0: 66 69 63 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74 6c  fication....* tl
14e0: 73 49 6e 74 2e 68 3a 20 20 20 20 20 20 20 20 20  sInt.h:         
14f0: 41 64 64 65 64 20 68 65 61 64 65 72 73 20 72 65  Added headers re
1500: 71 75 69 72 65 64 20 77 69 74 68 20 4d 53 56 43  quired with MSVC
1510: 20 6f 6e 20 57 69 6e 33 32 2e 0a 09 2a 20 74 6c   on Win32...* tl
1520: 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20  sX509.c:        
1530: 75 6e 64 65 66 20 6d 69 6e 20 61 6e 64 20 6d 61  undef min and ma
1540: 78 20 69 66 20 64 65 66 69 6e 65 64 20 28 77 69  x if defined (wi
1550: 6e 33 32 29 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69  n32)....* Makefi
1560: 6c 65 2e 69 6e 3a 20 20 20 20 20 20 46 69 78 65  le.in:      Fixe
1570: 64 20 74 6f 20 62 75 69 6c 64 20 6f 6e 20 77 69  d to build on wi
1580: 6e 33 32 20 75 73 69 6e 67 20 6d 73 79 73 20 77  n32 using msys w
1590: 69 74 68 0a 09 2a 20 61 63 6c 6f 63 61 6c 2e 6d  ith..* aclocal.m
15a0: 34 3a 20 20 20 20 20 20 20 4d 53 56 43 2e 20 41  4:       MSVC. A
15b0: 6c 73 6f 20 66 69 78 65 64 20 74 68 65 20 74 65  lso fixed the te
15c0: 73 74 20 74 61 72 67 65 74 2e 0a 09 2a 20 63 6f  st target...* co
15d0: 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 63  nfigure.in:..* c
15e0: 6f 6e 66 69 67 75 72 65 3a 20 20 20 20 20 20 20  onfigure:       
15f0: 20 52 65 67 65 6e 65 72 61 74 65 64 2e 0a 09 2a   Regenerated...*
1600: 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d   tclconfig/tcl.m
1610: 34 3a 20 55 70 64 61 74 65 64 20 74 6f 20 6d 6f  4: Updated to mo
1620: 73 74 20 72 65 63 65 6e 74 20 76 65 72 73 69 6f  st recent versio
1630: 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d 32 33 20 20  n...2004-03-23  
1640: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73  Dan Razzell <res
1650: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79  earch@starfishsy
1660: 73 74 65 6d 73 2e 63 61 3e 0a 09 2a 20 74 6c 73  stems.ca>..* tls
1670: 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a  .c:..* tlsBIO.c:
1680: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20  ..* tlsIO.c:..* 
1690: 74 6c 73 49 6e 74 2e 68 3a 09 46 69 78 65 64 20  tlsInt.h:.Fixed 
16a0: 74 79 70 65 20 6d 61 74 63 68 20 77 61 72 6e 69  type match warni
16b0: 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 33 2d 31 39  ngs...2004-03-19
16c0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a    Jeff Hobbs  <j
16d0: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65  effh@ActiveState
16e0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20  .com>...* tls.c 
16f0: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20 72 65  (Tls_Init):   re
1700: 70 6c 61 63 65 64 20 6f 6c 64 65 72 20 54 45 41  placed older TEA
1710: 20 63 6f 6e 66 69 67 20 77 69 74 68 20 6e 65 77   config with new
1720: 65 72 0a 09 2a 20 63 6f 6e 66 69 67 2f 2a 20 28  er..* config/* (
1730: 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 70 6b 67  removed):..* pkg
1740: 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 2c 20 73 74  Index.tcl.in, st
1750: 72 6e 63 61 73 65 63 6d 70 2e 63 20 28 72 65 6d  rncasecmp.c (rem
1760: 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 6b 65 66 69  oved):..* Makefi
1770: 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 61 6c 2e 6d  le.in, aclocal.m
1780: 34 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f  4, configure, co
1790: 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 74  nfigure.in:..* t
17a0: 63 6c 63 6f 6e 66 69 67 2f 52 45 41 44 4d 45 2e  clconfig/README.
17b0: 74 78 74 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 69  txt, tclconfig/i
17c0: 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 63 6c 63 6f  nstall-sh, tclco
17d0: 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 0a 0a 32 30  nfig/tcl.m4:..20
17e0: 30 34 2d 30 33 2d 31 37 20 20 44 61 6e 20 52 61  04-03-17  Dan Ra
17f0: 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40  zzell <research@
1800: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e  starfishsystems.
1810: 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 35 30 39 2e  ca>...* tlsX509.
1820: 63 3a 09 41 64 64 20 73 75 70 70 6f 72 74 20 66  c:.Add support f
1830: 6f 72 20 6c 6f 6e 67 20 73 65 72 69 61 6c 20 6e  or long serial n
1840: 75 6d 62 65 72 73 20 70 65 72 20 52 46 43 20 33  umbers per RFC 3
1850: 32 38 30 2e 0a 09 09 09 46 6f 72 6d 61 74 20 69  280.....Format i
1860: 73 20 6e 6f 77 20 68 65 78 61 64 65 63 69 6d 61  s now hexadecima
1870: 6c 2e 0a 09 09 09 5b 52 65 71 75 65 73 74 20 23  l.....[Request #
1880: 39 31 35 33 31 33 5d 0a 09 09 09 43 6f 72 72 65  915313]....Corre
1890: 63 74 6c 79 20 63 6f 6e 76 65 72 74 20 63 65 72  ctly convert cer
18a0: 74 69 66 69 63 61 74 65 20 44 69 73 74 69 6e 67  tificate Disting
18b0: 75 69 73 68 65 64 20 4e 61 6d 65 73 0a 09 09 09  uished Names....
18c0: 74 6f 20 54 63 6c 20 73 74 72 69 6e 67 20 72 65  to Tcl string re
18d0: 70 72 65 73 65 6e 74 61 74 69 6f 6e 2e 20 20 45  presentation.  E
18e0: 6c 69 6d 69 6e 61 74 65 73 20 75 73 65 20 6f 66  liminates use of
18f0: 0a 09 09 09 64 65 70 72 65 63 61 74 65 64 20 4f  ....deprecated O
1900: 70 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f 6e 2e  penSSL function.
1910: 20 20 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77 20    Format is now 
1920: 63 6f 6d 70 6c 69 61 6e 74 0a 09 09 09 77 69 74  compliant....wit
1930: 68 20 52 46 43 20 32 32 35 33 2e 20 20 5b 52 65  h RFC 2253.  [Re
1940: 71 75 65 73 74 20 23 39 31 35 33 31 35 5d 0a 0a  quest #915315]..
1950: 32 30 30 34 2d 30 32 2d 31 37 20 20 44 61 6e 20  2004-02-17  Dan 
1960: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63  Razzell <researc
1970: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d  h@starfishsystem
1980: 73 2e 63 61 3e 0a 0a 09 54 4c 53 20 31 2e 35 2e  s.ca>...TLS 1.5.
1990: 30 20 52 45 4c 45 41 53 45 0a 0a 32 30 30 34 2d  0 RELEASE..2004-
19a0: 30 32 2d 31 32 20 20 44 61 6e 20 52 61 7a 7a 65  02-12  Dan Razze
19b0: 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61  ll.<research@sta
19c0: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e  rfishsystems.ca>
19d0: 0a 0a 09 2a 20 74 6c 73 2e 63 3a 09 41 6c 6c 6f  ...* tls.c:.Allo
19e0: 77 20 76 65 72 69 66 79 20 63 61 6c 6c 62 61 63  w verify callbac
19f0: 6b 20 74 6f 20 72 65 74 75 72 6e 20 65 6d 70 74  k to return empt
1a00: 79 20 72 65 73 75 6c 74 2e 0a 09 2a 20 74 6c 73  y result...* tls
1a10: 2e 68 74 6d 3a 09 44 6f 63 75 6d 65 6e 74 20 63  .htm:.Document c
1a20: 61 6c 6c 62 61 63 6b 20 62 65 68 61 76 69 6f 72  allback behavior
1a30: 73 2e 0a 0a 32 30 30 34 2d 30 32 2d 31 31 20 20  s...2004-02-11  
1a40: 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73  Dan Razzell.<res
1a50: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79  earch@starfishsy
1a60: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 65  stems.ca>...* te
1a70: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a  sts/tlsIO.test:.
1a80: 09 2a 20 72 65 6d 6f 74 65 2e 74 63 6c 3a 09 43  .* remote.tcl:.C
1a90: 6f 6d 70 6c 65 74 65 20 70 72 69 76 61 74 65 20  omplete private 
1aa0: 6b 65 79 20 6e 61 6d 65 20 63 68 61 6e 67 65 73  key name changes
1ab0: 20 66 72 6f 6d 20 32 30 30 31 2d 30 36 2d 32 31   from 2001-06-21
1ac0: 2e 0a 0a 32 30 30 34 2d 30 32 2d 30 33 20 20 44  ...2004-02-03  D
1ad0: 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65  an Razzell <rese
1ae0: 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73  arch@starfishsys
1af0: 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 4d 61 6b  tems.ca>...* Mak
1b00: 65 66 69 6c 65 2e 69 6e 3a 09 52 65 6d 6f 76 65  efile.in:.Remove
1b10: 64 20 63 69 72 63 75 6c 61 72 20 64 65 70 65 6e  d circular depen
1b20: 64 65 6e 63 79 2e 0a 09 2a 20 74 6c 73 49 6e 74  dency...* tlsInt
1b30: 2e 68 3a 09 4d 61 6b 65 20 66 75 6e 63 74 69 6f  .h:.Make functio
1b40: 6e 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 65  n declarations e
1b50: 78 70 6c 69 63 69 74 2e 0a 09 2a 20 74 6c 73 2e  xplicit...* tls.
1b60: 63 3a 09 46 69 78 20 74 79 70 65 20 6d 61 74 63  c:.Fix type matc
1b70: 68 20 61 6e 64 20 75 6e 75 73 65 64 20 76 61 72  h and unused var
1b80: 69 61 62 6c 65 20 77 61 72 6e 69 6e 67 73 2e 0a  iable warnings..
1b90: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 09 46 69 78  .* tlsBIO.c:.Fix
1ba0: 20 74 79 70 65 20 6d 61 74 63 68 20 77 61 72 6e   type match warn
1bb0: 69 6e 67 2e 0a 0a 32 30 30 33 2d 31 32 2d 31 35  ing...2003-12-15
1bc0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72    Dan Razzell.<r
1bd0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68  esearch@starfish
1be0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20  systems.ca>...* 
1bf0: 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a  pkgIndex.tcl.in:
1c00: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20  ..* tls.htm:..* 
1c10: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74  tests/tlsIO.test
1c20: 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 69 6f  : updated versio
1c30: 6e 20 74 6f 20 31 2e 35 2e 0a 0a 32 30 30 33 2d  n to 1.5...2003-
1c40: 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a 65  10-07  Dan Razze
1c50: 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74 61  ll.<research@sta
1c60: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e  rfishsystems.ca>
1c70: 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65  ...* tests/ciphe
1c80: 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64  rs.test: updated
1c90: 20 6c 69 73 74 20 6f 66 20 74 65 73 74 65 64 20   list of tested 
1ca0: 63 69 70 68 65 72 73 20 74 6f 20 63 6f 72 72 65  ciphers to corre
1cb0: 73 70 6f 6e 64 0a 09 2a 20 77 69 74 68 20 74 68  spond..* with th
1cc0: 6f 73 65 20 61 76 61 69 6c 61 62 6c 65 20 66 72  ose available fr
1cd0: 6f 6d 20 4f 70 65 6e 53 53 4c 2e 20 5b 52 65 71  om OpenSSL. [Req
1ce0: 75 65 73 74 20 23 38 31 31 39 38 31 5d 0a 0a 32  uest #811981]..2
1cf0: 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 52  003-10-07  Dan R
1d00: 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68  azzell <research
1d10: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73  @starfishsystems
1d20: 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20  .ca>...* tls.c: 
1d30: 61 64 64 65 64 20 43 4f 4e 53 54 20 77 69 74 68  added CONST with
1d40: 20 69 6e 74 65 6e 74 20 73 69 6d 69 6c 61 72 20   intent similar 
1d50: 74 6f 20 74 68 6f 73 65 20 66 72 6f 6d 20 32 30  to those from 20
1d60: 30 32 2d 30 32 2d 30 34 2e 0a 09 5b 52 65 71 75  02-02-04...[Requ
1d70: 65 73 74 20 23 38 31 31 39 31 31 5d 0a 0a 32 30  est #811911]..20
1d80: 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66 20 48  03-07-07  Jeff H
1d90: 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74  obbs  <jeffh@Act
1da0: 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09  iveState.com>...
1db0: 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69  * tls.c (Tls_Ini
1dc0: 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c 73 3a  t):   added tls:
1dd0: 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20 70 72  :misc command pr
1de0: 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74 6c 73  ovided by..* tls
1df0: 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20 20  X509.c:         
1e00: 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a 61 6e   Wojciech Kocjan
1e10: 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63 6a 61   (wojciech kocja
1e20: 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74 73 2f  n.org)..* tests/
1e30: 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20 74 6f  keytest1.tcl: to
1e40: 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c 6f 77   expose more low
1e50: 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d 6d 61  -level SSL comma
1e60: 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79  nds..* tests/key
1e70: 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30 30 33  test2.tcl:..2003
1e80: 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61 7a 7a  -05-15  Dan Razz
1e90: 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74  ell.<research@st
1ea0: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61  arfishsystems.ca
1eb0: 3e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 0a 09  >...* tls.tcl:..
1ec0: 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74  * tlsInt.h:..* t
1ed0: 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 70 6f 72  ls.c: add suppor
1ee0: 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 20 61 20  t for binding a 
1ef0: 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63  password callbac
1f00: 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b 65 74 2e  k to the socket.
1f10: 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f 63 6b 65  ..Now each socke
1f20: 74 20 63 61 6e 20 68 61 76 65 20 69 74 73 20 6f  t can have its o
1f30: 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e 64 20 70  wn command and p
1f40: 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b  assword callback
1f50: 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 20 62 65  s instead..of be
1f60: 69 6e 67 20 66 6f 72 63 65 64 20 74 6f 20 68 61  ing forced to ha
1f70: 76 65 20 61 6c 6c 20 70 61 73 73 77 6f 72 64 20  ve all password 
1f80: 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 73 73 20  management pass 
1f90: 74 68 72 6f 75 67 68 20 61 20 63 6f 6d 6d 6f 6e  through a common
1fa0: 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 20 54 68  ..procedure.  Th
1fb0: 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 77 6f 72  e common passwor
1fc0: 64 20 70 72 6f 63 65 64 75 72 65 20 69 73 20 72  d procedure is r
1fd0: 65 74 61 69 6e 65 64 20 66 6f 72 20 63 6f 6d 70  etained for comp
1fe0: 61 74 69 62 69 6c 69 74 79 0a 09 62 75 74 20 69  atibility..but i
1ff0: 74 73 20 75 73 65 20 73 68 6f 75 6c 64 20 62 65  ts use should be
2000: 20 44 45 50 52 45 43 41 54 45 44 2e 0a 09 41 64   DEPRECATED...Ad
2010: 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d 6d 61 6e  d version comman
2020: 64 20 74 6f 20 72 65 74 75 72 6e 20 4f 70 65 6e  d to return Open
2030: 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 74 72 69  SSL version stri
2040: 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 6e 73 74  ng...Remove unst
2050: 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 6e 64 73  able workarounds
2060: 20 6e 65 65 64 65 64 20 66 6f 72 20 76 65 72 69   needed for veri
2070: 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 65 20 76  fy in obsolete v
2080: 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f 70 65 6e  ersions of..Open
2090: 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f 72 79  SSL...Fix memory
20a0: 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 73 74 20   leak. [Request 
20b0: 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 65 20 63  #640660]..More c
20c0: 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 6e 61 74  asts to eliminat
20d0: 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 72 6e 69  e compiler warni
20e0: 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d  ngs....* tls.htm
20f0: 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 73 73 77  : document passw
2100: 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e 0a 09 43  ord callback...C
2110: 6f 72 72 65 63 74 20 74 65 63 68 6e 69 63 61 6c  orrect technical
2120: 20 61 6e 64 20 74 79 70 6f 67 72 61 70 68 69 63   and typographic
2130: 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 52 45 41   errors....* REA
2140: 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e 74 69 66  DME.txt: identif
2150: 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70  y versions of Op
2160: 65 6e 53 53 4c 20 77 68 69 63 68 20 66 69 78 20  enSSL which fix 
2170: 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d 73 2e 0a  known problems..
2180: 09 47 65 6e 65 72 61 6c 20 77 61 72 6e 69 6e 67  .General warning
2190: 20 6f 66 20 73 65 63 75 72 69 74 79 20 70 72 6f   of security pro
21a0: 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 72 20 76  blems in older v
21b0: 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53  ersions of OpenS
21c0: 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d 30 34 20  SL...2002-02-04 
21d0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65   Jeff Hobbs  <je
21e0: 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e  ffh@ActiveState.
21f0: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d  com>...* tls.htm
2200: 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65  :..* tls.c: adde
2210: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f  d support for lo
2220: 63 61 6c 20 63 65 72 74 69 66 69 63 61 74 65 20  cal certificate 
2230: 73 74 61 74 75 73 20 63 68 65 63 6b 2c 20 61 73  status check, as
2240: 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 75 72 6e   well..as return
2250: 69 6e 67 20 74 68 65 20 23 20 6f 66 20 62 69 74  ing the # of bit
2260: 73 20 69 6e 20 74 68 65 20 73 65 73 73 69 6f 6e  s in the session
2270: 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 23 35 30   key. [Patch #50
2280: 35 36 39 38 5d 20 28 72 6f 73 65 29 0a 0a 09 2a  5698] (rose)...*
2290: 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f   tls.c:..* tlsIO
22a0: 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a  .c:..* tlsBIO.c:
22b0: 20 61 64 64 65 64 20 43 4f 4e 53 54 73 20 74 6f   added CONSTs to
22c0: 20 73 61 74 69 73 66 79 20 54 63 6c 20 38 2e 34   satisfy Tcl 8.4
22d0: 20 73 6f 75 72 63 65 73 2e 20 20 54 68 69 73 20   sources.  This 
22e0: 6d 61 79 0a 09 67 69 76 65 20 77 61 72 6e 69 6e  may..give warnin
22f0: 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 6c 65 64  gs when compiled
2300: 20 61 67 61 69 6e 73 74 20 38 2e 33 2c 20 62 75   against 8.3, bu
2310: 74 20 74 68 65 79 20 63 61 6e 20 62 65 20 69 67  t they can be ig
2320: 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 73 74 73  nored....* tests
2330: 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63  /simpleClient.tc
2340: 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70  l:..* tests/simp
2350: 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 70 6f  leServer.tcl: po
2360: 69 6e 74 20 74 6f 20 75 70 64 61 74 65 64 20 63  int to updated c
2370: 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 6b 65 79  lient/server key
2380: 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 65 73 74   files....* test
2390: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a  s/tlsIO.test:..*
23a0: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74   tests/ciphers.t
23b0: 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20  est: updated to 
23c0: 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d 20 62 75  load tls from bu
23d0: 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 4d 61 6b  ild dir....* Mak
23e0: 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f 76 65  efile.in: remove
23f0: 64 20 73 74 72 6e 63 61 73 65 63 6d 70 20 66 72  d strncasecmp fr
2400: 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 6a 65 63  om default objec
2410: 74 20 73 65 74 2e 20 20 54 68 69 73 0a 09 69 73  t set.  This..is
2420: 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 6f 6e 20   only needed on 
2430: 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 54 63 6c  the Mac, and Tcl
2440: 20 73 74 75 62 73 20 70 72 6f 76 69 64 65 73 20   stubs provides 
2450: 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72  it....* configur
2460: 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a 09 2a 20  e: regen'ed...* 
2470: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 70  configure.in: up
2480: 64 61 74 65 64 20 74 6f 20 31 2e 35 2e 30 20 66  dated to 1.5.0 f
2490: 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 73 65 2e  or next release.
24a0: 0a 09 43 68 61 6e 67 65 64 20 64 65 66 61 75 6c  ..Changed defaul
24b0: 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 61 74 69  t openssl locati
24c0: 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f 63 61 6c  on to /usr/local
24d0: 2f 73 73 6c 20 28 74 68 69 73 20 69 73 20 77 68  /ssl (this is wh
24e0: 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 30 2e 39  ere..openssl 0.9
24f0: 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 62 79 20  .6c installs by 
2500: 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 61 6e 67  default)...Chang
2510: 65 64 20 74 6f 20 75 73 65 20 70 75 62 6c 69 63  ed to use public
2520: 20 54 63 6c 20 68 65 61 64 65 72 73 20 28 70 72   Tcl headers (pr
2530: 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 64 65 64  ivate not needed
2540: 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 31 20 20  )...2001-06-21  
2550: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66  Jeff Hobbs  <jef
2560: 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63  fh@ActiveState.c
2570: 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e 31 20  om>...TLS 1.4.1 
2580: 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 6f 6e 66  RELEASE...* conf
2590: 69 67 75 72 65 3a 20 61 64 64 65 64 20 63 6f 6e  igure: added con
25a0: 66 69 67 75 72 65 20 74 6f 20 43 56 53 0a 09 2a  figure to CVS..*
25b0: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 6d   configure.in: m
25c0: 6f 76 65 64 20 74 6f 20 70 61 74 63 68 6c 65 76  oved to patchlev
25d0: 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d 61 6b  el 1.4.1...* Mak
25e0: 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 72 65 63  efile.in: correc
25f0: 74 65 64 20 27 64 69 73 74 27 20 74 61 72 67 65  ted 'dist' targe
2600: 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  t...* tests/cert
2610: 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a 20 74  s/file.srl:..* t
2620: 65 73 74 73 2f 63 65 72 74 73 2f 63 61 2e 70 65  ests/certs/ca.pe
2630: 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  m:..* tests/cert
2640: 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a 09 2a  s/client.key:..*
2650: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69   tests/certs/cli
2660: 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74  ent.pem:..* test
2670: 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 72  s/certs/client.r
2680: 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72  eq:..* tests/cer
2690: 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 6d 3a 0a  ts/privkey.pem:.
26a0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73  .* tests/certs/s
26b0: 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a 20 74 65  erver.key:..* te
26c0: 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72  sts/certs/server
26d0: 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63  .pem:..* tests/c
26e0: 65 72 74 73 2f 73 65 72 76 65 72 2e 72 65 71 3a  erts/server.req:
26f0: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f  ..* tests/certs/
2700: 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 65 70 6c  cacert.pem: repl
2710: 61 63 65 64 20 62 79 20 6e 65 77 20 63 61 2e 70  aced by new ca.p
2720: 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  em..* tests/cert
2730: 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c  s/skey.pem: repl
2740: 61 63 65 64 20 62 79 20 6e 65 77 20 73 65 72 76  aced by new serv
2750: 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f  er.key..* tests/
2760: 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 6d 3a 20  certs/ckey.pem: 
2770: 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20  replaced by new 
2780: 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a 20 74 65  client.key..* te
2790: 73 74 73 2f 63 65 72 74 73 2f 52 45 41 44 4d 45  sts/certs/README
27a0: 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 20 6f 66  .txt: new set of
27b0: 20 74 65 73 74 20 63 65 72 74 69 66 69 63 61 74   test certificat
27c0: 65 73 20 77 69 74 68 20 73 6f 6d 65 0a 09 52 45  es with some..RE
27d0: 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 74 68 65  ADME info on the
27e0: 69 72 20 67 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a  ir generation...
27f0: 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73  .* tests/ciphers
2800: 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 63  .test: updated c
2810: 69 70 68 65 72 73 20 65 78 70 65 63 74 65 64 20  iphers expected 
2820: 77 69 74 68 20 64 65 66 61 75 6c 74 0a 09 6f 70  with default..op
2830: 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a 0a 09 2a  enssl build....*
2840: 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e 74 65 73   tests/tclIO.tes
2850: 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20 75 73  t: updated to us
2860: 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 6f 72 20  e new names for 
2870: 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a 32 30 30  certs/keys...200
2880: 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 20 48 6f  1-03-14  Jeff Ho
2890: 62 62 73 20 20 3c 6a 65 66 66 68 40 67 69 6d 6c  bbs  <jeffh@giml
28a0: 65 74 2e 61 63 74 69 76 65 73 74 61 74 65 2e 63  et.activestate.c
28b0: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54  om>...* tls.c (T
28c0: 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 20 64 6f  ls_Init): add do
28d0: 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 6e 64 6f  /while for rando
28e0: 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 69 61 6c  m number initial
28f0: 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 6f 72 6b  ization..to work
2900: 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 4f 53 65   around some OSe
2910: 73 20 71 75 69 72 6b 73 2e 20 20 28 52 61 6c 70  s quirks.  (Ralp
2920: 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 65 63 68  h.Billes@teltech
2930: 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 30 2d 30  .com.au)..2000-0
2940: 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73  9-07  Jeff Hobbs
2950: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69    <hobbs@scripti
2960: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49  cs.com>...* tlsI
2970: 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e 6e 65 6c  O.c (Tls_Channel
2980: 54 79 70 65 29 3a 20 73 65 74 20 74 79 70 65 4e  Type): set typeN
2990: 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 63 68 61  ame field of cha
29a0: 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a 09 22 74  nnel type to.."t
29b0: 6c 73 22 20 28 74 68 69 73 20 67 6f 74 20 6c 6f  ls" (this got lo
29c0: 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f 20 64 79  st in move to dy
29d0: 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e 20 63 6f  namic version co
29e0: 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 63 68 65  mpatability..che
29f0: 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 2d 30 38  cking)...2000-08
2a00: 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -23  Jeff Hobbs 
2a10: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
2a20: 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34  s.com>...TLS 1.4
2a30: 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 20 4d 61   RELEASED...* Ma
2a40: 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 73 74 29  kefile.in (dist)
2a50: 3a 20 63 72 65 61 74 65 20 64 69 73 74 20 74 61  : create dist ta
2a60: 72 67 65 74 20 66 6f 72 20 61 72 63 68 69 76 65  rget for archive
2a70: 20 64 69 73 74 72 69 62 75 74 69 6f 6e 73 0a 0a   distributions..
2a80: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74  .* tests/tlsIO.t
2a90: 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e 31 29 3a  est (tlsIO-8.1):
2aa0: 20 61 64 64 65 64 20 61 20 64 65 6c 61 79 20 6f   added a delay o
2ab0: 6e 20 74 68 65 20 61 63 63 65 70 74 20 63 6c 6f  n the accept clo
2ac0: 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 68 65 20  se..to make the 
2ad0: 74 65 73 74 20 77 6f 72 6b 20 77 69 74 68 20 4f  test work with O
2ae0: 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e 64 6f 77  penSSL on Window
2af0: 73 20 28 64 6f 65 73 6e 27 74 20 61 66 66 65 63  s (doesn't affec
2b00: 74 0a 09 6f 74 68 65 72 20 62 75 69 6c 64 73 29  t..other builds)
2b10: 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 75  ....* tls.htm: u
2b20: 70 64 61 74 65 64 20 77 69 74 68 20 6e 6f 74 65  pdated with note
2b30: 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 30 30 30  s for 1.4...2000
2b40: 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 48 6f 62  -08-21  Jeff Hob
2b50: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
2b60: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65  tics.com>...* te
2b70: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20  sts/tlsIO.test: 
2b80: 72 65 71 75 69 72 65 20 61 74 20 6c 65 61 73 74  require at least
2b90: 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 73 74 20   tls1.4 in test 
2ba0: 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d 30 38 2d  suite...2000-08-
2bb0: 31 38 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  18  Jeff Hobbs  
2bc0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
2bd0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20  .com>...* tls.c 
2be0: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 65  (Tls_Init): adde
2bf0: 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e 44 5f 73  d call to RAND_s
2c00: 65 65 64 20 74 6f 20 73 65 65 64 20 74 68 65 20  eed to seed the 
2c10: 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62  SSL random..numb
2c20: 65 72 20 67 65 6e 65 72 61 74 6f 72 2e 20 20 57  er generator.  W
2c30: 69 74 68 6f 75 74 20 74 68 69 73 2c 20 4f 70 65  ithout this, Ope
2c40: 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 6f 6b 65  nSSL 0.9.5 choke
2c50: 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 0a 09 63  s, and in any..c
2c60: 61 73 65 20 69 74 20 69 73 20 61 20 62 69 67 20  ase it is a big 
2c70: 73 65 63 75 72 69 74 79 20 68 6f 6c 65 20 74 6f  security hole to
2c80: 20 64 6f 20 77 69 74 68 6f 75 74 20 69 74 2e 0a   do without it..
2c90: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e  ..* configure.in
2ca0: 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 64 64 65   (OPENSSL): adde
2cb0: 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 20 4e 4f  d NO_IDEA and NO
2cc0: 5f 52 43 35 20 64 65 66 69 6e 65 73 20 62 79 0a  _RC5 defines by.
2cd0: 09 64 65 66 61 75 6c 74 20 77 68 65 6e 20 63 6f  .default when co
2ce0: 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 4f 70 65  mpiling with Ope
2cf0: 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74  nSSL....* tlsInt
2d00: 2e 68 3a 20 61 64 64 65 64 20 65 72 72 2e 68 20  .h: added err.h 
2d10: 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 6c 73 42  include...* tlsB
2d20: 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63  IO.c:..* tlsIO.c
2d30: 3a 20 63 6f 72 72 65 63 74 65 64 20 70 65 64 61  : corrected peda
2d40: 6e 74 69 63 20 63 61 73 74 20 65 72 72 6f 72 73  ntic cast errors
2d50: 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 20 20 4a  ...2000-08-16  J
2d60: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
2d70: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  s@scriptics.com>
2d80: 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65  ...* tests/ciphe
2d90: 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 6f 76 65  rs.test: improve
2da0: 64 20 61 62 69 6c 69 74 79 20 74 6f 20 63 68 61  d ability to cha
2db0: 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e 74 0a 09  nge constraint..
2dc0: 73 65 74 74 69 6e 67 20 66 6f 72 20 77 68 65 74  setting for whet
2dd0: 68 65 72 20 75 73 65 72 20 63 6f 6d 70 69 6c 65  her user compile
2de0: 64 20 61 67 61 69 6e 73 74 20 52 53 41 20 6f 72  d against RSA or
2df0: 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a   OpenSSL libs...
2e00: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e  .* tls.c (Tls_In
2e10: 69 74 29 3a 20 63 6f 72 72 65 63 74 65 64 20 69  it): corrected i
2e20: 6e 74 65 72 70 72 65 74 61 74 69 6f 6e 20 6f 66  nterpretation of
2e30: 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 0a   version number.
2e40: 09 28 70 61 74 63 68 6c 65 76 65 6c 20 61 6e 64  .(patchlevel and
2e50: 20 72 65 6c 65 61 73 65 2f 73 65 72 69 61 6c 20   release/serial 
2e60: 77 65 72 65 20 73 77 61 70 70 65 64 29 2e 0a 0a  were swapped)...
2e70: 32 30 30 30 2d 30 38 2d 31 35 20 20 4a 65 66 66  2000-08-15  Jeff
2e80: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73   Hobbs  <hobbs@s
2e90: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
2ea0: 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20 61 64  * README.txt: ad
2eb0: 64 65 64 20 6e 6f 74 65 73 20 61 62 6f 75 74 20  ded notes about 
2ec0: 6e 65 65 64 20 74 6f 20 75 73 65 20 38 2e 32 2e  need to use 8.2.
2ed0: 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68  0+....* tlsInt.h
2ee0: 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74  :..* tls.c:..* t
2ef0: 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65  lsIO.c: correcte
2f00: 64 20 73 74 72 75 63 74 75 72 65 20 69 6e 69 74  d structure init
2f10: 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f 20 77 6f  ialization to wo
2f20: 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 69 6c 69  rk when..compili
2f30: 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 20 4e 6f  ng with 8.2.  No
2f40: 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 74 68 20  w compiles with 
2f50: 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 65 64 20  8.2+ and tested 
2f60: 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 20 38 2e  to work..with 8.
2f70: 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 63 61 6c  2+ and dynamical
2f80: 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 74 68 65  ly adjust to the
2f90: 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 63 6c 20   version of Tcl 
2fa0: 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 64 20 69  it was..loaded i
2fb0: 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c 6c 20 66  nto.  TLS will f
2fc0: 61 69 6c 20 74 68 65 20 74 65 73 74 20 73 75 69  ail the test sui
2fd0: 74 65 20 77 69 74 68 20 54 63 6c 20 38 2e 32 2d  te with Tcl 8.2-
2fe0: 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 73 74 73  8.3.1....* tests
2ff0: 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 65 64 20  /all.tcl: added 
3000: 63 61 74 63 68 20 61 72 6f 75 6e 64 20 3a 3a 74  catch around ::t
3010: 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a  cltest::normaliz
3020: 65 50 61 74 68 0a 09 62 65 63 61 75 73 65 20 69  ePath..because i
3030: 74 20 64 6f 65 73 6e 27 74 20 65 78 69 73 74 20  t doesn't exist 
3040: 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 6c 74 65  in pre-8.3 tclte
3050: 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69  st....* tests/si
3060: 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a  mpleClient.tcl:.
3070: 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53  .* tests/simpleS
3080: 65 72 76 65 72 2e 74 63 6c 3a 20 61 64 64 65 64  erver.tcl: added
3090: 20 73 69 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73   simple client/s
30a0: 65 72 76 65 72 20 74 65 73 74 20 73 63 72 69 70  erver test scrip
30b0: 74 73 0a 09 74 68 61 74 20 75 73 65 20 74 65 73  ts..that use tes
30c0: 74 20 63 65 72 74 73 20 61 6e 64 20 63 61 6e 20  t certs and can 
30d0: 64 6f 20 73 69 6d 70 6c 65 20 73 74 72 65 73 73  do simple stress
30e0: 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38   tests...2000-08
30f0: 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -14  Jeff Hobbs 
3100: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
3110: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e  s.com>...* tlsIn
3120: 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a  t.h:..* tlsIO.c:
3130: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a  ..* tlsBIO.c:..*
3140: 20 74 6c 73 2e 63 3a 20 63 68 61 6e 67 65 64 20   tls.c: changed 
3150: 61 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77  around to only w
3160: 6f 72 6b 69 6e 67 20 77 69 74 68 20 38 2e 32 2e  orking with 8.2.
3170: 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66  0+ (8.3.2+..pref
3180: 65 72 72 65 64 29 2c 20 77 69 74 68 20 72 75 6e  erred), with run
3190: 74 69 6d 65 20 63 68 65 63 6b 73 20 66 6f 72 20  time checks for 
31a0: 70 72 65 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f  pre- and post-io
31b0: 2d 72 65 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c  -rewrite....* tl
31c0: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20  s.c (Tls_Init): 
31d0: 63 68 61 6e 67 65 64 20 69 74 20 74 6f 20 72 65  changed it to re
31e0: 71 75 69 72 65 20 38 2e 33 2e 32 20 77 68 65 6e  quire 8.3.2 when
31f0: 20 54 63 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09   Tcl_InitStubs..
3200: 77 61 73 20 63 61 6c 6c 65 64 20 62 65 63 61 75  was called becau
3210: 73 65 20 77 65 20 64 6f 6e 27 74 20 77 61 6e 74  se we don't want
3220: 20 70 65 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c   people using TL
3230: 53 20 77 69 74 68 20 74 68 65 0a 09 6f 72 69 67  S with the..orig
3240: 69 6e 61 6c 20 73 74 61 63 6b 65 64 20 63 68 61  inal stacked cha
3250: 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74  nnel implementat
3260: 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36  ion...2000-07-26
3270: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
3280: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
3290: 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61  om>...* merged a
32a0: 6c 6c 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20  ll changes from 
32b0: 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69  tls-1-3-io-rewri
32c0: 74 65 20 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69  te back into mai
32d0: 6e 20 62 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73  n branch...* tes
32e0: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75  ts/tlsIO.test: u
32f0: 70 64 61 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c  pdated comments,
3300: 20 66 69 78 65 64 20 61 20 70 63 43 72 61 73 68   fixed a pcCrash
3310: 20 63 61 73 65 20 74 68 61 74 0a 09 77 61 73 20   case that..was 
3320: 64 75 65 20 74 6f 20 64 65 62 75 67 20 61 73 73  due to debug ass
3330: 65 72 74 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77  ertion in Window
3340: 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63  s SSL....* tls.c
3350: 20 28 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a   (ImportObjCmd):
3360: 20 72 65 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73   removed unneces
3370: 73 61 72 79 20 75 73 65 20 6f 66 20 27 62 69 6f  sary use of 'bio
3380: 27 20 61 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69  ' arg...(Tls_Ini
3390: 74 29 3a 20 63 68 65 63 6b 20 72 65 74 75 72 6e  t): check return
33a0: 20 76 61 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69   value of SSL_li
33b0: 62 72 61 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73  brary_init.  Als
33c0: 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 68 69 74 65  o lots of..white
33d0: 73 70 61 63 65 20 63 6c 65 61 6e 75 70 20 28 6d  space cleanup (m
33e0: 6f 72 65 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67  ore like Tcl Eng
33f0: 20 73 74 79 6c 65 20 67 75 69 64 65 29 2c 20 62   style guide), b
3400: 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65  ut not all..code
3410: 20 77 61 73 20 63 6c 65 61 6e 65 64 20 75 70 2e   was cleaned up.
3420: 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d  ...* tlsBIO.c: m
3430: 69 6e 6f 72 20 77 68 69 74 65 73 70 61 63 65 20  inor whitespace 
3440: 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49  cleanup...* tlsI
3450: 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65  O.c: minor white
3460: 73 70 61 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09  space cleanup...
3470: 28 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 54  (TlsInputProc, T
3480: 6c 73 4f 75 74 70 75 74 50 72 6f 63 29 3a 20 41  lsOutputProc): A
3490: 64 64 65 64 20 45 52 52 5f 63 6c 65 61 72 5f 65  dded ERR_clear_e
34a0: 72 72 6f 72 20 62 65 66 6f 72 65 20 63 61 6c 6c  rror before call
34b0: 73 0a 09 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f  s..to BIO_read o
34c0: 72 20 42 49 4f 5f 77 72 69 74 65 2c 20 62 65 63  r BIO_write, bec
34d0: 61 75 73 65 20 77 65 20 63 6f 75 6c 64 20 6f 74  ause we could ot
34e0: 68 65 72 77 69 73 65 20 65 6e 64 20 75 70 0a 09  herwise end up..
34f0: 70 75 6c 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72  pulling an error
3500: 20 6f 66 66 20 74 68 65 20 73 74 61 63 6b 20 74   off the stack t
3510: 68 61 74 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e  hat didn't belon
3520: 67 20 74 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09  g to us.  Also..
3530: 63 6c 65 61 6e 75 70 20 75 70 20 65 78 63 65 73  cleanup up exces
3540: 73 69 76 65 20 75 73 65 20 6f 66 20 67 6f 74 6f  sive use of goto
3550: 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 30 20 20  s...2000-07-20  
3560: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
3570: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
3580: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49  >...* tests/tlsI
3590: 4f 2e 74 65 73 74 3a 20 63 6f 72 72 65 63 74 65  O.test: correcte
35a0: 64 20 76 61 72 69 6f 75 73 20 74 65 73 74 73 20  d various tests 
35b0: 74 6f 20 62 65 20 63 6f 72 72 65 63 74 20 66 6f  to be correct fo
35c0: 72 20 54 4c 53 0a 09 73 74 61 63 6b 65 64 20 63  r TLS..stacked c
35d0: 68 61 6e 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f  hannels (as oppo
35e0: 73 65 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64  sed to the stand
35f0: 61 72 64 20 73 6f 63 6b 65 74 73 20 74 68 65 20  ard sockets the 
3600: 74 65 73 74 0a 09 73 75 69 74 65 20 77 61 73 20  test..suite was 
3610: 61 64 6f 70 74 65 64 20 66 72 6f 6d 29 2e 20 20  adopted from).  
3620: 4b 65 79 20 64 69 66 66 65 72 65 6e 63 65 73 20  Key differences 
3630: 61 72 65 20 74 68 61 74 20 54 4c 53 20 63 61 6e  are that TLS can
3640: 6e 6f 74 0a 09 6f 70 65 72 61 74 65 20 69 6e 20  not..operate in 
3650: 6f 6e 65 20 70 72 6f 63 65 73 73 20 77 69 74 68  one process with
3660: 6f 75 74 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73  out all channels
3670: 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b   being non-block
3680: 69 6e 67 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e  ing, or..the han
3690: 64 73 68 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63  dshake will bloc
36a0: 6b 2c 20 61 6e 64 20 68 61 6e 64 73 68 61 6b 69  k, and handshaki
36b0: 6e 67 20 6d 75 73 74 20 62 65 20 66 6f 72 63 65  ng must be force
36c0: 64 20 69 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73  d in some..cases
36d0: 2e 20 20 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61  .  Also, handsha
36e0: 6b 65 73 20 64 6f 6e 27 74 20 73 65 65 6d 20 74  kes don't seem t
36f0: 6f 20 63 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73  o complete unles
3700: 73 20 74 68 65 20 63 6c 69 65 6e 74 0a 09 68 61  s the client..ha
3710: 73 20 70 6c 61 63 65 64 20 61 74 20 6c 65 61 73  s placed at leas
3720: 74 20 6f 6e 65 20 62 79 74 65 20 66 6f 72 20 74  t one byte for t
3730: 68 65 20 73 65 72 76 65 72 20 74 6f 20 72 65 61  he server to rea
3740: 64 20 69 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c  d in the channel
3750: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f  ....* tests/remo
3760: 74 65 2e 74 63 6c 3a 20 63 6f 72 72 65 63 74 65  te.tcl: correcte
3770: 64 20 74 68 65 20 66 69 6e 64 69 6e 67 20 6f 66  d the finding of
3780: 20 74 65 73 74 73 20 63 65 72 74 69 66 69 63 61   tests certifica
3790: 74 65 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20  tes...* tlsIO.c 
37a0: 28 54 6c 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20  (TlsCloseProc): 
37b0: 72 65 6d 6f 76 65 64 20 64 65 6c 65 74 69 6e 67  removed deleting
37c0: 20 6f 66 20 74 69 6d 65 72 20 68 61 6e 64 6c 65   of timer handle
37d0: 72 20 61 73 0a 09 74 68 61 74 20 69 73 20 68 61  r as..that is ha
37e0: 6e 64 6c 65 64 20 62 79 20 54 6c 73 5f 43 6c 65  ndled by Tls_Cle
37f0: 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20  an....* tls.tcl 
3800: 28 74 6c 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20  (tls::_accept): 
3810: 63 6f 72 72 65 63 74 65 64 20 74 68 65 20 69 6e  corrected the in
3820: 74 65 72 6e 61 6c 20 5f 61 63 63 65 70 74 20 74  ternal _accept t
3830: 6f 0a 09 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62  o..trickle callb
3840: 61 63 6b 20 65 72 72 6f 72 73 20 74 6f 20 74 68  ack errors to th
3850: 65 20 75 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65  e user....* Make
3860: 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68  file.in: made th
3870: 65 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69  e install-binari
3880: 65 73 20 74 61 72 67 65 74 20 72 65 67 65 6e 65  es target regene
3890: 72 61 74 65 20 74 68 65 0a 09 70 6b 67 49 6e 64  rate the..pkgInd
38a0: 65 78 2e 74 63 6c 20 63 6f 72 72 65 63 74 6c 79  ex.tcl correctly
38b0: 2e 20 20 54 68 65 20 74 65 73 74 20 74 61 72 67  .  The test targ
38c0: 65 74 20 70 72 6f 62 61 62 6c 79 20 73 68 6f 75  et probably shou
38d0: 6c 64 6e 27 74 20 73 63 72 65 77 0a 09 69 74 20  ldn't screw..it 
38e0: 75 70 2c 20 62 75 74 20 74 68 69 73 20 69 73 20  up, but this is 
38f0: 74 6f 20 62 65 20 6f 6e 20 74 68 65 20 73 61 66  to be on the saf
3900: 65 20 73 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37  e side...2000-07
3910: 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -17  Jeff Hobbs 
3920: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
3930: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e  s.com>...* pkgIn
3940: 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63  dex.tcl.in:..* c
3950: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64  onfigure.in: upd
3960: 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20  ated version to 
3970: 31 2e 34 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20  1.4..2000-07-13 
3980: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
3990: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
39a0: 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73  m>...* tests/tls
39b0: 49 4f 2e 74 65 73 74 3a 20 65 6e 61 62 6c 65 64  IO.test: enabled
39c0: 20 74 65 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b   tests 2.10, 7.[
39d0: 31 32 34 35 5d 20 28 74 68 65 72 65 20 69 73 20  1245] (there is 
39e0: 6e 6f 20 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f  no 3),..which no
39f0: 77 20 70 61 73 73 2e 20 20 41 64 64 65 64 20 73  w pass.  Added s
3a00: 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20  ome comments to 
3a10: 6f 74 68 65 72 20 66 61 69 6c 69 6e 67 20 74 65  other failing te
3a20: 73 74 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31  sts...2000-07-11
3a30: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
3a40: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
3a50: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a  om>...* tlsIO.c:
3a60: 20 63 68 61 6e 67 65 64 20 61 6c 6c 20 74 68 65   changed all the
3a70: 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74   channel procs t
3a80: 6f 20 73 74 61 72 74 20 77 69 74 68 20 54 6c 73  o start with Tls
3a90: 2a 20 66 6f 72 0a 09 62 65 74 74 65 72 20 70 61  * for..better pa
3aa0: 72 69 74 79 20 77 68 65 6e 20 63 6f 6d 70 61 72  rity when compar
3ab0: 69 6e 67 20 77 69 74 68 20 54 72 61 6e 73 66 6f  ing with Transfo
3ac0: 72 6d 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73  rm channel procs
3ad0: 2e 0a 09 52 65 77 72 6f 74 65 20 54 6c 73 57 61  ...Rewrote TlsWa
3ae0: 74 63 68 50 72 6f 63 2c 20 61 64 64 65 64 20 54  tchProc, added T
3af0: 6c 73 4e 6f 74 69 66 79 50 72 6f 63 20 61 63 63  lsNotifyProc acc
3b00: 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 6e 65  ording to the ne
3b10: 77 0a 09 63 68 61 6e 6e 65 6c 20 64 65 73 69 67  w..channel desig
3b20: 6e 2c 20 77 68 69 63 68 20 61 6c 73 6f 20 6c 65  n, which also le
3b30: 61 76 65 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48  aves TlsChannelH
3b40: 61 6e 64 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a  andler unused...
3b50: 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f  .* tlsBIO.c (Bio
3b60: 43 74 72 6c 29 3a 20 63 68 61 6e 67 65 64 20 42  Ctrl): changed B
3b70: 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 20 63 61  IO_CTRL_FLUSH ca
3b80: 73 65 20 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57  se to use..Tcl_W
3b90: 72 69 74 65 52 61 77 20 69 6e 73 74 65 61 64 20  riteRaw instead 
3ba0: 6f 66 20 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f  of Tcl_Flush (to
3bb0: 20 6f 70 65 72 61 74 65 20 6f 6e 20 63 6f 72 72   operate on corr
3bc0: 65 63 74 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20  ect channel..in 
3bd0: 74 68 65 20 73 74 61 63 6b 20 69 6e 73 74 65 61  the stack instea
3be0: 64 20 6f 66 20 73 74 61 72 74 69 6e 67 20 61 74  d of starting at
3bf0: 20 74 68 65 20 74 6f 70 20 61 67 61 69 6e 29 2e   the top again).
3c00: 20 20 57 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69    Would..otherwi
3c10: 73 65 20 63 61 75 73 65 20 61 20 72 65 63 75 72  se cause a recur
3c20: 73 69 76 65 20 73 74 61 63 6b 20 62 6f 6d 62 20  sive stack bomb 
3c30: 77 68 65 6e 20 69 6d 70 6c 69 63 69 74 20 68 61  when implicit ha
3c40: 6e 64 73 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20  ndshaking..took 
3c50: 65 66 66 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74  effect....* test
3c60: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65  s/tlsIO.test: re
3c70: 6d 6f 76 65 64 20 63 68 61 6e 67 65 73 20 6d 61  moved changes ma
3c80: 64 65 20 74 6f 20 74 65 73 74 20 73 75 69 74 65  de to test suite
3c90: 20 28 61 6c 6c 20 74 65 73 74 73 0a 09 74 68 61   (all tests..tha
3ca0: 74 20 72 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77  t ran before now
3cb0: 20 70 61 73 73 20 63 6f 72 72 65 63 74 6c 79 29   pass correctly)
3cc0: 2c 20 61 6e 64 20 63 68 61 6e 67 65 64 20 73 6f  , and changed so
3cd0: 6d 65 20 61 63 63 65 70 74 20 70 72 6f 63 0a 09  me accept proc..
3ce0: 61 72 67 73 20 74 6f 20 72 65 66 6c 65 63 74 20  args to reflect 
3cf0: 74 68 61 74 20 61 20 73 6f 63 6b 20 69 73 20 61  that a sock is a
3d00: 6e 20 61 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c  n arg, not a fil
3d10: 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 30 20 20  e...2000-07-10  
3d20: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
3d30: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
3d40: 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28  >...* tlsBIO.c (
3d50: 42 69 6f 57 72 69 74 65 2c 20 42 69 6f 52 65 61  BioWrite, BioRea
3d60: 64 29 3a 20 63 68 61 6e 67 65 64 20 54 63 6c 5f  d): changed Tcl_
3d70: 52 65 61 64 2f 57 72 69 74 65 20 74 6f 0a 09 54  Read/Write to..T
3d80: 63 6c 5f 52 65 61 64 52 61 77 2f 54 63 6c 57 72  cl_ReadRaw/TclWr
3d90: 69 74 65 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e  iteRaw....* tls.
3da0: 63 3a 20 61 64 64 65 64 20 75 73 65 20 6f 66 20  c: added use of 
3db0: 54 63 6c 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65  Tcl_GetTopChanne
3dc0: 6c 20 61 66 74 65 72 20 54 63 6c 5f 47 65 74 43  l after Tcl_GetC
3dd0: 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20  hannel and..got 
3de0: 72 65 74 75 72 6e 20 76 61 6c 75 65 20 66 72 6f  return value fro
3df0: 6d 20 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e  m Tcl_StackChann
3e00: 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c  el....* tests/tl
3e10: 73 49 4f 2e 74 65 73 74 3a 20 61 64 64 65 64 20  sIO.test: added 
3e20: 73 6f 6d 65 20 68 61 6e 64 73 68 61 6b 69 6e 67  some handshaking
3e30: 20 74 68 61 74 20 73 68 6f 75 6c 64 6e 27 74 20   that shouldn't 
3e40: 62 65 0a 09 6e 65 63 65 73 73 61 72 79 2c 20 62  be..necessary, b
3e50: 75 74 20 77 65 20 63 72 61 73 68 20 6f 74 68 65  ut we crash othe
3e60: 72 77 69 73 65 20 28 6e 65 65 64 73 20 6d 6f 72  rwise (needs mor
3e70: 65 20 74 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20  e testing)....* 
3e80: 74 6c 73 49 4f 2e 63 3a 20 61 64 64 65 64 20 73  tlsIO.c: added s
3e90: 75 70 70 6f 72 74 20 66 6f 72 20 22 63 6f 72 72  upport for "corr
3ea0: 65 63 74 65 64 22 20 73 74 61 63 6b 65 64 20 63  ected" stacked c
3eb0: 68 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74  hannels.  All..t
3ec0: 68 65 20 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c  he above channel
3ed0: 73 20 61 72 65 20 69 6e 20 54 43 4c 5f 43 48 41  s are in TCL_CHA
3ee0: 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23  NNEL_VERSION_2 #
3ef0: 69 66 64 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36  ifdefs...2000-06
3f00: 2d 30 35 20 20 53 63 6f 74 74 20 53 74 61 6e 74  -05  Scott Stant
3f10: 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75  on  <stanton@aju
3f20: 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e  basolutions.com>
3f30: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e  ...* Makefile.in
3f40: 3a 20 46 69 78 65 64 20 62 72 6f 6b 65 6e 20 74  : Fixed broken t
3f50: 65 73 74 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20  est target....* 
3f60: 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73  tlsInt.h:..* tls
3f70: 2e 63 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 64  .c: Cleaned up d
3f80: 65 63 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 54  eclarations of T
3f90: 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69  ls_Clean to avoi
3fa0: 64 20 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e  d errors on..Win
3fb0: 64 6f 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30  dows (lint)...20
3fc0: 30 30 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 20  00-06-05  Brent 
3fd0: 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a 75  Welch <welch@aju
3fe0: 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e  basolutions.com>
3ff0: 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49  ...* tls.c, tlsI
4000: 4f 2e 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f  O.c:  Split Tls_
4010: 46 72 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c  Free into Tls_Cl
4020: 65 61 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 0a  ean, which does.
4030: 09 74 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 70  .the SSL cleanup
4040: 2c 20 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 72  , and the Tcl_Fr
4050: 65 65 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 20  ee call.  It is 
4060: 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 75  important to shu
4070: 74 64 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 73  tdown..the SSL s
4080: 74 61 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75  tate "synchronou
4090: 73 6c 79 22 20 64 75 72 69 6e 67 20 61 20 73 74  sly" during a st
40a0: 61 63 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30  acked flush...20
40b0: 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20  00-06-01  Scott 
40c0: 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f  Stanton  <stanto
40d0: 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73  n@ajubasolutions
40e0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e  .com>...* tlsIO.
40f0: 63 3a 20 52 65 73 74 6f 72 65 64 20 63 61 6c 6c  c: Restored call
4100: 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68   to Tcl_NotifyCh
4110: 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e  annel from Chann
4120: 65 6c 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e  elHandler..to en
4130: 73 75 72 65 20 74 68 61 74 20 65 76 65 6e 74 73  sure that events
4140: 20 70 72 6f 70 61 67 61 74 65 20 66 72 6f 6d 20   propagate from 
4150: 74 68 65 20 6c 6f 77 65 72 20 64 72 69 76 65 72  the lower driver
4160: 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 72 65 73  .  This may..res
4170: 75 6c 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69  ult in an infini
4180: 74 65 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20  te loop in some 
4190: 63 61 73 65 73 2c 20 73 6f 20 74 68 69 73 20 69  cases, so this i
41a0: 73 20 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66  s not a total..f
41b0: 69 78 2e 20 20 54 68 69 73 20 6d 61 79 20 62 65  ix.  This may be
41c0: 20 73 75 66 66 69 63 69 65 6e 74 20 66 6f 72 20   sufficient for 
41d0: 6e 6f 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42  now, however. [B
41e0: 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d  ug: 5623]..2000-
41f0: 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61  06-01  Scott Sta
4200: 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73  nton  <stanton@s
4210: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
4220: 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f  * tlsIO.c: Resto
4230: 72 65 20 74 68 65 20 70 72 65 76 69 6f 75 73 20  re the previous 
4240: 76 65 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 20  version.  Fixed 
4250: 74 68 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f  the CloseProc so
4260: 0a 09 69 74 20 75 6e 72 65 67 69 73 74 65 72 73  ..it unregisters
4270: 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e   the channel han
4280: 64 6c 65 72 20 6f 6e 20 74 68 65 20 73 75 70 65  dler on the supe
4290: 72 63 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09  rceded channel..
42a0: 69 6e 73 74 65 61 64 20 6f 66 20 74 68 65 20 75  instead of the u
42b0: 70 70 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c  pper channel. Al
42c0: 73 6f 20 72 65 6d 6f 76 65 64 20 74 68 65 20 63  so removed the c
42d0: 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69  all to..Tcl_Noti
42e0: 66 79 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65  fyChannel in the
42f0: 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20   ChannelHandler 
4300: 62 65 63 61 75 73 65 20 74 68 69 73 20 77 69 6c  because this wil
4310: 6c 20 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20  l result..in an 
4320: 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66  infinite loop if
4330: 20 64 61 74 61 20 69 73 20 65 76 65 72 20 62 75   data is ever bu
4340: 66 66 65 72 65 64 20 69 6e 20 74 68 65 20 42 49  ffered in the BI
4350: 4f 0a 09 73 74 72 75 63 74 75 72 65 2e 20 5b 42  O..structure. [B
4360: 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d  ug: 5623]..2000-
4370: 30 35 2d 33 31 20 20 42 72 65 6e 74 20 57 65 6c  05-31  Brent Wel
4380: 63 68 20 3c 77 65 6c 63 68 40 73 63 72 69 70 74  ch <welch@script
4390: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ics.com>...* tls
43a0: 2e 63 3a 20 43 68 61 6e 67 65 20 74 68 65 20 43  .c: Change the C
43b0: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f  hannelHandler to
43c0: 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20 6f   be registered o
43d0: 6e 20 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e  n the main..chan
43e0: 6e 65 6c 20 61 73 20 6f 70 70 73 65 64 20 74 6f  nel as oppsed to
43f0: 20 74 68 65 20 22 70 61 72 65 6e 74 22 2c 20 6f   the "parent", o
4400: 72 20 73 75 70 65 72 63 65 65 64 65 64 2c 20 63  r superceeded, c
4410: 68 61 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69  hannel.  This..i
4420: 73 20 62 65 63 61 75 73 65 20 74 68 65 20 73 6f  s because the so
4430: 63 6b 65 74 20 64 72 69 76 65 72 20 6e 6f 74 69  cket driver noti
4440: 66 69 65 73 20 74 68 65 20 6d 61 69 6e 20 63 68  fies the main ch
4450: 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 65  annel, and there
4460: 0a 09 61 72 65 20 74 69 6d 65 73 20 77 69 74 68  ..are times with
4470: 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65   the main channe
4480: 6c 20 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 62  l gets closed, b
4490: 75 74 20 74 68 65 20 73 75 70 65 72 63 65 64 65  ut the supercede
44a0: 64 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65  d..one is not ye
44b0: 74 20 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68  t closed.  If th
44c0: 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65  e channel handle
44d0: 72 20 67 65 74 73 20 74 72 69 67 67 65 72 65 64  r gets triggered
44e0: 20 69 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f   in..this half-o
44f0: 70 65 6e 20 73 74 61 74 65 20 69 74 20 69 73 20  pen state it is 
4500: 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20  associated with 
4510: 74 68 65 20 73 75 70 65 72 63 65 65 64 65 64 0a  the superceeded.
4520: 09 63 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75  .channedl, but u
4530: 73 65 73 20 69 74 73 20 70 72 69 76 61 74 65 20  ses its private 
4540: 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6d  pointer to the m
4550: 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69  ain channel, whi
4560: 63 68 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 65  ch..is mostly de
4570: 73 74 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e  stroyed.  Elimin
4580: 61 74 65 64 20 74 68 65 20 72 65 64 75 6e 64 61  ated the redunda
4590: 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f  nt call to..Tcl_
45a0: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72  NotifyChannel fr
45b0: 6f 6d 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2e  om TlsWatchProc.
45c0: 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a            [Bug: 5623].