Hex Artifact Content

Artifact ca64c2cd1bdf78bc525072d59596674b2798383b:


0000: 32 30 30 34 2d 30 32 2d 30 33 20 20 44 61 6e 20  2004-02-03  Dan 
0010: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63  Razzell <researc
0020: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d  h@starfishsystem
0030: 73 2e 63 61 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69  s.ca>...* Makefi
0040: 6c 65 2e 69 6e 3a 09 52 65 6d 6f 76 65 64 20 63  le.in:.Removed c
0050: 69 72 63 75 6c 61 72 20 64 65 70 65 6e 64 65 6e  ircular dependen
0060: 63 79 2e 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a  cy...* tlsInt.h:
0070: 09 4d 61 6b 65 20 66 75 6e 63 74 69 6f 6e 20 64  .Make function d
0080: 65 63 6c 61 72 61 74 69 6f 6e 73 20 65 78 70 6c  eclarations expl
0090: 69 63 69 74 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09  icit...* tls.c:.
00a0: 46 69 78 20 74 79 70 65 20 6d 61 74 63 68 20 61  Fix type match a
00b0: 6e 64 20 75 6e 75 73 65 64 20 76 61 72 69 61 62  nd unused variab
00c0: 6c 65 20 77 61 72 6e 69 6e 67 73 2e 0a 09 2a 20  le warnings...* 
00d0: 74 6c 73 42 49 4f 2e 63 3a 09 46 69 78 20 74 79  tlsBIO.c:.Fix ty
00e0: 70 65 20 6d 61 74 63 68 20 77 61 72 6e 69 6e 67  pe match warning
00f0: 2e 0a 0a 32 30 30 33 2d 31 32 2d 31 35 20 20 44  ...2003-12-15  D
0100: 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65  an Razzell.<rese
0110: 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79 73  arch@starfishsys
0120: 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67  tems.ca>...* pkg
0130: 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a  Index.tcl.in:..*
0140: 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 65 73   tls.htm:..* tes
0150: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75  ts/tlsIO.test: u
0160: 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74  pdated version t
0170: 6f 20 31 2e 35 2e 0a 0a 32 30 30 33 2d 31 30 2d  o 1.5...2003-10-
0180: 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09  07  Dan Razzell.
0190: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69  <research@starfi
01a0: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09  shsystems.ca>...
01b0: 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e  * tests/ciphers.
01c0: 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 6c 69  test: updated li
01d0: 73 74 20 6f 66 20 74 65 73 74 65 64 20 63 69 70  st of tested cip
01e0: 68 65 72 73 20 74 6f 20 63 6f 72 72 65 73 70 6f  hers to correspo
01f0: 6e 64 0a 09 2a 20 77 69 74 68 20 74 68 6f 73 65  nd..* with those
0200: 20 61 76 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20   available from 
0210: 4f 70 65 6e 53 53 4c 2e 20 5b 52 65 71 75 65 73  OpenSSL. [Reques
0220: 74 20 23 38 31 31 39 38 31 5d 0a 0a 32 30 30 33  t #811981]..2003
0230: 2d 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a  -10-07  Dan Razz
0240: 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74  ell <research@st
0250: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61  arfishsystems.ca
0260: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64  >...* tls.c: add
0270: 65 64 20 43 4f 4e 53 54 20 77 69 74 68 20 69 6e  ed CONST with in
0280: 74 65 6e 74 20 73 69 6d 69 6c 61 72 20 74 6f 20  tent similar to 
0290: 74 68 6f 73 65 20 66 72 6f 6d 20 32 30 30 32 2d  those from 2002-
02a0: 30 32 2d 30 34 2e 0a 09 5b 52 65 71 75 65 73 74  02-04...[Request
02b0: 20 23 38 31 31 39 31 31 5d 0a 0a 32 30 30 33 2d   #811911]..2003-
02c0: 30 37 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62  07-07  Jeff Hobb
02d0: 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65  s  <jeffh@Active
02e0: 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74  State.com>...* t
02f0: 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a  ls.c (Tls_Init):
0300: 20 20 20 61 64 64 65 64 20 74 6c 73 3a 3a 6d 69     added tls::mi
0310: 73 63 20 63 6f 6d 6d 61 6e 64 20 70 72 6f 76 69  sc command provi
0320: 64 65 64 20 62 79 0a 09 2a 20 74 6c 73 58 35 30  ded by..* tlsX50
0330: 39 2e 63 3a 20 20 20 20 20 20 20 20 20 20 57 6f  9.c:          Wo
0340: 6a 63 69 65 63 68 20 4b 6f 63 6a 61 6e 20 28 77  jciech Kocjan (w
0350: 6f 6a 63 69 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f  ojciech kocjan.o
0360: 72 67 29 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79  rg)..* tests/key
0370: 74 65 73 74 31 2e 74 63 6c 3a 20 74 6f 20 65 78  test1.tcl: to ex
0380: 70 6f 73 65 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65  pose more low-le
0390: 76 65 6c 20 53 53 4c 20 63 6f 6d 6d 61 6e 64 73  vel SSL commands
03a0: 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73  ..* tests/keytes
03b0: 74 32 2e 74 63 6c 3a 0a 0a 32 30 30 33 2d 30 35  t2.tcl:..2003-05
03c0: 2d 31 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c  -15  Dan Razzell
03d0: 09 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66  .<research@starf
03e0: 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 20 0a  ishsystems.ca> .
03f0: 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20  ..* tls.tcl:..* 
0400: 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73  tlsInt.h:..* tls
0410: 2e 63 3a 20 61 64 64 20 73 75 70 70 6f 72 74 20  .c: add support 
0420: 66 6f 72 20 62 69 6e 64 69 6e 67 20 61 20 70 61  for binding a pa
0430: 73 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 20  ssword callback 
0440: 74 6f 20 74 68 65 20 73 6f 63 6b 65 74 2e 0a 09  to the socket...
0450: 4e 6f 77 20 65 61 63 68 20 73 6f 63 6b 65 74 20  Now each socket 
0460: 63 61 6e 20 68 61 76 65 20 69 74 73 20 6f 77 6e  can have its own
0470: 20 63 6f 6d 6d 61 6e 64 20 61 6e 64 20 70 61 73   command and pas
0480: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 73 20  sword callbacks 
0490: 69 6e 73 74 65 61 64 0a 09 6f 66 20 62 65 69 6e  instead..of bein
04a0: 67 20 66 6f 72 63 65 64 20 74 6f 20 68 61 76 65  g forced to have
04b0: 20 61 6c 6c 20 70 61 73 73 77 6f 72 64 20 6d 61   all password ma
04c0: 6e 61 67 65 6d 65 6e 74 20 70 61 73 73 20 74 68  nagement pass th
04d0: 72 6f 75 67 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09  rough a common..
04e0: 70 72 6f 63 65 64 75 72 65 2e 20 20 54 68 65 20  procedure.  The 
04f0: 63 6f 6d 6d 6f 6e 20 70 61 73 73 77 6f 72 64 20  common password 
0500: 70 72 6f 63 65 64 75 72 65 20 69 73 20 72 65 74  procedure is ret
0510: 61 69 6e 65 64 20 66 6f 72 20 63 6f 6d 70 61 74  ained for compat
0520: 69 62 69 6c 69 74 79 0a 09 62 75 74 20 69 74 73  ibility..but its
0530: 20 75 73 65 20 73 68 6f 75 6c 64 20 62 65 20 44   use should be D
0540: 45 50 52 45 43 41 54 45 44 2e 0a 09 41 64 64 20  EPRECATED...Add 
0550: 76 65 72 73 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20  version command 
0560: 74 6f 20 72 65 74 75 72 6e 20 4f 70 65 6e 53 53  to return OpenSS
0570: 4c 20 76 65 72 73 69 6f 6e 20 73 74 72 69 6e 67  L version string
0580: 2e 0a 09 52 65 6d 6f 76 65 20 75 6e 73 74 61 62  ...Remove unstab
0590: 6c 65 20 77 6f 72 6b 61 72 6f 75 6e 64 73 20 6e  le workarounds n
05a0: 65 65 64 65 64 20 66 6f 72 20 76 65 72 69 66 79  eeded for verify
05b0: 20 69 6e 20 6f 62 73 6f 6c 65 74 65 20 76 65 72   in obsolete ver
05c0: 73 69 6f 6e 73 20 6f 66 0a 09 4f 70 65 6e 53 53  sions of..OpenSS
05d0: 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f 72 79 20 6c  L...Fix memory l
05e0: 65 61 6b 2e 20 5b 52 65 71 75 65 73 74 20 23 36  eak. [Request #6
05f0: 34 30 36 36 30 5d 0a 09 4d 6f 72 65 20 63 61 73  40660]..More cas
0600: 74 73 20 74 6f 20 65 6c 69 6d 69 6e 61 74 65 20  ts to eliminate 
0610: 63 6f 6d 70 69 6c 65 72 20 77 61 72 6e 69 6e 67  compiler warning
0620: 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20  s....* tls.htm: 
0630: 64 6f 63 75 6d 65 6e 74 20 70 61 73 73 77 6f 72  document passwor
0640: 64 20 63 61 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72  d callback...Cor
0650: 72 65 63 74 20 74 65 63 68 6e 69 63 61 6c 20 61  rect technical a
0660: 6e 64 20 74 79 70 6f 67 72 61 70 68 69 63 20 65  nd typographic e
0670: 72 72 6f 72 73 2e 0a 0a 09 2a 20 52 45 41 44 4d  rrors....* READM
0680: 45 2e 74 78 74 3a 20 69 64 65 6e 74 69 66 79 20  E.txt: identify 
0690: 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e  versions of Open
06a0: 53 53 4c 20 77 68 69 63 68 20 66 69 78 20 6b 6e  SSL which fix kn
06b0: 6f 77 6e 20 70 72 6f 62 6c 65 6d 73 2e 0a 09 47  own problems...G
06c0: 65 6e 65 72 61 6c 20 77 61 72 6e 69 6e 67 20 6f  eneral warning o
06d0: 66 20 73 65 63 75 72 69 74 79 20 70 72 6f 62 6c  f security probl
06e0: 65 6d 73 20 69 6e 20 6f 6c 64 65 72 20 76 65 72  ems in older ver
06f0: 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c  sions of OpenSSL
0700: 2e 0a 0a 32 30 30 32 2d 30 32 2d 30 34 20 20 4a  ...2002-02-04  J
0710: 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66  eff Hobbs  <jeff
0720: 68 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f  h@ActiveState.co
0730: 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a  m>...* tls.htm:.
0740: 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20  .* tls.c: added 
0750: 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61  support for loca
0760: 6c 20 63 65 72 74 69 66 69 63 61 74 65 20 73 74  l certificate st
0770: 61 74 75 73 20 63 68 65 63 6b 2c 20 61 73 20 77  atus check, as w
0780: 65 6c 6c 0a 09 61 73 20 72 65 74 75 72 6e 69 6e  ell..as returnin
0790: 67 20 74 68 65 20 23 20 6f 66 20 62 69 74 73 20  g the # of bits 
07a0: 69 6e 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b  in the session k
07b0: 65 79 2e 20 5b 50 61 74 63 68 20 23 35 30 35 36  ey. [Patch #5056
07c0: 39 38 5d 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74  98] (rose)...* t
07d0: 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63  ls.c:..* tlsIO.c
07e0: 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61  :..* tlsBIO.c: a
07f0: 64 64 65 64 20 43 4f 4e 53 54 73 20 74 6f 20 73  dded CONSTs to s
0800: 61 74 69 73 66 79 20 54 63 6c 20 38 2e 34 20 73  atisfy Tcl 8.4 s
0810: 6f 75 72 63 65 73 2e 20 20 54 68 69 73 20 6d 61  ources.  This ma
0820: 79 0a 09 67 69 76 65 20 77 61 72 6e 69 6e 67 73  y..give warnings
0830: 20 77 68 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61   when compiled a
0840: 67 61 69 6e 73 74 20 38 2e 33 2c 20 62 75 74 20  gainst 8.3, but 
0850: 74 68 65 79 20 63 61 6e 20 62 65 20 69 67 6e 6f  they can be igno
0860: 72 65 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73  red....* tests/s
0870: 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a  impleClient.tcl:
0880: 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65  ..* tests/simple
0890: 53 65 72 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e  Server.tcl: poin
08a0: 74 20 74 6f 20 75 70 64 61 74 65 64 20 63 6c 69  t to updated cli
08b0: 65 6e 74 2f 73 65 72 76 65 72 20 6b 65 79 20 66  ent/server key f
08c0: 69 6c 65 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f  iles....* tests/
08d0: 74 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74  tlsIO.test:..* t
08e0: 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73  ests/ciphers.tes
08f0: 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20 6c 6f  t: updated to lo
0900: 61 64 20 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c  ad tls from buil
0910: 64 20 64 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66  d dir....* Makef
0920: 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20  ile.in: removed 
0930: 73 74 72 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d  strncasecmp from
0940: 20 64 65 66 61 75 6c 74 20 6f 62 6a 65 63 74 20   default object 
0950: 73 65 74 2e 20 20 54 68 69 73 0a 09 69 73 20 6f  set.  This..is o
0960: 6e 6c 79 20 6e 65 65 64 65 64 20 6f 6e 20 74 68  nly needed on th
0970: 65 20 4d 61 63 2c 20 61 6e 64 20 54 63 6c 20 73  e Mac, and Tcl s
0980: 74 75 62 73 20 70 72 6f 76 69 64 65 73 20 69 74  tubs provides it
0990: 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a  ....* configure:
09a0: 20 72 65 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f   regen'ed...* co
09b0: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61  nfigure.in: upda
09c0: 74 65 64 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72  ted to 1.5.0 for
09d0: 20 6e 65 78 74 20 72 65 6c 65 61 73 65 2e 0a 09   next release...
09e0: 43 68 61 6e 67 65 64 20 64 65 66 61 75 6c 74 20  Changed default 
09f0: 6f 70 65 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e  openssl location
0a00: 20 74 6f 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73   to /usr/local/s
0a10: 73 6c 20 28 74 68 69 73 20 69 73 20 77 68 65 72  sl (this is wher
0a20: 65 0a 09 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36  e..openssl 0.9.6
0a30: 63 20 69 6e 73 74 61 6c 6c 73 20 62 79 20 64 65  c installs by de
0a40: 66 61 75 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64  fault)...Changed
0a50: 20 74 6f 20 75 73 65 20 70 75 62 6c 69 63 20 54   to use public T
0a60: 63 6c 20 68 65 61 64 65 72 73 20 28 70 72 69 76  cl headers (priv
0a70: 61 74 65 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e  ate not needed).
0a80: 0a 0a 32 30 30 31 2d 30 36 2d 32 31 20 20 4a 65  ..2001-06-21  Je
0a90: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68  ff Hobbs  <jeffh
0aa0: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d  @ActiveState.com
0ab0: 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e 31 20 52 45  >...TLS 1.4.1 RE
0ac0: 4c 45 41 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67  LEASE...* config
0ad0: 75 72 65 3a 20 61 64 64 65 64 20 63 6f 6e 66 69  ure: added confi
0ae0: 67 75 72 65 20 74 6f 20 43 56 53 0a 09 2a 20 63  gure to CVS..* c
0af0: 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76  onfigure.in: mov
0b00: 65 64 20 74 6f 20 70 61 74 63 68 6c 65 76 65 6c  ed to patchlevel
0b10: 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66   1.4.1...* Makef
0b20: 69 6c 65 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65  ile.in: correcte
0b30: 64 20 27 64 69 73 74 27 20 74 61 72 67 65 74 0a  d 'dist' target.
0b40: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f  ..* tests/certs/
0b50: 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73  file.srl:..* tes
0b60: 74 73 2f 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a  ts/certs/ca.pem:
0b70: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f  ..* tests/certs/
0b80: 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74  client.key:..* t
0b90: 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e  ests/certs/clien
0ba0: 74 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f  t.pem:..* tests/
0bb0: 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71  certs/client.req
0bc0: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73  :..* tests/certs
0bd0: 2f 70 72 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a  /privkey.pem:..*
0be0: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72   tests/certs/ser
0bf0: 76 65 72 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74  ver.key:..* test
0c00: 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 70  s/certs/server.p
0c10: 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72  em:..* tests/cer
0c20: 74 73 2f 73 65 72 76 65 72 2e 72 65 71 3a 0a 09  ts/server.req:..
0c30: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61  * tests/certs/ca
0c40: 63 65 72 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63  cert.pem: replac
0c50: 65 64 20 62 79 20 6e 65 77 20 63 61 2e 70 65 6d  ed by new ca.pem
0c60: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f  ..* tests/certs/
0c70: 73 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63  skey.pem: replac
0c80: 65 64 20 62 79 20 6e 65 77 20 73 65 72 76 65 72  ed by new server
0c90: 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65  .key..* tests/ce
0ca0: 72 74 73 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65  rts/ckey.pem: re
0cb0: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 6c  placed by new cl
0cc0: 69 65 6e 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74  ient.key..* test
0cd0: 73 2f 63 65 72 74 73 2f 52 45 41 44 4d 45 2e 74  s/certs/README.t
0ce0: 78 74 3a 20 6e 65 77 20 73 65 74 20 6f 66 20 74  xt: new set of t
0cf0: 65 73 74 20 63 65 72 74 69 66 69 63 61 74 65 73  est certificates
0d00: 20 77 69 74 68 20 73 6f 6d 65 0a 09 52 45 41 44   with some..READ
0d10: 4d 45 20 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72  ME info on their
0d20: 20 67 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a   generation....*
0d30: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74   tests/ciphers.t
0d40: 65 73 74 3a 20 75 70 64 61 74 65 64 20 63 69 70  est: updated cip
0d50: 68 65 72 73 20 65 78 70 65 63 74 65 64 20 77 69  hers expected wi
0d60: 74 68 20 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e  th default..open
0d70: 73 73 6c 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74  ssl build....* t
0d80: 65 73 74 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a  ests/tclIO.test:
0d90: 20 75 70 64 61 74 65 64 20 74 6f 20 75 73 65 20   updated to use 
0da0: 6e 65 77 20 6e 61 6d 65 73 20 66 6f 72 20 63 65  new names for ce
0db0: 72 74 73 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d  rts/keys...2001-
0dc0: 30 33 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62  03-14  Jeff Hobb
0dd0: 73 20 20 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74  s  <jeffh@gimlet
0de0: 2e 61 63 74 69 76 65 73 74 61 74 65 2e 63 6f 6d  .activestate.com
0df0: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73  >...* tls.c (Tls
0e00: 5f 49 6e 69 74 29 3a 20 61 64 64 20 64 6f 2f 77  _Init): add do/w
0e10: 68 69 6c 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20  hile for random 
0e20: 6e 75 6d 62 65 72 20 69 6e 69 74 69 61 6c 69 7a  number initializ
0e30: 61 74 69 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61  ation..to work a
0e40: 72 6f 75 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20  round some OSes 
0e50: 71 75 69 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e  quirks.  (Ralph.
0e60: 42 69 6c 6c 65 73 40 74 65 6c 74 65 63 68 2e 63  Billes@teltech.c
0e70: 6f 6d 2e 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d  om.au)..2000-09-
0e80: 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  07  Jeff Hobbs  
0e90: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
0ea0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e  .com>...* tlsIO.
0eb0: 63 20 28 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79  c (Tls_ChannelTy
0ec0: 70 65 29 3a 20 73 65 74 20 74 79 70 65 4e 61 6d  pe): set typeNam
0ed0: 65 20 66 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e  e field of chann
0ee0: 65 6c 20 74 79 70 65 20 74 6f 0a 09 22 74 6c 73  el type to.."tls
0ef0: 22 20 28 74 68 69 73 20 67 6f 74 20 6c 6f 73 74  " (this got lost
0f00: 20 69 6e 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61   in move to dyna
0f10: 6d 69 63 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70  mic version comp
0f20: 61 74 61 62 69 6c 69 74 79 0a 09 63 68 65 63 6b  atability..check
0f30: 69 6e 67 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32  ing)...2000-08-2
0f40: 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  3  Jeff Hobbs  <
0f50: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
0f60: 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52  com>...TLS 1.4 R
0f70: 45 4c 45 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65  ELEASED...* Make
0f80: 66 69 6c 65 2e 69 6e 20 28 64 69 73 74 29 3a 20  file.in (dist): 
0f90: 63 72 65 61 74 65 20 64 69 73 74 20 74 61 72 67  create dist targ
0fa0: 65 74 20 66 6f 72 20 61 72 63 68 69 76 65 20 64  et for archive d
0fb0: 69 73 74 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a  istributions...*
0fc0: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73   tests/tlsIO.tes
0fd0: 74 20 28 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61  t (tlsIO-8.1): a
0fe0: 64 64 65 64 20 61 20 64 65 6c 61 79 20 6f 6e 20  dded a delay on 
0ff0: 74 68 65 20 61 63 63 65 70 74 20 63 6c 6f 73 65  the accept close
1000: 0a 09 74 6f 20 6d 61 6b 65 20 74 68 65 20 74 65  ..to make the te
1010: 73 74 20 77 6f 72 6b 20 77 69 74 68 20 4f 70 65  st work with Ope
1020: 6e 53 53 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20  nSSL on Windows 
1030: 28 64 6f 65 73 6e 27 74 20 61 66 66 65 63 74 0a  (doesn't affect.
1040: 09 6f 74 68 65 72 20 62 75 69 6c 64 73 29 2e 0a  .other builds)..
1050: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64  ..* tls.htm: upd
1060: 61 74 65 64 20 77 69 74 68 20 6e 6f 74 65 73 20  ated with notes 
1070: 66 6f 72 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30  for 1.4...2000-0
1080: 38 2d 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73  8-21  Jeff Hobbs
1090: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69    <hobbs@scripti
10a0: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74  cs.com>...* test
10b0: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65  s/tlsIO.test: re
10c0: 71 75 69 72 65 20 61 74 20 6c 65 61 73 74 20 74  quire at least t
10d0: 6c 73 31 2e 34 20 69 6e 20 74 65 73 74 20 73 75  ls1.4 in test su
10e0: 69 74 65 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38  ite...2000-08-18
10f0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
1100: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
1110: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54  om>...* tls.c (T
1120: 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 65 64 20  ls_Init): added 
1130: 63 61 6c 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65  call to RAND_see
1140: 64 20 74 6f 20 73 65 65 64 20 74 68 65 20 53 53  d to seed the SS
1150: 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72  L random..number
1160: 20 67 65 6e 65 72 61 74 6f 72 2e 20 20 57 69 74   generator.  Wit
1170: 68 6f 75 74 20 74 68 69 73 2c 20 4f 70 65 6e 53  hout this, OpenS
1180: 53 4c 20 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c  SL 0.9.5 chokes,
1190: 20 61 6e 64 20 69 6e 20 61 6e 79 0a 09 63 61 73   and in any..cas
11a0: 65 20 69 74 20 69 73 20 61 20 62 69 67 20 73 65  e it is a big se
11b0: 63 75 72 69 74 79 20 68 6f 6c 65 20 74 6f 20 64  curity hole to d
11c0: 6f 20 77 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09  o without it....
11d0: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28  * configure.in (
11e0: 4f 50 45 4e 53 53 4c 29 3a 20 61 64 64 65 64 20  OPENSSL): added 
11f0: 4e 4f 5f 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52  NO_IDEA and NO_R
1200: 43 35 20 64 65 66 69 6e 65 73 20 62 79 0a 09 64  C5 defines by..d
1210: 65 66 61 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70  efault when comp
1220: 69 6c 69 6e 67 20 77 69 74 68 20 4f 70 65 6e 53  iling with OpenS
1230: 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68  SL....* tlsInt.h
1240: 3a 20 61 64 64 65 64 20 65 72 72 2e 68 20 69 6e  : added err.h in
1250: 63 6c 75 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f  clude...* tlsBIO
1260: 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20  .c:..* tlsIO.c: 
1270: 63 6f 72 72 65 63 74 65 64 20 70 65 64 61 6e 74  corrected pedant
1280: 69 63 20 63 61 73 74 20 65 72 72 6f 72 73 2e 0a  ic cast errors..
1290: 0a 32 30 30 30 2d 30 38 2d 31 36 20 20 4a 65 66  .2000-08-16  Jef
12a0: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40  f Hobbs  <hobbs@
12b0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
12c0: 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73  .* tests/ciphers
12d0: 2e 74 65 73 74 3a 20 69 6d 70 72 6f 76 65 64 20  .test: improved 
12e0: 61 62 69 6c 69 74 79 20 74 6f 20 63 68 61 6e 67  ability to chang
12f0: 65 20 63 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65  e constraint..se
1300: 74 74 69 6e 67 20 66 6f 72 20 77 68 65 74 68 65  tting for whethe
1310: 72 20 75 73 65 72 20 63 6f 6d 70 69 6c 65 64 20  r user compiled 
1320: 61 67 61 69 6e 73 74 20 52 53 41 20 6f 72 20 4f  against RSA or O
1330: 70 65 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a  penSSL libs....*
1340: 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74   tls.c (Tls_Init
1350: 29 3a 20 63 6f 72 72 65 63 74 65 64 20 69 6e 74  ): corrected int
1360: 65 72 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 76  erpretation of v
1370: 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28  ersion number..(
1380: 70 61 74 63 68 6c 65 76 65 6c 20 61 6e 64 20 72  patchlevel and r
1390: 65 6c 65 61 73 65 2f 73 65 72 69 61 6c 20 77 65  elease/serial we
13a0: 72 65 20 73 77 61 70 70 65 64 29 2e 0a 0a 32 30  re swapped)...20
13b0: 30 30 2d 30 38 2d 31 35 20 20 4a 65 66 66 20 48  00-08-15  Jeff H
13c0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72  obbs  <hobbs@scr
13d0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
13e0: 52 45 41 44 4d 45 2e 74 78 74 3a 20 61 64 64 65  README.txt: adde
13f0: 64 20 6e 6f 74 65 73 20 61 62 6f 75 74 20 6e 65  d notes about ne
1400: 65 64 20 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b  ed to use 8.2.0+
1410: 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a  ....* tlsInt.h:.
1420: 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73  .* tls.c:..* tls
1430: 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20  IO.c: corrected 
1440: 73 74 72 75 63 74 75 72 65 20 69 6e 69 74 69 61  structure initia
1450: 6c 69 7a 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b  lization to work
1460: 20 77 68 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67   when..compiling
1470: 20 77 69 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20   with 8.2.  Now 
1480: 63 6f 6d 70 69 6c 65 73 20 77 69 74 68 20 38 2e  compiles with 8.
1490: 32 2b 20 61 6e 64 20 74 65 73 74 65 64 20 74 6f  2+ and tested to
14a0: 20 77 6f 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b   work..with 8.2+
14b0: 20 61 6e 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79   and dynamically
14c0: 20 61 64 6a 75 73 74 20 74 6f 20 74 68 65 20 76   adjust to the v
14d0: 65 72 73 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74  ersion of Tcl it
14e0: 20 77 61 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74   was..loaded int
14f0: 6f 2e 20 20 54 4c 53 20 77 69 6c 6c 20 66 61 69  o.  TLS will fai
1500: 6c 20 74 68 65 20 74 65 73 74 20 73 75 69 74 65  l the test suite
1510: 20 77 69 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e   with Tcl 8.2-8.
1520: 33 2e 31 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61  3.1....* tests/a
1530: 6c 6c 2e 74 63 6c 3a 20 61 64 64 65 64 20 63 61  ll.tcl: added ca
1540: 74 63 68 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c  tch around ::tcl
1550: 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50  test::normalizeP
1560: 61 74 68 0a 09 62 65 63 61 75 73 65 20 69 74 20  ath..because it 
1570: 64 6f 65 73 6e 27 74 20 65 78 69 73 74 20 69 6e  doesn't exist in
1580: 20 70 72 65 2d 38 2e 33 20 74 63 6c 74 65 73 74   pre-8.3 tcltest
1590: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70  ....* tests/simp
15a0: 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09  leClient.tcl: ..
15b0: 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65  * tests/simpleSe
15c0: 72 76 65 72 2e 74 63 6c 3a 20 61 64 64 65 64 20  rver.tcl: added 
15d0: 73 69 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65  simple client/se
15e0: 72 76 65 72 20 74 65 73 74 20 73 63 72 69 70 74  rver test script
15f0: 73 0a 09 74 68 61 74 20 75 73 65 20 74 65 73 74  s..that use test
1600: 20 63 65 72 74 73 20 61 6e 64 20 63 61 6e 20 64   certs and can d
1610: 6f 20 73 69 6d 70 6c 65 20 73 74 72 65 73 73 20  o simple stress 
1620: 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d  tests...2000-08-
1630: 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  14  Jeff Hobbs  
1640: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
1650: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74  .com>...* tlsInt
1660: 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a  .h:..* tlsIO.c:.
1670: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20  .* tlsBIO.c:..* 
1680: 74 6c 73 2e 63 3a 20 63 68 61 6e 67 65 64 20 61  tls.c: changed a
1690: 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f  round to only wo
16a0: 72 6b 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 30  rking with 8.2.0
16b0: 2b 20 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65  + (8.3.2+..prefe
16c0: 72 72 65 64 29 2c 20 77 69 74 68 20 72 75 6e 74  rred), with runt
16d0: 69 6d 65 20 63 68 65 63 6b 73 20 66 6f 72 20 70  ime checks for p
16e0: 72 65 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d  re- and post-io-
16f0: 72 65 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73  rewrite....* tls
1700: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63  .c (Tls_Init): c
1710: 68 61 6e 67 65 64 20 69 74 20 74 6f 20 72 65 71  hanged it to req
1720: 75 69 72 65 20 38 2e 33 2e 32 20 77 68 65 6e 20  uire 8.3.2 when 
1730: 54 63 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09 77  Tcl_InitStubs..w
1740: 61 73 20 63 61 6c 6c 65 64 20 62 65 63 61 75 73  as called becaus
1750: 65 20 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 20  e we don't want 
1760: 70 65 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c 53  people using TLS
1770: 20 77 69 74 68 20 74 68 65 0a 09 6f 72 69 67 69   with the..origi
1780: 6e 61 6c 20 73 74 61 63 6b 65 64 20 63 68 61 6e  nal stacked chan
1790: 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69  nel implementati
17a0: 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20  on...2000-07-26 
17b0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
17c0: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
17d0: 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c  m>...* merged al
17e0: 6c 20 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 74  l changes from t
17f0: 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74  ls-1-3-io-rewrit
1800: 65 20 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e  e back into main
1810: 20 62 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74   branch...* test
1820: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70  s/tlsIO.test: up
1830: 64 61 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20  dated comments, 
1840: 66 69 78 65 64 20 61 20 70 63 43 72 61 73 68 20  fixed a pcCrash 
1850: 63 61 73 65 20 74 68 61 74 0a 09 77 61 73 20 64  case that..was d
1860: 75 65 20 74 6f 20 64 65 62 75 67 20 61 73 73 65  ue to debug asse
1870: 72 74 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73  rtion in Windows
1880: 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20   SSL....* tls.c 
1890: 28 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20  (ImportObjCmd): 
18a0: 72 65 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73 73  removed unnecess
18b0: 61 72 79 20 75 73 65 20 6f 66 20 27 62 69 6f 27  ary use of 'bio'
18c0: 20 61 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74   arg...(Tls_Init
18d0: 29 3a 20 63 68 65 63 6b 20 72 65 74 75 72 6e 20  ): check return 
18e0: 76 61 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62  value of SSL_lib
18f0: 72 61 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f  rary_init.  Also
1900: 20 6c 6f 74 73 20 6f 66 0a 09 77 68 69 74 65 73   lots of..whites
1910: 70 61 63 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f  pace cleanup (mo
1920: 72 65 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20  re like Tcl Eng 
1930: 73 74 79 6c 65 20 67 75 69 64 65 29 2c 20 62 75  style guide), bu
1940: 74 20 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20  t not all..code 
1950: 77 61 73 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a  was cleaned up..
1960: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69  ..* tlsBIO.c: mi
1970: 6e 6f 72 20 77 68 69 74 65 73 70 61 63 65 20 63  nor whitespace c
1980: 6c 65 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f  leanup...* tlsIO
1990: 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73  .c: minor whites
19a0: 70 61 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28  pace cleanup...(
19b0: 54 6c 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c  TlsInputProc, Tl
19c0: 73 4f 75 74 70 75 74 50 72 6f 63 29 3a 20 41 64  sOutputProc): Ad
19d0: 64 65 64 20 45 52 52 5f 63 6c 65 61 72 5f 65 72  ded ERR_clear_er
19e0: 72 6f 72 20 62 65 66 6f 72 65 20 63 61 6c 6c 73  ror before calls
19f0: 0a 09 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72  ..to BIO_read or
1a00: 20 42 49 4f 5f 77 72 69 74 65 2c 20 62 65 63 61   BIO_write, beca
1a10: 75 73 65 20 77 65 20 63 6f 75 6c 64 20 6f 74 68  use we could oth
1a20: 65 72 77 69 73 65 20 65 6e 64 20 75 70 0a 09 70  erwise end up..p
1a30: 75 6c 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72 20  ulling an error 
1a40: 6f 66 66 20 74 68 65 20 73 74 61 63 6b 20 74 68  off the stack th
1a50: 61 74 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67  at didn't belong
1a60: 20 74 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63   to us.  Also..c
1a70: 6c 65 61 6e 75 70 20 75 70 20 65 78 63 65 73 73  leanup up excess
1a80: 69 76 65 20 75 73 65 20 6f 66 20 67 6f 74 6f 73  ive use of gotos
1a90: 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 30 20 20 4a  ...2000-07-20  J
1aa0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
1ab0: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  s@scriptics.com>
1ac0: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f  ...* tests/tlsIO
1ad0: 2e 74 65 73 74 3a 20 63 6f 72 72 65 63 74 65 64  .test: corrected
1ae0: 20 76 61 72 69 6f 75 73 20 74 65 73 74 73 20 74   various tests t
1af0: 6f 20 62 65 20 63 6f 72 72 65 63 74 20 66 6f 72  o be correct for
1b00: 20 54 4c 53 0a 09 73 74 61 63 6b 65 64 20 63 68   TLS..stacked ch
1b10: 61 6e 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f 73  annels (as oppos
1b20: 65 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61  ed to the standa
1b30: 72 64 20 73 6f 63 6b 65 74 73 20 74 68 65 20 74  rd sockets the t
1b40: 65 73 74 0a 09 73 75 69 74 65 20 77 61 73 20 61  est..suite was a
1b50: 64 6f 70 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b  dopted from).  K
1b60: 65 79 20 64 69 66 66 65 72 65 6e 63 65 73 20 61  ey differences a
1b70: 72 65 20 74 68 61 74 20 54 4c 53 20 63 61 6e 6e  re that TLS cann
1b80: 6f 74 0a 09 6f 70 65 72 61 74 65 20 69 6e 20 6f  ot..operate in o
1b90: 6e 65 20 70 72 6f 63 65 73 73 20 77 69 74 68 6f  ne process witho
1ba0: 75 74 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20  ut all channels 
1bb0: 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69  being non-blocki
1bc0: 6e 67 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e 64  ng, or..the hand
1bd0: 73 68 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b  shake will block
1be0: 2c 20 61 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e  , and handshakin
1bf0: 67 20 6d 75 73 74 20 62 65 20 66 6f 72 63 65 64  g must be forced
1c00: 20 69 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e   in some..cases.
1c10: 20 20 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b    Also, handshak
1c20: 65 73 20 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f  es don't seem to
1c30: 20 63 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73   complete unless
1c40: 20 74 68 65 20 63 6c 69 65 6e 74 0a 09 68 61 73   the client..has
1c50: 20 70 6c 61 63 65 64 20 61 74 20 6c 65 61 73 74   placed at least
1c60: 20 6f 6e 65 20 62 79 74 65 20 66 6f 72 20 74 68   one byte for th
1c70: 65 20 73 65 72 76 65 72 20 74 6f 20 72 65 61 64  e server to read
1c80: 20 69 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e   in the channel.
1c90: 0a 0a 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74  ...* tests/remot
1ca0: 65 2e 74 63 6c 3a 20 63 6f 72 72 65 63 74 65 64  e.tcl: corrected
1cb0: 20 74 68 65 20 66 69 6e 64 69 6e 67 20 6f 66 20   the finding of 
1cc0: 74 65 73 74 73 20 63 65 72 74 69 66 69 63 61 74  tests certificat
1cd0: 65 73 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28  es...* tlsIO.c (
1ce0: 54 6c 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72  TlsCloseProc): r
1cf0: 65 6d 6f 76 65 64 20 64 65 6c 65 74 69 6e 67 20  emoved deleting 
1d00: 6f 66 20 74 69 6d 65 72 20 68 61 6e 64 6c 65 72  of timer handler
1d10: 20 61 73 0a 09 74 68 61 74 20 69 73 20 68 61 6e   as..that is han
1d20: 64 6c 65 64 20 62 79 20 54 6c 73 5f 43 6c 65 61  dled by Tls_Clea
1d30: 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28  n....* tls.tcl (
1d40: 74 6c 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63  tls::_accept): c
1d50: 6f 72 72 65 63 74 65 64 20 74 68 65 20 69 6e 74  orrected the int
1d60: 65 72 6e 61 6c 20 5f 61 63 63 65 70 74 20 74 6f  ernal _accept to
1d70: 0a 09 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61  ..trickle callba
1d80: 63 6b 20 65 72 72 6f 72 73 20 74 6f 20 74 68 65  ck errors to the
1d90: 20 75 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66   user....* Makef
1da0: 69 6c 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65  ile.in: made the
1db0: 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65   install-binarie
1dc0: 73 20 74 61 72 67 65 74 20 72 65 67 65 6e 65 72  s target regener
1dd0: 61 74 65 20 74 68 65 0a 09 70 6b 67 49 6e 64 65  ate the..pkgInde
1de0: 78 2e 74 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e  x.tcl correctly.
1df0: 20 20 54 68 65 20 74 65 73 74 20 74 61 72 67 65    The test targe
1e00: 74 20 70 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c  t probably shoul
1e10: 64 6e 27 74 20 73 63 72 65 77 0a 09 69 74 20 75  dn't screw..it u
1e20: 70 2c 20 62 75 74 20 74 68 69 73 20 69 73 20 74  p, but this is t
1e30: 6f 20 62 65 20 6f 6e 20 74 68 65 20 73 61 66 65  o be on the safe
1e40: 20 73 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d   side...2000-07-
1e50: 31 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  17  Jeff Hobbs  
1e60: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
1e70: 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64  .com>...* pkgInd
1e80: 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f  ex.tcl.in:..* co
1e90: 6e 66 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61  nfigure.in: upda
1ea0: 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31  ted version to 1
1eb0: 2e 34 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20 20  .4..2000-07-13  
1ec0: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
1ed0: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
1ee0: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49  >...* tests/tlsI
1ef0: 4f 2e 74 65 73 74 3a 20 65 6e 61 62 6c 65 64 20  O.test: enabled 
1f00: 74 65 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31  tests 2.10, 7.[1
1f10: 32 34 35 5d 20 28 74 68 65 72 65 20 69 73 20 6e  245] (there is n
1f20: 6f 20 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77  o 3),..which now
1f30: 20 70 61 73 73 2e 20 20 41 64 64 65 64 20 73 6f   pass.  Added so
1f40: 6d 65 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f  me comments to o
1f50: 74 68 65 72 20 66 61 69 6c 69 6e 67 20 74 65 73  ther failing tes
1f60: 74 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20  ts...2000-07-11 
1f70: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
1f80: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
1f90: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20  m>...* tlsIO.c: 
1fa0: 63 68 61 6e 67 65 64 20 61 6c 6c 20 74 68 65 20  changed all the 
1fb0: 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f  channel procs to
1fc0: 20 73 74 61 72 74 20 77 69 74 68 20 54 6c 73 2a   start with Tls*
1fd0: 20 66 6f 72 0a 09 62 65 74 74 65 72 20 70 61 72   for..better par
1fe0: 69 74 79 20 77 68 65 6e 20 63 6f 6d 70 61 72 69  ity when compari
1ff0: 6e 67 20 77 69 74 68 20 54 72 61 6e 73 66 6f 72  ng with Transfor
2000: 6d 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e  m channel procs.
2010: 0a 09 52 65 77 72 6f 74 65 20 54 6c 73 57 61 74  ..Rewrote TlsWat
2020: 63 68 50 72 6f 63 2c 20 61 64 64 65 64 20 54 6c  chProc, added Tl
2030: 73 4e 6f 74 69 66 79 50 72 6f 63 20 61 63 63 6f  sNotifyProc acco
2040: 72 64 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 77  rding to the new
2050: 0a 09 63 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e  ..channel design
2060: 2c 20 77 68 69 63 68 20 61 6c 73 6f 20 6c 65 61  , which also lea
2070: 76 65 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61  ves TlsChannelHa
2080: 6e 64 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09  ndler unused....
2090: 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43  * tlsBIO.c (BioC
20a0: 74 72 6c 29 3a 20 63 68 61 6e 67 65 64 20 42 49  trl): changed BI
20b0: 4f 5f 43 54 52 4c 5f 46 4c 55 53 48 20 63 61 73  O_CTRL_FLUSH cas
20c0: 65 20 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72  e to use..Tcl_Wr
20d0: 69 74 65 52 61 77 20 69 6e 73 74 65 61 64 20 6f  iteRaw instead o
20e0: 66 20 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20  f Tcl_Flush (to 
20f0: 6f 70 65 72 61 74 65 20 6f 6e 20 63 6f 72 72 65  operate on corre
2100: 63 74 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74  ct channel..in t
2110: 68 65 20 73 74 61 63 6b 20 69 6e 73 74 65 61 64  he stack instead
2120: 20 6f 66 20 73 74 61 72 74 69 6e 67 20 61 74 20   of starting at 
2130: 74 68 65 20 74 6f 70 20 61 67 61 69 6e 29 2e 20  the top again). 
2140: 20 57 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69 73   Would..otherwis
2150: 65 20 63 61 75 73 65 20 61 20 72 65 63 75 72 73  e cause a recurs
2160: 69 76 65 20 73 74 61 63 6b 20 62 6f 6d 62 20 77  ive stack bomb w
2170: 68 65 6e 20 69 6d 70 6c 69 63 69 74 20 68 61 6e  hen implicit han
2180: 64 73 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65  dshaking..took e
2190: 66 66 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73  ffect....* tests
21a0: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d  /tlsIO.test: rem
21b0: 6f 76 65 64 20 63 68 61 6e 67 65 73 20 6d 61 64  oved changes mad
21c0: 65 20 74 6f 20 74 65 73 74 20 73 75 69 74 65 20  e to test suite 
21d0: 28 61 6c 6c 20 74 65 73 74 73 0a 09 74 68 61 74  (all tests..that
21e0: 20 72 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20   ran before now 
21f0: 70 61 73 73 20 63 6f 72 72 65 63 74 6c 79 29 2c  pass correctly),
2200: 20 61 6e 64 20 63 68 61 6e 67 65 64 20 73 6f 6d   and changed som
2210: 65 20 61 63 63 65 70 74 20 70 72 6f 63 0a 09 61  e accept proc..a
2220: 72 67 73 20 74 6f 20 72 65 66 6c 65 63 74 20 74  rgs to reflect t
2230: 68 61 74 20 61 20 73 6f 63 6b 20 69 73 20 61 6e  hat a sock is an
2240: 20 61 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65   arg, not a file
2250: 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 30 20 20 4a  ...2000-07-10  J
2260: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
2270: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  s@scriptics.com>
2280: 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42  ...* tlsBIO.c (B
2290: 69 6f 57 72 69 74 65 2c 20 42 69 6f 52 65 61 64  ioWrite, BioRead
22a0: 29 3a 20 63 68 61 6e 67 65 64 20 54 63 6c 5f 52  ): changed Tcl_R
22b0: 65 61 64 2f 57 72 69 74 65 20 74 6f 0a 09 54 63  ead/Write to..Tc
22c0: 6c 5f 52 65 61 64 52 61 77 2f 54 63 6c 57 72 69  l_ReadRaw/TclWri
22d0: 74 65 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63  teRaw....* tls.c
22e0: 3a 20 61 64 64 65 64 20 75 73 65 20 6f 66 20 54  : added use of T
22f0: 63 6c 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c  cl_GetTopChannel
2300: 20 61 66 74 65 72 20 54 63 6c 5f 47 65 74 43 68   after Tcl_GetCh
2310: 61 6e 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72  annel and..got r
2320: 65 74 75 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d  eturn value from
2330: 20 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65   Tcl_StackChanne
2340: 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73  l....* tests/tls
2350: 49 4f 2e 74 65 73 74 3a 20 61 64 64 65 64 20 73  IO.test: added s
2360: 6f 6d 65 20 68 61 6e 64 73 68 61 6b 69 6e 67 20  ome handshaking 
2370: 74 68 61 74 20 73 68 6f 75 6c 64 6e 27 74 20 62  that shouldn't b
2380: 65 0a 09 6e 65 63 65 73 73 61 72 79 2c 20 62 75  e..necessary, bu
2390: 74 20 77 65 20 63 72 61 73 68 20 6f 74 68 65 72  t we crash other
23a0: 77 69 73 65 20 28 6e 65 65 64 73 20 6d 6f 72 65  wise (needs more
23b0: 20 74 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74   testing)....* t
23c0: 6c 73 49 4f 2e 63 3a 20 61 64 64 65 64 20 73 75  lsIO.c: added su
23d0: 70 70 6f 72 74 20 66 6f 72 20 22 63 6f 72 72 65  pport for "corre
23e0: 63 74 65 64 22 20 73 74 61 63 6b 65 64 20 63 68  cted" stacked ch
23f0: 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68  annels.  All..th
2400: 65 20 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73  e above channels
2410: 20 61 72 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e   are in TCL_CHAN
2420: 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69  NEL_VERSION_2 #i
2430: 66 64 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d  fdefs...2000-06-
2440: 30 35 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f  05  Scott Stanto
2450: 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62  n  <stanton@ajub
2460: 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a  asolutions.com>.
2470: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a  ..* Makefile.in:
2480: 20 46 69 78 65 64 20 62 72 6f 6b 65 6e 20 74 65   Fixed broken te
2490: 73 74 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74  st target....* t
24a0: 6c 73 49 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73  lsInt.h: ..* tls
24b0: 2e 63 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 64  .c: Cleaned up d
24c0: 65 63 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 54  eclarations of T
24d0: 6c 73 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69  ls_Clean to avoi
24e0: 64 20 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e  d errors on..Win
24f0: 64 6f 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30  dows (lint)...20
2500: 30 30 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 20  00-06-05  Brent 
2510: 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a 75  Welch <welch@aju
2520: 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e  basolutions.com>
2530: 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49  ...* tls.c, tlsI
2540: 4f 2e 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f  O.c:  Split Tls_
2550: 46 72 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c  Free into Tls_Cl
2560: 65 61 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 0a  ean, which does.
2570: 09 74 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 70  .the SSL cleanup
2580: 2c 20 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 72  , and the Tcl_Fr
2590: 65 65 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 20  ee call.  It is 
25a0: 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 75  important to shu
25b0: 74 64 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 73  tdown..the SSL s
25c0: 74 61 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75  tate "synchronou
25d0: 73 6c 79 22 20 64 75 72 69 6e 67 20 61 20 73 74  sly" during a st
25e0: 61 63 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30  acked flush...20
25f0: 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20  00-06-01  Scott 
2600: 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f  Stanton  <stanto
2610: 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73  n@ajubasolutions
2620: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e  .com>...* tlsIO.
2630: 63 3a 20 52 65 73 74 6f 72 65 64 20 63 61 6c 6c  c: Restored call
2640: 20 74 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68   to Tcl_NotifyCh
2650: 61 6e 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e  annel from Chann
2660: 65 6c 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e  elHandler..to en
2670: 73 75 72 65 20 74 68 61 74 20 65 76 65 6e 74 73  sure that events
2680: 20 70 72 6f 70 61 67 61 74 65 20 66 72 6f 6d 20   propagate from 
2690: 74 68 65 20 6c 6f 77 65 72 20 64 72 69 76 65 72  the lower driver
26a0: 2e 20 20 54 68 69 73 20 6d 61 79 0a 09 72 65 73  .  This may..res
26b0: 75 6c 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69  ult in an infini
26c0: 74 65 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20  te loop in some 
26d0: 63 61 73 65 73 2c 20 73 6f 20 74 68 69 73 20 69  cases, so this i
26e0: 73 20 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66  s not a total..f
26f0: 69 78 2e 20 20 54 68 69 73 20 6d 61 79 20 62 65  ix.  This may be
2700: 20 73 75 66 66 69 63 69 65 6e 74 20 66 6f 72 20   sufficient for 
2710: 6e 6f 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42  now, however. [B
2720: 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d  ug: 5623]..2000-
2730: 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61  06-01  Scott Sta
2740: 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73  nton  <stanton@s
2750: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
2760: 2a 20 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f  * tlsIO.c: Resto
2770: 72 65 20 74 68 65 20 70 72 65 76 69 6f 75 73 20  re the previous 
2780: 76 65 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 20  version.  Fixed 
2790: 74 68 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f  the CloseProc so
27a0: 0a 09 69 74 20 75 6e 72 65 67 69 73 74 65 72 73  ..it unregisters
27b0: 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e   the channel han
27c0: 64 6c 65 72 20 6f 6e 20 74 68 65 20 73 75 70 65  dler on the supe
27d0: 72 63 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09  rceded channel..
27e0: 69 6e 73 74 65 61 64 20 6f 66 20 74 68 65 20 75  instead of the u
27f0: 70 70 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c  pper channel. Al
2800: 73 6f 20 72 65 6d 6f 76 65 64 20 74 68 65 20 63  so removed the c
2810: 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69  all to..Tcl_Noti
2820: 66 79 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65  fyChannel in the
2830: 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20   ChannelHandler 
2840: 62 65 63 61 75 73 65 20 74 68 69 73 20 77 69 6c  because this wil
2850: 6c 20 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20  l result..in an 
2860: 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66  infinite loop if
2870: 20 64 61 74 61 20 69 73 20 65 76 65 72 20 62 75   data is ever bu
2880: 66 66 65 72 65 64 20 69 6e 20 74 68 65 20 42 49  ffered in the BI
2890: 4f 0a 09 73 74 72 75 63 74 75 72 65 2e 20 5b 42  O..structure. [B
28a0: 75 67 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d  ug: 5623]..2000-
28b0: 30 35 2d 33 31 20 20 42 72 65 6e 74 20 57 65 6c  05-31  Brent Wel
28c0: 63 68 20 3c 77 65 6c 63 68 40 73 63 72 69 70 74  ch <welch@script
28d0: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ics.com>...* tls
28e0: 2e 63 3a 20 43 68 61 6e 67 65 20 74 68 65 20 43  .c: Change the C
28f0: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f  hannelHandler to
2900: 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20 6f   be registered o
2910: 6e 20 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e  n the main..chan
2920: 6e 65 6c 20 61 73 20 6f 70 70 73 65 64 20 74 6f  nel as oppsed to
2930: 20 74 68 65 20 22 70 61 72 65 6e 74 22 2c 20 6f   the "parent", o
2940: 72 20 73 75 70 65 72 63 65 65 64 65 64 2c 20 63  r superceeded, c
2950: 68 61 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69  hannel.  This..i
2960: 73 20 62 65 63 61 75 73 65 20 74 68 65 20 73 6f  s because the so
2970: 63 6b 65 74 20 64 72 69 76 65 72 20 6e 6f 74 69  cket driver noti
2980: 66 69 65 73 20 74 68 65 20 6d 61 69 6e 20 63 68  fies the main ch
2990: 61 6e 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 65  annel, and there
29a0: 0a 09 61 72 65 20 74 69 6d 65 73 20 77 69 74 68  ..are times with
29b0: 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65   the main channe
29c0: 6c 20 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 62  l gets closed, b
29d0: 75 74 20 74 68 65 20 73 75 70 65 72 63 65 64 65  ut the supercede
29e0: 64 0a 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65  d..one is not ye
29f0: 74 20 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68  t closed.  If th
2a00: 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65  e channel handle
2a10: 72 20 67 65 74 73 20 74 72 69 67 67 65 72 65 64  r gets triggered
2a20: 20 69 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f   in..this half-o
2a30: 70 65 6e 20 73 74 61 74 65 20 69 74 20 69 73 20  pen state it is 
2a40: 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20  associated with 
2a50: 74 68 65 20 73 75 70 65 72 63 65 65 64 65 64 0a  the superceeded.
2a60: 09 63 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75  .channedl, but u
2a70: 73 65 73 20 69 74 73 20 70 72 69 76 61 74 65 20  ses its private 
2a80: 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6d  pointer to the m
2a90: 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69  ain channel, whi
2aa0: 63 68 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 65  ch..is mostly de
2ab0: 73 74 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e  stroyed.  Elimin
2ac0: 61 74 65 64 20 74 68 65 20 72 65 64 75 6e 64 61  ated the redunda
2ad0: 6e 74 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f  nt call to..Tcl_
2ae0: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72  NotifyChannel fr
2af0: 6f 6d 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2e  om TlsWatchProc.
2b00: 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a            [Bug: 5623].