Hex Artifact Content

Artifact 714f578cf0b23485c24f761fd05e72c8d90db7e6:


0000: 32 30 30 32 2d 30 32 2d 30 34 20 20 4a 65 66 66  2002-02-04  Jeff
0010: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41   Hobbs  <jeffh@A
0020: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a  ctiveState.com>.
0030: 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a 20  ..* tls.htm:..* 
0040: 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 73 75 70  tls.c: added sup
0050: 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61 6c 20 63  port for local c
0060: 65 72 74 69 66 69 63 61 74 65 20 73 74 61 74 75  ertificate statu
0070: 73 20 63 68 65 63 6b 2c 20 61 73 20 77 65 6c 6c  s check, as well
0080: 0a 09 61 73 20 72 65 74 75 72 6e 69 6e 67 20 74  ..as returning t
0090: 68 65 20 23 20 6f 66 20 62 69 74 73 20 69 6e 20  he # of bits in 
00a0: 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 79 2e  the session key.
00b0: 20 5b 50 61 74 63 68 20 23 35 30 35 36 39 38 5d   [Patch #505698]
00c0: 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74 6c 73 2e   (rose)...* tls.
00d0: 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09  c:..* tlsIO.c:..
00e0: 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61 64 64 65  * tlsBIO.c: adde
00f0: 64 20 43 4f 4e 53 54 73 20 74 6f 20 73 61 74 69  d CONSTs to sati
0100: 73 66 79 20 54 63 6c 20 38 2e 34 20 73 6f 75 72  sfy Tcl 8.4 sour
0110: 63 65 73 2e 20 20 54 68 69 73 20 6d 61 79 0a 09  ces.  This may..
0120: 67 69 76 65 20 77 61 72 6e 69 6e 67 73 20 77 68  give warnings wh
0130: 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61 67 61 69  en compiled agai
0140: 6e 73 74 20 38 2e 33 2c 20 62 75 74 20 74 68 65  nst 8.3, but the
0150: 79 20 63 61 6e 20 62 65 20 69 67 6e 6f 72 65 64  y can be ignored
0160: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70  ....* tests/simp
0170: 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a 09 2a  leClient.tcl:..*
0180: 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72   tests/simpleSer
0190: 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e 74 20 74  ver.tcl: point t
01a0: 6f 20 75 70 64 61 74 65 64 20 63 6c 69 65 6e 74  o updated client
01b0: 2f 73 65 72 76 65 72 20 6b 65 79 20 66 69 6c 65  /server key file
01c0: 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73  s....* tests/tls
01d0: 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 65 73 74  IO.test:..* test
01e0: 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a 20  s/ciphers.test: 
01f0: 75 70 64 61 74 65 64 20 74 6f 20 6c 6f 61 64 20  updated to load 
0200: 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c 64 20 64  tls from build d
0210: 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65  ir....* Makefile
0220: 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20 73 74 72  .in: removed str
0230: 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d 20 64 65  ncasecmp from de
0240: 66 61 75 6c 74 20 6f 62 6a 65 63 74 20 73 65 74  fault object set
0250: 2e 20 20 54 68 69 73 0a 09 69 73 20 6f 6e 6c 79  .  This..is only
0260: 20 6e 65 65 64 65 64 20 6f 6e 20 74 68 65 20 4d   needed on the M
0270: 61 63 2c 20 61 6e 64 20 54 63 6c 20 73 74 75 62  ac, and Tcl stub
0280: 73 20 70 72 6f 76 69 64 65 73 20 69 74 2e 0a 0a  s provides it...
0290: 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 72 65  .* configure: re
02a0: 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f 6e 66 69  gen'ed...* confi
02b0: 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65 64  gure.in: updated
02c0: 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72 20 6e 65   to 1.5.0 for ne
02d0: 78 74 20 72 65 6c 65 61 73 65 2e 0a 09 43 68 61  xt release...Cha
02e0: 6e 67 65 64 20 64 65 66 61 75 6c 74 20 6f 70 65  nged default ope
02f0: 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e 20 74 6f  nssl location to
0300: 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 73 6c 20   /usr/local/ssl 
0310: 28 74 68 69 73 20 69 73 20 77 68 65 72 65 0a 09  (this is where..
0320: 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36 63 20 69  openssl 0.9.6c i
0330: 6e 73 74 61 6c 6c 73 20 62 79 20 64 65 66 61 75  nstalls by defau
0340: 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64 20 74 6f  lt)...Changed to
0350: 20 75 73 65 20 70 75 62 6c 69 63 20 54 63 6c 20   use public Tcl 
0360: 68 65 61 64 65 72 73 20 28 70 72 69 76 61 74 65  headers (private
0370: 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e 0a 0a 32   not needed)...2
0380: 30 30 31 2d 30 36 2d 32 31 20 20 4a 65 66 66 20  001-06-21  Jeff 
0390: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63  Hobbs  <jeffh@Ac
03a0: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a  tiveState.com>..
03b0: 09 54 4c 53 20 31 2e 34 2e 31 20 52 45 4c 45 41  .TLS 1.4.1 RELEA
03c0: 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65  SE...* configure
03d0: 3a 20 61 64 64 65 64 20 63 6f 6e 66 69 67 75 72  : added configur
03e0: 65 20 74 6f 20 43 56 53 0a 09 2a 20 63 6f 6e 66  e to CVS..* conf
03f0: 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 65 64 20  igure.in: moved 
0400: 74 6f 20 70 61 74 63 68 6c 65 76 65 6c 20 31 2e  to patchlevel 1.
0410: 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65  4.1...* Makefile
0420: 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65 64 20 27  .in: corrected '
0430: 64 69 73 74 27 20 74 61 72 67 65 74 0a 0a 09 2a  dist' target...*
0440: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 66 69 6c   tests/certs/fil
0450: 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 74 73 2f  e.srl:..* tests/
0460: 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a 0a 09 2a  certs/ca.pem:..*
0470: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c 69   tests/certs/cli
0480: 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74  ent.key:..* test
0490: 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e 70  s/certs/client.p
04a0: 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72  em:..* tests/cer
04b0: 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71 3a 0a 09  ts/client.req:..
04c0: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 70 72  * tests/certs/pr
04d0: 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a 20 74 65  ivkey.pem:..* te
04e0: 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65 72  sts/certs/server
04f0: 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f 63  .key:..* tests/c
0500: 65 72 74 73 2f 73 65 72 76 65 72 2e 70 65 6d 3a  erts/server.pem:
0510: 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f  ..* tests/certs/
0520: 73 65 72 76 65 72 2e 72 65 71 3a 0a 09 2a 20 74  server.req:..* t
0530: 65 73 74 73 2f 63 65 72 74 73 2f 63 61 63 65 72  ests/certs/cacer
0540: 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20  t.pem: replaced 
0550: 62 79 20 6e 65 77 20 63 61 2e 70 65 6d 0a 09 2a  by new ca.pem..*
0560: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 6b 65   tests/certs/ske
0570: 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64 20  y.pem: replaced 
0580: 62 79 20 6e 65 77 20 73 65 72 76 65 72 2e 6b 65  by new server.ke
0590: 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73  y..* tests/certs
05a0: 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61  /ckey.pem: repla
05b0: 63 65 64 20 62 79 20 6e 65 77 20 63 6c 69 65 6e  ced by new clien
05c0: 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f 63  t.key..* tests/c
05d0: 65 72 74 73 2f 52 45 41 44 4d 45 2e 74 78 74 3a  erts/README.txt:
05e0: 20 6e 65 77 20 73 65 74 20 6f 66 20 74 65 73 74   new set of test
05f0: 20 63 65 72 74 69 66 69 63 61 74 65 73 20 77 69   certificates wi
0600: 74 68 20 73 6f 6d 65 0a 09 52 45 41 44 4d 45 20  th some..README 
0610: 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72 20 67 65  info on their ge
0620: 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74 65  neration....* te
0630: 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74  sts/ciphers.test
0640: 3a 20 75 70 64 61 74 65 64 20 63 69 70 68 65 72  : updated cipher
0650: 73 20 65 78 70 65 63 74 65 64 20 77 69 74 68 20  s expected with 
0660: 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e 73 73 6c  default..openssl
0670: 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 65 73 74   build....* test
0680: 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a 20 75 70  s/tclIO.test: up
0690: 64 61 74 65 64 20 74 6f 20 75 73 65 20 6e 65 77  dated to use new
06a0: 20 6e 61 6d 65 73 20 66 6f 72 20 63 65 72 74 73   names for certs
06b0: 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d 30 33 2d  /keys...2001-03-
06c0: 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  14  Jeff Hobbs  
06d0: 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74 2e 61 63  <jeffh@gimlet.ac
06e0: 74 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e 0a 0a  tivestate.com>..
06f0: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e  .* tls.c (Tls_In
0700: 69 74 29 3a 20 61 64 64 20 64 6f 2f 77 68 69 6c  it): add do/whil
0710: 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20 6e 75 6d  e for random num
0720: 62 65 72 20 69 6e 69 74 69 61 6c 69 7a 61 74 69  ber initializati
0730: 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 72 6f 75  on..to work arou
0740: 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20 71 75 69  nd some OSes qui
0750: 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e 42 69 6c  rks.  (Ralph.Bil
0760: 6c 65 73 40 74 65 6c 74 65 63 68 2e 63 6f 6d 2e  les@teltech.com.
0770: 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d 30 37 20  au)..2000-09-07 
0780: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
0790: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
07a0: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28  m>...* tlsIO.c (
07b0: 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70 65 29  Tls_ChannelType)
07c0: 3a 20 73 65 74 20 74 79 70 65 4e 61 6d 65 20 66  : set typeName f
07d0: 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e 65 6c 20  ield of channel 
07e0: 74 79 70 65 20 74 6f 0a 09 22 74 6c 73 22 20 28  type to.."tls" (
07f0: 74 68 69 73 20 67 6f 74 20 6c 6f 73 74 20 69 6e  this got lost in
0800: 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61 6d 69 63   move to dynamic
0810: 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61 74 61   version compata
0820: 62 69 6c 69 74 79 0a 09 63 68 65 63 6b 69 6e 67  bility..checking
0830: 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 33 20 20  )...2000-08-23  
0840: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
0850: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
0860: 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52 45 4c 45  >...TLS 1.4 RELE
0870: 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  ASED...* Makefil
0880: 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 63 72 65  e.in (dist): cre
0890: 61 74 65 20 64 69 73 74 20 74 61 72 67 65 74 20  ate dist target 
08a0: 66 6f 72 20 61 72 63 68 69 76 65 20 64 69 73 74  for archive dist
08b0: 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a 20 74 65  ributions...* te
08c0: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 20 28  sts/tlsIO.test (
08d0: 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 64 64 65  tlsIO-8.1): adde
08e0: 64 20 61 20 64 65 6c 61 79 20 6f 6e 20 74 68 65  d a delay on the
08f0: 20 61 63 63 65 70 74 20 63 6c 6f 73 65 0a 09 74   accept close..t
0900: 6f 20 6d 61 6b 65 20 74 68 65 20 74 65 73 74 20  o make the test 
0910: 77 6f 72 6b 20 77 69 74 68 20 4f 70 65 6e 53 53  work with OpenSS
0920: 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20 28 64 6f  L on Windows (do
0930: 65 73 6e 27 74 20 61 66 66 65 63 74 0a 09 6f 74  esn't affect..ot
0940: 68 65 72 20 62 75 69 6c 64 73 29 2e 0a 0a 09 2a  her builds)....*
0950: 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64 61 74 65   tls.htm: update
0960: 64 20 77 69 74 68 20 6e 6f 74 65 73 20 66 6f 72  d with notes for
0970: 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 38 2d 32   1.4...2000-08-2
0980: 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  1  Jeff Hobbs  <
0990: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
09a0: 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  com>...* tests/t
09b0: 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 71 75 69  lsIO.test: requi
09c0: 72 65 20 61 74 20 6c 65 61 73 74 20 74 6c 73 31  re at least tls1
09d0: 2e 34 20 69 6e 20 74 65 73 74 20 73 75 69 74 65  .4 in test suite
09e0: 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38 20 20 4a  ...2000-08-18  J
09f0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
0a00: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  s@scriptics.com>
0a10: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f  ...* tls.c (Tls_
0a20: 49 6e 69 74 29 3a 20 61 64 64 65 64 20 63 61 6c  Init): added cal
0a30: 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65 64 20 74  l to RAND_seed t
0a40: 6f 20 73 65 65 64 20 74 68 65 20 53 53 4c 20 72  o seed the SSL r
0a50: 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 20 67 65  andom..number ge
0a60: 6e 65 72 61 74 6f 72 2e 20 20 57 69 74 68 6f 75  nerator.  Withou
0a70: 74 20 74 68 69 73 2c 20 4f 70 65 6e 53 53 4c 20  t this, OpenSSL 
0a80: 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c 20 61 6e  0.9.5 chokes, an
0a90: 64 20 69 6e 20 61 6e 79 0a 09 63 61 73 65 20 69  d in any..case i
0aa0: 74 20 69 73 20 61 20 62 69 67 20 73 65 63 75 72  t is a big secur
0ab0: 69 74 79 20 68 6f 6c 65 20 74 6f 20 64 6f 20 77  ity hole to do w
0ac0: 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09 2a 20 63  ithout it....* c
0ad0: 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28 4f 50 45  onfigure.in (OPE
0ae0: 4e 53 53 4c 29 3a 20 61 64 64 65 64 20 4e 4f 5f  NSSL): added NO_
0af0: 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52 43 35 20  IDEA and NO_RC5 
0b00: 64 65 66 69 6e 65 73 20 62 79 0a 09 64 65 66 61  defines by..defa
0b10: 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69  ult when compili
0b20: 6e 67 20 77 69 74 68 20 4f 70 65 6e 53 53 4c 2e  ng with OpenSSL.
0b30: 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 61  ...* tlsInt.h: a
0b40: 64 64 65 64 20 65 72 72 2e 68 20 69 6e 63 6c 75  dded err.h inclu
0b50: 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a  de...* tlsBIO.c:
0b60: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72  ..* tlsIO.c: cor
0b70: 72 65 63 74 65 64 20 70 65 64 61 6e 74 69 63 20  rected pedantic 
0b80: 63 61 73 74 20 65 72 72 6f 72 73 2e 0a 0a 32 30  cast errors...20
0b90: 30 30 2d 30 38 2d 31 36 20 20 4a 65 66 66 20 48  00-08-16  Jeff H
0ba0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72  obbs  <hobbs@scr
0bb0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
0bc0: 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65  tests/ciphers.te
0bd0: 73 74 3a 20 69 6d 70 72 6f 76 65 64 20 61 62 69  st: improved abi
0be0: 6c 69 74 79 20 74 6f 20 63 68 61 6e 67 65 20 63  lity to change c
0bf0: 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65 74 74 69  onstraint..setti
0c00: 6e 67 20 66 6f 72 20 77 68 65 74 68 65 72 20 75  ng for whether u
0c10: 73 65 72 20 63 6f 6d 70 69 6c 65 64 20 61 67 61  ser compiled aga
0c20: 69 6e 73 74 20 52 53 41 20 6f 72 20 4f 70 65 6e  inst RSA or Open
0c30: 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a 20 74 6c  SSL libs....* tl
0c40: 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20  s.c (Tls_Init): 
0c50: 63 6f 72 72 65 63 74 65 64 20 69 6e 74 65 72 70  corrected interp
0c60: 72 65 74 61 74 69 6f 6e 20 6f 66 20 76 65 72 73  retation of vers
0c70: 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 70 61 74  ion number..(pat
0c80: 63 68 6c 65 76 65 6c 20 61 6e 64 20 72 65 6c 65  chlevel and rele
0c90: 61 73 65 2f 73 65 72 69 61 6c 20 77 65 72 65 20  ase/serial were 
0ca0: 73 77 61 70 70 65 64 29 2e 0a 0a 32 30 30 30 2d  swapped)...2000-
0cb0: 30 38 2d 31 35 20 20 4a 65 66 66 20 48 6f 62 62  08-15  Jeff Hobb
0cc0: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
0cd0: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 52 45 41  ics.com>...* REA
0ce0: 44 4d 45 2e 74 78 74 3a 20 61 64 64 65 64 20 6e  DME.txt: added n
0cf0: 6f 74 65 73 20 61 62 6f 75 74 20 6e 65 65 64 20  otes about need 
0d00: 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b 2e 0a 0a  to use 8.2.0+...
0d10: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a 20  .* tlsInt.h:..* 
0d20: 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e  tls.c:..* tlsIO.
0d30: 63 3a 20 63 6f 72 72 65 63 74 65 64 20 73 74 72  c: corrected str
0d40: 75 63 74 75 72 65 20 69 6e 69 74 69 61 6c 69 7a  ucture initializ
0d50: 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b 20 77 68  ation to work wh
0d60: 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 20 77 69  en..compiling wi
0d70: 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20 63 6f 6d  th 8.2.  Now com
0d80: 70 69 6c 65 73 20 77 69 74 68 20 38 2e 32 2b 20  piles with 8.2+ 
0d90: 61 6e 64 20 74 65 73 74 65 64 20 74 6f 20 77 6f  and tested to wo
0da0: 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b 20 61 6e  rk..with 8.2+ an
0db0: 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 61 64  d dynamically ad
0dc0: 6a 75 73 74 20 74 6f 20 74 68 65 20 76 65 72 73  just to the vers
0dd0: 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74 20 77 61  ion of Tcl it wa
0de0: 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74 6f 2e 20  s..loaded into. 
0df0: 20 54 4c 53 20 77 69 6c 6c 20 66 61 69 6c 20 74   TLS will fail t
0e00: 68 65 20 74 65 73 74 20 73 75 69 74 65 20 77 69  he test suite wi
0e10: 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e 33 2e 31  th Tcl 8.2-8.3.1
0e20: 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61 6c 6c 2e  ....* tests/all.
0e30: 74 63 6c 3a 20 61 64 64 65 64 20 63 61 74 63 68  tcl: added catch
0e40: 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c 74 65 73   around ::tcltes
0e50: 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 61 74 68  t::normalizePath
0e60: 0a 09 62 65 63 61 75 73 65 20 69 74 20 64 6f 65  ..because it doe
0e70: 73 6e 27 74 20 65 78 69 73 74 20 69 6e 20 70 72  sn't exist in pr
0e80: 65 2d 38 2e 33 20 74 63 6c 74 65 73 74 2e 0a 0a  e-8.3 tcltest...
0e90: 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 43  .* tests/simpleC
0ea0: 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 2a 20 74  lient.tcl: ..* t
0eb0: 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 76 65  ests/simpleServe
0ec0: 72 2e 74 63 6c 3a 20 61 64 64 65 64 20 73 69 6d  r.tcl: added sim
0ed0: 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65 72 76 65  ple client/serve
0ee0: 72 20 74 65 73 74 20 73 63 72 69 70 74 73 0a 09  r test scripts..
0ef0: 74 68 61 74 20 75 73 65 20 74 65 73 74 20 63 65  that use test ce
0f00: 72 74 73 20 61 6e 64 20 63 61 6e 20 64 6f 20 73  rts and can do s
0f10: 69 6d 70 6c 65 20 73 74 72 65 73 73 20 74 65 73  imple stress tes
0f20: 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 34 20  ts...2000-08-14 
0f30: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
0f40: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
0f50: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a  m>...* tlsInt.h:
0f60: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20  ..* tlsIO.c:..* 
0f70: 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73  tlsBIO.c:..* tls
0f80: 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 72 6f 75  .c: changed arou
0f90: 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f 72 6b 69  nd to only worki
0fa0: 6e 67 20 77 69 74 68 20 38 2e 32 2e 30 2b 20 28  ng with 8.2.0+ (
0fb0: 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65 72 72 65  8.3.2+..preferre
0fc0: 64 29 2c 20 77 69 74 68 20 72 75 6e 74 69 6d 65  d), with runtime
0fd0: 20 63 68 65 63 6b 73 20 66 6f 72 20 70 72 65 2d   checks for pre-
0fe0: 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d 72 65 77   and post-io-rew
0ff0: 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20  rite....* tls.c 
1000: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 61 6e  (Tls_Init): chan
1010: 67 65 64 20 69 74 20 74 6f 20 72 65 71 75 69 72  ged it to requir
1020: 65 20 38 2e 33 2e 32 20 77 68 65 6e 20 54 63 6c  e 8.3.2 when Tcl
1030: 5f 49 6e 69 74 53 74 75 62 73 0a 09 77 61 73 20  _InitStubs..was 
1040: 63 61 6c 6c 65 64 20 62 65 63 61 75 73 65 20 77  called because w
1050: 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 70 65 6f  e don't want peo
1060: 70 6c 65 20 75 73 69 6e 67 20 54 4c 53 20 77 69  ple using TLS wi
1070: 74 68 20 74 68 65 0a 09 6f 72 69 67 69 6e 61 6c  th the..original
1080: 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c   stacked channel
1090: 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 2e   implementation.
10a0: 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20 20 4a 65  ..2000-07-26  Je
10b0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
10c0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
10d0: 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c 6c 20 63  ..* merged all c
10e0: 68 61 6e 67 65 73 20 66 72 6f 6d 20 74 6c 73 2d  hanges from tls-
10f0: 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74 65 20 62  1-3-io-rewrite b
1100: 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e 20 62 72  ack into main br
1110: 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74 73 2f 74  anch...* tests/t
1120: 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 61 74  lsIO.test: updat
1130: 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 66 69 78  ed comments, fix
1140: 65 64 20 61 20 70 63 43 72 61 73 68 20 63 61 73  ed a pcCrash cas
1150: 65 20 74 68 61 74 0a 09 77 61 73 20 64 75 65 20  e that..was due 
1160: 74 6f 20 64 65 62 75 67 20 61 73 73 65 72 74 69  to debug asserti
1170: 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73 20 53 53  on in Windows SS
1180: 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 49 6d  L....* tls.c (Im
1190: 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 72 65 6d  portObjCmd): rem
11a0: 6f 76 65 64 20 75 6e 6e 65 63 65 73 73 61 72 79  oved unnecessary
11b0: 20 75 73 65 20 6f 66 20 27 62 69 6f 27 20 61 72   use of 'bio' ar
11c0: 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 29 3a 20  g...(Tls_Init): 
11d0: 63 68 65 63 6b 20 72 65 74 75 72 6e 20 76 61 6c  check return val
11e0: 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62 72 61 72  ue of SSL_librar
11f0: 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f 20 6c 6f  y_init.  Also lo
1200: 74 73 20 6f 66 0a 09 77 68 69 74 65 73 70 61 63  ts of..whitespac
1210: 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f 72 65 20  e cleanup (more 
1220: 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20 73 74 79  like Tcl Eng sty
1230: 6c 65 20 67 75 69 64 65 29 2c 20 62 75 74 20 6e  le guide), but n
1240: 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20 77 61 73  ot all..code was
1250: 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a 0a 09 2a   cleaned up....*
1260: 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 6e 6f 72   tlsBIO.c: minor
1270: 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65 61   whitespace clea
1280: 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a  nup...* tlsIO.c:
1290: 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61 63   minor whitespac
12a0: 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28 54 6c 73  e cleanup...(Tls
12b0: 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 4f 75  InputProc, TlsOu
12c0: 74 70 75 74 50 72 6f 63 29 3a 20 41 64 64 65 64  tputProc): Added
12d0: 20 45 52 52 5f 63 6c 65 61 72 5f 65 72 72 6f 72   ERR_clear_error
12e0: 20 62 65 66 6f 72 65 20 63 61 6c 6c 73 0a 09 74   before calls..t
12f0: 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72 20 42 49  o BIO_read or BI
1300: 4f 5f 77 72 69 74 65 2c 20 62 65 63 61 75 73 65  O_write, because
1310: 20 77 65 20 63 6f 75 6c 64 20 6f 74 68 65 72 77   we could otherw
1320: 69 73 65 20 65 6e 64 20 75 70 0a 09 70 75 6c 6c  ise end up..pull
1330: 69 6e 67 20 61 6e 20 65 72 72 6f 72 20 6f 66 66  ing an error off
1340: 20 74 68 65 20 73 74 61 63 6b 20 74 68 61 74 20   the stack that 
1350: 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67 20 74 6f  didn't belong to
1360: 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63 6c 65 61   us.  Also..clea
1370: 6e 75 70 20 75 70 20 65 78 63 65 73 73 69 76 65  nup up excessive
1380: 20 75 73 65 20 6f 66 20 67 6f 74 6f 73 2e 0a 0a   use of gotos...
1390: 32 30 30 30 2d 30 37 2d 32 30 20 20 4a 65 66 66  2000-07-20  Jeff
13a0: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73   Hobbs  <hobbs@s
13b0: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
13c0: 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65  * tests/tlsIO.te
13d0: 73 74 3a 20 63 6f 72 72 65 63 74 65 64 20 76 61  st: corrected va
13e0: 72 69 6f 75 73 20 74 65 73 74 73 20 74 6f 20 62  rious tests to b
13f0: 65 20 63 6f 72 72 65 63 74 20 66 6f 72 20 54 4c  e correct for TL
1400: 53 0a 09 73 74 61 63 6b 65 64 20 63 68 61 6e 6e  S..stacked chann
1410: 65 6c 73 20 28 61 73 20 6f 70 70 6f 73 65 64 20  els (as opposed 
1420: 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20  to the standard 
1430: 73 6f 63 6b 65 74 73 20 74 68 65 20 74 65 73 74  sockets the test
1440: 0a 09 73 75 69 74 65 20 77 61 73 20 61 64 6f 70  ..suite was adop
1450: 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b 65 79 20  ted from).  Key 
1460: 64 69 66 66 65 72 65 6e 63 65 73 20 61 72 65 20  differences are 
1470: 74 68 61 74 20 54 4c 53 20 63 61 6e 6e 6f 74 0a  that TLS cannot.
1480: 09 6f 70 65 72 61 74 65 20 69 6e 20 6f 6e 65 20  .operate in one 
1490: 70 72 6f 63 65 73 73 20 77 69 74 68 6f 75 74 20  process without 
14a0: 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 62 65 69  all channels bei
14b0: 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 2c  ng non-blocking,
14c0: 20 6f 72 0a 09 74 68 65 20 68 61 6e 64 73 68 61   or..the handsha
14d0: 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b 2c 20 61  ke will block, a
14e0: 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 6d  nd handshaking m
14f0: 75 73 74 20 62 65 20 66 6f 72 63 65 64 20 69 6e  ust be forced in
1500: 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e 20 20 41   some..cases.  A
1510: 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b 65 73 20  lso, handshakes 
1520: 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20 63 6f  don't seem to co
1530: 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73 20 74 68  mplete unless th
1540: 65 20 63 6c 69 65 6e 74 0a 09 68 61 73 20 70 6c  e client..has pl
1550: 61 63 65 64 20 61 74 20 6c 65 61 73 74 20 6f 6e  aced at least on
1560: 65 20 62 79 74 65 20 66 6f 72 20 74 68 65 20 73  e byte for the s
1570: 65 72 76 65 72 20 74 6f 20 72 65 61 64 20 69 6e  erver to read in
1580: 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e 0a 0a 09   the channel....
1590: 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74 65 2e 74  * tests/remote.t
15a0: 63 6c 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68  cl: corrected th
15b0: 65 20 66 69 6e 64 69 6e 67 20 6f 66 20 74 65 73  e finding of tes
15c0: 74 73 20 63 65 72 74 69 66 69 63 61 74 65 73 0a  ts certificates.
15d0: 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73  ..* tlsIO.c (Tls
15e0: 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72 65 6d 6f  CloseProc): remo
15f0: 76 65 64 20 64 65 6c 65 74 69 6e 67 20 6f 66 20  ved deleting of 
1600: 74 69 6d 65 72 20 68 61 6e 64 6c 65 72 20 61 73  timer handler as
1610: 0a 09 74 68 61 74 20 69 73 20 68 61 6e 64 6c 65  ..that is handle
1620: 64 20 62 79 20 54 6c 73 5f 43 6c 65 61 6e 2e 0a  d by Tls_Clean..
1630: 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c 73  ..* tls.tcl (tls
1640: 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63 6f 72 72  ::_accept): corr
1650: 65 63 74 65 64 20 74 68 65 20 69 6e 74 65 72 6e  ected the intern
1660: 61 6c 20 5f 61 63 63 65 70 74 20 74 6f 0a 09 74  al _accept to..t
1670: 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61 63 6b 20  rickle callback 
1680: 65 72 72 6f 72 73 20 74 6f 20 74 68 65 20 75 73  errors to the us
1690: 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65  er....* Makefile
16a0: 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65 20 69 6e  .in: made the in
16b0: 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20 74  stall-binaries t
16c0: 61 72 67 65 74 20 72 65 67 65 6e 65 72 61 74 65  arget regenerate
16d0: 20 74 68 65 0a 09 70 6b 67 49 6e 64 65 78 2e 74   the..pkgIndex.t
16e0: 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e 20 20 54  cl correctly.  T
16f0: 68 65 20 74 65 73 74 20 74 61 72 67 65 74 20 70  he test target p
1700: 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c 64 6e 27  robably shouldn'
1710: 74 20 73 63 72 65 77 0a 09 69 74 20 75 70 2c 20  t screw..it up, 
1720: 62 75 74 20 74 68 69 73 20 69 73 20 74 6f 20 62  but this is to b
1730: 65 20 6f 6e 20 74 68 65 20 73 61 66 65 20 73 69  e on the safe si
1740: 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 37 20  de...2000-07-17 
1750: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
1760: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
1770: 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e  m>...* pkgIndex.
1780: 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66 69  tcl.in:..* confi
1790: 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65 64  gure.in: updated
17a0: 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e 34 0a   version to 1.4.
17b0: 0a 32 30 30 30 2d 30 37 2d 31 33 20 20 4a 65 66  .2000-07-13  Jef
17c0: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40  f Hobbs  <hobbs@
17d0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
17e0: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74  .* tests/tlsIO.t
17f0: 65 73 74 3a 20 65 6e 61 62 6c 65 64 20 74 65 73  est: enabled tes
1800: 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31 32 34 35  ts 2.10, 7.[1245
1810: 5d 20 28 74 68 65 72 65 20 69 73 20 6e 6f 20 33  ] (there is no 3
1820: 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77 20 70 61  ),..which now pa
1830: 73 73 2e 20 20 41 64 64 65 64 20 73 6f 6d 65 20  ss.  Added some 
1840: 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f 74 68 65  comments to othe
1850: 72 20 66 61 69 6c 69 6e 67 20 74 65 73 74 73 2e  r failing tests.
1860: 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20 20 4a 65  ..2000-07-11  Je
1870: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
1880: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
1890: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 68 61  ..* tlsIO.c: cha
18a0: 6e 67 65 64 20 61 6c 6c 20 74 68 65 20 63 68 61  nged all the cha
18b0: 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f 20 73 74  nnel procs to st
18c0: 61 72 74 20 77 69 74 68 20 54 6c 73 2a 20 66 6f  art with Tls* fo
18d0: 72 0a 09 62 65 74 74 65 72 20 70 61 72 69 74 79  r..better parity
18e0: 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e 67 20   when comparing 
18f0: 77 69 74 68 20 54 72 61 6e 73 66 6f 72 6d 20 63  with Transform c
1900: 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e 0a 09 52  hannel procs...R
1910: 65 77 72 6f 74 65 20 54 6c 73 57 61 74 63 68 50  ewrote TlsWatchP
1920: 72 6f 63 2c 20 61 64 64 65 64 20 54 6c 73 4e 6f  roc, added TlsNo
1930: 74 69 66 79 50 72 6f 63 20 61 63 63 6f 72 64 69  tifyProc accordi
1940: 6e 67 20 74 6f 20 74 68 65 20 6e 65 77 0a 09 63  ng to the new..c
1950: 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e 2c 20 77  hannel design, w
1960: 68 69 63 68 20 61 6c 73 6f 20 6c 65 61 76 65 73  hich also leaves
1970: 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61 6e 64 6c   TlsChannelHandl
1980: 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09 2a 20 74  er unused....* t
1990: 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43 74 72 6c  lsBIO.c (BioCtrl
19a0: 29 3a 20 63 68 61 6e 67 65 64 20 42 49 4f 5f 43  ): changed BIO_C
19b0: 54 52 4c 5f 46 4c 55 53 48 20 63 61 73 65 20 74  TRL_FLUSH case t
19c0: 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72 69 74 65  o use..Tcl_Write
19d0: 52 61 77 20 69 6e 73 74 65 61 64 20 6f 66 20 54  Raw instead of T
19e0: 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20 6f 70 65  cl_Flush (to ope
19f0: 72 61 74 65 20 6f 6e 20 63 6f 72 72 65 63 74 20  rate on correct 
1a00: 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 68 65 20  channel..in the 
1a10: 73 74 61 63 6b 20 69 6e 73 74 65 61 64 20 6f 66  stack instead of
1a20: 20 73 74 61 72 74 69 6e 67 20 61 74 20 74 68 65   starting at the
1a30: 20 74 6f 70 20 61 67 61 69 6e 29 2e 20 20 57 6f   top again).  Wo
1a40: 75 6c 64 0a 09 6f 74 68 65 72 77 69 73 65 20 63  uld..otherwise c
1a50: 61 75 73 65 20 61 20 72 65 63 75 72 73 69 76 65  ause a recursive
1a60: 20 73 74 61 63 6b 20 62 6f 6d 62 20 77 68 65 6e   stack bomb when
1a70: 20 69 6d 70 6c 69 63 69 74 20 68 61 6e 64 73 68   implicit handsh
1a80: 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 66 66 65  aking..took effe
1a90: 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c  ct....* tests/tl
1aa0: 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d 6f 76 65  sIO.test: remove
1ab0: 64 20 63 68 61 6e 67 65 73 20 6d 61 64 65 20 74  d changes made t
1ac0: 6f 20 74 65 73 74 20 73 75 69 74 65 20 28 61 6c  o test suite (al
1ad0: 6c 20 74 65 73 74 73 0a 09 74 68 61 74 20 72 61  l tests..that ra
1ae0: 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20 70 61 73  n before now pas
1af0: 73 20 63 6f 72 72 65 63 74 6c 79 29 2c 20 61 6e  s correctly), an
1b00: 64 20 63 68 61 6e 67 65 64 20 73 6f 6d 65 20 61  d changed some a
1b10: 63 63 65 70 74 20 70 72 6f 63 0a 09 61 72 67 73  ccept proc..args
1b20: 20 74 6f 20 72 65 66 6c 65 63 74 20 74 68 61 74   to reflect that
1b30: 20 61 20 73 6f 63 6b 20 69 73 20 61 6e 20 61 72   a sock is an ar
1b40: 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e 0a 0a  g, not a file...
1b50: 32 30 30 30 2d 30 37 2d 31 30 20 20 4a 65 66 66  2000-07-10  Jeff
1b60: 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73   Hobbs  <hobbs@s
1b70: 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09  criptics.com>...
1b80: 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 57  * tlsBIO.c (BioW
1b90: 72 69 74 65 2c 20 42 69 6f 52 65 61 64 29 3a 20  rite, BioRead): 
1ba0: 63 68 61 6e 67 65 64 20 54 63 6c 5f 52 65 61 64  changed Tcl_Read
1bb0: 2f 57 72 69 74 65 20 74 6f 0a 09 54 63 6c 5f 52  /Write to..Tcl_R
1bc0: 65 61 64 52 61 77 2f 54 63 6c 57 72 69 74 65 52  eadRaw/TclWriteR
1bd0: 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61  aw....* tls.c: a
1be0: 64 64 65 64 20 75 73 65 20 6f 66 20 54 63 6c 5f  dded use of Tcl_
1bf0: 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c 20 61 66  GetTopChannel af
1c00: 74 65 72 20 54 63 6c 5f 47 65 74 43 68 61 6e 6e  ter Tcl_GetChann
1c10: 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72 65 74 75  el and..got retu
1c20: 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20 54 63  rn value from Tc
1c30: 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c 2e 0a  l_StackChannel..
1c40: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e  ..* tests/tlsIO.
1c50: 74 65 73 74 3a 20 61 64 64 65 64 20 73 6f 6d 65  test: added some
1c60: 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 74 68 61   handshaking tha
1c70: 74 20 73 68 6f 75 6c 64 6e 27 74 20 62 65 0a 09  t shouldn't be..
1c80: 6e 65 63 65 73 73 61 72 79 2c 20 62 75 74 20 77  necessary, but w
1c90: 65 20 63 72 61 73 68 20 6f 74 68 65 72 77 69 73  e crash otherwis
1ca0: 65 20 28 6e 65 65 64 73 20 6d 6f 72 65 20 74 65  e (needs more te
1cb0: 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 6c 73 49  sting)....* tlsI
1cc0: 4f 2e 63 3a 20 61 64 64 65 64 20 73 75 70 70 6f  O.c: added suppo
1cd0: 72 74 20 66 6f 72 20 22 63 6f 72 72 65 63 74 65  rt for "correcte
1ce0: 64 22 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e  d" stacked chann
1cf0: 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 65 20 61  els.  All..the a
1d00: 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73 20 61 72  bove channels ar
1d10: 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e 4e 45 4c  e in TCL_CHANNEL
1d20: 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69 66 64 65  _VERSION_2 #ifde
1d30: 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20  fs...2000-06-05 
1d40: 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20   Scott Stanton  
1d50: 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f  <stanton@ajubaso
1d60: 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a  lutions.com>...*
1d70: 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 46 69   Makefile.in: Fi
1d80: 78 65 64 20 62 72 6f 6b 65 6e 20 74 65 73 74 20  xed broken test 
1d90: 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74 6c 73 49  target....* tlsI
1da0: 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 2e 63 3a  nt.h: ..* tls.c:
1db0: 20 43 6c 65 61 6e 65 64 20 75 70 20 64 65 63 6c   Cleaned up decl
1dc0: 61 72 61 74 69 6f 6e 73 20 6f 66 20 54 6c 73 5f  arations of Tls_
1dd0: 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69 64 20 65  Clean to avoid e
1de0: 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e 64 6f 77  rrors on..Window
1df0: 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 30 30 2d  s (lint)...2000-
1e00: 30 36 2d 30 35 20 20 42 72 65 6e 74 20 57 65 6c  06-05  Brent Wel
1e10: 63 68 20 3c 77 65 6c 63 68 40 61 6a 75 62 61 73  ch <welch@ajubas
1e20: 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09  olutions.com>...
1e30: 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49 4f 2e 63  * tls.c, tlsIO.c
1e40: 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f 46 72 65  :  Split Tls_Fre
1e50: 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c 65 61 6e  e into Tls_Clean
1e60: 2c 20 77 68 69 63 68 20 64 6f 65 73 0a 09 74 68  , which does..th
1e70: 65 20 53 53 4c 20 63 6c 65 61 6e 75 70 2c 20 61  e SSL cleanup, a
1e80: 6e 64 20 74 68 65 20 54 63 6c 5f 46 72 65 65 20  nd the Tcl_Free 
1e90: 63 61 6c 6c 2e 20 20 49 74 20 69 73 20 69 6d 70  call.  It is imp
1ea0: 6f 72 74 61 6e 74 20 74 6f 20 73 68 75 74 64 6f  ortant to shutdo
1eb0: 77 6e 0a 09 74 68 65 20 53 53 4c 20 73 74 61 74  wn..the SSL stat
1ec0: 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75 73 6c 79  e "synchronously
1ed0: 22 20 64 75 72 69 6e 67 20 61 20 73 74 61 63 6b  " during a stack
1ee0: 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30 30 30 2d  ed flush...2000-
1ef0: 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61  06-01  Scott Sta
1f00: 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 61  nton  <stanton@a
1f10: 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f  jubasolutions.co
1f20: 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20  m>...* tlsIO.c: 
1f30: 52 65 73 74 6f 72 65 64 20 63 61 6c 6c 20 74 6f  Restored call to
1f40: 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e   Tcl_NotifyChann
1f50: 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e 65 6c 48  el from ChannelH
1f60: 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e 73 75 72  andler..to ensur
1f70: 65 20 74 68 61 74 20 65 76 65 6e 74 73 20 70 72  e that events pr
1f80: 6f 70 61 67 61 74 65 20 66 72 6f 6d 20 74 68 65  opagate from the
1f90: 20 6c 6f 77 65 72 20 64 72 69 76 65 72 2e 20 20   lower driver.  
1fa0: 54 68 69 73 20 6d 61 79 0a 09 72 65 73 75 6c 74  This may..result
1fb0: 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65 20   in an infinite 
1fc0: 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 63 61 73  loop in some cas
1fd0: 65 73 2c 20 73 6f 20 74 68 69 73 20 69 73 20 6e  es, so this is n
1fe0: 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66 69 78 2e  ot a total..fix.
1ff0: 20 20 54 68 69 73 20 6d 61 79 20 62 65 20 73 75    This may be su
2000: 66 66 69 63 69 65 6e 74 20 66 6f 72 20 6e 6f 77  fficient for now
2010: 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42 75 67 3a  , however. [Bug:
2020: 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 36 2d   5623]..2000-06-
2030: 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f  01  Scott Stanto
2040: 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73 63 72 69  n  <stanton@scri
2050: 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74  ptics.com>...* t
2060: 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 20  lsIO.c: Restore 
2070: 74 68 65 20 70 72 65 76 69 6f 75 73 20 76 65 72  the previous ver
2080: 73 69 6f 6e 2e 20 20 46 69 78 65 64 20 74 68 65  sion.  Fixed the
2090: 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f 0a 09 69   CloseProc so..i
20a0: 74 20 75 6e 72 65 67 69 73 74 65 72 73 20 74 68  t unregisters th
20b0: 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65  e channel handle
20c0: 72 20 6f 6e 20 74 68 65 20 73 75 70 65 72 63 65  r on the superce
20d0: 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 73  ded channel..ins
20e0: 74 65 61 64 20 6f 66 20 74 68 65 20 75 70 70 65  tead of the uppe
20f0: 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c 73 6f 20  r channel. Also 
2100: 72 65 6d 6f 76 65 64 20 74 68 65 20 63 61 6c 6c  removed the call
2110: 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79 43   to..Tcl_NotifyC
2120: 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65 20 43 68  hannel in the Ch
2130: 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 62 65 63  annelHandler bec
2140: 61 75 73 65 20 74 68 69 73 20 77 69 6c 6c 20 72  ause this will r
2150: 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20 69 6e 66  esult..in an inf
2160: 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66 20 64 61  inite loop if da
2170: 74 61 20 69 73 20 65 76 65 72 20 62 75 66 66 65  ta is ever buffe
2180: 72 65 64 20 69 6e 20 74 68 65 20 42 49 4f 0a 09  red in the BIO..
2190: 73 74 72 75 63 74 75 72 65 2e 20 5b 42 75 67 3a  structure. [Bug:
21a0: 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 35 2d   5623]..2000-05-
21b0: 33 31 20 20 42 72 65 6e 74 20 57 65 6c 63 68 20  31  Brent Welch 
21c0: 3c 77 65 6c 63 68 40 73 63 72 69 70 74 69 63 73  <welch@scriptics
21d0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a  .com>...* tls.c:
21e0: 20 43 68 61 6e 67 65 20 74 68 65 20 43 68 61 6e   Change the Chan
21f0: 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f 20 62 65  nelHandler to be
2200: 20 72 65 67 69 73 74 65 72 65 64 20 6f 6e 20 74   registered on t
2210: 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e 6e 65 6c  he main..channel
2220: 20 61 73 20 6f 70 70 73 65 64 20 74 6f 20 74 68   as oppsed to th
2230: 65 20 22 70 61 72 65 6e 74 22 2c 20 6f 72 20 73  e "parent", or s
2240: 75 70 65 72 63 65 65 64 65 64 2c 20 63 68 61 6e  uperceeded, chan
2250: 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69 73 20 62  nel.  This..is b
2260: 65 63 61 75 73 65 20 74 68 65 20 73 6f 63 6b 65  ecause the socke
2270: 74 20 64 72 69 76 65 72 20 6e 6f 74 69 66 69 65  t driver notifie
2280: 73 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e  s the main chann
2290: 65 6c 2c 20 61 6e 64 20 74 68 65 72 65 0a 09 61  el, and there..a
22a0: 72 65 20 74 69 6d 65 73 20 77 69 74 68 20 74 68  re times with th
22b0: 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 20 67  e main channel g
22c0: 65 74 73 20 63 6c 6f 73 65 64 2c 20 62 75 74 20  ets closed, but 
22d0: 74 68 65 20 73 75 70 65 72 63 65 64 65 64 0a 09  the superceded..
22e0: 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65 74 20 63  one is not yet c
22f0: 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 65 20 63  losed.  If the c
2300: 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20 67  hannel handler g
2310: 65 74 73 20 74 72 69 67 67 65 72 65 64 20 69 6e  ets triggered in
2320: 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f 70 65 6e  ..this half-open
2330: 20 73 74 61 74 65 20 69 74 20 69 73 20 61 73 73   state it is ass
2340: 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65  ociated with the
2350: 20 73 75 70 65 72 63 65 65 64 65 64 0a 09 63 68   superceeded..ch
2360: 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75 73 65 73  annedl, but uses
2370: 20 69 74 73 20 70 72 69 76 61 74 65 20 70 6f 69   its private poi
2380: 6e 74 65 72 20 74 6f 20 74 68 65 20 6d 61 69 6e  nter to the main
2390: 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69 63 68 0a   channel, which.
23a0: 09 69 73 20 6d 6f 73 74 6c 79 20 64 65 73 74 72  .is mostly destr
23b0: 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e 61 74 65  oyed.  Eliminate
23c0: 64 20 74 68 65 20 72 65 64 75 6e 64 61 6e 74 20  d the redundant 
23d0: 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74  call to..Tcl_Not
23e0: 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20  ifyChannel from 
23f0: 54 6c 73 57 61 74 63 68 50 72 6f 63 2e 20 5b 42  TlsWatchProc. [B
2400: 75 67 3a 20 35 36 32 33 5d 0a                    ug: 5623].