Hex Artifact Content

Artifact ec1154ab4cce8cd785af4c09894da1a19c8e56e7:


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