Hex Artifact Content

Artifact 3dd0cfac4e8a3dba4a2c0f6989aa71e695184d10:


0000: 32 30 30 30 2d 30 38 2d 32 33 20 20 4a 65 66 66  2000-08-23  Jeff
0010: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73   Hobbs  <hobbs@s
0020: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
0030: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64  * Makefile.in (d
0040: 69 73 74 29 3a 20 63 72 65 61 74 65 20 64 69 73  ist): create dis
0050: 74 20 74 61 72 67 65 74 20 66 6f 72 20 61 72 63  t target for arc
0060: 68 69 76 65 20 64 69 73 74 72 69 62 75 74 69 6f  hive distributio
0070: 6e 73 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73  ns...* tests/tls
0080: 49 4f 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 38  IO.test (tlsIO-8
0090: 2e 31 29 3a 20 61 64 64 65 64 20 61 20 64 65 6c  .1): added a del
00a0: 61 79 20 6f 6e 20 74 68 65 20 61 63 63 65 70 74  ay on the accept
00b0: 20 63 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20   close..to make 
00c0: 74 68 65 20 74 65 73 74 20 77 6f 72 6b 20 77 69  the test work wi
00d0: 74 68 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69  th OpenSSL on Wi
00e0: 6e 64 6f 77 73 20 28 64 6f 65 73 6e 27 74 20 61  ndows (doesn't a
00f0: 66 66 65 63 74 0a 09 6f 74 68 65 72 20 62 75 69  ffect..other bui
0100: 6c 64 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74  lds)....* tls.ht
0110: 6d 3a 20 75 70 64 61 74 65 64 20 77 69 74 68 20  m: updated with 
0120: 6e 6f 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a  notes for 1.4...
0130: 32 30 30 30 2d 30 38 2d 32 31 20 20 4a 65 66 66  2000-08-21  Jeff
0140: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73   Hobbs  <hobbs@s
0150: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
0160: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65  * tests/tlsIO.te
0170: 73 74 3a 20 72 65 71 75 69 72 65 20 61 74 20 6c  st: require at l
0180: 65 61 73 74 20 74 6c 73 31 2e 34 20 69 6e 20 74  east tls1.4 in t
0190: 65 73 74 20 73 75 69 74 65 2e 0a 0a 32 30 30 30  est suite...2000
01a0: 2d 30 38 2d 31 38 20 20 4a 65 66 66 20 48 6f 62  -08-18  Jeff Hob
01b0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
01c0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tics.com>...* tl
01d0: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20  s.c (Tls_Init): 
01e0: 61 64 64 65 64 20 63 61 6c 6c 20 74 6f 20 52 41  added call to RA
01f0: 4e 44 5f 73 65 65 64 20 74 6f 20 73 65 65 64 20  ND_seed to seed 
0200: 74 68 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09  the SSL random..
0210: 6e 75 6d 62 65 72 20 67 65 6e 65 72 61 74 6f 72  number generator
0220: 2e 20 20 57 69 74 68 6f 75 74 20 74 68 69 73 2c  .  Without this,
0230: 20 4f 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63   OpenSSL 0.9.5 c
0240: 68 6f 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e  hokes, and in an
0250: 79 0a 09 63 61 73 65 20 69 74 20 69 73 20 61 20  y..case it is a 
0260: 62 69 67 20 73 65 63 75 72 69 74 79 20 68 6f 6c  big security hol
0270: 65 20 74 6f 20 64 6f 20 77 69 74 68 6f 75 74 20  e to do without 
0280: 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72  it....* configur
0290: 65 2e 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20  e.in (OPENSSL): 
02a0: 61 64 64 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e  added NO_IDEA an
02b0: 64 20 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65 73  d NO_RC5 defines
02c0: 20 62 79 0a 09 64 65 66 61 75 6c 74 20 77 68 65   by..default whe
02d0: 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68  n compiling with
02e0: 20 4f 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c   OpenSSL....* tl
02f0: 73 49 6e 74 2e 68 3a 20 61 64 64 65 64 20 65 72  sInt.h: added er
0300: 72 2e 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20  r.h include...* 
0310: 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73  tlsBIO.c:..* tls
0320: 49 4f 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20  IO.c: corrected 
0330: 70 65 64 61 6e 74 69 63 20 63 61 73 74 20 65 72  pedantic cast er
0340: 72 6f 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31  rors...2000-08-1
0350: 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  6  Jeff Hobbs  <
0360: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
0370: 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63  com>...* tests/c
0380: 69 70 68 65 72 73 2e 74 65 73 74 3a 20 69 6d 70  iphers.test: imp
0390: 72 6f 76 65 64 20 61 62 69 6c 69 74 79 20 74 6f  roved ability to
03a0: 20 63 68 61 6e 67 65 20 63 6f 6e 73 74 72 61 69   change constrai
03b0: 6e 74 0a 09 73 65 74 74 69 6e 67 20 66 6f 72 20  nt..setting for 
03c0: 77 68 65 74 68 65 72 20 75 73 65 72 20 63 6f 6d  whether user com
03d0: 70 69 6c 65 64 20 61 67 61 69 6e 73 74 20 52 53  piled against RS
03e0: 41 20 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62  A or OpenSSL lib
03f0: 73 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c  s....* tls.c (Tl
0400: 73 5f 49 6e 69 74 29 3a 20 63 6f 72 72 65 63 74  s_Init): correct
0410: 65 64 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f  ed interpretatio
0420: 6e 20 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d  n of version num
0430: 62 65 72 0a 09 28 70 61 74 63 68 6c 65 76 65 6c  ber..(patchlevel
0440: 20 61 6e 64 20 72 65 6c 65 61 73 65 2f 73 65 72   and release/ser
0450: 69 61 6c 20 77 65 72 65 20 73 77 61 70 70 65 64  ial were swapped
0460: 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20 20  )...2000-08-15  
0470: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
0480: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
0490: 3e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74  >...* README.txt
04a0: 3a 20 61 64 64 65 64 20 6e 6f 74 65 73 20 61 62  : added notes ab
04b0: 6f 75 74 20 6e 65 65 64 20 74 6f 20 75 73 65 20  out need to use 
04c0: 38 2e 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49  8.2.0+....* tlsI
04d0: 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a  nt.h:..* tls.c:.
04e0: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72  .* tlsIO.c: corr
04f0: 65 63 74 65 64 20 73 74 72 75 63 74 75 72 65 20  ected structure 
0500: 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74  initialization t
0510: 6f 20 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d  o work when..com
0520: 70 69 6c 69 6e 67 20 77 69 74 68 20 38 2e 32 2e  piling with 8.2.
0530: 20 20 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77    Now compiles w
0540: 69 74 68 20 38 2e 32 2b 20 61 6e 64 20 74 65 73  ith 8.2+ and tes
0550: 74 65 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74  ted to work..wit
0560: 68 20 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d  h 8.2+ and dynam
0570: 69 63 61 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f  ically adjust to
0580: 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20   the version of 
0590: 54 63 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61 64  Tcl it was..load
05a0: 65 64 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69  ed into.  TLS wi
05b0: 6c 6c 20 66 61 69 6c 20 74 68 65 20 74 65 73 74  ll fail the test
05c0: 20 73 75 69 74 65 20 77 69 74 68 20 54 63 6c 20   suite with Tcl 
05d0: 38 2e 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74  8.2-8.3.1....* t
05e0: 65 73 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64  ests/all.tcl: ad
05f0: 64 65 64 20 63 61 74 63 68 20 61 72 6f 75 6e 64  ded catch around
0600: 20 3a 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d   ::tcltest::norm
0610: 61 6c 69 7a 65 50 61 74 68 0a 09 62 65 63 61 75  alizePath..becau
0620: 73 65 20 69 74 20 64 6f 65 73 6e 27 74 20 65 78  se it doesn't ex
0630: 69 73 74 20 69 6e 20 70 72 65 2d 38 2e 33 20 74  ist in pre-8.3 t
0640: 63 6c 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74  cltest....* test
0650: 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74  s/simpleClient.t
0660: 63 6c 3a 20 0a 09 2a 20 74 65 73 74 73 2f 73 69  cl: ..* tests/si
0670: 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20  mpleServer.tcl: 
0680: 61 64 64 65 64 20 73 69 6d 70 6c 65 20 63 6c 69  added simple cli
0690: 65 6e 74 2f 73 65 72 76 65 72 20 74 65 73 74 20  ent/server test 
06a0: 73 63 72 69 70 74 73 0a 09 74 68 61 74 20 75 73  scripts..that us
06b0: 65 20 74 65 73 74 20 63 65 72 74 73 20 61 6e 64  e test certs and
06c0: 20 63 61 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73   can do simple s
06d0: 74 72 65 73 73 20 74 65 73 74 73 2e 0a 0a 32 30  tress tests...20
06e0: 30 30 2d 30 38 2d 31 34 20 20 4a 65 66 66 20 48  00-08-14  Jeff H
06f0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72  obbs  <hobbs@scr
0700: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
0710: 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73  tlsInt.h:..* tls
0720: 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e  IO.c:..* tlsBIO.
0730: 63 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61  c:..* tls.c: cha
0740: 6e 67 65 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f  nged around to o
0750: 6e 6c 79 20 77 6f 72 6b 69 6e 67 20 77 69 74 68  nly working with
0760: 20 38 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a   8.2.0+ (8.3.2+.
0770: 09 70 72 65 66 65 72 72 65 64 29 2c 20 77 69 74  .preferred), wit
0780: 68 20 72 75 6e 74 69 6d 65 20 63 68 65 63 6b 73  h runtime checks
0790: 20 66 6f 72 20 70 72 65 2d 20 61 6e 64 20 70 6f   for pre- and po
07a0: 73 74 2d 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a  st-io-rewrite...
07b0: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e  .* tls.c (Tls_In
07c0: 69 74 29 3a 20 63 68 61 6e 67 65 64 20 69 74 20  it): changed it 
07d0: 74 6f 20 72 65 71 75 69 72 65 20 38 2e 33 2e 32  to require 8.3.2
07e0: 20 77 68 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74   when Tcl_InitSt
07f0: 75 62 73 0a 09 77 61 73 20 63 61 6c 6c 65 64 20  ubs..was called 
0800: 62 65 63 61 75 73 65 20 77 65 20 64 6f 6e 27 74  because we don't
0810: 20 77 61 6e 74 20 70 65 6f 70 6c 65 20 75 73 69   want people usi
0820: 6e 67 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a  ng TLS with the.
0830: 09 6f 72 69 67 69 6e 61 6c 20 73 74 61 63 6b 65  .original stacke
0840: 64 20 63 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d  d channel implem
0850: 65 6e 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d  entation...2000-
0860: 30 37 2d 32 36 20 20 4a 65 66 66 20 48 6f 62 62  07-26  Jeff Hobb
0870: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
0880: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72  ics.com>...* mer
0890: 67 65 64 20 61 6c 6c 20 63 68 61 6e 67 65 73 20  ged all changes 
08a0: 66 72 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d  from tls-1-3-io-
08b0: 72 65 77 72 69 74 65 20 62 61 63 6b 20 69 6e 74  rewrite back int
08c0: 6f 20 6d 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09  o main branch...
08d0: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65  * tests/tlsIO.te
08e0: 73 74 3a 20 75 70 64 61 74 65 64 20 63 6f 6d 6d  st: updated comm
08f0: 65 6e 74 73 2c 20 66 69 78 65 64 20 61 20 70 63  ents, fixed a pc
0900: 43 72 61 73 68 20 63 61 73 65 20 74 68 61 74 0a  Crash case that.
0910: 09 77 61 73 20 64 75 65 20 74 6f 20 64 65 62 75  .was due to debu
0920: 67 20 61 73 73 65 72 74 69 6f 6e 20 69 6e 20 57  g assertion in W
0930: 69 6e 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20  indows SSL....* 
0940: 74 6c 73 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a  tls.c (ImportObj
0950: 43 6d 64 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e  Cmd): removed un
0960: 6e 65 63 65 73 73 61 72 79 20 75 73 65 20 6f 66  necessary use of
0970: 20 27 62 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c   'bio' arg...(Tl
0980: 73 5f 49 6e 69 74 29 3a 20 63 68 65 63 6b 20 72  s_Init): check r
0990: 65 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 20 53  eturn value of S
09a0: 53 4c 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e  SL_library_init.
09b0: 20 20 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09    Also lots of..
09c0: 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e  whitespace clean
09d0: 75 70 20 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63  up (more like Tc
09e0: 6c 20 45 6e 67 20 73 74 79 6c 65 20 67 75 69 64  l Eng style guid
09f0: 65 29 2c 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a  e), but not all.
0a00: 09 63 6f 64 65 20 77 61 73 20 63 6c 65 61 6e 65  .code was cleane
0a10: 64 20 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f  d up....* tlsBIO
0a20: 2e 63 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73  .c: minor whites
0a30: 70 61 63 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a  pace cleanup...*
0a40: 20 74 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20   tlsIO.c: minor 
0a50: 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e  whitespace clean
0a60: 75 70 2e 0a 09 28 54 6c 73 49 6e 70 75 74 50 72  up...(TlsInputPr
0a70: 6f 63 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f  oc, TlsOutputPro
0a80: 63 29 3a 20 41 64 64 65 64 20 45 52 52 5f 63 6c  c): Added ERR_cl
0a90: 65 61 72 5f 65 72 72 6f 72 20 62 65 66 6f 72 65  ear_error before
0aa0: 20 63 61 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72   calls..to BIO_r
0ab0: 65 61 64 20 6f 72 20 42 49 4f 5f 77 72 69 74 65  ead or BIO_write
0ac0: 2c 20 62 65 63 61 75 73 65 20 77 65 20 63 6f 75  , because we cou
0ad0: 6c 64 20 6f 74 68 65 72 77 69 73 65 20 65 6e 64  ld otherwise end
0ae0: 20 75 70 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20   up..pulling an 
0af0: 65 72 72 6f 72 20 6f 66 66 20 74 68 65 20 73 74  error off the st
0b00: 61 63 6b 20 74 68 61 74 20 64 69 64 6e 27 74 20  ack that didn't 
0b10: 62 65 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41  belong to us.  A
0b20: 6c 73 6f 0a 09 63 6c 65 61 6e 75 70 20 75 70 20  lso..cleanup up 
0b30: 65 78 63 65 73 73 69 76 65 20 75 73 65 20 6f 66  excessive use of
0b40: 20 67 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37   gotos...2000-07
0b50: 2d 32 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -20  Jeff Hobbs 
0b60: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
0b70: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73  s.com>...* tests
0b80: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72  /tlsIO.test: cor
0b90: 72 65 63 74 65 64 20 76 61 72 69 6f 75 73 20 74  rected various t
0ba0: 65 73 74 73 20 74 6f 20 62 65 20 63 6f 72 72 65  ests to be corre
0bb0: 63 74 20 66 6f 72 20 54 4c 53 0a 09 73 74 61 63  ct for TLS..stac
0bc0: 6b 65 64 20 63 68 61 6e 6e 65 6c 73 20 28 61 73  ked channels (as
0bd0: 20 6f 70 70 6f 73 65 64 20 74 6f 20 74 68 65 20   opposed to the 
0be0: 73 74 61 6e 64 61 72 64 20 73 6f 63 6b 65 74 73  standard sockets
0bf0: 20 74 68 65 20 74 65 73 74 0a 09 73 75 69 74 65   the test..suite
0c00: 20 77 61 73 20 61 64 6f 70 74 65 64 20 66 72 6f   was adopted fro
0c10: 6d 29 2e 20 20 4b 65 79 20 64 69 66 66 65 72 65  m).  Key differe
0c20: 6e 63 65 73 20 61 72 65 20 74 68 61 74 20 54 4c  nces are that TL
0c30: 53 20 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74  S cannot..operat
0c40: 65 20 69 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73  e in one process
0c50: 20 77 69 74 68 6f 75 74 20 61 6c 6c 20 63 68 61   without all cha
0c60: 6e 6e 65 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d  nnels being non-
0c70: 62 6c 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68  blocking, or..th
0c80: 65 20 68 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c  e handshake will
0c90: 20 62 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64   block, and hand
0ca0: 73 68 61 6b 69 6e 67 20 6d 75 73 74 20 62 65 20  shaking must be 
0cb0: 66 6f 72 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09  forced in some..
0cc0: 63 61 73 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61  cases.  Also, ha
0cd0: 6e 64 73 68 61 6b 65 73 20 64 6f 6e 27 74 20 73  ndshakes don't s
0ce0: 65 65 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20  eem to complete 
0cf0: 75 6e 6c 65 73 73 20 74 68 65 20 63 6c 69 65 6e  unless the clien
0d00: 74 0a 09 68 61 73 20 70 6c 61 63 65 64 20 61 74  t..has placed at
0d10: 20 6c 65 61 73 74 20 6f 6e 65 20 62 79 74 65 20   least one byte 
0d20: 66 6f 72 20 74 68 65 20 73 65 72 76 65 72 20 74  for the server t
0d30: 6f 20 72 65 61 64 20 69 6e 20 74 68 65 20 63 68  o read in the ch
0d40: 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73  annel....* tests
0d50: 2f 72 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72  /remote.tcl: cor
0d60: 72 65 63 74 65 64 20 74 68 65 20 66 69 6e 64 69  rected the findi
0d70: 6e 67 20 6f 66 20 74 65 73 74 73 20 63 65 72 74  ng of tests cert
0d80: 69 66 69 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73  ificates...* tls
0d90: 49 4f 2e 63 20 28 54 6c 73 43 6c 6f 73 65 50 72  IO.c (TlsClosePr
0da0: 6f 63 29 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c  oc): removed del
0db0: 65 74 69 6e 67 20 6f 66 20 74 69 6d 65 72 20 68  eting of timer h
0dc0: 61 6e 64 6c 65 72 20 61 73 0a 09 74 68 61 74 20  andler as..that 
0dd0: 69 73 20 68 61 6e 64 6c 65 64 20 62 79 20 54 6c  is handled by Tl
0de0: 73 5f 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73  s_Clean....* tls
0df0: 2e 74 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65  .tcl (tls::_acce
0e00: 70 74 29 3a 20 63 6f 72 72 65 63 74 65 64 20 74  pt): corrected t
0e10: 68 65 20 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63  he internal _acc
0e20: 65 70 74 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20  ept to..trickle 
0e30: 63 61 6c 6c 62 61 63 6b 20 65 72 72 6f 72 73 20  callback errors 
0e40: 74 6f 20 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a  to the user....*
0e50: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61   Makefile.in: ma
0e60: 64 65 20 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62  de the install-b
0e70: 69 6e 61 72 69 65 73 20 74 61 72 67 65 74 20 72  inaries target r
0e80: 65 67 65 6e 65 72 61 74 65 20 74 68 65 0a 09 70  egenerate the..p
0e90: 6b 67 49 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72  kgIndex.tcl corr
0ea0: 65 63 74 6c 79 2e 20 20 54 68 65 20 74 65 73 74  ectly.  The test
0eb0: 20 74 61 72 67 65 74 20 70 72 6f 62 61 62 6c 79   target probably
0ec0: 20 73 68 6f 75 6c 64 6e 27 74 20 73 63 72 65 77   shouldn't screw
0ed0: 0a 09 69 74 20 75 70 2c 20 62 75 74 20 74 68 69  ..it up, but thi
0ee0: 73 20 69 73 20 74 6f 20 62 65 20 6f 6e 20 74 68  s is to be on th
0ef0: 65 20 73 61 66 65 20 73 69 64 65 2e 0a 0a 32 30  e safe side...20
0f00: 30 30 2d 30 37 2d 31 37 20 20 4a 65 66 66 20 48  00-07-17  Jeff H
0f10: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72  obbs  <hobbs@scr
0f20: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
0f30: 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a  pkgIndex.tcl.in:
0f40: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e  ..* configure.in
0f50: 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 69 6f  : updated versio
0f60: 6e 20 74 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30  n to 1.4..2000-0
0f70: 37 2d 31 33 20 20 4a 65 66 66 20 48 6f 62 62 73  7-13  Jeff Hobbs
0f80: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69    <hobbs@scripti
0f90: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74  cs.com>...* test
0fa0: 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e  s/tlsIO.test: en
0fb0: 61 62 6c 65 64 20 74 65 73 74 73 20 32 2e 31 30  abled tests 2.10
0fc0: 2c 20 37 2e 5b 31 32 34 35 5d 20 28 74 68 65 72  , 7.[1245] (ther
0fd0: 65 20 69 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69  e is no 3),..whi
0fe0: 63 68 20 6e 6f 77 20 70 61 73 73 2e 20 20 41 64  ch now pass.  Ad
0ff0: 64 65 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74  ded some comment
1000: 73 20 74 6f 20 6f 74 68 65 72 20 66 61 69 6c 69  s to other faili
1010: 6e 67 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d  ng tests...2000-
1020: 30 37 2d 31 31 20 20 4a 65 66 66 20 48 6f 62 62  07-11  Jeff Hobb
1030: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
1040: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ics.com>...* tls
1050: 49 4f 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 6c  IO.c: changed al
1060: 6c 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 70 72  l the channel pr
1070: 6f 63 73 20 74 6f 20 73 74 61 72 74 20 77 69 74  ocs to start wit
1080: 68 20 54 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74  h Tls* for..bett
1090: 65 72 20 70 61 72 69 74 79 20 77 68 65 6e 20 63  er parity when c
10a0: 6f 6d 70 61 72 69 6e 67 20 77 69 74 68 20 54 72  omparing with Tr
10b0: 61 6e 73 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20  ansform channel 
10c0: 70 72 6f 63 73 2e 0a 09 52 65 77 72 6f 74 65 20  procs...Rewrote 
10d0: 54 6c 73 57 61 74 63 68 50 72 6f 63 2c 20 61 64  TlsWatchProc, ad
10e0: 64 65 64 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f  ded TlsNotifyPro
10f0: 63 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74  c according to t
1100: 68 65 20 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20  he new..channel 
1110: 64 65 73 69 67 6e 2c 20 77 68 69 63 68 20 61 6c  design, which al
1120: 73 6f 20 6c 65 61 76 65 73 20 54 6c 73 43 68 61  so leaves TlsCha
1130: 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73  nnelHandler unus
1140: 65 64 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63  ed....* tlsBIO.c
1150: 20 28 42 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e   (BioCtrl): chan
1160: 67 65 64 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55  ged BIO_CTRL_FLU
1170: 53 48 20 63 61 73 65 20 74 6f 20 75 73 65 0a 09  SH case to use..
1180: 54 63 6c 5f 57 72 69 74 65 52 61 77 20 69 6e 73  Tcl_WriteRaw ins
1190: 74 65 61 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73  tead of Tcl_Flus
11a0: 68 20 28 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e  h (to operate on
11b0: 20 63 6f 72 72 65 63 74 20 63 68 61 6e 6e 65 6c   correct channel
11c0: 0a 09 69 6e 20 74 68 65 20 73 74 61 63 6b 20 69  ..in the stack i
11d0: 6e 73 74 65 61 64 20 6f 66 20 73 74 61 72 74 69  nstead of starti
11e0: 6e 67 20 61 74 20 74 68 65 20 74 6f 70 20 61 67  ng at the top ag
11f0: 61 69 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74  ain).  Would..ot
1200: 68 65 72 77 69 73 65 20 63 61 75 73 65 20 61 20  herwise cause a 
1210: 72 65 63 75 72 73 69 76 65 20 73 74 61 63 6b 20  recursive stack 
1220: 62 6f 6d 62 20 77 68 65 6e 20 69 6d 70 6c 69 63  bomb when implic
1230: 69 74 20 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09  it handshaking..
1240: 74 6f 6f 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a  took effect....*
1250: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73   tests/tlsIO.tes
1260: 74 3a 20 72 65 6d 6f 76 65 64 20 63 68 61 6e 67  t: removed chang
1270: 65 73 20 6d 61 64 65 20 74 6f 20 74 65 73 74 20  es made to test 
1280: 73 75 69 74 65 20 28 61 6c 6c 20 74 65 73 74 73  suite (all tests
1290: 0a 09 74 68 61 74 20 72 61 6e 20 62 65 66 6f 72  ..that ran befor
12a0: 65 20 6e 6f 77 20 70 61 73 73 20 63 6f 72 72 65  e now pass corre
12b0: 63 74 6c 79 29 2c 20 61 6e 64 20 63 68 61 6e 67  ctly), and chang
12c0: 65 64 20 73 6f 6d 65 20 61 63 63 65 70 74 20 70  ed some accept p
12d0: 72 6f 63 0a 09 61 72 67 73 20 74 6f 20 72 65 66  roc..args to ref
12e0: 6c 65 63 74 20 74 68 61 74 20 61 20 73 6f 63 6b  lect that a sock
12f0: 20 69 73 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20   is an arg, not 
1300: 61 20 66 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37  a file...2000-07
1310: 2d 31 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -10  Jeff Hobbs 
1320: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
1330: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49  s.com>...* tlsBI
1340: 4f 2e 63 20 28 42 69 6f 57 72 69 74 65 2c 20 42  O.c (BioWrite, B
1350: 69 6f 52 65 61 64 29 3a 20 63 68 61 6e 67 65 64  ioRead): changed
1360: 20 54 63 6c 5f 52 65 61 64 2f 57 72 69 74 65 20   Tcl_Read/Write 
1370: 74 6f 0a 09 54 63 6c 5f 52 65 61 64 52 61 77 2f  to..Tcl_ReadRaw/
1380: 54 63 6c 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a  TclWriteRaw....*
1390: 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 75 73   tls.c: added us
13a0: 65 20 6f 66 20 54 63 6c 5f 47 65 74 54 6f 70 43  e of Tcl_GetTopC
13b0: 68 61 6e 6e 65 6c 20 61 66 74 65 72 20 54 63 6c  hannel after Tcl
13c0: 5f 47 65 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a  _GetChannel and.
13d0: 09 67 6f 74 20 72 65 74 75 72 6e 20 76 61 6c 75  .got return valu
13e0: 65 20 66 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b  e from Tcl_Stack
13f0: 43 68 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73  Channel....* tes
1400: 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61  ts/tlsIO.test: a
1410: 64 64 65 64 20 73 6f 6d 65 20 68 61 6e 64 73 68  dded some handsh
1420: 61 6b 69 6e 67 20 74 68 61 74 20 73 68 6f 75 6c  aking that shoul
1430: 64 6e 27 74 20 62 65 0a 09 6e 65 63 65 73 73 61  dn't be..necessa
1440: 72 79 2c 20 62 75 74 20 77 65 20 63 72 61 73 68  ry, but we crash
1450: 20 6f 74 68 65 72 77 69 73 65 20 28 6e 65 65 64   otherwise (need
1460: 73 20 6d 6f 72 65 20 74 65 73 74 69 6e 67 29 2e  s more testing).
1470: 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64  ...* tlsIO.c: ad
1480: 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20  ded support for 
1490: 22 63 6f 72 72 65 63 74 65 64 22 20 73 74 61 63  "corrected" stac
14a0: 6b 65 64 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41  ked channels.  A
14b0: 6c 6c 0a 09 74 68 65 20 61 62 6f 76 65 20 63 68  ll..the above ch
14c0: 61 6e 6e 65 6c 73 20 61 72 65 20 69 6e 20 54 43  annels are in TC
14d0: 4c 5f 43 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f  L_CHANNEL_VERSIO
14e0: 4e 5f 32 20 23 69 66 64 65 66 73 2e 0a 0a 32 30  N_2 #ifdefs...20
14f0: 30 30 2d 30 36 2d 30 35 20 20 53 63 6f 74 74 20  00-06-05  Scott 
1500: 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f  Stanton  <stanto
1510: 6e 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73  n@ajubasolutions
1520: 2e 63 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69  .com>...* Makefi
1530: 6c 65 2e 69 6e 3a 20 46 69 78 65 64 20 62 72 6f  le.in: Fixed bro
1540: 6b 65 6e 20 74 65 73 74 20 74 61 72 67 65 74 2e  ken test target.
1550: 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 0a  ...* tlsInt.h: .
1560: 09 2a 20 74 6c 73 2e 63 3a 20 43 6c 65 61 6e 65  .* tls.c: Cleane
1570: 64 20 75 70 20 64 65 63 6c 61 72 61 74 69 6f 6e  d up declaration
1580: 73 20 6f 66 20 54 6c 73 5f 43 6c 65 61 6e 20 74  s of Tls_Clean t
1590: 6f 20 61 76 6f 69 64 20 65 72 72 6f 72 73 20 6f  o avoid errors o
15a0: 6e 0a 09 57 69 6e 64 6f 77 73 20 28 6c 69 6e 74  n..Windows (lint
15b0: 29 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20  )...2000-06-05  
15c0: 42 72 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c  Brent Welch <wel
15d0: 63 68 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e  ch@ajubasolution
15e0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63  s.com>...* tls.c
15f0: 2c 20 74 6c 73 49 4f 2e 63 3a 20 20 53 70 6c 69  , tlsIO.c:  Spli
1600: 74 20 54 6c 73 5f 46 72 65 65 20 69 6e 74 6f 20  t Tls_Free into 
1610: 54 6c 73 5f 43 6c 65 61 6e 2c 20 77 68 69 63 68  Tls_Clean, which
1620: 20 64 6f 65 73 0a 09 74 68 65 20 53 53 4c 20 63   does..the SSL c
1630: 6c 65 61 6e 75 70 2c 20 61 6e 64 20 74 68 65 20  leanup, and the 
1640: 54 63 6c 5f 46 72 65 65 20 63 61 6c 6c 2e 20 20  Tcl_Free call.  
1650: 49 74 20 69 73 20 69 6d 70 6f 72 74 61 6e 74 20  It is important 
1660: 74 6f 20 73 68 75 74 64 6f 77 6e 0a 09 74 68 65  to shutdown..the
1670: 20 53 53 4c 20 73 74 61 74 65 20 22 73 79 6e 63   SSL state "sync
1680: 68 72 6f 6e 6f 75 73 6c 79 22 20 64 75 72 69 6e  hronously" durin
1690: 67 20 61 20 73 74 61 63 6b 65 64 20 66 6c 75 73  g a stacked flus
16a0: 68 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20  h...2000-06-01  
16b0: 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c  Scott Stanton  <
16c0: 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c  stanton@ajubasol
16d0: 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  utions.com>...* 
16e0: 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65  tlsIO.c: Restore
16f0: 64 20 63 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f  d call to Tcl_No
1700: 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d  tifyChannel from
1710: 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a   ChannelHandler.
1720: 09 74 6f 20 65 6e 73 75 72 65 20 74 68 61 74 20  .to ensure that 
1730: 65 76 65 6e 74 73 20 70 72 6f 70 61 67 61 74 65  events propagate
1740: 20 66 72 6f 6d 20 74 68 65 20 6c 6f 77 65 72 20   from the lower 
1750: 64 72 69 76 65 72 2e 20 20 54 68 69 73 20 6d 61  driver.  This ma
1760: 79 0a 09 72 65 73 75 6c 74 20 69 6e 20 61 6e 20  y..result in an 
1770: 69 6e 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 6e  infinite loop in
1780: 20 73 6f 6d 65 20 63 61 73 65 73 2c 20 73 6f 20   some cases, so 
1790: 74 68 69 73 20 69 73 20 6e 6f 74 20 61 20 74 6f  this is not a to
17a0: 74 61 6c 0a 09 66 69 78 2e 20 20 54 68 69 73 20  tal..fix.  This 
17b0: 6d 61 79 20 62 65 20 73 75 66 66 69 63 69 65 6e  may be sufficien
17c0: 74 20 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 65 76  t for now, howev
17d0: 65 72 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a  er. [Bug: 5623].
17e0: 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f  .2000-06-01  Sco
17f0: 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61  tt Stanton  <sta
1800: 6e 74 6f 6e 40 73 63 72 69 70 74 69 63 73 2e 63  nton@scriptics.c
1810: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a  om>...* tlsIO.c:
1820: 20 52 65 73 74 6f 72 65 20 74 68 65 20 70 72 65   Restore the pre
1830: 76 69 6f 75 73 20 76 65 72 73 69 6f 6e 2e 20 20  vious version.  
1840: 46 69 78 65 64 20 74 68 65 20 43 6c 6f 73 65 50  Fixed the CloseP
1850: 72 6f 63 20 73 6f 0a 09 69 74 20 75 6e 72 65 67  roc so..it unreg
1860: 69 73 74 65 72 73 20 74 68 65 20 63 68 61 6e 6e  isters the chann
1870: 65 6c 20 68 61 6e 64 6c 65 72 20 6f 6e 20 74 68  el handler on th
1880: 65 20 73 75 70 65 72 63 65 64 65 64 20 63 68 61  e superceded cha
1890: 6e 6e 65 6c 0a 09 69 6e 73 74 65 61 64 20 6f 66  nnel..instead of
18a0: 20 74 68 65 20 75 70 70 65 72 20 63 68 61 6e 6e   the upper chann
18b0: 65 6c 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 65 64  el. Also removed
18c0: 20 74 68 65 20 63 61 6c 6c 20 74 6f 0a 09 54 63   the call to..Tc
18d0: 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20  l_NotifyChannel 
18e0: 69 6e 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61  in the ChannelHa
18f0: 6e 64 6c 65 72 20 62 65 63 61 75 73 65 20 74 68  ndler because th
1900: 69 73 20 77 69 6c 6c 20 72 65 73 75 6c 74 0a 09  is will result..
1910: 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c  in an infinite l
1920: 6f 6f 70 20 69 66 20 64 61 74 61 20 69 73 20 65  oop if data is e
1930: 76 65 72 20 62 75 66 66 65 72 65 64 20 69 6e 20  ver buffered in 
1940: 74 68 65 20 42 49 4f 0a 09 73 74 72 75 63 74 75  the BIO..structu
1950: 72 65 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a  re. [Bug: 5623].
1960: 0a 32 30 30 30 2d 30 35 2d 33 31 20 20 42 72 65  .2000-05-31  Bre
1970: 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40  nt Welch <welch@
1980: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
1990: 09 2a 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65  .* tls.c: Change
19a0: 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64   the ChannelHand
19b0: 6c 65 72 20 74 6f 20 62 65 20 72 65 67 69 73 74  ler to be regist
19c0: 65 72 65 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e  ered on the main
19d0: 0a 09 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70  ..channel as opp
19e0: 73 65 64 20 74 6f 20 74 68 65 20 22 70 61 72 65  sed to the "pare
19f0: 6e 74 22 2c 20 6f 72 20 73 75 70 65 72 63 65 65  nt", or supercee
1a00: 64 65 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54  ded, channel.  T
1a10: 68 69 73 0a 09 69 73 20 62 65 63 61 75 73 65 20  his..is because 
1a20: 74 68 65 20 73 6f 63 6b 65 74 20 64 72 69 76 65  the socket drive
1a30: 72 20 6e 6f 74 69 66 69 65 73 20 74 68 65 20 6d  r notifies the m
1a40: 61 69 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64  ain channel, and
1a50: 20 74 68 65 72 65 0a 09 61 72 65 20 74 69 6d 65   there..are time
1a60: 73 20 77 69 74 68 20 74 68 65 20 6d 61 69 6e 20  s with the main 
1a70: 63 68 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f  channel gets clo
1a80: 73 65 64 2c 20 62 75 74 20 74 68 65 20 73 75 70  sed, but the sup
1a90: 65 72 63 65 64 65 64 0a 09 6f 6e 65 20 69 73 20  erceded..one is 
1aa0: 6e 6f 74 20 79 65 74 20 63 6c 6f 73 65 64 2e 20  not yet closed. 
1ab0: 20 49 66 20 74 68 65 20 63 68 61 6e 6e 65 6c 20   If the channel 
1ac0: 68 61 6e 64 6c 65 72 20 67 65 74 73 20 74 72 69  handler gets tri
1ad0: 67 67 65 72 65 64 20 69 6e 0a 09 74 68 69 73 20  ggered in..this 
1ae0: 68 61 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65 20  half-open state 
1af0: 69 74 20 69 73 20 61 73 73 6f 63 69 61 74 65 64  it is associated
1b00: 20 77 69 74 68 20 74 68 65 20 73 75 70 65 72 63   with the superc
1b10: 65 65 64 65 64 0a 09 63 68 61 6e 6e 65 64 6c 2c  eeded..channedl,
1b20: 20 62 75 74 20 75 73 65 73 20 69 74 73 20 70 72   but uses its pr
1b30: 69 76 61 74 65 20 70 6f 69 6e 74 65 72 20 74 6f  ivate pointer to
1b40: 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65   the main channe
1b50: 6c 2c 20 77 68 69 63 68 0a 09 69 73 20 6d 6f 73  l, which..is mos
1b60: 74 6c 79 20 64 65 73 74 72 6f 79 65 64 2e 20 20  tly destroyed.  
1b70: 45 6c 69 6d 69 6e 61 74 65 64 20 74 68 65 20 72  Eliminated the r
1b80: 65 64 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f  edundant call to
1b90: 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e  ..Tcl_NotifyChan
1ba0: 6e 65 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74 63  nel from TlsWatc
1bb0: 68 50 72 6f 63 2e 20 5b 42 75 67 3a 20 35 36 32  hProc. [Bug: 562
1bc0: 33 5d 0a                                         3].