Hex Artifact Content

Artifact dc4495755987e28560115ec926a53b0a496542ea92bbcf8b5ca447c0f069acba:


0000: 54 63 6c 54 4c 53 20 31 2e 37 2e 32 32 0a 3d 3d  TclTLS 1.7.22.==
0010: 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 52 65 6c 65 61 73  ========..Releas
0020: 65 20 44 61 74 65 3a 20 4d 6f 6e 20 4f 63 74 20  e Date: Mon Oct 
0030: 31 32 20 31 35 3a 34 30 3a 31 36 20 43 44 54 20  12 15:40:16 CDT 
0040: 32 30 32 30 0a 0a 68 74 74 70 73 3a 2f 2f 74 63  2020..https://tc
0050: 6c 74 6c 73 2e 72 6b 65 65 6e 65 2e 6f 72 67 2f  ltls.rkeene.org/
0060: 0a 0a 32 30 31 35 2d 30 35 2d 30 31 20 20 41 6e  ..2015-05-01  An
0070: 64 72 65 61 73 20 4b 75 70 72 69 65 73 20 20 3c  dreas Kupries  <
0080: 61 6e 64 72 65 61 73 6b 40 61 63 74 69 76 65 73  andreask@actives
0090: 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 63 6f  tate.com>...* co
00a0: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 42 75 6d 70  nfigure.in: Bump
00b0: 20 74 6f 20 76 65 72 73 69 6f 6e 20 31 2e 36 2e   to version 1.6.
00c0: 35 2e 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69  5...* win/makefi
00d0: 6c 65 2e 76 63 3a 0a 09 2a 20 63 6f 6e 66 69 67  le.vc:..* config
00e0: 75 72 65 3a 20 72 65 67 65 6e 20 77 69 74 68 20  ure: regen with 
00f0: 61 63 2d 32 2e 35 39 0a 09 2a 20 74 6c 73 2e 63  ac-2.59..* tls.c
0100: 3a 20 41 63 63 65 70 74 65 64 20 53 46 20 54 4c  : Accepted SF TL
0110: 53 20 5b 62 75 67 2f 70 61 74 63 68 20 23 35 37  S [bug/patch #57
0120: 5d 28 68 74 74 70 73 3a 2f 2f 73 6f 75 72 63 65  ](https://source
0130: 66 6f 72 67 65 2e 6e 65 74 2f 70 2f 74 6c 73 2f  forge.net/p/tls/
0140: 62 75 67 73 2f 35 37 2f 29 2e 0a 09 2a 20 74 6c  bugs/57/)...* tl
0150: 73 49 4f 2e 63 3a 20 41 63 63 65 70 74 65 64 20  sIO.c: Accepted 
0160: 63 6f 72 65 20 54 63 6c 20 70 61 74 63 68 20 69  core Tcl patch i
0170: 6e 20 5b 74 69 63 6b 65 74 5d 28 68 74 74 70 3a  n [ticket](http:
0180: 2f 2f 63 6f 72 65 2e 74 63 6c 2e 74 6b 2f 74 63  //core.tcl.tk/tc
0190: 6c 2f 74 6b 74 76 69 65 77 2f 30 66 39 34 66 38  l/tktview/0f94f8
01a0: 35 35 63 61 66 65 64 39 32 64 30 65 31 37 34 62  55cafed92d0e174b
01b0: 37 64 38 33 35 34 35 33 61 30 32 38 33 31 62 34  7d835453a02831b4
01c0: 64 64 29 2e 0a 0a 32 30 31 34 2d 31 32 2d 30 35  dd)...2014-12-05
01d0: 20 20 41 6e 64 72 65 61 73 20 4b 75 70 72 69 65    Andreas Kuprie
01e0: 73 20 20 3c 61 6e 64 72 65 61 73 6b 40 61 63 74  s  <andreask@act
01f0: 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09  ivestate.com>...
0200: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20  * configure.in: 
0210: 42 75 6d 70 20 74 6f 20 76 65 72 73 69 6f 6e 20  Bump to version 
0220: 31 2e 36 2e 34 2e 0a 09 2a 20 77 69 6e 2f 6d 61  1.6.4...* win/ma
0230: 6b 65 66 69 6c 65 2e 76 63 3a 0a 09 2a 20 63 6f  kefile.vc:..* co
0240: 6e 66 69 67 75 72 65 3a 20 72 65 67 65 6e 20 77  nfigure: regen w
0250: 69 74 68 20 61 63 2d 32 2e 35 39 0a 09 2a 20 74  ith ac-2.59..* t
0260: 6c 73 2e 63 3a 20 41 63 63 65 70 74 65 64 20 53  ls.c: Accepted S
0270: 46 20 54 4c 53 20 70 61 74 63 68 65 73 20 23 31  F TLS patches #1
0280: 32 20 61 6e 64 20 23 31 33 20 69 6d 70 6c 65 6d  2 and #13 implem
0290: 65 6e 74 69 6e 67 0a 09 2a 20 74 6c 73 2e 68 74  enting..* tls.ht
02a0: 6d 3a 20 73 75 70 70 6f 72 74 20 66 6f 72 20 53  m: support for S
02b0: 4e 49 2c 20 61 6e 64 20 54 4c 53 20 31 2e 31 20  NI, and TLS 1.1 
02c0: 2b 20 31 2e 32 0a 09 2a 20 74 6c 73 49 6e 74 2e  + 1.2..* tlsInt.
02d0: 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 54  h:..* tlsIO.c: T
02e0: 68 69 73 20 61 6c 73 6f 20 61 63 63 65 70 74 65  his also accepte
02f0: 64 20 70 61 74 63 68 20 66 6f 72 20 62 75 67 20  d patch for bug 
0300: 23 35 33 2e 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a  #53...* tls.tcl:
0310: 20 50 61 74 63 68 20 61 76 61 69 6c 61 62 6c 65   Patch available
0320: 20 73 69 6e 63 65 20 4a 75 6e 65 2c 20 6e 6f 77   since June, now
0330: 20 63 6f 6d 6d 69 74 74 65 64 2e 0a 0a 32 30 31   committed...201
0340: 32 2d 30 37 2d 30 39 20 20 41 6e 64 72 65 61 73  2-07-09  Andreas
0350: 20 4b 75 70 72 69 65 73 20 20 3c 61 6e 64 72 65   Kupries  <andre
0360: 61 73 6b 40 61 63 74 69 76 65 73 74 61 74 65 2e  ask@activestate.
0370: 63 6f 6d 3e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75  com>...* configu
0380: 72 65 2e 69 6e 3a 20 42 75 6d 70 20 74 6f 20 76  re.in: Bump to v
0390: 65 72 73 69 6f 6e 20 31 2e 36 2e 33 2e 0a 09 2a  ersion 1.6.3...*
03a0: 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63   win/makefile.vc
03b0: 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20  :..* configure: 
03c0: 72 65 67 65 6e 20 77 69 74 68 20 61 63 2d 32 2e  regen with ac-2.
03d0: 35 39 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 4d 69  59...* tls.c (Mi
03e0: 73 63 4f 62 6a 43 6d 64 29 3a 20 46 69 78 65 64  scObjCmd): Fixed
03f0: 20 6e 6f 6e 2d 73 74 61 74 69 63 20 73 74 72 69   non-static stri
0400: 6e 67 20 61 72 72 61 79 20 75 73 65 64 20 69 6e  ng array used in
0410: 20 63 61 6c 6c 0a 09 20 20 6f 66 20 54 63 6c 5f   call..  of Tcl_
0420: 47 65 74 49 6e 64 65 78 46 72 6f 6d 4f 62 6a 28  GetIndexFromObj(
0430: 29 2e 20 4d 65 6d 6f 72 79 20 73 6d 61 73 68 20  ). Memory smash 
0440: 77 61 69 74 69 6e 67 20 74 6f 20 68 61 70 70 65  waiting to happe
0450: 6e 2e 20 54 68 61 6e 6b 73 0a 09 20 20 74 6f 20  n. Thanks..  to 
0460: 42 72 69 61 6e 20 47 72 69 66 66 69 6e 20 66 6f  Brian Griffin fo
0470: 72 20 61 6c 65 72 74 69 6e 67 20 75 73 20 61 6c  r alerting us al
0480: 6c 20 74 6f 20 74 68 65 20 70 72 6f 62 6c 65 6d  l to the problem
0490: 2e 0a 0a 32 30 31 32 2d 30 36 2d 30 31 20 20 41  ...2012-06-01  A
04a0: 6e 64 72 65 61 73 20 4b 75 70 72 69 65 73 20 20  ndreas Kupries  
04b0: 3c 61 6e 64 72 65 61 73 6b 40 61 63 74 69 76 65  <andreask@active
04c0: 73 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74  state.com>...* t
04d0: 6c 73 2e 63 3a 20 41 70 70 6c 69 65 64 20 4a 65  ls.c: Applied Je
04e0: 66 66 27 73 20 70 61 74 63 68 20 66 72 6f 6d 0a  ff's patch from.
04f0: 09 20 20 68 74 74 70 3a 2f 2f 77 77 77 2e 6d 61  .  http://www.ma
0500: 69 6c 2d 61 72 63 68 69 76 65 2e 63 6f 6d 2f 61  il-archive.com/a
0510: 6f 6c 73 65 72 76 65 72 40 6c 69 73 74 73 65 72  olserver@listser
0520: 76 2e 61 6f 6c 2e 63 6f 6d 2f 6d 73 67 31 32 33  v.aol.com/msg123
0530: 35 36 2e 68 74 6d 6c 0a 0a 09 2a 20 63 6f 6e 66  56.html...* conf
0540: 69 67 75 72 65 2e 69 6e 3a 20 42 75 6d 70 20 74  igure.in: Bump t
0550: 6f 20 76 65 72 73 69 6f 6e 20 31 2e 36 2e 32 2e  o version 1.6.2.
0560: 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65  ..* win/makefile
0570: 2e 76 63 3a 0a 09 2a 20 63 6f 6e 66 69 67 75 72  .vc:..* configur
0580: 65 3a 20 72 65 67 65 6e 20 77 69 74 68 20 61 63  e: regen with ac
0590: 2d 32 2e 35 39 0a 0a 32 30 31 30 2d 30 38 2d 31  -2.59..2010-08-1
05a0: 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  1  Jeff Hobbs  <
05b0: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74  jeffh@ActiveStat
05c0: 65 2e 63 6f 6d 3e 0a 0a 09 2a 2a 2a 20 54 4c 53  e.com>...*** TLS
05d0: 20 31 2e 36 2e 31 20 54 41 47 47 45 44 20 2a 2a   1.6.1 TAGGED **
05e0: 2a 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a  *...* configure:
05f0: 20 72 65 67 65 6e 20 77 69 74 68 20 61 63 2d 32   regen with ac-2
0600: 2e 35 39 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66  .59..* win/makef
0610: 69 6c 65 2e 76 63 2c 20 63 6f 6e 66 69 67 75 72  ile.vc, configur
0620: 65 2e 69 6e 3a 20 62 75 6d 70 20 76 65 72 73 69  e.in: bump versi
0630: 6f 6e 20 74 6f 20 31 2e 36 2e 31 0a 09 2a 20 74  on to 1.6.1..* t
0640: 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a  clconfig/tcl.m4:
0650: 20 75 70 64 61 74 65 64 20 74 6f 20 54 45 41 20   updated to TEA 
0660: 33 2e 38 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 53  3.8...* tls.c (S
0670: 74 61 74 75 73 4f 62 6a 43 6d 64 29 3a 20 6d 65  tatusObjCmd): me
0680: 6d 6c 65 61 6b 3a 20 66 72 65 65 20 70 65 65 72  mleak: free peer
0690: 20 69 66 20 6c 6f 61 64 65 64 2e 20 5b 42 75 67   if loaded. [Bug
06a0: 20 33 30 34 31 39 32 35 5d 0a 0a 32 30 31 30 2d   3041925]..2010-
06b0: 30 37 2d 32 37 20 20 4a 65 66 66 20 48 6f 62 62  07-27  Jeff Hobb
06c0: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65  s  <jeffh@Active
06d0: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74  State.com>...* t
06e0: 6c 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 73 6f 63  ls.tcl (tls::soc
06f0: 6b 65 74 29 3a 20 73 6f 6d 65 20 73 6f 63 6b 65  ket): some socke
0700: 74 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e  t implementation
0710: 73 20 68 61 76 65 20 61 20 2d 74 79 70 65 0a 09  s have a -type..
0720: 73 75 70 70 6f 72 74 20 28 65 2e 67 2e 20 66 6f  support (e.g. fo
0730: 72 20 69 6e 65 74 36 29 2e 0a 0a 32 30 30 39 2d  r inet6)...2009-
0740: 30 34 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62  04-23  Jeff Hobb
0750: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65  s  <jeffh@Active
0760: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74  State.com>...* t
0770: 6c 73 2e 74 63 6c 20 28 74 6c 73 3a 3a 69 6e 69  ls.tcl (tls::ini
0780: 74 6c 69 62 29 3a 20 61 64 64 20 73 75 70 70 6f  tlib): add suppo
0790: 72 74 20 66 6f 72 20 57 69 6e 64 6f 77 73 20 73  rt for Windows s
07a0: 74 61 72 70 61 63 6b 0a 09 6f 70 65 72 61 74 69  tarpack..operati
07b0: 6f 6e 20 74 68 61 74 20 75 6e 62 75 6e 64 6c 65  on that unbundle
07c0: 73 20 61 6e 79 20 63 6f 6e 73 74 69 74 75 65 6e  s any constituen
07d0: 74 20 6c 69 62 72 61 72 69 65 73 2e 20 5b 41 53  t libraries. [AS
07e0: 20 42 75 67 20 38 32 38 38 38 5d 0a 0a 32 30 30   Bug 82888]..200
07f0: 38 2d 30 36 2d 31 38 20 20 50 61 74 20 54 68 6f  8-06-18  Pat Tho
0800: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40  yts  <patthoyts@
0810: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67  users.sourceforg
0820: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 65 73 74 73  e.net>...* tests
0830: 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20 46  /ciphers.test: F
0840: 69 78 20 66 6f 72 20 64 69 66 66 65 72 65 6e 74  ix for different
0850: 20 6f 70 65 6e 73 73 6c 20 76 65 72 73 69 6f 6e   openssl version
0860: 73 2e 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69  s...* win/makefi
0870: 6c 65 2e 76 63 3a 20 20 20 20 55 70 64 61 74 65  le.vc:    Update
0880: 73 20 74 6f 20 73 75 70 70 6f 72 74 20 74 65 73  s to support tes
0890: 74 73 2e 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73  ts...* win/rules
08a0: 2e 76 63 3a 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b  .vc:..* win/nmak
08b0: 65 68 6c 70 2e 63 3a 0a 0a 32 30 30 38 2d 30 33  ehlp.c:..2008-03
08c0: 2d 31 39 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -19  Jeff Hobbs 
08d0: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
08e0: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 2a 2a 20 54  ate.com>...*** T
08f0: 4c 53 20 31 2e 36 20 54 41 47 47 45 44 20 2a 2a  LS 1.6 TAGGED **
0900: 2a 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69  *...* Makefile.i
0910: 6e 20 28 64 69 73 74 29 3a 20 75 70 64 61 74 65  n (dist): update
0920: 20 74 6f 20 69 6e 63 6c 75 64 65 20 77 69 6e 2f   to include win/
0930: 20 61 6e 64 20 66 69 6c 65 2e 73 72 6c 0a 0a 09   and file.srl...
0940: 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76  * win/makefile.v
0950: 63 3a 20 62 75 6d 70 20 76 65 72 73 69 6f 6e 20  c: bump version 
0960: 74 6f 20 31 2e 36 0a 09 2a 20 63 6f 6e 66 69 67  to 1.6..* config
0970: 75 72 65 2e 69 6e 3a 20 75 73 65 20 2d 4c 20 61  ure.in: use -L a
0980: 6e 64 20 2d 52 20 77 68 65 72 65 20 6e 65 63 65  nd -R where nece
0990: 73 73 61 72 79 2e 20 5b 42 75 67 20 31 37 34 32  ssary. [Bug 1742
09a0: 38 35 39 5d 0a 0a 09 2a 20 61 63 6c 6f 63 61 6c  859]...* aclocal
09b0: 2e 6d 34 3a 20 69 6d 70 72 6f 76 65 20 2d 2d 77  .m4: improve --w
09c0: 69 74 68 2d 73 73 6c 2d 64 69 72 20 63 68 65 63  ith-ssl-dir chec
09d0: 6b 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73  k....* tests/tls
09e0: 49 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 31  IO.test (tlsIO-1
09f0: 34 2e 2a 29 3a 20 20 20 41 64 64 20 74 6c 73 3a  4.*):   Add tls:
0a00: 3a 75 6e 69 6d 70 6f 72 74 20 66 6f 72 20 73 79  :unimport for sy
0a10: 6d 6d 65 74 72 79 0a 09 2a 20 74 6c 73 2e 68 74  mmetry..* tls.ht
0a20: 6d 2c 20 74 6c 73 2e 63 20 28 55 6e 69 6d 70 6f  m, tls.c (Unimpo
0a30: 72 74 4f 62 6a 43 6d 64 29 3a 20 74 6f 20 74 6c  rtObjCmd): to tl
0a40: 73 3a 3a 69 6d 70 6f 72 74 2e 20 5b 42 75 67 20  s::import. [Bug 
0a50: 31 32 30 33 32 37 33 5d 0a 0a 09 2a 20 74 6c 73  1203273]...* tls
0a60: 2e 63 20 28 54 6c 73 5f 43 6c 65 61 6e 2c 20 49  .c (Tls_Clean, I
0a70: 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 46 69  mportObjCmd): Fi
0a80: 78 20 63 6c 65 61 6e 75 70 20 6d 65 6d 20 6c 65  x cleanup mem le
0a90: 61 6b 20 5b 42 75 67 20 31 34 31 34 30 34 35 5d  ak [Bug 1414045]
0aa0: 0a 09 55 73 65 20 62 65 74 74 65 72 20 45 76 61  ..Use better Eva
0ab0: 6c 20 41 50 49 73 2c 20 63 6c 65 61 6e 65 72 20  l APIs, cleaner 
0ac0: 54 63 6c 5f 4f 62 6a 2d 68 61 6e 64 6c 69 6e 67  Tcl_Obj-handling
0ad0: 2e 0a 0a 32 30 30 38 2d 30 33 2d 31 39 20 20 50  ...2008-03-19  P
0ae0: 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74  at Thoyts  <patt
0af0: 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72  hoyts@users.sour
0b00: 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a  ceforge.net>...*
0b10: 20 77 69 6e 2f 4d 61 6b 65 66 69 6c 65 2e 76 63   win/Makefile.vc
0b20: 20 20 55 70 64 61 74 65 64 20 74 68 65 20 6e 6d    Updated the nm
0b30: 61 6b 65 20 62 75 69 6c 64 20 66 69 6c 65 73 20  ake build files 
0b40: 77 69 74 68 20 4d 53 56 43 39 20 73 75 70 70 6f  with MSVC9 suppo
0b50: 72 74 0a 09 2a 20 77 69 6e 2f 72 75 6c 65 73 2e  rt..* win/rules.
0b60: 76 63 3a 20 20 20 20 61 6e 64 20 66 69 78 65 64  vc:    and fixed
0b70: 20 74 6f 20 72 75 6e 20 74 68 65 20 74 65 73 74   to run the test
0b80: 2d 73 75 69 74 65 20 70 72 6f 70 65 72 6c 79 2e  -suite properly.
0b90: 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70  ..* win/nmakehlp
0ba0: 2e 63 3a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28  .c:..* tls.tcl (
0bb0: 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 29 3a 20 43  tls::initlib): C
0bc0: 6f 72 72 65 63 74 65 64 20 6e 61 6d 65 73 70 61  orrected namespa
0bd0: 63 65 20 68 61 6e 64 6c 69 6e 67 2e 0a 09 2a 20  ce handling...* 
0be0: 74 6c 73 2e 63 3a 20 41 70 70 6c 69 65 64 20 23  tls.c: Applied #
0bf0: 31 38 39 30 32 32 33 20 74 6f 20 66 69 78 20 68  1890223 to fix h
0c00: 61 6e 64 73 68 61 6b 65 20 6f 6e 20 6e 6f 6e 2d  andshake on non-
0c10: 62 6c 6f 63 6b 69 6e 67 20 73 6f 63 6b 65 74 73  blocking sockets
0c20: 0a 0a 32 30 30 38 2d 30 33 2d 31 37 20 20 4a 65  ..2008-03-17  Je
0c30: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68  ff Hobbs  <jeffh
0c40: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d  @ActiveState.com
0c50: 3e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74  >...* tls.tcl (t
0c60: 6c 73 3a 3a 69 6e 69 74 6c 69 62 29 3a 20 20 20  ls::initlib):   
0c70: 20 20 6c 6f 61 64 20 74 6c 73 2e 74 63 6c 20 66    load tls.tcl f
0c80: 69 72 73 74 20 61 6e 64 20 63 61 6c 6c 0a 09 2a  irst and call..*
0c90: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 70 6b   Makefile.in (pk
0ca0: 67 49 6e 64 65 78 2e 74 63 6c 29 3a 20 74 6c 73  gIndex.tcl): tls
0cb0: 3a 3a 69 6e 69 74 6c 69 62 20 74 6f 20 6c 6f 61  ::initlib to loa
0cc0: 64 20 6c 69 62 72 61 72 79 20 74 6f 0a 09 68 61  d library to..ha
0cd0: 6e 64 6c 65 20 63 77 64 20 63 68 61 6e 67 65 73  ndle cwd changes
0ce0: 2e 20 5b 42 75 67 20 31 38 38 38 31 31 33 5d 0a  . [Bug 1888113].
0cf0: 0a 32 30 30 37 2d 30 39 2d 30 36 20 20 50 61 74  .2007-09-06  Pat
0d00: 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f   Thoyts  <pattho
0d10: 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65  yts@users.source
0d20: 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74  forge.net>...* t
0d30: 6c 73 2e 63 3a 20 20 20 20 20 20 20 20 20 20 20  ls.c:           
0d40: 53 69 6c 65 6e 63 65 20 36 34 20 62 69 74 20 69  Silence 64 bit i
0d50: 6e 74 65 67 65 72 20 63 6f 6e 76 65 72 73 69 6f  nteger conversio
0d60: 6e 20 77 61 72 6e 69 6e 67 73 0a 09 2a 20 77 69  n warnings..* wi
0d70: 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a 20 20 55  n/nmakehlp.c:  U
0d80: 70 64 61 74 65 20 62 75 69 6c 64 20 73 79 73 74  pdate build syst
0d90: 65 6d 20 74 6f 20 73 75 70 70 6f 72 74 20 41 4d  em to support AM
0da0: 44 36 34 20 74 61 72 67 65 74 0a 09 2a 20 77 69  D64 target..* wi
0db0: 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 77  n/makefile.vc: w
0dc0: 69 74 68 20 4d 53 56 43 38 0a 09 2a 20 77 69 6e  ith MSVC8..* win
0dd0: 2f 72 75 6c 65 73 2e 76 63 3a 0a 0a 32 30 30 37  /rules.vc:..2007
0de0: 2d 30 36 2d 32 32 20 20 4a 65 66 66 20 48 6f 62  -06-22  Jeff Hob
0df0: 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76  bs  <jeffh@Activ
0e00: 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20  eState.com>...* 
0e10: 74 6c 73 49 4f 2e 63 20 28 54 6c 73 49 6e 70 75  tlsIO.c (TlsInpu
0e20: 74 50 72 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74  tProc, TlsOutput
0e30: 50 72 6f 63 2c 20 54 6c 73 57 61 74 63 68 50 72  Proc, TlsWatchPr
0e40: 6f 63 29 3a 0a 09 2a 20 74 6c 73 2e 63 20 28 56  oc):..* tls.c (V
0e50: 65 72 69 66 79 43 61 6c 6c 62 61 63 6b 29 3a 20  erifyCallback): 
0e60: 61 64 64 20 61 6e 20 73 74 61 74 65 20 66 6c 61  add an state fla
0e70: 67 20 69 6e 20 74 68 65 20 76 65 72 69 66 79 20  g in the verify 
0e80: 63 61 6c 6c 62 61 63 6b 0a 09 74 68 61 74 20 70  callback..that p
0e90: 72 65 76 65 6e 74 73 20 70 6f 73 73 69 62 6c 79  revents possibly
0ea0: 20 72 65 63 75 72 73 69 6f 6e 20 28 6f 6e 20 27   recursion (on '
0eb0: 75 70 64 61 74 65 27 29 2e 20 5b 42 75 67 20 31  update'). [Bug 1
0ec0: 36 35 32 33 38 30 5d 0a 0a 09 2a 20 74 65 73 74  652380]...* test
0ed0: 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20  s/ciphers.test: 
0ee0: 72 65 77 6f 72 6b 65 64 20 74 6f 20 6d 61 6b 65  reworked to make
0ef0: 20 74 65 73 74 20 6f 75 74 70 75 74 20 63 6c 65   test output cle
0f00: 61 6e 65 72 20 74 6f 0a 09 75 6e 64 65 72 73 74  aner to..underst
0f10: 61 6e 64 20 6d 69 73 73 69 6e 67 20 63 69 70 68  and missing ciph
0f20: 65 72 73 20 28 69 66 20 61 6e 79 29 0a 0a 09 2a  ers (if any)...*
0f30: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63   Makefile.in, tc
0f40: 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20  lconfig/tcl.m4: 
0f50: 75 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e  update to TEA 3.
0f60: 36 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20  6..* configure, 
0f70: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20  configure.in:   
0f80: 20 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f      using autoco
0f90: 6e 66 2d 32 2e 35 39 0a 0a 32 30 30 37 2d 30 32  nf-2.59..2007-02
0fa0: 2d 32 38 20 20 50 61 74 20 54 68 6f 79 74 73 20  -28  Pat Thoyts 
0fb0: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72   <patthoyts@user
0fc0: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65  s.sourceforge.ne
0fd0: 74 3e 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66  t>...* win/makef
0fe0: 69 6c 65 2e 76 63 3a 20 52 65 62 61 73 65 20 74  ile.vc: Rebase t
0ff0: 68 65 20 44 4c 4c 20 73 65 6e 73 69 62 6c 79 2e  he DLL sensibly.
1000: 20 41 64 64 69 74 69 6f 6e 61 6c 20 6c 69 62 73   Additional libs
1010: 20 66 6f 72 0a 09 73 74 61 74 69 63 20 6c 69 6e   for..static lin
1020: 6b 20 6f 66 20 6f 70 65 6e 73 73 6c 2e 0a 09 2a  k of openssl...*
1030: 20 74 6c 73 2e 74 63 6c 3a 20 62 75 67 20 23 31   tls.tcl: bug #1
1040: 35 37 39 38 33 37 20 2d 20 54 49 50 20 32 37 38  579837 - TIP 278
1050: 20 62 75 67 20 28 70 6f 73 73 69 62 6c 79 29 20   bug (possibly) 
1060: 2d 20 66 69 78 65 64 2e 0a 0a 32 30 30 36 2d 30  - fixed...2006-0
1070: 33 2d 33 30 20 20 50 61 74 20 54 68 6f 79 74 73  3-30  Pat Thoyts
1080: 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65    <patthoyts@use
1090: 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e  rs.sourceforge.n
10a0: 65 74 3e 0a 0a 09 2a 20 74 63 6c 63 6f 6e 66 69  et>...* tclconfi
10b0: 67 2f 2a 3a 20 20 55 70 64 61 74 65 64 20 74 6f  g/*:  Updated to
10c0: 20 54 45 41 20 33 2e 35 20 69 6e 20 72 65 73 70   TEA 3.5 in resp
10d0: 6f 6e 73 65 20 74 6f 20 62 75 67 20 31 34 36 30  onse to bug 1460
10e0: 34 39 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65  491..* configure
10f0: 2a 3a 20 20 20 52 65 67 65 6e 65 72 61 74 65 64  *:   Regenerated
1100: 20 63 6f 6e 66 69 67 75 72 65 2e 0a 0a 32 30 30   configure...200
1110: 35 2d 30 32 2d 30 38 20 20 4a 65 66 66 20 48 6f  5-02-08  Jeff Ho
1120: 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69  bbs  <jeffh@Acti
1130: 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a  veState.com>...*
1140: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 20 74 63   Makefile.in, tc
1150: 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 20  lconfig/tcl.m4: 
1160: 75 70 64 61 74 65 20 74 6f 20 54 45 41 20 33 2e  update to TEA 3.
1170: 32 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2c 20  2..* configure, 
1180: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20  configure.in:   
1190: 20 20 20 20 75 73 69 6e 67 20 61 75 74 6f 63 6f      using autoco
11a0: 6e 66 2d 32 2e 35 39 0a 0a 32 30 30 34 2d 31 32  nf-2.59..2004-12
11b0: 2d 32 33 20 20 50 61 74 20 54 68 6f 79 74 73 20  -23  Pat Thoyts 
11c0: 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72   <patthoyts@user
11d0: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65  s.sourceforge.ne
11e0: 74 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e  t>...* Makefile.
11f0: 69 6e 3a 20 20 20 20 20 20 52 65 6d 6f 76 65 64  in:      Removed
1200: 20 73 70 75 72 69 6f 75 73 20 63 6f 70 79 69 6e   spurious copyin
1210: 67 20 6f 66 20 74 6c 73 2e 74 63 6c 20 69 6e 74  g of tls.tcl int
1220: 6f 20 74 68 65 0a 09 20 20 20 20 20 20 20 20 20  o the..         
1230: 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64             build
1240: 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 32 30 30   directory...200
1250: 34 2d 31 32 2d 32 32 20 20 50 61 74 20 54 68 6f  4-12-22  Pat Tho
1260: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40  yts  <patthoyts@
1270: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67  users.sourceforg
1280: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 63 6f 6e 66 69  e.net>...* confi
1290: 67 75 72 65 2e 69 6e 3a 20 20 20 20 20 49 6e 63  gure.in:     Inc
12a0: 72 65 6d 65 6e 74 65 64 20 6d 69 6e 6f 72 20 76  remented minor v
12b0: 65 72 73 69 6f 6e 20 74 6f 20 31 2e 35 2e 31 0a  ersion to 1.5.1.
12c0: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 0a 0a 32  .* configure:..2
12d0: 30 30 34 2d 31 32 2d 31 37 20 20 50 61 74 20 54  004-12-17  Pat T
12e0: 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74  hoyts  <patthoyt
12f0: 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f  s@users.sourcefo
1300: 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e  rge.net>...* win
1310: 2f 6d 61 6b 65 66 69 6c 65 2e 76 63 3a 20 20 41  /makefile.vc:  A
1320: 64 64 65 64 20 74 68 65 20 4d 53 56 43 20 62 75  dded the MSVC bu
1330: 69 6c 64 20 73 79 73 74 65 6d 20 28 66 72 6f 6d  ild system (from
1340: 20 74 68 65 20 54 63 6c 0a 09 2a 20 77 69 6e 2f   the Tcl..* win/
1350: 72 75 6c 65 73 2e 76 63 3a 20 20 20 20 20 73 61  rules.vc:     sa
1360: 6d 70 6c 65 65 78 74 65 6e 73 69 6f 6e 29 2e 0a  mpleextension)..
1370: 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e  .* win/nmakehlp.
1380: 63 3a 0a 09 2a 20 77 69 6e 2f 74 6c 73 2e 72 63  c:..* win/tls.rc
1390: 20 20 20 20 20 20 20 20 41 64 64 65 64 20 57 69          Added Wi
13a0: 6e 64 6f 77 73 20 72 65 73 6f 75 72 63 65 20 66  ndows resource f
13b0: 69 6c 65 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c  ile....* tls.tcl
13c0: 3a 20 20 20 20 20 20 20 20 20 20 46 72 6f 6d 20  :          From 
13d0: 70 61 74 63 68 20 23 39 34 38 31 35 35 2c 20 61  patch #948155, a
13e0: 64 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72  dded support for
13f0: 0a 09 20 20 20 20 20 20 20 20 20 20 20 20 20 20  ..              
1400: 20 20 20 20 20 20 61 6c 74 65 72 6e 61 74 65 20        alternate 
1410: 73 6f 63 6b 65 74 20 63 6f 6d 6d 61 6e 64 73 2e  socket commands.
1420: 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20 20  ..* tls.c:      
1430: 20 20 20 20 20 20 51 75 69 65 74 65 6e 20 73 6f        Quieten so
1440: 6d 65 20 4d 53 56 43 20 77 61 72 6e 69 6e 67 73  me MSVC warnings
1450: 2e 20 50 72 65 66 65 72 20 63 6b 61 6c 6c 6f 63  . Prefer ckalloc
1460: 0a 09 20 20 20 20 20 20 20 20 20 20 20 20 20 20  ..              
1470: 20 20 20 20 20 20 6f 76 65 72 20 54 63 6c 5f 41        over Tcl_A
1480: 6c 6c 6f 63 2e 20 28 44 61 76 69 64 20 47 72 61  lloc. (David Gra
1490: 76 65 72 61 75 78 29 2e 0a 0a 32 30 30 34 2d 30  veraux)...2004-0
14a0: 36 2d 32 39 20 20 50 61 74 20 54 68 6f 79 74 73  6-29  Pat Thoyts
14b0: 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65    <patthoyts@use
14c0: 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e  rs.sourceforge.n
14d0: 65 74 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 20  et>...* tls.c:  
14e0: 20 20 20 20 20 20 20 20 20 20 46 69 78 75 70 20            Fixup 
14f0: 74 6f 20 62 75 69 6c 64 20 61 67 61 69 6e 73 74  to build against
1500: 20 74 63 6c 20 38 2e 33 2e 33 2e 20 48 61 6e 64   tcl 8.3.3. Hand
1510: 6c 65 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 20  le..* tlsIO.c:  
1520: 20 20 20 20 20 20 20 20 38 2e 34 20 63 6f 6e 73          8.4 cons
1530: 74 69 66 69 63 61 74 69 6f 6e 2e 0a 0a 09 2a 20  tification....* 
1540: 74 6c 73 49 6e 74 2e 68 3a 20 20 20 20 20 20 20  tlsInt.h:       
1550: 20 20 41 64 64 65 64 20 68 65 61 64 65 72 73 20    Added headers 
1560: 72 65 71 75 69 72 65 64 20 77 69 74 68 20 4d 53  required with MS
1570: 56 43 20 6f 6e 20 57 69 6e 33 32 2e 0a 09 2a 20  VC on Win32...* 
1580: 74 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20  tlsX509.c:      
1590: 20 20 75 6e 64 65 66 20 6d 69 6e 20 61 6e 64 20    undef min and 
15a0: 6d 61 78 20 69 66 20 64 65 66 69 6e 65 64 20 28  max if defined (
15b0: 77 69 6e 33 32 29 2e 0a 0a 09 2a 20 4d 61 6b 65  win32)....* Make
15c0: 66 69 6c 65 2e 69 6e 3a 20 20 20 20 20 20 46 69  file.in:      Fi
15d0: 78 65 64 20 74 6f 20 62 75 69 6c 64 20 6f 6e 20  xed to build on 
15e0: 77 69 6e 33 32 20 75 73 69 6e 67 20 6d 73 79 73  win32 using msys
15f0: 20 77 69 74 68 0a 09 2a 20 61 63 6c 6f 63 61 6c   with..* aclocal
1600: 2e 6d 34 3a 20 20 20 20 20 20 20 4d 53 56 43 2e  .m4:       MSVC.
1610: 20 41 6c 73 6f 20 66 69 78 65 64 20 74 68 65 20   Also fixed the 
1620: 74 65 73 74 20 74 61 72 67 65 74 2e 0a 09 2a 20  test target...* 
1630: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a  configure.in:..*
1640: 20 63 6f 6e 66 69 67 75 72 65 3a 20 20 20 20 20   configure:     
1650: 20 20 20 52 65 67 65 6e 65 72 61 74 65 64 2e 0a     Regenerated..
1660: 09 2a 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c  .* tclconfig/tcl
1670: 2e 6d 34 3a 20 55 70 64 61 74 65 64 20 74 6f 20  .m4: Updated to 
1680: 6d 6f 73 74 20 72 65 63 65 6e 74 20 76 65 72 73  most recent vers
1690: 69 6f 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d 32 33  ion...2004-03-23
16a0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72    Dan Razzell <r
16b0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68  esearch@starfish
16c0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 09 2a 20 74  systems.ca>..* t
16d0: 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e  ls.c:..* tlsBIO.
16e0: 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09  c:..* tlsIO.c:..
16f0: 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 46 69 78 65  * tlsInt.h:.Fixe
1700: 64 20 74 79 70 65 20 6d 61 74 63 68 20 77 61 72  d type match war
1710: 6e 69 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 33 2d  nings...2004-03-
1720: 31 39 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  19  Jeff Hobbs  
1730: 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61  <jeffh@ActiveSta
1740: 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e  te.com>...* tls.
1750: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20  c (Tls_Init):   
1760: 72 65 70 6c 61 63 65 64 20 6f 6c 64 65 72 20 54  replaced older T
1770: 45 41 20 63 6f 6e 66 69 67 20 77 69 74 68 20 6e  EA config with n
1780: 65 77 65 72 0a 09 2a 20 63 6f 6e 66 69 67 2f 2a  ewer..* config/*
1790: 20 28 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 70   (removed):..* p
17a0: 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 2c 20  kgIndex.tcl.in, 
17b0: 73 74 72 6e 63 61 73 65 63 6d 70 2e 63 20 28 72  strncasecmp.c (r
17c0: 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 6b 65  emoved):..* Make
17d0: 66 69 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 61 6c  file.in, aclocal
17e0: 2e 6d 34 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20  .m4, configure, 
17f0: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a  configure.in:..*
1800: 20 74 63 6c 63 6f 6e 66 69 67 2f 52 45 41 44 4d   tclconfig/READM
1810: 45 2e 74 78 74 2c 20 74 63 6c 63 6f 6e 66 69 67  E.txt, tclconfig
1820: 2f 69 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 63 6c  /install-sh, tcl
1830: 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 0a 0a  config/tcl.m4:..
1840: 32 30 30 34 2d 30 33 2d 31 37 20 20 44 61 6e 20  2004-03-17  Dan 
1850: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63  Razzell <researc
1860: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d  h@starfishsystem
1870: 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 35 30  s.ca>...* tlsX50
1880: 39 2e 63 3a 09 41 64 64 20 73 75 70 70 6f 72 74  9.c:.Add support
1890: 20 66 6f 72 20 6c 6f 6e 67 20 73 65 72 69 61 6c   for long serial
18a0: 20 6e 75 6d 62 65 72 73 20 70 65 72 20 52 46 43   numbers per RFC
18b0: 20 33 32 38 30 2e 0a 09 09 09 46 6f 72 6d 61 74   3280.....Format
18c0: 20 69 73 20 6e 6f 77 20 68 65 78 61 64 65 63 69   is now hexadeci
18d0: 6d 61 6c 2e 0a 09 09 09 5b 52 65 71 75 65 73 74  mal.....[Request
18e0: 20 23 39 31 35 33 31 33 5d 0a 09 09 09 43 6f 72   #915313]....Cor
18f0: 72 65 63 74 6c 79 20 63 6f 6e 76 65 72 74 20 63  rectly convert c
1900: 65 72 74 69 66 69 63 61 74 65 20 44 69 73 74 69  ertificate Disti
1910: 6e 67 75 69 73 68 65 64 20 4e 61 6d 65 73 0a 09  nguished Names..
1920: 09 09 74 6f 20 54 63 6c 20 73 74 72 69 6e 67 20  ..to Tcl string 
1930: 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 2e 20  representation. 
1940: 20 45 6c 69 6d 69 6e 61 74 65 73 20 75 73 65 20   Eliminates use 
1950: 6f 66 0a 09 09 09 64 65 70 72 65 63 61 74 65 64  of....deprecated
1960: 20 4f 70 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f   OpenSSL functio
1970: 6e 2e 20 20 46 6f 72 6d 61 74 20 69 73 20 6e 6f  n.  Format is no
1980: 77 20 63 6f 6d 70 6c 69 61 6e 74 0a 09 09 09 77  w compliant....w
1990: 69 74 68 20 52 46 43 20 32 32 35 33 2e 20 20 5b  ith RFC 2253.  [
19a0: 52 65 71 75 65 73 74 20 23 39 31 35 33 31 35 5d  Request #915315]
19b0: 0a 0a 32 30 30 34 2d 30 32 2d 31 37 20 20 44 61  ..2004-02-17  Da
19c0: 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61  n Razzell <resea
19d0: 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74  rch@starfishsyst
19e0: 65 6d 73 2e 63 61 3e 0a 0a 09 54 4c 53 20 31 2e  ems.ca>...TLS 1.
19f0: 35 2e 30 20 52 45 4c 45 41 53 45 0a 0a 32 30 30  5.0 RELEASE..200
1a00: 34 2d 30 32 2d 31 32 20 20 44 61 6e 20 52 61 7a  4-02-12  Dan Raz
1a10: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73  zell.<research@s
1a20: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63  tarfishsystems.c
1a30: 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 09 41 6c  a>...* tls.c:.Al
1a40: 6c 6f 77 20 76 65 72 69 66 79 20 63 61 6c 6c 62  low verify callb
1a50: 61 63 6b 20 74 6f 20 72 65 74 75 72 6e 20 65 6d  ack to return em
1a60: 70 74 79 20 72 65 73 75 6c 74 2e 0a 09 2a 20 74  pty result...* t
1a70: 6c 73 2e 68 74 6d 3a 09 44 6f 63 75 6d 65 6e 74  ls.htm:.Document
1a80: 20 63 61 6c 6c 62 61 63 6b 20 62 65 68 61 76 69   callback behavi
1a90: 6f 72 73 2e 0a 0a 32 30 30 34 2d 30 32 2d 31 31  ors...2004-02-11
1aa0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72    Dan Razzell.<r
1ab0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68  esearch@starfish
1ac0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20  systems.ca>...* 
1ad0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74  tests/tlsIO.test
1ae0: 3a 0a 09 2a 20 72 65 6d 6f 74 65 2e 74 63 6c 3a  :..* remote.tcl:
1af0: 09 43 6f 6d 70 6c 65 74 65 20 70 72 69 76 61 74  .Complete privat
1b00: 65 20 6b 65 79 20 6e 61 6d 65 20 63 68 61 6e 67  e key name chang
1b10: 65 73 20 66 72 6f 6d 20 32 30 30 31 2d 30 36 2d  es from 2001-06-
1b20: 32 31 2e 0a 0a 32 30 30 34 2d 30 32 2d 30 33 20  21...2004-02-03 
1b30: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65   Dan Razzell <re
1b40: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73  search@starfishs
1b50: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 4d  ystems.ca>...* M
1b60: 61 6b 65 66 69 6c 65 2e 69 6e 3a 09 52 65 6d 6f  akefile.in:.Remo
1b70: 76 65 64 20 63 69 72 63 75 6c 61 72 20 64 65 70  ved circular dep
1b80: 65 6e 64 65 6e 63 79 2e 0a 09 2a 20 74 6c 73 49  endency...* tlsI
1b90: 6e 74 2e 68 3a 09 4d 61 6b 65 20 66 75 6e 63 74  nt.h:.Make funct
1ba0: 69 6f 6e 20 64 65 63 6c 61 72 61 74 69 6f 6e 73  ion declarations
1bb0: 20 65 78 70 6c 69 63 69 74 2e 0a 09 2a 20 74 6c   explicit...* tl
1bc0: 73 2e 63 3a 09 46 69 78 20 74 79 70 65 20 6d 61  s.c:.Fix type ma
1bd0: 74 63 68 20 61 6e 64 20 75 6e 75 73 65 64 20 76  tch and unused v
1be0: 61 72 69 61 62 6c 65 20 77 61 72 6e 69 6e 67 73  ariable warnings
1bf0: 2e 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 09 46  ...* tlsBIO.c:.F
1c00: 69 78 20 74 79 70 65 20 6d 61 74 63 68 20 77 61  ix type match wa
1c10: 72 6e 69 6e 67 2e 0a 0a 32 30 30 33 2d 31 32 2d  rning...2003-12-
1c20: 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09  15  Dan Razzell.
1c30: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69  <research@starfi
1c40: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09  shsystems.ca>...
1c50: 2a 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69  * pkgIndex.tcl.i
1c60: 6e 3a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09  n:..* tls.htm:..
1c70: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65  * tests/tlsIO.te
1c80: 73 74 3a 20 75 70 64 61 74 65 64 20 76 65 72 73  st: updated vers
1c90: 69 6f 6e 20 74 6f 20 31 2e 35 2e 0a 0a 32 30 30  ion to 1.5...200
1ca0: 33 2d 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a  3-10-07  Dan Raz
1cb0: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73  zell.<research@s
1cc0: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63  tarfishsystems.c
1cd0: 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70  a>...* tests/cip
1ce0: 68 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74  hers.test: updat
1cf0: 65 64 20 6c 69 73 74 20 6f 66 20 74 65 73 74 65  ed list of teste
1d00: 64 20 63 69 70 68 65 72 73 20 74 6f 20 63 6f 72  d ciphers to cor
1d10: 72 65 73 70 6f 6e 64 0a 09 2a 20 77 69 74 68 20  respond..* with 
1d20: 74 68 6f 73 65 20 61 76 61 69 6c 61 62 6c 65 20  those available 
1d30: 66 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e 20 5b 52  from OpenSSL. [R
1d40: 65 71 75 65 73 74 20 23 38 31 31 39 38 31 5d 0a  equest #811981].
1d50: 0a 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e  .2003-10-07  Dan
1d60: 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72   Razzell <resear
1d70: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65  ch@starfishsyste
1d80: 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63  ms.ca>...* tls.c
1d90: 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 20 77 69  : added CONST wi
1da0: 74 68 20 69 6e 74 65 6e 74 20 73 69 6d 69 6c 61  th intent simila
1db0: 72 20 74 6f 20 74 68 6f 73 65 20 66 72 6f 6d 20  r to those from 
1dc0: 32 30 30 32 2d 30 32 2d 30 34 2e 0a 09 5b 52 65  2002-02-04...[Re
1dd0: 71 75 65 73 74 20 23 38 31 31 39 31 31 5d 0a 0a  quest #811911]..
1de0: 32 30 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66  2003-07-07  Jeff
1df0: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41   Hobbs  <jeffh@A
1e00: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a  ctiveState.com>.
1e10: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49  ..* tls.c (Tls_I
1e20: 6e 69 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c  nit):   added tl
1e30: 73 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20  s::misc command 
1e40: 70 72 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74  provided by..* t
1e50: 6c 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20  lsX509.c:       
1e60: 20 20 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a     Wojciech Kocj
1e70: 61 6e 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63  an (wojciech koc
1e80: 6a 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74  jan.org)..* test
1e90: 73 2f 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20  s/keytest1.tcl: 
1ea0: 74 6f 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c  to expose more l
1eb0: 6f 77 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d  ow-level SSL com
1ec0: 6d 61 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b  mands..* tests/k
1ed0: 65 79 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30  eytest2.tcl:..20
1ee0: 30 33 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61  03-05-15  Dan Ra
1ef0: 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40  zzell.<research@
1f00: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e  starfishsystems.
1f10: 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a  ca>...* tls.tcl:
1f20: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a  ..* tlsInt.h:..*
1f30: 20 74 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 70   tls.c: add supp
1f40: 6f 72 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 20  ort for binding 
1f50: 61 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62  a password callb
1f60: 61 63 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b 65  ack to the socke
1f70: 74 2e 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f 63  t...Now each soc
1f80: 6b 65 74 20 63 61 6e 20 68 61 76 65 20 69 74 73  ket can have its
1f90: 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e 64   own command and
1fa0: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61   password callba
1fb0: 63 6b 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 20  cks instead..of 
1fc0: 62 65 69 6e 67 20 66 6f 72 63 65 64 20 74 6f 20  being forced to 
1fd0: 68 61 76 65 20 61 6c 6c 20 70 61 73 73 77 6f 72  have all passwor
1fe0: 64 20 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 73  d management pas
1ff0: 73 20 74 68 72 6f 75 67 68 20 61 20 63 6f 6d 6d  s through a comm
2000: 6f 6e 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 20  on..procedure.  
2010: 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 77  The common passw
2020: 6f 72 64 20 70 72 6f 63 65 64 75 72 65 20 69 73  ord procedure is
2030: 20 72 65 74 61 69 6e 65 64 20 66 6f 72 20 63 6f   retained for co
2040: 6d 70 61 74 69 62 69 6c 69 74 79 0a 09 62 75 74  mpatibility..but
2050: 20 69 74 73 20 75 73 65 20 73 68 6f 75 6c 64 20   its use should 
2060: 62 65 20 44 45 50 52 45 43 41 54 45 44 2e 0a 09  be DEPRECATED...
2070: 41 64 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d 6d  Add version comm
2080: 61 6e 64 20 74 6f 20 72 65 74 75 72 6e 20 4f 70  and to return Op
2090: 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 74  enSSL version st
20a0: 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 6e  ring...Remove un
20b0: 73 74 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 6e  stable workaroun
20c0: 64 73 20 6e 65 65 64 65 64 20 66 6f 72 20 76 65  ds needed for ve
20d0: 72 69 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 65  rify in obsolete
20e0: 20 76 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f 70   versions of..Op
20f0: 65 6e 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f  enSSL...Fix memo
2100: 72 79 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 73  ry leak. [Reques
2110: 74 20 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 65  t #640660]..More
2120: 20 63 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 6e   casts to elimin
2130: 61 74 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 72  ate compiler war
2140: 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68  nings....* tls.h
2150: 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 73  tm: document pas
2160: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e 0a  sword callback..
2170: 09 43 6f 72 72 65 63 74 20 74 65 63 68 6e 69 63  .Correct technic
2180: 61 6c 20 61 6e 64 20 74 79 70 6f 67 72 61 70 68  al and typograph
2190: 69 63 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 52  ic errors....* R
21a0: 45 41 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e 74  EADME.txt: ident
21b0: 69 66 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 20  ify versions of 
21c0: 4f 70 65 6e 53 53 4c 20 77 68 69 63 68 20 66 69  OpenSSL which fi
21d0: 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d 73  x known problems
21e0: 2e 0a 09 47 65 6e 65 72 61 6c 20 77 61 72 6e 69  ...General warni
21f0: 6e 67 20 6f 66 20 73 65 63 75 72 69 74 79 20 70  ng of security p
2200: 72 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 72  roblems in older
2210: 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65   versions of Ope
2220: 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d 30  nSSL...2002-02-0
2230: 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  4  Jeff Hobbs  <
2240: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74  jeffh@ActiveStat
2250: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68  e.com>...* tls.h
2260: 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64  tm:..* tls.c: ad
2270: 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20  ded support for 
2280: 6c 6f 63 61 6c 20 63 65 72 74 69 66 69 63 61 74  local certificat
2290: 65 20 73 74 61 74 75 73 20 63 68 65 63 6b 2c 20  e status check, 
22a0: 61 73 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 75  as well..as retu
22b0: 72 6e 69 6e 67 20 74 68 65 20 23 20 6f 66 20 62  rning the # of b
22c0: 69 74 73 20 69 6e 20 74 68 65 20 73 65 73 73 69  its in the sessi
22d0: 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 23  on key. [Patch #
22e0: 35 30 35 36 39 38 5d 20 28 72 6f 73 65 29 0a 0a  505698] (rose)..
22f0: 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73  .* tls.c:..* tls
2300: 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e  IO.c:..* tlsBIO.
2310: 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 73 20  c: added CONSTs 
2320: 74 6f 20 73 61 74 69 73 66 79 20 54 63 6c 20 38  to satisfy Tcl 8
2330: 2e 34 20 73 6f 75 72 63 65 73 2e 20 20 54 68 69  .4 sources.  Thi
2340: 73 20 6d 61 79 0a 09 67 69 76 65 20 77 61 72 6e  s may..give warn
2350: 69 6e 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 6c  ings when compil
2360: 65 64 20 61 67 61 69 6e 73 74 20 38 2e 33 2c 20  ed against 8.3, 
2370: 62 75 74 20 74 68 65 79 20 63 61 6e 20 62 65 20  but they can be 
2380: 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 73  ignored....* tes
2390: 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e  ts/simpleClient.
23a0: 74 63 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 69  tcl:..* tests/si
23b0: 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20  mpleServer.tcl: 
23c0: 70 6f 69 6e 74 20 74 6f 20 75 70 64 61 74 65 64  point to updated
23d0: 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 6b   client/server k
23e0: 65 79 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 65  ey files....* te
23f0: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a  sts/tlsIO.test:.
2400: 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73  .* tests/ciphers
2410: 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 74  .test: updated t
2420: 6f 20 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d 20  o load tls from 
2430: 62 75 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 4d  build dir....* M
2440: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f  akefile.in: remo
2450: 76 65 64 20 73 74 72 6e 63 61 73 65 63 6d 70 20  ved strncasecmp 
2460: 66 72 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 6a  from default obj
2470: 65 63 74 20 73 65 74 2e 20 20 54 68 69 73 0a 09  ect set.  This..
2480: 69 73 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 6f  is only needed o
2490: 6e 20 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 54  n the Mac, and T
24a0: 63 6c 20 73 74 75 62 73 20 70 72 6f 76 69 64 65  cl stubs provide
24b0: 73 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67  s it....* config
24c0: 75 72 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a 09  ure: regen'ed...
24d0: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20  * configure.in: 
24e0: 75 70 64 61 74 65 64 20 74 6f 20 31 2e 35 2e 30  updated to 1.5.0
24f0: 20 66 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 73   for next releas
2500: 65 2e 0a 09 43 68 61 6e 67 65 64 20 64 65 66 61  e...Changed defa
2510: 75 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 61  ult openssl loca
2520: 74 69 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f 63  tion to /usr/loc
2530: 61 6c 2f 73 73 6c 20 28 74 68 69 73 20 69 73 20  al/ssl (this is 
2540: 77 68 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 30  where..openssl 0
2550: 2e 39 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 62  .9.6c installs b
2560: 79 20 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 61  y default)...Cha
2570: 6e 67 65 64 20 74 6f 20 75 73 65 20 70 75 62 6c  nged to use publ
2580: 69 63 20 54 63 6c 20 68 65 61 64 65 72 73 20 28  ic Tcl headers (
2590: 70 72 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 64  private not need
25a0: 65 64 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 31  ed)...2001-06-21
25b0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a    Jeff Hobbs  <j
25c0: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65  effh@ActiveState
25d0: 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e  .com>...TLS 1.4.
25e0: 31 20 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 6f  1 RELEASE...* co
25f0: 6e 66 69 67 75 72 65 3a 20 61 64 64 65 64 20 63  nfigure: added c
2600: 6f 6e 66 69 67 75 72 65 20 74 6f 20 43 56 53 0a  onfigure to CVS.
2610: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a  .* configure.in:
2620: 20 6d 6f 76 65 64 20 74 6f 20 70 61 74 63 68 6c   moved to patchl
2630: 65 76 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d  evel 1.4.1...* M
2640: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 72  akefile.in: corr
2650: 65 63 74 65 64 20 27 64 69 73 74 27 20 74 61 72  ected 'dist' tar
2660: 67 65 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 65  get...* tests/ce
2670: 72 74 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a  rts/file.srl:..*
2680: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 2e   tests/certs/ca.
2690: 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65  pem:..* tests/ce
26a0: 72 74 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a  rts/client.key:.
26b0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63  .* tests/certs/c
26c0: 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 65  lient.pem:..* te
26d0: 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74  sts/certs/client
26e0: 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63  .req:..* tests/c
26f0: 65 72 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 6d  erts/privkey.pem
2700: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73  :..* tests/certs
2710: 2f 73 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a 20  /server.key:..* 
2720: 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76  tests/certs/serv
2730: 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73  er.pem:..* tests
2740: 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 72 65  /certs/server.re
2750: 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  q:..* tests/cert
2760: 73 2f 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 65  s/cacert.pem: re
2770: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 61  placed by new ca
2780: 2e 70 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 65  .pem..* tests/ce
2790: 72 74 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 65  rts/skey.pem: re
27a0: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 73 65  placed by new se
27b0: 72 76 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 74  rver.key..* test
27c0: 73 2f 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 6d  s/certs/ckey.pem
27d0: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65  : replaced by ne
27e0: 77 20 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a 20  w client.key..* 
27f0: 74 65 73 74 73 2f 63 65 72 74 73 2f 52 45 41 44  tests/certs/READ
2800: 4d 45 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 20  ME.txt: new set 
2810: 6f 66 20 74 65 73 74 20 63 65 72 74 69 66 69 63  of test certific
2820: 61 74 65 73 20 77 69 74 68 20 73 6f 6d 65 0a 09  ates with some..
2830: 52 45 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 74  README info on t
2840: 68 65 69 72 20 67 65 6e 65 72 61 74 69 6f 6e 2e  heir generation.
2850: 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65  ...* tests/ciphe
2860: 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64  rs.test: updated
2870: 20 63 69 70 68 65 72 73 20 65 78 70 65 63 74 65   ciphers expecte
2880: 64 20 77 69 74 68 20 64 65 66 61 75 6c 74 0a 09  d with default..
2890: 6f 70 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a 0a  openssl build...
28a0: 09 2a 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e 74  .* tests/tclIO.t
28b0: 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20  est: updated to 
28c0: 75 73 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 6f  use new names fo
28d0: 72 20 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a 32  r certs/keys...2
28e0: 30 30 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 20  001-03-14  Jeff 
28f0: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 67 69  Hobbs  <jeffh@gi
2900: 6d 6c 65 74 2e 61 63 74 69 76 65 73 74 61 74 65  mlet.activestate
2910: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20  .com>...* tls.c 
2920: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 20  (Tls_Init): add 
2930: 64 6f 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 6e  do/while for ran
2940: 64 6f 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 69  dom number initi
2950: 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 6f  alization..to wo
2960: 72 6b 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 4f  rk around some O
2970: 53 65 73 20 71 75 69 72 6b 73 2e 20 20 28 52 61  Ses quirks.  (Ra
2980: 6c 70 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 65  lph.Billes@telte
2990: 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 30  ch.com.au)..2000
29a0: 2d 30 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 62  -09-07  Jeff Hob
29b0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
29c0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tics.com>...* tl
29d0: 73 49 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e 6e  sIO.c (Tls_Chann
29e0: 65 6c 54 79 70 65 29 3a 20 73 65 74 20 74 79 70  elType): set typ
29f0: 65 4e 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 63  eName field of c
2a00: 68 61 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a 09  hannel type to..
2a10: 22 74 6c 73 22 20 28 74 68 69 73 20 67 6f 74 20  "tls" (this got 
2a20: 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f 20  lost in move to 
2a30: 64 79 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e 20  dynamic version 
2a40: 63 6f 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 63  compatability..c
2a50: 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 2d  hecking)...2000-
2a60: 30 38 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62  08-23  Jeff Hobb
2a70: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
2a80: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31  ics.com>...TLS 1
2a90: 2e 34 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 20  .4 RELEASED...* 
2aa0: 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 73  Makefile.in (dis
2ab0: 74 29 3a 20 63 72 65 61 74 65 20 64 69 73 74 20  t): create dist 
2ac0: 74 61 72 67 65 74 20 66 6f 72 20 61 72 63 68 69  target for archi
2ad0: 76 65 20 64 69 73 74 72 69 62 75 74 69 6f 6e 73  ve distributions
2ae0: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f  ...* tests/tlsIO
2af0: 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e 31  .test (tlsIO-8.1
2b00: 29 3a 20 61 64 64 65 64 20 61 20 64 65 6c 61 79  ): added a delay
2b10: 20 6f 6e 20 74 68 65 20 61 63 63 65 70 74 20 63   on the accept c
2b20: 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 68  lose..to make th
2b30: 65 20 74 65 73 74 20 77 6f 72 6b 20 77 69 74 68  e test work with
2b40: 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e 64   OpenSSL on Wind
2b50: 6f 77 73 20 28 64 6f 65 73 6e 27 74 20 61 66 66  ows (doesn't aff
2b60: 65 63 74 0a 09 6f 74 68 65 72 20 62 75 69 6c 64  ect..other build
2b70: 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a  s)....* tls.htm:
2b80: 20 75 70 64 61 74 65 64 20 77 69 74 68 20 6e 6f   updated with no
2b90: 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 30  tes for 1.4...20
2ba0: 30 30 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 48  00-08-21  Jeff H
2bb0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72  obbs  <hobbs@scr
2bc0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
2bd0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74  tests/tlsIO.test
2be0: 3a 20 72 65 71 75 69 72 65 20 61 74 20 6c 65 61  : require at lea
2bf0: 73 74 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 73  st tls1.4 in tes
2c00: 74 20 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d 30  t suite...2000-0
2c10: 38 2d 31 38 20 20 4a 65 66 66 20 48 6f 62 62 73  8-18  Jeff Hobbs
2c20: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69    <hobbs@scripti
2c30: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e  cs.com>...* tls.
2c40: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64  c (Tls_Init): ad
2c50: 64 65 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e 44  ded call to RAND
2c60: 5f 73 65 65 64 20 74 6f 20 73 65 65 64 20 74 68  _seed to seed th
2c70: 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75  e SSL random..nu
2c80: 6d 62 65 72 20 67 65 6e 65 72 61 74 6f 72 2e 20  mber generator. 
2c90: 20 57 69 74 68 6f 75 74 20 74 68 69 73 2c 20 4f   Without this, O
2ca0: 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 6f  penSSL 0.9.5 cho
2cb0: 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 0a  kes, and in any.
2cc0: 09 63 61 73 65 20 69 74 20 69 73 20 61 20 62 69  .case it is a bi
2cd0: 67 20 73 65 63 75 72 69 74 79 20 68 6f 6c 65 20  g security hole 
2ce0: 74 6f 20 64 6f 20 77 69 74 68 6f 75 74 20 69 74  to do without it
2cf0: 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e  ....* configure.
2d00: 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 64  in (OPENSSL): ad
2d10: 64 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 20  ded NO_IDEA and 
2d20: 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65 73 20 62  NO_RC5 defines b
2d30: 79 0a 09 64 65 66 61 75 6c 74 20 77 68 65 6e 20  y..default when 
2d40: 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 4f  compiling with O
2d50: 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49  penSSL....* tlsI
2d60: 6e 74 2e 68 3a 20 61 64 64 65 64 20 65 72 72 2e  nt.h: added err.
2d70: 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 6c  h include...* tl
2d80: 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f  sBIO.c:..* tlsIO
2d90: 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 70 65  .c: corrected pe
2da0: 64 61 6e 74 69 63 20 63 61 73 74 20 65 72 72 6f  dantic cast erro
2db0: 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 20  rs...2000-08-16 
2dc0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
2dd0: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
2de0: 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70  m>...* tests/cip
2df0: 68 65 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 6f  hers.test: impro
2e00: 76 65 64 20 61 62 69 6c 69 74 79 20 74 6f 20 63  ved ability to c
2e10: 68 61 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e 74  hange constraint
2e20: 0a 09 73 65 74 74 69 6e 67 20 66 6f 72 20 77 68  ..setting for wh
2e30: 65 74 68 65 72 20 75 73 65 72 20 63 6f 6d 70 69  ether user compi
2e40: 6c 65 64 20 61 67 61 69 6e 73 74 20 52 53 41 20  led against RSA 
2e50: 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 2e  or OpenSSL libs.
2e60: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f  ...* tls.c (Tls_
2e70: 49 6e 69 74 29 3a 20 63 6f 72 72 65 63 74 65 64  Init): corrected
2e80: 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e 20   interpretation 
2e90: 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65  of version numbe
2ea0: 72 0a 09 28 70 61 74 63 68 6c 65 76 65 6c 20 61  r..(patchlevel a
2eb0: 6e 64 20 72 65 6c 65 61 73 65 2f 73 65 72 69 61  nd release/seria
2ec0: 6c 20 77 65 72 65 20 73 77 61 70 70 65 64 29 2e  l were swapped).
2ed0: 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20 20 4a 65  ..2000-08-15  Je
2ee0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
2ef0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
2f00: 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20  ..* README.txt: 
2f10: 61 64 64 65 64 20 6e 6f 74 65 73 20 61 62 6f 75  added notes abou
2f20: 74 20 6e 65 65 64 20 74 6f 20 75 73 65 20 38 2e  t need to use 8.
2f30: 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74  2.0+....* tlsInt
2f40: 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a  .h:..* tls.c:..*
2f50: 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63   tlsIO.c: correc
2f60: 74 65 64 20 73 74 72 75 63 74 75 72 65 20 69 6e  ted structure in
2f70: 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f 20  itialization to 
2f80: 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 69  work when..compi
2f90: 6c 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 20  ling with 8.2.  
2fa0: 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 74  Now compiles wit
2fb0: 68 20 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 65  h 8.2+ and teste
2fc0: 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 20  d to work..with 
2fd0: 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 63  8.2+ and dynamic
2fe0: 61 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 74  ally adjust to t
2ff0: 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 63  he version of Tc
3000: 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 64  l it was..loaded
3010: 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c 6c   into.  TLS will
3020: 20 66 61 69 6c 20 74 68 65 20 74 65 73 74 20 73   fail the test s
3030: 75 69 74 65 20 77 69 74 68 20 54 63 6c 20 38 2e  uite with Tcl 8.
3040: 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 73  2-8.3.1....* tes
3050: 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 65  ts/all.tcl: adde
3060: 64 20 63 61 74 63 68 20 61 72 6f 75 6e 64 20 3a  d catch around :
3070: 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c  :tcltest::normal
3080: 69 7a 65 50 61 74 68 0a 09 62 65 63 61 75 73 65  izePath..because
3090: 20 69 74 20 64 6f 65 73 6e 27 74 20 65 78 69 73   it doesn't exis
30a0: 74 20 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 6c  t in pre-8.3 tcl
30b0: 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f  test....* tests/
30c0: 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c  simpleClient.tcl
30d0: 3a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c  :..* tests/simpl
30e0: 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 61 64 64  eServer.tcl: add
30f0: 65 64 20 73 69 6d 70 6c 65 20 63 6c 69 65 6e 74  ed simple client
3100: 2f 73 65 72 76 65 72 20 74 65 73 74 20 73 63 72  /server test scr
3110: 69 70 74 73 0a 09 74 68 61 74 20 75 73 65 20 74  ipts..that use t
3120: 65 73 74 20 63 65 72 74 73 20 61 6e 64 20 63 61  est certs and ca
3130: 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73 74 72 65  n do simple stre
3140: 73 73 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d  ss tests...2000-
3150: 30 38 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62  08-14  Jeff Hobb
3160: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
3170: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ics.com>...* tls
3180: 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e  Int.h:..* tlsIO.
3190: 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a  c:..* tlsBIO.c:.
31a0: 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61 6e 67 65  .* tls.c: change
31b0: 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79  d around to only
31c0: 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 38 2e   working with 8.
31d0: 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 72  2.0+ (8.3.2+..pr
31e0: 65 66 65 72 72 65 64 29 2c 20 77 69 74 68 20 72  eferred), with r
31f0: 75 6e 74 69 6d 65 20 63 68 65 63 6b 73 20 66 6f  untime checks fo
3200: 72 20 70 72 65 2d 20 61 6e 64 20 70 6f 73 74 2d  r pre- and post-
3210: 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a 09 2a 20  io-rewrite....* 
3220: 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29  tls.c (Tls_Init)
3230: 3a 20 63 68 61 6e 67 65 64 20 69 74 20 74 6f 20  : changed it to 
3240: 72 65 71 75 69 72 65 20 38 2e 33 2e 32 20 77 68  require 8.3.2 wh
3250: 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74 75 62 73  en Tcl_InitStubs
3260: 0a 09 77 61 73 20 63 61 6c 6c 65 64 20 62 65 63  ..was called bec
3270: 61 75 73 65 20 77 65 20 64 6f 6e 27 74 20 77 61  ause we don't wa
3280: 6e 74 20 70 65 6f 70 6c 65 20 75 73 69 6e 67 20  nt people using 
3290: 54 4c 53 20 77 69 74 68 20 74 68 65 0a 09 6f 72  TLS with the..or
32a0: 69 67 69 6e 61 6c 20 73 74 61 63 6b 65 64 20 63  iginal stacked c
32b0: 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e 74  hannel implement
32c0: 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d  ation...2000-07-
32d0: 32 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  26  Jeff Hobbs  
32e0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
32f0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 64  .com>...* merged
3300: 20 61 6c 6c 20 63 68 61 6e 67 65 73 20 66 72 6f   all changes fro
3310: 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 77  m tls-1-3-io-rew
3320: 72 69 74 65 20 62 61 63 6b 20 69 6e 74 6f 20 6d  rite back into m
3330: 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09 2a 20 74  ain branch...* t
3340: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a  ests/tlsIO.test:
3350: 20 75 70 64 61 74 65 64 20 63 6f 6d 6d 65 6e 74   updated comment
3360: 73 2c 20 66 69 78 65 64 20 61 20 70 63 43 72 61  s, fixed a pcCra
3370: 73 68 20 63 61 73 65 20 74 68 61 74 0a 09 77 61  sh case that..wa
3380: 73 20 64 75 65 20 74 6f 20 64 65 62 75 67 20 61  s due to debug a
3390: 73 73 65 72 74 69 6f 6e 20 69 6e 20 57 69 6e 64  ssertion in Wind
33a0: 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73  ows SSL....* tls
33b0: 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a 43 6d 64  .c (ImportObjCmd
33c0: 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e 6e 65 63  ): removed unnec
33d0: 65 73 73 61 72 79 20 75 73 65 20 6f 66 20 27 62  essary use of 'b
33e0: 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c 73 5f 49  io' arg...(Tls_I
33f0: 6e 69 74 29 3a 20 63 68 65 63 6b 20 72 65 74 75  nit): check retu
3400: 72 6e 20 76 61 6c 75 65 20 6f 66 20 53 53 4c 5f  rn value of SSL_
3410: 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e 20 20 41  library_init.  A
3420: 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 68 69  lso lots of..whi
3430: 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 20  tespace cleanup 
3440: 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63 6c 20 45  (more like Tcl E
3450: 6e 67 20 73 74 79 6c 65 20 67 75 69 64 65 29 2c  ng style guide),
3460: 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f   but not all..co
3470: 64 65 20 77 61 73 20 63 6c 65 61 6e 65 64 20 75  de was cleaned u
3480: 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a  p....* tlsBIO.c:
3490: 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61 63   minor whitespac
34a0: 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 6c  e cleanup...* tl
34b0: 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69  sIO.c: minor whi
34c0: 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70 2e  tespace cleanup.
34d0: 0a 09 28 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c  ..(TlsInputProc,
34e0: 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 29 3a   TlsOutputProc):
34f0: 20 41 64 64 65 64 20 45 52 52 5f 63 6c 65 61 72   Added ERR_clear
3500: 5f 65 72 72 6f 72 20 62 65 66 6f 72 65 20 63 61  _error before ca
3510: 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72 65 61 64  lls..to BIO_read
3520: 20 6f 72 20 42 49 4f 5f 77 72 69 74 65 2c 20 62   or BIO_write, b
3530: 65 63 61 75 73 65 20 77 65 20 63 6f 75 6c 64 20  ecause we could 
3540: 6f 74 68 65 72 77 69 73 65 20 65 6e 64 20 75 70  otherwise end up
3550: 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20 65 72 72  ..pulling an err
3560: 6f 72 20 6f 66 66 20 74 68 65 20 73 74 61 63 6b  or off the stack
3570: 20 74 68 61 74 20 64 69 64 6e 27 74 20 62 65 6c   that didn't bel
3580: 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41 6c 73 6f  ong to us.  Also
3590: 0a 09 63 6c 65 61 6e 75 70 20 75 70 20 65 78 63  ..cleanup up exc
35a0: 65 73 73 69 76 65 20 75 73 65 20 6f 66 20 67 6f  essive use of go
35b0: 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 30  tos...2000-07-20
35c0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
35d0: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
35e0: 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c  om>...* tests/tl
35f0: 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72 72 65 63  sIO.test: correc
3600: 74 65 64 20 76 61 72 69 6f 75 73 20 74 65 73 74  ted various test
3610: 73 20 74 6f 20 62 65 20 63 6f 72 72 65 63 74 20  s to be correct 
3620: 66 6f 72 20 54 4c 53 0a 09 73 74 61 63 6b 65 64  for TLS..stacked
3630: 20 63 68 61 6e 6e 65 6c 73 20 28 61 73 20 6f 70   channels (as op
3640: 70 6f 73 65 64 20 74 6f 20 74 68 65 20 73 74 61  posed to the sta
3650: 6e 64 61 72 64 20 73 6f 63 6b 65 74 73 20 74 68  ndard sockets th
3660: 65 20 74 65 73 74 0a 09 73 75 69 74 65 20 77 61  e test..suite wa
3670: 73 20 61 64 6f 70 74 65 64 20 66 72 6f 6d 29 2e  s adopted from).
3680: 20 20 4b 65 79 20 64 69 66 66 65 72 65 6e 63 65    Key difference
3690: 73 20 61 72 65 20 74 68 61 74 20 54 4c 53 20 63  s are that TLS c
36a0: 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74 65 20 69  annot..operate i
36b0: 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73 20 77 69  n one process wi
36c0: 74 68 6f 75 74 20 61 6c 6c 20 63 68 61 6e 6e 65  thout all channe
36d0: 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f  ls being non-blo
36e0: 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68 65 20 68  cking, or..the h
36f0: 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c 20 62 6c  andshake will bl
3700: 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64 73 68 61  ock, and handsha
3710: 6b 69 6e 67 20 6d 75 73 74 20 62 65 20 66 6f 72  king must be for
3720: 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09 63 61 73  ced in some..cas
3730: 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61 6e 64 73  es.  Also, hands
3740: 68 61 6b 65 73 20 64 6f 6e 27 74 20 73 65 65 6d  hakes don't seem
3750: 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20 75 6e 6c   to complete unl
3760: 65 73 73 20 74 68 65 20 63 6c 69 65 6e 74 0a 09  ess the client..
3770: 68 61 73 20 70 6c 61 63 65 64 20 61 74 20 6c 65  has placed at le
3780: 61 73 74 20 6f 6e 65 20 62 79 74 65 20 66 6f 72  ast one byte for
3790: 20 74 68 65 20 73 65 72 76 65 72 20 74 6f 20 72   the server to r
37a0: 65 61 64 20 69 6e 20 74 68 65 20 63 68 61 6e 6e  ead in the chann
37b0: 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 72 65  el....* tests/re
37c0: 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72 72 65 63  mote.tcl: correc
37d0: 74 65 64 20 74 68 65 20 66 69 6e 64 69 6e 67 20  ted the finding 
37e0: 6f 66 20 74 65 73 74 73 20 63 65 72 74 69 66 69  of tests certifi
37f0: 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e  cates...* tlsIO.
3800: 63 20 28 54 6c 73 43 6c 6f 73 65 50 72 6f 63 29  c (TlsCloseProc)
3810: 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c 65 74 69  : removed deleti
3820: 6e 67 20 6f 66 20 74 69 6d 65 72 20 68 61 6e 64  ng of timer hand
3830: 6c 65 72 20 61 73 0a 09 74 68 61 74 20 69 73 20  ler as..that is 
3840: 68 61 6e 64 6c 65 64 20 62 79 20 54 6c 73 5f 43  handled by Tls_C
3850: 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63  lean....* tls.tc
3860: 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65 70 74 29  l (tls::_accept)
3870: 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 65 20  : corrected the 
3880: 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63 65 70 74  internal _accept
3890: 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20 63 61 6c   to..trickle cal
38a0: 6c 62 61 63 6b 20 65 72 72 6f 72 73 20 74 6f 20  lback errors to 
38b0: 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a 20 4d 61  the user....* Ma
38c0: 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 20  kefile.in: made 
38d0: 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 61  the install-bina
38e0: 72 69 65 73 20 74 61 72 67 65 74 20 72 65 67 65  ries target rege
38f0: 6e 65 72 61 74 65 20 74 68 65 0a 09 70 6b 67 49  nerate the..pkgI
3900: 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72 65 63 74  ndex.tcl correct
3910: 6c 79 2e 20 20 54 68 65 20 74 65 73 74 20 74 61  ly.  The test ta
3920: 72 67 65 74 20 70 72 6f 62 61 62 6c 79 20 73 68  rget probably sh
3930: 6f 75 6c 64 6e 27 74 20 73 63 72 65 77 0a 09 69  ouldn't screw..i
3940: 74 20 75 70 2c 20 62 75 74 20 74 68 69 73 20 69  t up, but this i
3950: 73 20 74 6f 20 62 65 20 6f 6e 20 74 68 65 20 73  s to be on the s
3960: 61 66 65 20 73 69 64 65 2e 0a 0a 32 30 30 30 2d  afe side...2000-
3970: 30 37 2d 31 37 20 20 4a 65 66 66 20 48 6f 62 62  07-17  Jeff Hobb
3980: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
3990: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67  ics.com>...* pkg
39a0: 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a  Index.tcl.in:..*
39b0: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75   configure.in: u
39c0: 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74  pdated version t
39d0: 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30 37 2d 31  o 1.4..2000-07-1
39e0: 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  3  Jeff Hobbs  <
39f0: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
3a00: 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  com>...* tests/t
3a10: 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e 61 62 6c  lsIO.test: enabl
3a20: 65 64 20 74 65 73 74 73 20 32 2e 31 30 2c 20 37  ed tests 2.10, 7
3a30: 2e 5b 31 32 34 35 5d 20 28 74 68 65 72 65 20 69  .[1245] (there i
3a40: 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69 63 68 20  s no 3),..which 
3a50: 6e 6f 77 20 70 61 73 73 2e 20 20 41 64 64 65 64  now pass.  Added
3a60: 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 74   some comments t
3a70: 6f 20 6f 74 68 65 72 20 66 61 69 6c 69 6e 67 20  o other failing 
3a80: 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 37 2d  tests...2000-07-
3a90: 31 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  11  Jeff Hobbs  
3aa0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
3ab0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e  .com>...* tlsIO.
3ac0: 63 3a 20 63 68 61 6e 67 65 64 20 61 6c 6c 20 74  c: changed all t
3ad0: 68 65 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73  he channel procs
3ae0: 20 74 6f 20 73 74 61 72 74 20 77 69 74 68 20 54   to start with T
3af0: 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74 65 72 20  ls* for..better 
3b00: 70 61 72 69 74 79 20 77 68 65 6e 20 63 6f 6d 70  parity when comp
3b10: 61 72 69 6e 67 20 77 69 74 68 20 54 72 61 6e 73  aring with Trans
3b20: 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20 70 72 6f  form channel pro
3b30: 63 73 2e 0a 09 52 65 77 72 6f 74 65 20 54 6c 73  cs...Rewrote Tls
3b40: 57 61 74 63 68 50 72 6f 63 2c 20 61 64 64 65 64  WatchProc, added
3b50: 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f 63 20 61   TlsNotifyProc a
3b60: 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20  ccording to the 
3b70: 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20 64 65 73  new..channel des
3b80: 69 67 6e 2c 20 77 68 69 63 68 20 61 6c 73 6f 20  ign, which also 
3b90: 6c 65 61 76 65 73 20 54 6c 73 43 68 61 6e 6e 65  leaves TlsChanne
3ba0: 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73 65 64 2e  lHandler unused.
3bb0: 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42  ...* tlsBIO.c (B
3bc0: 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e 67 65 64  ioCtrl): changed
3bd0: 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 20   BIO_CTRL_FLUSH 
3be0: 63 61 73 65 20 74 6f 20 75 73 65 0a 09 54 63 6c  case to use..Tcl
3bf0: 5f 57 72 69 74 65 52 61 77 20 69 6e 73 74 65 61  _WriteRaw instea
3c00: 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73 68 20 28  d of Tcl_Flush (
3c10: 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e 20 63 6f  to operate on co
3c20: 72 72 65 63 74 20 63 68 61 6e 6e 65 6c 0a 09 69  rrect channel..i
3c30: 6e 20 74 68 65 20 73 74 61 63 6b 20 69 6e 73 74  n the stack inst
3c40: 65 61 64 20 6f 66 20 73 74 61 72 74 69 6e 67 20  ead of starting 
3c50: 61 74 20 74 68 65 20 74 6f 70 20 61 67 61 69 6e  at the top again
3c60: 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74 68 65 72  ).  Would..other
3c70: 77 69 73 65 20 63 61 75 73 65 20 61 20 72 65 63  wise cause a rec
3c80: 75 72 73 69 76 65 20 73 74 61 63 6b 20 62 6f 6d  ursive stack bom
3c90: 62 20 77 68 65 6e 20 69 6d 70 6c 69 63 69 74 20  b when implicit 
3ca0: 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09 74 6f 6f  handshaking..too
3cb0: 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a 20 74 65  k effect....* te
3cc0: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20  sts/tlsIO.test: 
3cd0: 72 65 6d 6f 76 65 64 20 63 68 61 6e 67 65 73 20  removed changes 
3ce0: 6d 61 64 65 20 74 6f 20 74 65 73 74 20 73 75 69  made to test sui
3cf0: 74 65 20 28 61 6c 6c 20 74 65 73 74 73 0a 09 74  te (all tests..t
3d00: 68 61 74 20 72 61 6e 20 62 65 66 6f 72 65 20 6e  hat ran before n
3d10: 6f 77 20 70 61 73 73 20 63 6f 72 72 65 63 74 6c  ow pass correctl
3d20: 79 29 2c 20 61 6e 64 20 63 68 61 6e 67 65 64 20  y), and changed 
3d30: 73 6f 6d 65 20 61 63 63 65 70 74 20 70 72 6f 63  some accept proc
3d40: 0a 09 61 72 67 73 20 74 6f 20 72 65 66 6c 65 63  ..args to reflec
3d50: 74 20 74 68 61 74 20 61 20 73 6f 63 6b 20 69 73  t that a sock is
3d60: 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20 61 20 66   an arg, not a f
3d70: 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 30  ile...2000-07-10
3d80: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
3d90: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
3da0: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63  om>...* tlsBIO.c
3db0: 20 28 42 69 6f 57 72 69 74 65 2c 20 42 69 6f 52   (BioWrite, BioR
3dc0: 65 61 64 29 3a 20 63 68 61 6e 67 65 64 20 54 63  ead): changed Tc
3dd0: 6c 5f 52 65 61 64 2f 57 72 69 74 65 20 74 6f 0a  l_Read/Write to.
3de0: 09 54 63 6c 5f 52 65 61 64 52 61 77 2f 54 63 6c  .Tcl_ReadRaw/Tcl
3df0: 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a 20 74 6c  WriteRaw....* tl
3e00: 73 2e 63 3a 20 61 64 64 65 64 20 75 73 65 20 6f  s.c: added use o
3e10: 66 20 54 63 6c 5f 47 65 74 54 6f 70 43 68 61 6e  f Tcl_GetTopChan
3e20: 6e 65 6c 20 61 66 74 65 72 20 54 63 6c 5f 47 65  nel after Tcl_Ge
3e30: 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f  tChannel and..go
3e40: 74 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 66  t return value f
3e50: 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b 43 68 61  rom Tcl_StackCha
3e60: 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f  nnel....* tests/
3e70: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61 64 64 65  tlsIO.test: adde
3e80: 64 20 73 6f 6d 65 20 68 61 6e 64 73 68 61 6b 69  d some handshaki
3e90: 6e 67 20 74 68 61 74 20 73 68 6f 75 6c 64 6e 27  ng that shouldn'
3ea0: 74 20 62 65 0a 09 6e 65 63 65 73 73 61 72 79 2c  t be..necessary,
3eb0: 20 62 75 74 20 77 65 20 63 72 61 73 68 20 6f 74   but we crash ot
3ec0: 68 65 72 77 69 73 65 20 28 6e 65 65 64 73 20 6d  herwise (needs m
3ed0: 6f 72 65 20 74 65 73 74 69 6e 67 29 2e 0a 0a 09  ore testing)....
3ee0: 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64 64 65 64  * tlsIO.c: added
3ef0: 20 73 75 70 70 6f 72 74 20 66 6f 72 20 22 63 6f   support for "co
3f00: 72 72 65 63 74 65 64 22 20 73 74 61 63 6b 65 64  rrected" stacked
3f10: 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a   channels.  All.
3f20: 09 74 68 65 20 61 62 6f 76 65 20 63 68 61 6e 6e  .the above chann
3f30: 65 6c 73 20 61 72 65 20 69 6e 20 54 43 4c 5f 43  els are in TCL_C
3f40: 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f 32  HANNEL_VERSION_2
3f50: 20 23 69 66 64 65 66 73 2e 0a 0a 32 30 30 30 2d   #ifdefs...2000-
3f60: 30 36 2d 30 35 20 20 53 63 6f 74 74 20 53 74 61  06-05  Scott Sta
3f70: 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61  nton  <stanton@a
3f80: 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f  jubasolutions.co
3f90: 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e  m>...* Makefile.
3fa0: 69 6e 3a 20 46 69 78 65 64 20 62 72 6f 6b 65 6e  in: Fixed broken
3fb0: 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 0a 09   test target....
3fc0: 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74  * tlsInt.h:..* t
3fd0: 6c 73 2e 63 3a 20 43 6c 65 61 6e 65 64 20 75 70  ls.c: Cleaned up
3fe0: 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20 6f 66   declarations of
3ff0: 20 54 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 61 76   Tls_Clean to av
4000: 6f 69 64 20 65 72 72 6f 72 73 20 6f 6e 0a 09 57  oid errors on..W
4010: 69 6e 64 6f 77 73 20 28 6c 69 6e 74 29 2e 0a 0a  indows (lint)...
4020: 32 30 30 30 2d 30 36 2d 30 35 20 20 42 72 65 6e  2000-06-05  Bren
4030: 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 61  t Welch <welch@a
4040: 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f  jubasolutions.co
4050: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 6c  m>...* tls.c, tl
4060: 73 49 4f 2e 63 3a 20 20 53 70 6c 69 74 20 54 6c  sIO.c:  Split Tl
4070: 73 5f 46 72 65 65 20 69 6e 74 6f 20 54 6c 73 5f  s_Free into Tls_
4080: 43 6c 65 61 6e 2c 20 77 68 69 63 68 20 64 6f 65  Clean, which doe
4090: 73 0a 09 74 68 65 20 53 53 4c 20 63 6c 65 61 6e  s..the SSL clean
40a0: 75 70 2c 20 61 6e 64 20 74 68 65 20 54 63 6c 5f  up, and the Tcl_
40b0: 46 72 65 65 20 63 61 6c 6c 2e 20 20 49 74 20 69  Free call.  It i
40c0: 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73  s important to s
40d0: 68 75 74 64 6f 77 6e 0a 09 74 68 65 20 53 53 4c  hutdown..the SSL
40e0: 20 73 74 61 74 65 20 22 73 79 6e 63 68 72 6f 6e   state "synchron
40f0: 6f 75 73 6c 79 22 20 64 75 72 69 6e 67 20 61 20  ously" during a 
4100: 73 74 61 63 6b 65 64 20 66 6c 75 73 68 2e 0a 0a  stacked flush...
4110: 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74  2000-06-01  Scot
4120: 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e  t Stanton  <stan
4130: 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f  ton@ajubasolutio
4140: 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49  ns.com>...* tlsI
4150: 4f 2e 63 3a 20 52 65 73 74 6f 72 65 64 20 63 61  O.c: Restored ca
4160: 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 79  ll to Tcl_Notify
4170: 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 61  Channel from Cha
4180: 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 74 6f 20  nnelHandler..to 
4190: 65 6e 73 75 72 65 20 74 68 61 74 20 65 76 65 6e  ensure that even
41a0: 74 73 20 70 72 6f 70 61 67 61 74 65 20 66 72 6f  ts propagate fro
41b0: 6d 20 74 68 65 20 6c 6f 77 65 72 20 64 72 69 76  m the lower driv
41c0: 65 72 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 72  er.  This may..r
41d0: 65 73 75 6c 74 20 69 6e 20 61 6e 20 69 6e 66 69  esult in an infi
41e0: 6e 69 74 65 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d  nite loop in som
41f0: 65 20 63 61 73 65 73 2c 20 73 6f 20 74 68 69 73  e cases, so this
4200: 20 69 73 20 6e 6f 74 20 61 20 74 6f 74 61 6c 0a   is not a total.
4210: 09 66 69 78 2e 20 20 54 68 69 73 20 6d 61 79 20  .fix.  This may 
4220: 62 65 20 73 75 66 66 69 63 69 65 6e 74 20 66 6f  be sufficient fo
4230: 72 20 6e 6f 77 2c 20 68 6f 77 65 76 65 72 2e 20  r now, however. 
4240: 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30  [Bug: 5623]..200
4250: 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53  0-06-01  Scott S
4260: 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e  tanton  <stanton
4270: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
4280: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73  ..* tlsIO.c: Res
4290: 74 6f 72 65 20 74 68 65 20 70 72 65 76 69 6f 75  tore the previou
42a0: 73 20 76 65 72 73 69 6f 6e 2e 20 20 46 69 78 65  s version.  Fixe
42b0: 64 20 74 68 65 20 43 6c 6f 73 65 50 72 6f 63 20  d the CloseProc 
42c0: 73 6f 0a 09 69 74 20 75 6e 72 65 67 69 73 74 65  so..it unregiste
42d0: 72 73 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68  rs the channel h
42e0: 61 6e 64 6c 65 72 20 6f 6e 20 74 68 65 20 73 75  andler on the su
42f0: 70 65 72 63 65 64 65 64 20 63 68 61 6e 6e 65 6c  perceded channel
4300: 0a 09 69 6e 73 74 65 61 64 20 6f 66 20 74 68 65  ..instead of the
4310: 20 75 70 70 65 72 20 63 68 61 6e 6e 65 6c 2e 20   upper channel. 
4320: 41 6c 73 6f 20 72 65 6d 6f 76 65 64 20 74 68 65  Also removed the
4330: 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f   call to..Tcl_No
4340: 74 69 66 79 43 68 61 6e 6e 65 6c 20 69 6e 20 74  tifyChannel in t
4350: 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65  he ChannelHandle
4360: 72 20 62 65 63 61 75 73 65 20 74 68 69 73 20 77  r because this w
4370: 69 6c 6c 20 72 65 73 75 6c 74 0a 09 69 6e 20 61  ill result..in a
4380: 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20  n infinite loop 
4390: 69 66 20 64 61 74 61 20 69 73 20 65 76 65 72 20  if data is ever 
43a0: 62 75 66 66 65 72 65 64 20 69 6e 20 74 68 65 20  buffered in the 
43b0: 42 49 4f 0a 09 73 74 72 75 63 74 75 72 65 2e 20  BIO..structure. 
43c0: 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30  [Bug: 5623]..200
43d0: 30 2d 30 35 2d 33 31 20 20 42 72 65 6e 74 20 57  0-05-31  Brent W
43e0: 65 6c 63 68 20 3c 77 65 6c 63 68 40 73 63 72 69  elch <welch@scri
43f0: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74  ptics.com>...* t
4400: 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20 74 68 65  ls.c: Change the
4410: 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20   ChannelHandler 
4420: 74 6f 20 62 65 20 72 65 67 69 73 74 65 72 65 64  to be registered
4430: 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a 09 63 68   on the main..ch
4440: 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73 65 64 20  annel as oppsed 
4450: 74 6f 20 74 68 65 20 22 70 61 72 65 6e 74 22 2c  to the "parent",
4460: 20 6f 72 20 73 75 70 65 72 63 65 65 64 65 64 2c   or superceeded,
4470: 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68 69 73 0a   channel.  This.
4480: 09 69 73 20 62 65 63 61 75 73 65 20 74 68 65 20  .is because the 
4490: 73 6f 63 6b 65 74 20 64 72 69 76 65 72 20 6e 6f  socket driver no
44a0: 74 69 66 69 65 73 20 74 68 65 20 6d 61 69 6e 20  tifies the main 
44b0: 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 65  channel, and the
44c0: 72 65 0a 09 61 72 65 20 74 69 6d 65 73 20 77 69  re..are times wi
44d0: 74 68 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e  th the main chan
44e0: 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73 65 64 2c  nel gets closed,
44f0: 20 62 75 74 20 74 68 65 20 73 75 70 65 72 63 65   but the superce
4500: 64 65 64 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 20  ded..one is not 
4510: 79 65 74 20 63 6c 6f 73 65 64 2e 20 20 49 66 20  yet closed.  If 
4520: 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64  the channel hand
4530: 6c 65 72 20 67 65 74 73 20 74 72 69 67 67 65 72  ler gets trigger
4540: 65 64 20 69 6e 0a 09 74 68 69 73 20 68 61 6c 66  ed in..this half
4550: 2d 6f 70 65 6e 20 73 74 61 74 65 20 69 74 20 69  -open state it i
4560: 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74  s associated wit
4570: 68 20 74 68 65 20 73 75 70 65 72 63 65 65 64 65  h the superceede
4580: 64 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 62 75 74  d..channedl, but
4590: 20 75 73 65 73 20 69 74 73 20 70 72 69 76 61 74   uses its privat
45a0: 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 65  e pointer to the
45b0: 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 77   main channel, w
45c0: 68 69 63 68 0a 09 69 73 20 6d 6f 73 74 6c 79 20  hich..is mostly 
45d0: 64 65 73 74 72 6f 79 65 64 2e 20 20 45 6c 69 6d  destroyed.  Elim
45e0: 69 6e 61 74 65 64 20 74 68 65 20 72 65 64 75 6e  inated the redun
45f0: 64 61 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 54 63  dant call to..Tc
4600: 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20  l_NotifyChannel 
4610: 66 72 6f 6d 20 54 6c 73 57 61 74 63 68 50 72 6f  from TlsWatchPro
4620: 63 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a     c. [Bug: 5623].