Hex Artifact Content

Artifact 706a07e2f7aa91870ef6b3a3dea9e24afbbfc04f:


0000: 32 30 30 34 2d 30 33 2d 31 39 20 20 4a 65 66 66  2004-03-19  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 63 20 28 54 6c 73 5f 49  ..* tls.c (Tls_I
0040: 6e 69 74 29 3a 20 20 20 72 65 70 6c 61 63 65 64  nit):   replaced
0050: 20 6f 6c 64 65 72 20 54 45 41 20 63 6f 6e 66 69   older TEA confi
0060: 67 20 77 69 74 68 20 6e 65 77 65 72 0a 09 2a 20  g with newer..* 
0070: 63 6f 6e 66 69 67 2f 2a 20 28 72 65 6d 6f 76 65  config/* (remove
0080: 64 29 3a 0a 09 2a 20 70 6b 67 49 6e 64 65 78 2e  d):..* pkgIndex.
0090: 74 63 6c 2e 69 6e 2c 20 73 74 72 6e 63 61 73 65  tcl.in, strncase
00a0: 63 6d 70 2e 63 20 28 72 65 6d 6f 76 65 64 29 3a  cmp.c (removed):
00b0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c  ..* Makefile.in,
00c0: 20 61 63 6c 6f 63 61 6c 2e 6d 34 2c 20 63 6f 6e   aclocal.m4, con
00d0: 66 69 67 75 72 65 2c 20 63 6f 6e 66 69 67 75 72  figure, configur
00e0: 65 2e 69 6e 3a 0a 09 2a 20 74 63 6c 63 6f 6e 66  e.in:..* tclconf
00f0: 69 67 2f 52 45 41 44 4d 45 2e 74 78 74 2c 20 74  ig/README.txt, t
0100: 63 6c 63 6f 6e 66 69 67 2f 69 6e 73 74 61 6c 6c  clconfig/install
0110: 2d 73 68 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74  -sh, tclconfig/t
0120: 63 6c 2e 6d 34 3a 0a 0a 32 30 30 34 2d 30 33 2d  cl.m4:..2004-03-
0130: 31 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 20  17  Dan Razzell 
0140: 3c 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69  <research@starfi
0150: 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09  shsystems.ca>...
0160: 2a 20 74 6c 73 58 35 30 39 2e 63 3a 09 41 64 64  * tlsX509.c:.Add
0170: 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6c 6f 6e   support for lon
0180: 67 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 72 73  g serial numbers
0190: 20 70 65 72 20 52 46 43 20 33 32 38 30 2e 0a 09   per RFC 3280...
01a0: 09 09 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77 20  ..Format is now 
01b0: 68 65 78 61 64 65 63 69 6d 61 6c 2e 20 0a 09 09  hexadecimal. ...
01c0: 09 5b 52 65 71 75 65 73 74 20 23 39 31 35 33 31  .[Request #91531
01d0: 33 5d 0a 09 09 09 43 6f 72 72 65 63 74 6c 79 20  3]....Correctly 
01e0: 63 6f 6e 76 65 72 74 20 63 65 72 74 69 66 69 63  convert certific
01f0: 61 74 65 20 44 69 73 74 69 6e 67 75 69 73 68 65  ate Distinguishe
0200: 64 20 4e 61 6d 65 73 0a 09 09 09 74 6f 20 54 63  d Names....to Tc
0210: 6c 20 73 74 72 69 6e 67 20 72 65 70 72 65 73 65  l string represe
0220: 6e 74 61 74 69 6f 6e 2e 20 20 45 6c 69 6d 69 6e  ntation.  Elimin
0230: 61 74 65 73 20 75 73 65 20 6f 66 0a 09 09 09 64  ates use of....d
0240: 65 70 72 65 63 61 74 65 64 20 4f 70 65 6e 53 53  eprecated OpenSS
0250: 4c 20 66 75 6e 63 74 69 6f 6e 2e 20 20 46 6f 72  L function.  For
0260: 6d 61 74 20 69 73 20 6e 6f 77 20 63 6f 6d 70 6c  mat is now compl
0270: 69 61 6e 74 0a 09 09 09 77 69 74 68 20 52 46 43  iant....with RFC
0280: 20 32 32 35 33 2e 20 20 5b 52 65 71 75 65 73 74   2253.  [Request
0290: 20 23 39 31 35 33 31 35 5d 0a 0a 32 30 30 34 2d   #915315]..2004-
02a0: 30 32 2d 31 37 20 20 44 61 6e 20 52 61 7a 7a 65  02-17  Dan Razze
02b0: 6c 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61  ll <research@sta
02c0: 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e  rfishsystems.ca>
02d0: 0a 0a 09 54 4c 53 20 31 2e 35 2e 30 20 52 45 4c  ...TLS 1.5.0 REL
02e0: 45 41 53 45 0a 0a 32 30 30 34 2d 30 32 2d 31 32  EASE..2004-02-12
02f0: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72    Dan Razzell.<r
0300: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68  esearch@starfish
0310: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20  systems.ca>...* 
0320: 74 6c 73 2e 63 3a 09 41 6c 6c 6f 77 20 76 65 72  tls.c:.Allow ver
0330: 69 66 79 20 63 61 6c 6c 62 61 63 6b 20 74 6f 20  ify callback to 
0340: 72 65 74 75 72 6e 20 65 6d 70 74 79 20 72 65 73  return empty res
0350: 75 6c 74 2e 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a  ult...* tls.htm:
0360: 09 44 6f 63 75 6d 65 6e 74 20 63 61 6c 6c 62 61  .Document callba
0370: 63 6b 20 62 65 68 61 76 69 6f 72 73 2e 0a 0a 32  ck behaviors...2
0380: 30 30 34 2d 30 32 2d 31 31 20 20 44 61 6e 20 52  004-02-11  Dan R
0390: 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68  azzell.<research
03a0: 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73  @starfishsystems
03b0: 2e 63 61 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  .ca>...* tests/t
03c0: 6c 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 72 65  lsIO.test:..* re
03d0: 6d 6f 74 65 2e 74 63 6c 3a 09 43 6f 6d 70 6c 65  mote.tcl:.Comple
03e0: 74 65 20 70 72 69 76 61 74 65 20 6b 65 79 20 6e  te private key n
03f0: 61 6d 65 20 63 68 61 6e 67 65 73 20 66 72 6f 6d  ame changes from
0400: 20 32 30 30 31 2d 30 36 2d 32 31 2e 0a 0a 32 30   2001-06-21...20
0410: 30 34 2d 30 32 2d 30 33 20 20 44 61 6e 20 52 61  04-02-03  Dan Ra
0420: 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40  zzell <research@
0430: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e  starfishsystems.
0440: 63 61 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65  ca>...* Makefile
0450: 2e 69 6e 3a 09 52 65 6d 6f 76 65 64 20 63 69 72  .in:.Removed cir
0460: 63 75 6c 61 72 20 64 65 70 65 6e 64 65 6e 63 79  cular dependency
0470: 2e 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 09 4d  ...* tlsInt.h:.M
0480: 61 6b 65 20 66 75 6e 63 74 69 6f 6e 20 64 65 63  ake function dec
0490: 6c 61 72 61 74 69 6f 6e 73 20 65 78 70 6c 69 63  larations explic
04a0: 69 74 2e 0a 09 2a 20 74 6c 73 2e 63 3a 09 46 69  it...* tls.c:.Fi
04b0: 78 20 74 79 70 65 20 6d 61 74 63 68 20 61 6e 64  x type match and
04c0: 20 75 6e 75 73 65 64 20 76 61 72 69 61 62 6c 65   unused variable
04d0: 20 77 61 72 6e 69 6e 67 73 2e 0a 09 2a 20 74 6c   warnings...* tl
04e0: 73 42 49 4f 2e 63 3a 09 46 69 78 20 74 79 70 65  sBIO.c:.Fix type
04f0: 20 6d 61 74 63 68 20 77 61 72 6e 69 6e 67 2e 0a   match warning..
0500: 0a 32 30 30 33 2d 31 32 2d 31 35 20 20 44 61 6e  .2003-12-15  Dan
0510: 20 52 61 7a 7a 65 6c 6c 09 3c 72 65 73 65 61 72   Razzell.<resear
0520: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65  ch@starfishsyste
0530: 6d 73 2e 63 61 3e 0a 0a 09 2a 20 70 6b 67 49 6e  ms.ca>...* pkgIn
0540: 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 74  dex.tcl.in:..* t
0550: 6c 73 2e 68 74 6d 3a 0a 09 2a 20 74 65 73 74 73  ls.htm:..* tests
0560: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64  /tlsIO.test: upd
0570: 61 74 65 64 20 76 65 72 73 69 6f 6e 20 74 6f 20  ated version to 
0580: 31 2e 35 2e 0a 0a 32 30 30 33 2d 31 30 2d 30 37  1.5...2003-10-07
0590: 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72    Dan Razzell.<r
05a0: 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68  esearch@starfish
05b0: 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20  systems.ca>...* 
05c0: 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65  tests/ciphers.te
05d0: 73 74 3a 20 75 70 64 61 74 65 64 20 6c 69 73 74  st: updated list
05e0: 20 6f 66 20 74 65 73 74 65 64 20 63 69 70 68 65   of tested ciphe
05f0: 72 73 20 74 6f 20 63 6f 72 72 65 73 70 6f 6e 64  rs to correspond
0600: 0a 09 2a 20 77 69 74 68 20 74 68 6f 73 65 20 61  ..* with those a
0610: 76 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20 4f 70  vailable from Op
0620: 65 6e 53 53 4c 2e 20 5b 52 65 71 75 65 73 74 20  enSSL. [Request 
0630: 23 38 31 31 39 38 31 5d 0a 0a 32 30 30 33 2d 31  #811981]..2003-1
0640: 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a 65 6c  0-07  Dan Razzel
0650: 6c 20 3c 72 65 73 65 61 72 63 68 40 73 74 61 72  l <research@star
0660: 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a  fishsystems.ca>.
0670: 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64 64 65 64  ..* tls.c: added
0680: 20 43 4f 4e 53 54 20 77 69 74 68 20 69 6e 74 65   CONST with inte
0690: 6e 74 20 73 69 6d 69 6c 61 72 20 74 6f 20 74 68  nt similar to th
06a0: 6f 73 65 20 66 72 6f 6d 20 32 30 30 32 2d 30 32  ose from 2002-02
06b0: 2d 30 34 2e 0a 09 5b 52 65 71 75 65 73 74 20 23  -04...[Request #
06c0: 38 31 31 39 31 31 5d 0a 0a 32 30 30 33 2d 30 37  811911]..2003-07
06d0: 2d 30 37 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -07  Jeff Hobbs 
06e0: 20 3c 6a 65 66 66 68 40 41 63 74 69 76 65 53 74   <jeffh@ActiveSt
06f0: 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73  ate.com>...* tls
0700: 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20  .c (Tls_Init):  
0710: 20 61 64 64 65 64 20 74 6c 73 3a 3a 6d 69 73 63   added tls::misc
0720: 20 63 6f 6d 6d 61 6e 64 20 70 72 6f 76 69 64 65   command provide
0730: 64 20 62 79 0a 09 2a 20 74 6c 73 58 35 30 39 2e  d by..* tlsX509.
0740: 63 3a 20 20 20 20 20 20 20 20 20 20 57 6f 6a 63  c:          Wojc
0750: 69 65 63 68 20 4b 6f 63 6a 61 6e 20 28 77 6f 6a  iech Kocjan (woj
0760: 63 69 65 63 68 20 6b 6f 63 6a 61 6e 2e 6f 72 67  ciech kocjan.org
0770: 29 0a 09 2a 20 74 65 73 74 73 2f 6b 65 79 74 65  )..* tests/keyte
0780: 73 74 31 2e 74 63 6c 3a 20 74 6f 20 65 78 70 6f  st1.tcl: to expo
0790: 73 65 20 6d 6f 72 65 20 6c 6f 77 2d 6c 65 76 65  se more low-leve
07a0: 6c 20 53 53 4c 20 63 6f 6d 6d 61 6e 64 73 0a 09  l SSL commands..
07b0: 2a 20 74 65 73 74 73 2f 6b 65 79 74 65 73 74 32  * tests/keytest2
07c0: 2e 74 63 6c 3a 0a 0a 32 30 30 33 2d 30 35 2d 31  .tcl:..2003-05-1
07d0: 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c  5  Dan Razzell.<
07e0: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73  research@starfis
07f0: 68 73 79 73 74 65 6d 73 2e 63 61 3e 20 0a 0a 09  hsystems.ca> ...
0800: 2a 20 74 6c 73 2e 74 63 6c 3a 0a 09 2a 20 74 6c  * tls.tcl:..* tl
0810: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63  sInt.h:..* tls.c
0820: 3a 20 61 64 64 20 73 75 70 70 6f 72 74 20 66 6f  : add support fo
0830: 72 20 62 69 6e 64 69 6e 67 20 61 20 70 61 73 73  r binding a pass
0840: 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 20 74 6f  word callback to
0850: 20 74 68 65 20 73 6f 63 6b 65 74 2e 0a 09 4e 6f   the socket...No
0860: 77 20 65 61 63 68 20 73 6f 63 6b 65 74 20 63 61  w each socket ca
0870: 6e 20 68 61 76 65 20 69 74 73 20 6f 77 6e 20 63  n have its own c
0880: 6f 6d 6d 61 6e 64 20 61 6e 64 20 70 61 73 73 77  ommand and passw
0890: 6f 72 64 20 63 61 6c 6c 62 61 63 6b 73 20 69 6e  ord callbacks in
08a0: 73 74 65 61 64 0a 09 6f 66 20 62 65 69 6e 67 20  stead..of being 
08b0: 66 6f 72 63 65 64 20 74 6f 20 68 61 76 65 20 61  forced to have a
08c0: 6c 6c 20 70 61 73 73 77 6f 72 64 20 6d 61 6e 61  ll password mana
08d0: 67 65 6d 65 6e 74 20 70 61 73 73 20 74 68 72 6f  gement pass thro
08e0: 75 67 68 20 61 20 63 6f 6d 6d 6f 6e 0a 09 70 72  ugh a common..pr
08f0: 6f 63 65 64 75 72 65 2e 20 20 54 68 65 20 63 6f  ocedure.  The co
0900: 6d 6d 6f 6e 20 70 61 73 73 77 6f 72 64 20 70 72  mmon password pr
0910: 6f 63 65 64 75 72 65 20 69 73 20 72 65 74 61 69  ocedure is retai
0920: 6e 65 64 20 66 6f 72 20 63 6f 6d 70 61 74 69 62  ned for compatib
0930: 69 6c 69 74 79 0a 09 62 75 74 20 69 74 73 20 75  ility..but its u
0940: 73 65 20 73 68 6f 75 6c 64 20 62 65 20 44 45 50  se should be DEP
0950: 52 45 43 41 54 45 44 2e 0a 09 41 64 64 20 76 65  RECATED...Add ve
0960: 72 73 69 6f 6e 20 63 6f 6d 6d 61 6e 64 20 74 6f  rsion command to
0970: 20 72 65 74 75 72 6e 20 4f 70 65 6e 53 53 4c 20   return OpenSSL 
0980: 76 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 2e 0a  version string..
0990: 09 52 65 6d 6f 76 65 20 75 6e 73 74 61 62 6c 65  .Remove unstable
09a0: 20 77 6f 72 6b 61 72 6f 75 6e 64 73 20 6e 65 65   workarounds nee
09b0: 64 65 64 20 66 6f 72 20 76 65 72 69 66 79 20 69  ded for verify i
09c0: 6e 20 6f 62 73 6f 6c 65 74 65 20 76 65 72 73 69  n obsolete versi
09d0: 6f 6e 73 20 6f 66 0a 09 4f 70 65 6e 53 53 4c 2e  ons of..OpenSSL.
09e0: 0a 09 46 69 78 20 6d 65 6d 6f 72 79 20 6c 65 61  ..Fix memory lea
09f0: 6b 2e 20 5b 52 65 71 75 65 73 74 20 23 36 34 30  k. [Request #640
0a00: 36 36 30 5d 0a 09 4d 6f 72 65 20 63 61 73 74 73  660]..More casts
0a10: 20 74 6f 20 65 6c 69 6d 69 6e 61 74 65 20 63 6f   to eliminate co
0a20: 6d 70 69 6c 65 72 20 77 61 72 6e 69 6e 67 73 2e  mpiler warnings.
0a30: 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 20 64 6f  ...* tls.htm: do
0a40: 63 75 6d 65 6e 74 20 70 61 73 73 77 6f 72 64 20  cument password 
0a50: 63 61 6c 6c 62 61 63 6b 2e 0a 09 43 6f 72 72 65  callback...Corre
0a60: 63 74 20 74 65 63 68 6e 69 63 61 6c 20 61 6e 64  ct technical and
0a70: 20 74 79 70 6f 67 72 61 70 68 69 63 20 65 72 72   typographic err
0a80: 6f 72 73 2e 0a 0a 09 2a 20 52 45 41 44 4d 45 2e  ors....* README.
0a90: 74 78 74 3a 20 69 64 65 6e 74 69 66 79 20 76 65  txt: identify ve
0aa0: 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53  rsions of OpenSS
0ab0: 4c 20 77 68 69 63 68 20 66 69 78 20 6b 6e 6f 77  L which fix know
0ac0: 6e 20 70 72 6f 62 6c 65 6d 73 2e 0a 09 47 65 6e  n problems...Gen
0ad0: 65 72 61 6c 20 77 61 72 6e 69 6e 67 20 6f 66 20  eral warning of 
0ae0: 73 65 63 75 72 69 74 79 20 70 72 6f 62 6c 65 6d  security problem
0af0: 73 20 69 6e 20 6f 6c 64 65 72 20 76 65 72 73 69  s in older versi
0b00: 6f 6e 73 20 6f 66 20 4f 70 65 6e 53 53 4c 2e 0a  ons of OpenSSL..
0b10: 0a 32 30 30 32 2d 30 32 2d 30 34 20 20 4a 65 66  .2002-02-04  Jef
0b20: 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40  f Hobbs  <jeffh@
0b30: 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e  ActiveState.com>
0b40: 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a  ...* tls.htm:..*
0b50: 20 74 6c 73 2e 63 3a 20 61 64 64 65 64 20 73 75   tls.c: added su
0b60: 70 70 6f 72 74 20 66 6f 72 20 6c 6f 63 61 6c 20  pport for local 
0b70: 63 65 72 74 69 66 69 63 61 74 65 20 73 74 61 74  certificate stat
0b80: 75 73 20 63 68 65 63 6b 2c 20 61 73 20 77 65 6c  us check, as wel
0b90: 6c 0a 09 61 73 20 72 65 74 75 72 6e 69 6e 67 20  l..as returning 
0ba0: 74 68 65 20 23 20 6f 66 20 62 69 74 73 20 69 6e  the # of bits in
0bb0: 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 79   the session key
0bc0: 2e 20 5b 50 61 74 63 68 20 23 35 30 35 36 39 38  . [Patch #505698
0bd0: 5d 20 28 72 6f 73 65 29 0a 0a 09 2a 20 74 6c 73  ] (rose)...* tls
0be0: 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a  .c:..* tlsIO.c:.
0bf0: 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 61 64 64  .* tlsBIO.c: add
0c00: 65 64 20 43 4f 4e 53 54 73 20 74 6f 20 73 61 74  ed CONSTs to sat
0c10: 69 73 66 79 20 54 63 6c 20 38 2e 34 20 73 6f 75  isfy Tcl 8.4 sou
0c20: 72 63 65 73 2e 20 20 54 68 69 73 20 6d 61 79 0a  rces.  This may.
0c30: 09 67 69 76 65 20 77 61 72 6e 69 6e 67 73 20 77  .give warnings w
0c40: 68 65 6e 20 63 6f 6d 70 69 6c 65 64 20 61 67 61  hen compiled aga
0c50: 69 6e 73 74 20 38 2e 33 2c 20 62 75 74 20 74 68  inst 8.3, but th
0c60: 65 79 20 63 61 6e 20 62 65 20 69 67 6e 6f 72 65  ey can be ignore
0c70: 64 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d  d....* tests/sim
0c80: 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c 3a 0a 09  pleClient.tcl:..
0c90: 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65  * tests/simpleSe
0ca0: 72 76 65 72 2e 74 63 6c 3a 20 70 6f 69 6e 74 20  rver.tcl: point 
0cb0: 74 6f 20 75 70 64 61 74 65 64 20 63 6c 69 65 6e  to updated clien
0cc0: 74 2f 73 65 72 76 65 72 20 6b 65 79 20 66 69 6c  t/server key fil
0cd0: 65 73 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c  es....* tests/tl
0ce0: 73 49 4f 2e 74 65 73 74 3a 0a 09 2a 20 74 65 73  sIO.test:..* tes
0cf0: 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74 3a  ts/ciphers.test:
0d00: 20 75 70 64 61 74 65 64 20 74 6f 20 6c 6f 61 64   updated to load
0d10: 20 74 6c 73 20 66 72 6f 6d 20 62 75 69 6c 64 20   tls from build 
0d20: 64 69 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  dir....* Makefil
0d30: 65 2e 69 6e 3a 20 72 65 6d 6f 76 65 64 20 73 74  e.in: removed st
0d40: 72 6e 63 61 73 65 63 6d 70 20 66 72 6f 6d 20 64  rncasecmp from d
0d50: 65 66 61 75 6c 74 20 6f 62 6a 65 63 74 20 73 65  efault object se
0d60: 74 2e 20 20 54 68 69 73 0a 09 69 73 20 6f 6e 6c  t.  This..is onl
0d70: 79 20 6e 65 65 64 65 64 20 6f 6e 20 74 68 65 20  y needed on the 
0d80: 4d 61 63 2c 20 61 6e 64 20 54 63 6c 20 73 74 75  Mac, and Tcl stu
0d90: 62 73 20 70 72 6f 76 69 64 65 73 20 69 74 2e 0a  bs provides it..
0da0: 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 3a 20 72  ..* configure: r
0db0: 65 67 65 6e 27 65 64 2e 0a 09 2a 20 63 6f 6e 66  egen'ed...* conf
0dc0: 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65  igure.in: update
0dd0: 64 20 74 6f 20 31 2e 35 2e 30 20 66 6f 72 20 6e  d to 1.5.0 for n
0de0: 65 78 74 20 72 65 6c 65 61 73 65 2e 0a 09 43 68  ext release...Ch
0df0: 61 6e 67 65 64 20 64 65 66 61 75 6c 74 20 6f 70  anged default op
0e00: 65 6e 73 73 6c 20 6c 6f 63 61 74 69 6f 6e 20 74  enssl location t
0e10: 6f 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 73 6c  o /usr/local/ssl
0e20: 20 28 74 68 69 73 20 69 73 20 77 68 65 72 65 0a   (this is where.
0e30: 09 6f 70 65 6e 73 73 6c 20 30 2e 39 2e 36 63 20  .openssl 0.9.6c 
0e40: 69 6e 73 74 61 6c 6c 73 20 62 79 20 64 65 66 61  installs by defa
0e50: 75 6c 74 29 2e 0a 09 43 68 61 6e 67 65 64 20 74  ult)...Changed t
0e60: 6f 20 75 73 65 20 70 75 62 6c 69 63 20 54 63 6c  o use public Tcl
0e70: 20 68 65 61 64 65 72 73 20 28 70 72 69 76 61 74   headers (privat
0e80: 65 20 6e 6f 74 20 6e 65 65 64 65 64 29 2e 0a 0a  e not needed)...
0e90: 32 30 30 31 2d 30 36 2d 32 31 20 20 4a 65 66 66  2001-06-21  Jeff
0ea0: 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41   Hobbs  <jeffh@A
0eb0: 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a  ctiveState.com>.
0ec0: 0a 09 54 4c 53 20 31 2e 34 2e 31 20 52 45 4c 45  ..TLS 1.4.1 RELE
0ed0: 41 53 45 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72  ASE...* configur
0ee0: 65 3a 20 61 64 64 65 64 20 63 6f 6e 66 69 67 75  e: added configu
0ef0: 72 65 20 74 6f 20 43 56 53 0a 09 2a 20 63 6f 6e  re to CVS..* con
0f00: 66 69 67 75 72 65 2e 69 6e 3a 20 6d 6f 76 65 64  figure.in: moved
0f10: 20 74 6f 20 70 61 74 63 68 6c 65 76 65 6c 20 31   to patchlevel 1
0f20: 2e 34 2e 31 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  .4.1...* Makefil
0f30: 65 2e 69 6e 3a 20 63 6f 72 72 65 63 74 65 64 20  e.in: corrected 
0f40: 27 64 69 73 74 27 20 74 61 72 67 65 74 0a 0a 09  'dist' target...
0f50: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 66 69  * tests/certs/fi
0f60: 6c 65 2e 73 72 6c 3a 0a 09 2a 20 74 65 73 74 73  le.srl:..* tests
0f70: 2f 63 65 72 74 73 2f 63 61 2e 70 65 6d 3a 0a 09  /certs/ca.pem:..
0f80: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 6c  * tests/certs/cl
0f90: 69 65 6e 74 2e 6b 65 79 3a 0a 09 2a 20 74 65 73  ient.key:..* tes
0fa0: 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74 2e  ts/certs/client.
0fb0: 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65  pem:..* tests/ce
0fc0: 72 74 73 2f 63 6c 69 65 6e 74 2e 72 65 71 3a 0a  rts/client.req:.
0fd0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 70  .* tests/certs/p
0fe0: 72 69 76 6b 65 79 2e 70 65 6d 3a 0a 09 2a 20 74  rivkey.pem:..* t
0ff0: 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76 65  ests/certs/serve
1000: 72 2e 6b 65 79 3a 0a 09 2a 20 74 65 73 74 73 2f  r.key:..* tests/
1010: 63 65 72 74 73 2f 73 65 72 76 65 72 2e 70 65 6d  certs/server.pem
1020: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73  :..* tests/certs
1030: 2f 73 65 72 76 65 72 2e 72 65 71 3a 0a 09 2a 20  /server.req:..* 
1040: 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 63 65  tests/certs/cace
1050: 72 74 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64  rt.pem: replaced
1060: 20 62 79 20 6e 65 77 20 63 61 2e 70 65 6d 0a 09   by new ca.pem..
1070: 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 73 6b  * tests/certs/sk
1080: 65 79 2e 70 65 6d 3a 20 72 65 70 6c 61 63 65 64  ey.pem: replaced
1090: 20 62 79 20 6e 65 77 20 73 65 72 76 65 72 2e 6b   by new server.k
10a0: 65 79 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  ey..* tests/cert
10b0: 73 2f 63 6b 65 79 2e 70 65 6d 3a 20 72 65 70 6c  s/ckey.pem: repl
10c0: 61 63 65 64 20 62 79 20 6e 65 77 20 63 6c 69 65  aced by new clie
10d0: 6e 74 2e 6b 65 79 0a 09 2a 20 74 65 73 74 73 2f  nt.key..* tests/
10e0: 63 65 72 74 73 2f 52 45 41 44 4d 45 2e 74 78 74  certs/README.txt
10f0: 3a 20 6e 65 77 20 73 65 74 20 6f 66 20 74 65 73  : new set of tes
1100: 74 20 63 65 72 74 69 66 69 63 61 74 65 73 20 77  t certificates w
1110: 69 74 68 20 73 6f 6d 65 0a 09 52 45 41 44 4d 45  ith some..README
1120: 20 69 6e 66 6f 20 6f 6e 20 74 68 65 69 72 20 67   info on their g
1130: 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74  eneration....* t
1140: 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73  ests/ciphers.tes
1150: 74 3a 20 75 70 64 61 74 65 64 20 63 69 70 68 65  t: updated ciphe
1160: 72 73 20 65 78 70 65 63 74 65 64 20 77 69 74 68  rs expected with
1170: 20 64 65 66 61 75 6c 74 0a 09 6f 70 65 6e 73 73   default..openss
1180: 6c 20 62 75 69 6c 64 2e 0a 0a 09 2a 20 74 65 73  l build....* tes
1190: 74 73 2f 74 63 6c 49 4f 2e 74 65 73 74 3a 20 75  ts/tclIO.test: u
11a0: 70 64 61 74 65 64 20 74 6f 20 75 73 65 20 6e 65  pdated to use ne
11b0: 77 20 6e 61 6d 65 73 20 66 6f 72 20 63 65 72 74  w names for cert
11c0: 73 2f 6b 65 79 73 2e 0a 0a 32 30 30 31 2d 30 33  s/keys...2001-03
11d0: 2d 31 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -14  Jeff Hobbs 
11e0: 20 3c 6a 65 66 66 68 40 67 69 6d 6c 65 74 2e 61   <jeffh@gimlet.a
11f0: 63 74 69 76 65 73 74 61 74 65 2e 63 6f 6d 3e 0a  ctivestate.com>.
1200: 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49  ..* tls.c (Tls_I
1210: 6e 69 74 29 3a 20 61 64 64 20 64 6f 2f 77 68 69  nit): add do/whi
1220: 6c 65 20 66 6f 72 20 72 61 6e 64 6f 6d 20 6e 75  le for random nu
1230: 6d 62 65 72 20 69 6e 69 74 69 61 6c 69 7a 61 74  mber initializat
1240: 69 6f 6e 0a 09 74 6f 20 77 6f 72 6b 20 61 72 6f  ion..to work aro
1250: 75 6e 64 20 73 6f 6d 65 20 4f 53 65 73 20 71 75  und some OSes qu
1260: 69 72 6b 73 2e 20 20 28 52 61 6c 70 68 2e 42 69  irks.  (Ralph.Bi
1270: 6c 6c 65 73 40 74 65 6c 74 65 63 68 2e 63 6f 6d  lles@teltech.com
1280: 2e 61 75 29 0a 0a 32 30 30 30 2d 30 39 2d 30 37  .au)..2000-09-07
1290: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
12a0: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
12b0: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20  om>...* tlsIO.c 
12c0: 28 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70 65  (Tls_ChannelType
12d0: 29 3a 20 73 65 74 20 74 79 70 65 4e 61 6d 65 20  ): set typeName 
12e0: 66 69 65 6c 64 20 6f 66 20 63 68 61 6e 6e 65 6c  field of channel
12f0: 20 74 79 70 65 20 74 6f 0a 09 22 74 6c 73 22 20   type to.."tls" 
1300: 28 74 68 69 73 20 67 6f 74 20 6c 6f 73 74 20 69  (this got lost i
1310: 6e 20 6d 6f 76 65 20 74 6f 20 64 79 6e 61 6d 69  n move to dynami
1320: 63 20 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61 74  c version compat
1330: 61 62 69 6c 69 74 79 0a 09 63 68 65 63 6b 69 6e  ability..checkin
1340: 67 29 2e 0a 0a 32 30 30 30 2d 30 38 2d 32 33 20  g)...2000-08-23 
1350: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
1360: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
1370: 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 20 52 45 4c  m>...TLS 1.4 REL
1380: 45 41 53 45 44 0a 0a 09 2a 20 4d 61 6b 65 66 69  EASED...* Makefi
1390: 6c 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 63 72  le.in (dist): cr
13a0: 65 61 74 65 20 64 69 73 74 20 74 61 72 67 65 74  eate dist target
13b0: 20 66 6f 72 20 61 72 63 68 69 76 65 20 64 69 73   for archive dis
13c0: 74 72 69 62 75 74 69 6f 6e 73 0a 0a 09 2a 20 74  tributions...* t
13d0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 20  ests/tlsIO.test 
13e0: 28 74 6c 73 49 4f 2d 38 2e 31 29 3a 20 61 64 64  (tlsIO-8.1): add
13f0: 65 64 20 61 20 64 65 6c 61 79 20 6f 6e 20 74 68  ed a delay on th
1400: 65 20 61 63 63 65 70 74 20 63 6c 6f 73 65 0a 09  e accept close..
1410: 74 6f 20 6d 61 6b 65 20 74 68 65 20 74 65 73 74  to make the test
1420: 20 77 6f 72 6b 20 77 69 74 68 20 4f 70 65 6e 53   work with OpenS
1430: 53 4c 20 6f 6e 20 57 69 6e 64 6f 77 73 20 28 64  SL on Windows (d
1440: 6f 65 73 6e 27 74 20 61 66 66 65 63 74 0a 09 6f  oesn't affect..o
1450: 74 68 65 72 20 62 75 69 6c 64 73 29 2e 0a 0a 09  ther builds)....
1460: 2a 20 74 6c 73 2e 68 74 6d 3a 20 75 70 64 61 74  * tls.htm: updat
1470: 65 64 20 77 69 74 68 20 6e 6f 74 65 73 20 66 6f  ed with notes fo
1480: 72 20 31 2e 34 2e 0a 0a 32 30 30 30 2d 30 38 2d  r 1.4...2000-08-
1490: 32 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  21  Jeff Hobbs  
14a0: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
14b0: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f  .com>...* tests/
14c0: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 71 75  tlsIO.test: requ
14d0: 69 72 65 20 61 74 20 6c 65 61 73 74 20 74 6c 73  ire at least tls
14e0: 31 2e 34 20 69 6e 20 74 65 73 74 20 73 75 69 74  1.4 in test suit
14f0: 65 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 38 20 20  e...2000-08-18  
1500: 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62  Jeff Hobbs  <hob
1510: 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  bs@scriptics.com
1520: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73  >...* tls.c (Tls
1530: 5f 49 6e 69 74 29 3a 20 61 64 64 65 64 20 63 61  _Init): added ca
1540: 6c 6c 20 74 6f 20 52 41 4e 44 5f 73 65 65 64 20  ll to RAND_seed 
1550: 74 6f 20 73 65 65 64 20 74 68 65 20 53 53 4c 20  to seed the SSL 
1560: 72 61 6e 64 6f 6d 0a 09 6e 75 6d 62 65 72 20 67  random..number g
1570: 65 6e 65 72 61 74 6f 72 2e 20 20 57 69 74 68 6f  enerator.  Witho
1580: 75 74 20 74 68 69 73 2c 20 4f 70 65 6e 53 53 4c  ut this, OpenSSL
1590: 20 30 2e 39 2e 35 20 63 68 6f 6b 65 73 2c 20 61   0.9.5 chokes, a
15a0: 6e 64 20 69 6e 20 61 6e 79 0a 09 63 61 73 65 20  nd in any..case 
15b0: 69 74 20 69 73 20 61 20 62 69 67 20 73 65 63 75  it is a big secu
15c0: 72 69 74 79 20 68 6f 6c 65 20 74 6f 20 64 6f 20  rity hole to do 
15d0: 77 69 74 68 6f 75 74 20 69 74 2e 0a 0a 09 2a 20  without it....* 
15e0: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 28 4f 50  configure.in (OP
15f0: 45 4e 53 53 4c 29 3a 20 61 64 64 65 64 20 4e 4f  ENSSL): added NO
1600: 5f 49 44 45 41 20 61 6e 64 20 4e 4f 5f 52 43 35  _IDEA and NO_RC5
1610: 20 64 65 66 69 6e 65 73 20 62 79 0a 09 64 65 66   defines by..def
1620: 61 75 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69 6c  ault when compil
1630: 69 6e 67 20 77 69 74 68 20 4f 70 65 6e 53 53 4c  ing with OpenSSL
1640: 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20  ....* tlsInt.h: 
1650: 61 64 64 65 64 20 65 72 72 2e 68 20 69 6e 63 6c  added err.h incl
1660: 75 64 65 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63  ude...* tlsBIO.c
1670: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 6f  :..* tlsIO.c: co
1680: 72 72 65 63 74 65 64 20 70 65 64 61 6e 74 69 63  rrected pedantic
1690: 20 63 61 73 74 20 65 72 72 6f 72 73 2e 0a 0a 32   cast errors...2
16a0: 30 30 30 2d 30 38 2d 31 36 20 20 4a 65 66 66 20  000-08-16  Jeff 
16b0: 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63  Hobbs  <hobbs@sc
16c0: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a  riptics.com>...*
16d0: 20 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74   tests/ciphers.t
16e0: 65 73 74 3a 20 69 6d 70 72 6f 76 65 64 20 61 62  est: improved ab
16f0: 69 6c 69 74 79 20 74 6f 20 63 68 61 6e 67 65 20  ility to change 
1700: 63 6f 6e 73 74 72 61 69 6e 74 0a 09 73 65 74 74  constraint..sett
1710: 69 6e 67 20 66 6f 72 20 77 68 65 74 68 65 72 20  ing for whether 
1720: 75 73 65 72 20 63 6f 6d 70 69 6c 65 64 20 61 67  user compiled ag
1730: 61 69 6e 73 74 20 52 53 41 20 6f 72 20 4f 70 65  ainst RSA or Ope
1740: 6e 53 53 4c 20 6c 69 62 73 2e 0a 0a 09 2a 20 74  nSSL libs....* t
1750: 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a  ls.c (Tls_Init):
1760: 20 63 6f 72 72 65 63 74 65 64 20 69 6e 74 65 72   corrected inter
1770: 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 76 65 72  pretation of ver
1780: 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 09 28 70 61  sion number..(pa
1790: 74 63 68 6c 65 76 65 6c 20 61 6e 64 20 72 65 6c  tchlevel and rel
17a0: 65 61 73 65 2f 73 65 72 69 61 6c 20 77 65 72 65  ease/serial were
17b0: 20 73 77 61 70 70 65 64 29 2e 0a 0a 32 30 30 30   swapped)...2000
17c0: 2d 30 38 2d 31 35 20 20 4a 65 66 66 20 48 6f 62  -08-15  Jeff Hob
17d0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
17e0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 52 45  tics.com>...* RE
17f0: 41 44 4d 45 2e 74 78 74 3a 20 61 64 64 65 64 20  ADME.txt: added 
1800: 6e 6f 74 65 73 20 61 62 6f 75 74 20 6e 65 65 64  notes about need
1810: 20 74 6f 20 75 73 65 20 38 2e 32 2e 30 2b 2e 0a   to use 8.2.0+..
1820: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a  ..* tlsInt.h:..*
1830: 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f   tls.c:..* tlsIO
1840: 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 73 74  .c: corrected st
1850: 72 75 63 74 75 72 65 20 69 6e 69 74 69 61 6c 69  ructure initiali
1860: 7a 61 74 69 6f 6e 20 74 6f 20 77 6f 72 6b 20 77  zation to work w
1870: 68 65 6e 0a 09 63 6f 6d 70 69 6c 69 6e 67 20 77  hen..compiling w
1880: 69 74 68 20 38 2e 32 2e 20 20 4e 6f 77 20 63 6f  ith 8.2.  Now co
1890: 6d 70 69 6c 65 73 20 77 69 74 68 20 38 2e 32 2b  mpiles with 8.2+
18a0: 20 61 6e 64 20 74 65 73 74 65 64 20 74 6f 20 77   and tested to w
18b0: 6f 72 6b 0a 09 77 69 74 68 20 38 2e 32 2b 20 61  ork..with 8.2+ a
18c0: 6e 64 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 61  nd dynamically a
18d0: 64 6a 75 73 74 20 74 6f 20 74 68 65 20 76 65 72  djust to the ver
18e0: 73 69 6f 6e 20 6f 66 20 54 63 6c 20 69 74 20 77  sion of Tcl it w
18f0: 61 73 0a 09 6c 6f 61 64 65 64 20 69 6e 74 6f 2e  as..loaded into.
1900: 20 20 54 4c 53 20 77 69 6c 6c 20 66 61 69 6c 20    TLS will fail 
1910: 74 68 65 20 74 65 73 74 20 73 75 69 74 65 20 77  the test suite w
1920: 69 74 68 20 54 63 6c 20 38 2e 32 2d 38 2e 33 2e  ith Tcl 8.2-8.3.
1930: 31 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 61 6c 6c  1....* tests/all
1940: 2e 74 63 6c 3a 20 61 64 64 65 64 20 63 61 74 63  .tcl: added catc
1950: 68 20 61 72 6f 75 6e 64 20 3a 3a 74 63 6c 74 65  h around ::tclte
1960: 73 74 3a 3a 6e 6f 72 6d 61 6c 69 7a 65 50 61 74  st::normalizePat
1970: 68 0a 09 62 65 63 61 75 73 65 20 69 74 20 64 6f  h..because it do
1980: 65 73 6e 27 74 20 65 78 69 73 74 20 69 6e 20 70  esn't exist in p
1990: 72 65 2d 38 2e 33 20 74 63 6c 74 65 73 74 2e 0a  re-8.3 tcltest..
19a0: 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70 6c 65  ..* tests/simple
19b0: 43 6c 69 65 6e 74 2e 74 63 6c 3a 20 0a 09 2a 20  Client.tcl: ..* 
19c0: 74 65 73 74 73 2f 73 69 6d 70 6c 65 53 65 72 76  tests/simpleServ
19d0: 65 72 2e 74 63 6c 3a 20 61 64 64 65 64 20 73 69  er.tcl: added si
19e0: 6d 70 6c 65 20 63 6c 69 65 6e 74 2f 73 65 72 76  mple client/serv
19f0: 65 72 20 74 65 73 74 20 73 63 72 69 70 74 73 0a  er test scripts.
1a00: 09 74 68 61 74 20 75 73 65 20 74 65 73 74 20 63  .that use test c
1a10: 65 72 74 73 20 61 6e 64 20 63 61 6e 20 64 6f 20  erts and can do 
1a20: 73 69 6d 70 6c 65 20 73 74 72 65 73 73 20 74 65  simple stress te
1a30: 73 74 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 34  sts...2000-08-14
1a40: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
1a50: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
1a60: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 6e 74 2e 68  om>...* tlsInt.h
1a70: 3a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a  :..* tlsIO.c:..*
1a80: 20 74 6c 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c   tlsBIO.c:..* tl
1a90: 73 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 72 6f  s.c: changed aro
1aa0: 75 6e 64 20 74 6f 20 6f 6e 6c 79 20 77 6f 72 6b  und to only work
1ab0: 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 30 2b 20  ing with 8.2.0+ 
1ac0: 28 38 2e 33 2e 32 2b 0a 09 70 72 65 66 65 72 72  (8.3.2+..preferr
1ad0: 65 64 29 2c 20 77 69 74 68 20 72 75 6e 74 69 6d  ed), with runtim
1ae0: 65 20 63 68 65 63 6b 73 20 66 6f 72 20 70 72 65  e checks for pre
1af0: 2d 20 61 6e 64 20 70 6f 73 74 2d 69 6f 2d 72 65  - and post-io-re
1b00: 77 72 69 74 65 2e 0a 0a 09 2a 20 74 6c 73 2e 63  write....* tls.c
1b10: 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 63 68 61   (Tls_Init): cha
1b20: 6e 67 65 64 20 69 74 20 74 6f 20 72 65 71 75 69  nged it to requi
1b30: 72 65 20 38 2e 33 2e 32 20 77 68 65 6e 20 54 63  re 8.3.2 when Tc
1b40: 6c 5f 49 6e 69 74 53 74 75 62 73 0a 09 77 61 73  l_InitStubs..was
1b50: 20 63 61 6c 6c 65 64 20 62 65 63 61 75 73 65 20   called because 
1b60: 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 70 65  we don't want pe
1b70: 6f 70 6c 65 20 75 73 69 6e 67 20 54 4c 53 20 77  ople using TLS w
1b80: 69 74 68 20 74 68 65 0a 09 6f 72 69 67 69 6e 61  ith the..origina
1b90: 6c 20 73 74 61 63 6b 65 64 20 63 68 61 6e 6e 65  l stacked channe
1ba0: 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e  l implementation
1bb0: 2e 0a 0a 32 30 30 30 2d 30 37 2d 32 36 20 20 4a  ...2000-07-26  J
1bc0: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
1bd0: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  s@scriptics.com>
1be0: 0a 0a 09 2a 20 6d 65 72 67 65 64 20 61 6c 6c 20  ...* merged all 
1bf0: 63 68 61 6e 67 65 73 20 66 72 6f 6d 20 74 6c 73  changes from tls
1c00: 2d 31 2d 33 2d 69 6f 2d 72 65 77 72 69 74 65 20  -1-3-io-rewrite 
1c10: 62 61 63 6b 20 69 6e 74 6f 20 6d 61 69 6e 20 62  back into main b
1c20: 72 61 6e 63 68 0a 0a 09 2a 20 74 65 73 74 73 2f  ranch...* tests/
1c30: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 75 70 64 61  tlsIO.test: upda
1c40: 74 65 64 20 63 6f 6d 6d 65 6e 74 73 2c 20 66 69  ted comments, fi
1c50: 78 65 64 20 61 20 70 63 43 72 61 73 68 20 63 61  xed a pcCrash ca
1c60: 73 65 20 74 68 61 74 0a 09 77 61 73 20 64 75 65  se that..was due
1c70: 20 74 6f 20 64 65 62 75 67 20 61 73 73 65 72 74   to debug assert
1c80: 69 6f 6e 20 69 6e 20 57 69 6e 64 6f 77 73 20 53  ion in Windows S
1c90: 53 4c 2e 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 49  SL....* tls.c (I
1ca0: 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 72 65  mportObjCmd): re
1cb0: 6d 6f 76 65 64 20 75 6e 6e 65 63 65 73 73 61 72  moved unnecessar
1cc0: 79 20 75 73 65 20 6f 66 20 27 62 69 6f 27 20 61  y use of 'bio' a
1cd0: 72 67 2e 0a 09 28 54 6c 73 5f 49 6e 69 74 29 3a  rg...(Tls_Init):
1ce0: 20 63 68 65 63 6b 20 72 65 74 75 72 6e 20 76 61   check return va
1cf0: 6c 75 65 20 6f 66 20 53 53 4c 5f 6c 69 62 72 61  lue of SSL_libra
1d00: 72 79 5f 69 6e 69 74 2e 20 20 41 6c 73 6f 20 6c  ry_init.  Also l
1d10: 6f 74 73 20 6f 66 0a 09 77 68 69 74 65 73 70 61  ots of..whitespa
1d20: 63 65 20 63 6c 65 61 6e 75 70 20 28 6d 6f 72 65  ce cleanup (more
1d30: 20 6c 69 6b 65 20 54 63 6c 20 45 6e 67 20 73 74   like Tcl Eng st
1d40: 79 6c 65 20 67 75 69 64 65 29 2c 20 62 75 74 20  yle guide), but 
1d50: 6e 6f 74 20 61 6c 6c 0a 09 63 6f 64 65 20 77 61  not all..code wa
1d60: 73 20 63 6c 65 61 6e 65 64 20 75 70 2e 0a 0a 09  s cleaned up....
1d70: 2a 20 74 6c 73 42 49 4f 2e 63 3a 20 6d 69 6e 6f  * tlsBIO.c: mino
1d80: 72 20 77 68 69 74 65 73 70 61 63 65 20 63 6c 65  r whitespace cle
1d90: 61 6e 75 70 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63  anup...* tlsIO.c
1da0: 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61  : minor whitespa
1db0: 63 65 20 63 6c 65 61 6e 75 70 2e 0a 09 28 54 6c  ce cleanup...(Tl
1dc0: 73 49 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 4f  sInputProc, TlsO
1dd0: 75 74 70 75 74 50 72 6f 63 29 3a 20 41 64 64 65  utputProc): Adde
1de0: 64 20 45 52 52 5f 63 6c 65 61 72 5f 65 72 72 6f  d ERR_clear_erro
1df0: 72 20 62 65 66 6f 72 65 20 63 61 6c 6c 73 0a 09  r before calls..
1e00: 74 6f 20 42 49 4f 5f 72 65 61 64 20 6f 72 20 42  to BIO_read or B
1e10: 49 4f 5f 77 72 69 74 65 2c 20 62 65 63 61 75 73  IO_write, becaus
1e20: 65 20 77 65 20 63 6f 75 6c 64 20 6f 74 68 65 72  e we could other
1e30: 77 69 73 65 20 65 6e 64 20 75 70 0a 09 70 75 6c  wise end up..pul
1e40: 6c 69 6e 67 20 61 6e 20 65 72 72 6f 72 20 6f 66  ling an error of
1e50: 66 20 74 68 65 20 73 74 61 63 6b 20 74 68 61 74  f the stack that
1e60: 20 64 69 64 6e 27 74 20 62 65 6c 6f 6e 67 20 74   didn't belong t
1e70: 6f 20 75 73 2e 20 20 41 6c 73 6f 0a 09 63 6c 65  o us.  Also..cle
1e80: 61 6e 75 70 20 75 70 20 65 78 63 65 73 73 69 76  anup up excessiv
1e90: 65 20 75 73 65 20 6f 66 20 67 6f 74 6f 73 2e 0a  e use of gotos..
1ea0: 0a 32 30 30 30 2d 30 37 2d 32 30 20 20 4a 65 66  .2000-07-20  Jef
1eb0: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40  f Hobbs  <hobbs@
1ec0: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
1ed0: 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74  .* tests/tlsIO.t
1ee0: 65 73 74 3a 20 63 6f 72 72 65 63 74 65 64 20 76  est: corrected v
1ef0: 61 72 69 6f 75 73 20 74 65 73 74 73 20 74 6f 20  arious tests to 
1f00: 62 65 20 63 6f 72 72 65 63 74 20 66 6f 72 20 54  be correct for T
1f10: 4c 53 0a 09 73 74 61 63 6b 65 64 20 63 68 61 6e  LS..stacked chan
1f20: 6e 65 6c 73 20 28 61 73 20 6f 70 70 6f 73 65 64  nels (as opposed
1f30: 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64   to the standard
1f40: 20 73 6f 63 6b 65 74 73 20 74 68 65 20 74 65 73   sockets the tes
1f50: 74 0a 09 73 75 69 74 65 20 77 61 73 20 61 64 6f  t..suite was ado
1f60: 70 74 65 64 20 66 72 6f 6d 29 2e 20 20 4b 65 79  pted from).  Key
1f70: 20 64 69 66 66 65 72 65 6e 63 65 73 20 61 72 65   differences are
1f80: 20 74 68 61 74 20 54 4c 53 20 63 61 6e 6e 6f 74   that TLS cannot
1f90: 0a 09 6f 70 65 72 61 74 65 20 69 6e 20 6f 6e 65  ..operate in one
1fa0: 20 70 72 6f 63 65 73 73 20 77 69 74 68 6f 75 74   process without
1fb0: 20 61 6c 6c 20 63 68 61 6e 6e 65 6c 73 20 62 65   all channels be
1fc0: 69 6e 67 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67  ing non-blocking
1fd0: 2c 20 6f 72 0a 09 74 68 65 20 68 61 6e 64 73 68  , or..the handsh
1fe0: 61 6b 65 20 77 69 6c 6c 20 62 6c 6f 63 6b 2c 20  ake will block, 
1ff0: 61 6e 64 20 68 61 6e 64 73 68 61 6b 69 6e 67 20  and handshaking 
2000: 6d 75 73 74 20 62 65 20 66 6f 72 63 65 64 20 69  must be forced i
2010: 6e 20 73 6f 6d 65 0a 09 63 61 73 65 73 2e 20 20  n some..cases.  
2020: 41 6c 73 6f 2c 20 68 61 6e 64 73 68 61 6b 65 73  Also, handshakes
2030: 20 64 6f 6e 27 74 20 73 65 65 6d 20 74 6f 20 63   don't seem to c
2040: 6f 6d 70 6c 65 74 65 20 75 6e 6c 65 73 73 20 74  omplete unless t
2050: 68 65 20 63 6c 69 65 6e 74 0a 09 68 61 73 20 70  he client..has p
2060: 6c 61 63 65 64 20 61 74 20 6c 65 61 73 74 20 6f  laced at least o
2070: 6e 65 20 62 79 74 65 20 66 6f 72 20 74 68 65 20  ne byte for the 
2080: 73 65 72 76 65 72 20 74 6f 20 72 65 61 64 20 69  server to read i
2090: 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c 2e 0a 0a  n the channel...
20a0: 09 2a 20 74 65 73 74 73 2f 72 65 6d 6f 74 65 2e  .* tests/remote.
20b0: 74 63 6c 3a 20 63 6f 72 72 65 63 74 65 64 20 74  tcl: corrected t
20c0: 68 65 20 66 69 6e 64 69 6e 67 20 6f 66 20 74 65  he finding of te
20d0: 73 74 73 20 63 65 72 74 69 66 69 63 61 74 65 73  sts certificates
20e0: 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c  ...* tlsIO.c (Tl
20f0: 73 43 6c 6f 73 65 50 72 6f 63 29 3a 20 72 65 6d  sCloseProc): rem
2100: 6f 76 65 64 20 64 65 6c 65 74 69 6e 67 20 6f 66  oved deleting of
2110: 20 74 69 6d 65 72 20 68 61 6e 64 6c 65 72 20 61   timer handler a
2120: 73 0a 09 74 68 61 74 20 69 73 20 68 61 6e 64 6c  s..that is handl
2130: 65 64 20 62 79 20 54 6c 73 5f 43 6c 65 61 6e 2e  ed by Tls_Clean.
2140: 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 20 28 74 6c  ...* tls.tcl (tl
2150: 73 3a 3a 5f 61 63 63 65 70 74 29 3a 20 63 6f 72  s::_accept): cor
2160: 72 65 63 74 65 64 20 74 68 65 20 69 6e 74 65 72  rected the inter
2170: 6e 61 6c 20 5f 61 63 63 65 70 74 20 74 6f 0a 09  nal _accept to..
2180: 74 72 69 63 6b 6c 65 20 63 61 6c 6c 62 61 63 6b  trickle callback
2190: 20 65 72 72 6f 72 73 20 74 6f 20 74 68 65 20 75   errors to the u
21a0: 73 65 72 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c  ser....* Makefil
21b0: 65 2e 69 6e 3a 20 6d 61 64 65 20 74 68 65 20 69  e.in: made the i
21c0: 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20  nstall-binaries 
21d0: 74 61 72 67 65 74 20 72 65 67 65 6e 65 72 61 74  target regenerat
21e0: 65 20 74 68 65 0a 09 70 6b 67 49 6e 64 65 78 2e  e the..pkgIndex.
21f0: 74 63 6c 20 63 6f 72 72 65 63 74 6c 79 2e 20 20  tcl correctly.  
2200: 54 68 65 20 74 65 73 74 20 74 61 72 67 65 74 20  The test target 
2210: 70 72 6f 62 61 62 6c 79 20 73 68 6f 75 6c 64 6e  probably shouldn
2220: 27 74 20 73 63 72 65 77 0a 09 69 74 20 75 70 2c  't screw..it up,
2230: 20 62 75 74 20 74 68 69 73 20 69 73 20 74 6f 20   but this is to 
2240: 62 65 20 6f 6e 20 74 68 65 20 73 61 66 65 20 73  be on the safe s
2250: 69 64 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 37  ide...2000-07-17
2260: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68    Jeff Hobbs  <h
2270: 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63  obbs@scriptics.c
2280: 6f 6d 3e 0a 0a 09 2a 20 70 6b 67 49 6e 64 65 78  om>...* pkgIndex
2290: 2e 74 63 6c 2e 69 6e 3a 0a 09 2a 20 63 6f 6e 66  .tcl.in:..* conf
22a0: 69 67 75 72 65 2e 69 6e 3a 20 75 70 64 61 74 65  igure.in: update
22b0: 64 20 76 65 72 73 69 6f 6e 20 74 6f 20 31 2e 34  d version to 1.4
22c0: 0a 0a 32 30 30 30 2d 30 37 2d 31 33 20 20 4a 65  ..2000-07-13  Je
22d0: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
22e0: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
22f0: 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e  ..* tests/tlsIO.
2300: 74 65 73 74 3a 20 65 6e 61 62 6c 65 64 20 74 65  test: enabled te
2310: 73 74 73 20 32 2e 31 30 2c 20 37 2e 5b 31 32 34  sts 2.10, 7.[124
2320: 35 5d 20 28 74 68 65 72 65 20 69 73 20 6e 6f 20  5] (there is no 
2330: 33 29 2c 0a 09 77 68 69 63 68 20 6e 6f 77 20 70  3),..which now p
2340: 61 73 73 2e 20 20 41 64 64 65 64 20 73 6f 6d 65  ass.  Added some
2350: 20 63 6f 6d 6d 65 6e 74 73 20 74 6f 20 6f 74 68   comments to oth
2360: 65 72 20 66 61 69 6c 69 6e 67 20 74 65 73 74 73  er failing tests
2370: 2e 0a 0a 32 30 30 30 2d 30 37 2d 31 31 20 20 4a  ...2000-07-11  J
2380: 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62  eff Hobbs  <hobb
2390: 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e  s@scriptics.com>
23a0: 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 63 68  ...* tlsIO.c: ch
23b0: 61 6e 67 65 64 20 61 6c 6c 20 74 68 65 20 63 68  anged all the ch
23c0: 61 6e 6e 65 6c 20 70 72 6f 63 73 20 74 6f 20 73  annel procs to s
23d0: 74 61 72 74 20 77 69 74 68 20 54 6c 73 2a 20 66  tart with Tls* f
23e0: 6f 72 0a 09 62 65 74 74 65 72 20 70 61 72 69 74  or..better parit
23f0: 79 20 77 68 65 6e 20 63 6f 6d 70 61 72 69 6e 67  y when comparing
2400: 20 77 69 74 68 20 54 72 61 6e 73 66 6f 72 6d 20   with Transform 
2410: 63 68 61 6e 6e 65 6c 20 70 72 6f 63 73 2e 0a 09  channel procs...
2420: 52 65 77 72 6f 74 65 20 54 6c 73 57 61 74 63 68  Rewrote TlsWatch
2430: 50 72 6f 63 2c 20 61 64 64 65 64 20 54 6c 73 4e  Proc, added TlsN
2440: 6f 74 69 66 79 50 72 6f 63 20 61 63 63 6f 72 64  otifyProc accord
2450: 69 6e 67 20 74 6f 20 74 68 65 20 6e 65 77 0a 09  ing to the new..
2460: 63 68 61 6e 6e 65 6c 20 64 65 73 69 67 6e 2c 20  channel design, 
2470: 77 68 69 63 68 20 61 6c 73 6f 20 6c 65 61 76 65  which also leave
2480: 73 20 54 6c 73 43 68 61 6e 6e 65 6c 48 61 6e 64  s TlsChannelHand
2490: 6c 65 72 20 75 6e 75 73 65 64 2e 0a 0a 09 2a 20  ler unused....* 
24a0: 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f 43 74 72  tlsBIO.c (BioCtr
24b0: 6c 29 3a 20 63 68 61 6e 67 65 64 20 42 49 4f 5f  l): changed BIO_
24c0: 43 54 52 4c 5f 46 4c 55 53 48 20 63 61 73 65 20  CTRL_FLUSH case 
24d0: 74 6f 20 75 73 65 0a 09 54 63 6c 5f 57 72 69 74  to use..Tcl_Writ
24e0: 65 52 61 77 20 69 6e 73 74 65 61 64 20 6f 66 20  eRaw instead of 
24f0: 54 63 6c 5f 46 6c 75 73 68 20 28 74 6f 20 6f 70  Tcl_Flush (to op
2500: 65 72 61 74 65 20 6f 6e 20 63 6f 72 72 65 63 74  erate on correct
2510: 20 63 68 61 6e 6e 65 6c 0a 09 69 6e 20 74 68 65   channel..in the
2520: 20 73 74 61 63 6b 20 69 6e 73 74 65 61 64 20 6f   stack instead o
2530: 66 20 73 74 61 72 74 69 6e 67 20 61 74 20 74 68  f starting at th
2540: 65 20 74 6f 70 20 61 67 61 69 6e 29 2e 20 20 57  e top again).  W
2550: 6f 75 6c 64 0a 09 6f 74 68 65 72 77 69 73 65 20  ould..otherwise 
2560: 63 61 75 73 65 20 61 20 72 65 63 75 72 73 69 76  cause a recursiv
2570: 65 20 73 74 61 63 6b 20 62 6f 6d 62 20 77 68 65  e stack bomb whe
2580: 6e 20 69 6d 70 6c 69 63 69 74 20 68 61 6e 64 73  n implicit hands
2590: 68 61 6b 69 6e 67 0a 09 74 6f 6f 6b 20 65 66 66  haking..took eff
25a0: 65 63 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  ect....* tests/t
25b0: 6c 73 49 4f 2e 74 65 73 74 3a 20 72 65 6d 6f 76  lsIO.test: remov
25c0: 65 64 20 63 68 61 6e 67 65 73 20 6d 61 64 65 20  ed changes made 
25d0: 74 6f 20 74 65 73 74 20 73 75 69 74 65 20 28 61  to test suite (a
25e0: 6c 6c 20 74 65 73 74 73 0a 09 74 68 61 74 20 72  ll tests..that r
25f0: 61 6e 20 62 65 66 6f 72 65 20 6e 6f 77 20 70 61  an before now pa
2600: 73 73 20 63 6f 72 72 65 63 74 6c 79 29 2c 20 61  ss correctly), a
2610: 6e 64 20 63 68 61 6e 67 65 64 20 73 6f 6d 65 20  nd changed some 
2620: 61 63 63 65 70 74 20 70 72 6f 63 0a 09 61 72 67  accept proc..arg
2630: 73 20 74 6f 20 72 65 66 6c 65 63 74 20 74 68 61  s to reflect tha
2640: 74 20 61 20 73 6f 63 6b 20 69 73 20 61 6e 20 61  t a sock is an a
2650: 72 67 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e 0a  rg, not a file..
2660: 0a 32 30 30 30 2d 30 37 2d 31 30 20 20 4a 65 66  .2000-07-10  Jef
2670: 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73 40  f Hobbs  <hobbs@
2680: 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a  scriptics.com>..
2690: 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28 42 69 6f  .* tlsBIO.c (Bio
26a0: 57 72 69 74 65 2c 20 42 69 6f 52 65 61 64 29 3a  Write, BioRead):
26b0: 20 63 68 61 6e 67 65 64 20 54 63 6c 5f 52 65 61   changed Tcl_Rea
26c0: 64 2f 57 72 69 74 65 20 74 6f 0a 09 54 63 6c 5f  d/Write to..Tcl_
26d0: 52 65 61 64 52 61 77 2f 54 63 6c 57 72 69 74 65  ReadRaw/TclWrite
26e0: 52 61 77 2e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20  Raw....* tls.c: 
26f0: 61 64 64 65 64 20 75 73 65 20 6f 66 20 54 63 6c  added use of Tcl
2700: 5f 47 65 74 54 6f 70 43 68 61 6e 6e 65 6c 20 61  _GetTopChannel a
2710: 66 74 65 72 20 54 63 6c 5f 47 65 74 43 68 61 6e  fter Tcl_GetChan
2720: 6e 65 6c 20 61 6e 64 0a 09 67 6f 74 20 72 65 74  nel and..got ret
2730: 75 72 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20 54  urn value from T
2740: 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c 2e  cl_StackChannel.
2750: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f  ...* tests/tlsIO
2760: 2e 74 65 73 74 3a 20 61 64 64 65 64 20 73 6f 6d  .test: added som
2770: 65 20 68 61 6e 64 73 68 61 6b 69 6e 67 20 74 68  e handshaking th
2780: 61 74 20 73 68 6f 75 6c 64 6e 27 74 20 62 65 0a  at shouldn't be.
2790: 09 6e 65 63 65 73 73 61 72 79 2c 20 62 75 74 20  .necessary, but 
27a0: 77 65 20 63 72 61 73 68 20 6f 74 68 65 72 77 69  we crash otherwi
27b0: 73 65 20 28 6e 65 65 64 73 20 6d 6f 72 65 20 74  se (needs more t
27c0: 65 73 74 69 6e 67 29 2e 0a 0a 09 2a 20 74 6c 73  esting)....* tls
27d0: 49 4f 2e 63 3a 20 61 64 64 65 64 20 73 75 70 70  IO.c: added supp
27e0: 6f 72 74 20 66 6f 72 20 22 63 6f 72 72 65 63 74  ort for "correct
27f0: 65 64 22 20 73 74 61 63 6b 65 64 20 63 68 61 6e  ed" stacked chan
2800: 6e 65 6c 73 2e 20 20 41 6c 6c 0a 09 74 68 65 20  nels.  All..the 
2810: 61 62 6f 76 65 20 63 68 61 6e 6e 65 6c 73 20 61  above channels a
2820: 72 65 20 69 6e 20 54 43 4c 5f 43 48 41 4e 4e 45  re in TCL_CHANNE
2830: 4c 5f 56 45 52 53 49 4f 4e 5f 32 20 23 69 66 64  L_VERSION_2 #ifd
2840: 65 66 73 2e 0a 0a 32 30 30 30 2d 30 36 2d 30 35  efs...2000-06-05
2850: 20 20 53 63 6f 74 74 20 53 74 61 6e 74 6f 6e 20    Scott Stanton 
2860: 20 3c 73 74 61 6e 74 6f 6e 40 61 6a 75 62 61 73   <stanton@ajubas
2870: 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09  olutions.com>...
2880: 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 46  * Makefile.in: F
2890: 69 78 65 64 20 62 72 6f 6b 65 6e 20 74 65 73 74  ixed broken test
28a0: 20 74 61 72 67 65 74 2e 0a 0a 09 2a 20 74 6c 73   target....* tls
28b0: 49 6e 74 2e 68 3a 20 0a 09 2a 20 74 6c 73 2e 63  Int.h: ..* tls.c
28c0: 3a 20 43 6c 65 61 6e 65 64 20 75 70 20 64 65 63  : Cleaned up dec
28d0: 6c 61 72 61 74 69 6f 6e 73 20 6f 66 20 54 6c 73  larations of Tls
28e0: 5f 43 6c 65 61 6e 20 74 6f 20 61 76 6f 69 64 20  _Clean to avoid 
28f0: 65 72 72 6f 72 73 20 6f 6e 0a 09 57 69 6e 64 6f  errors on..Windo
2900: 77 73 20 28 6c 69 6e 74 29 2e 0a 0a 32 30 30 30  ws (lint)...2000
2910: 2d 30 36 2d 30 35 20 20 42 72 65 6e 74 20 57 65  -06-05  Brent We
2920: 6c 63 68 20 3c 77 65 6c 63 68 40 61 6a 75 62 61  lch <welch@ajuba
2930: 73 6f 6c 75 74 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a  solutions.com>..
2940: 09 2a 20 74 6c 73 2e 63 2c 20 74 6c 73 49 4f 2e  .* tls.c, tlsIO.
2950: 63 3a 20 20 53 70 6c 69 74 20 54 6c 73 5f 46 72  c:  Split Tls_Fr
2960: 65 65 20 69 6e 74 6f 20 54 6c 73 5f 43 6c 65 61  ee into Tls_Clea
2970: 6e 2c 20 77 68 69 63 68 20 64 6f 65 73 0a 09 74  n, which does..t
2980: 68 65 20 53 53 4c 20 63 6c 65 61 6e 75 70 2c 20  he SSL cleanup, 
2990: 61 6e 64 20 74 68 65 20 54 63 6c 5f 46 72 65 65  and the Tcl_Free
29a0: 20 63 61 6c 6c 2e 20 20 49 74 20 69 73 20 69 6d   call.  It is im
29b0: 70 6f 72 74 61 6e 74 20 74 6f 20 73 68 75 74 64  portant to shutd
29c0: 6f 77 6e 0a 09 74 68 65 20 53 53 4c 20 73 74 61  own..the SSL sta
29d0: 74 65 20 22 73 79 6e 63 68 72 6f 6e 6f 75 73 6c  te "synchronousl
29e0: 79 22 20 64 75 72 69 6e 67 20 61 20 73 74 61 63  y" during a stac
29f0: 6b 65 64 20 66 6c 75 73 68 2e 0a 0a 32 30 30 30  ked flush...2000
2a00: 2d 30 36 2d 30 31 20 20 53 63 6f 74 74 20 53 74  -06-01  Scott St
2a10: 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40  anton  <stanton@
2a20: 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63  ajubasolutions.c
2a30: 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a  om>...* tlsIO.c:
2a40: 20 52 65 73 74 6f 72 65 64 20 63 61 6c 6c 20 74   Restored call t
2a50: 6f 20 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e  o Tcl_NotifyChan
2a60: 6e 65 6c 20 66 72 6f 6d 20 43 68 61 6e 6e 65 6c  nel from Channel
2a70: 48 61 6e 64 6c 65 72 0a 09 74 6f 20 65 6e 73 75  Handler..to ensu
2a80: 72 65 20 74 68 61 74 20 65 76 65 6e 74 73 20 70  re that events p
2a90: 72 6f 70 61 67 61 74 65 20 66 72 6f 6d 20 74 68  ropagate from th
2aa0: 65 20 6c 6f 77 65 72 20 64 72 69 76 65 72 2e 20  e lower driver. 
2ab0: 20 54 68 69 73 20 6d 61 79 0a 09 72 65 73 75 6c   This may..resul
2ac0: 74 20 69 6e 20 61 6e 20 69 6e 66 69 6e 69 74 65  t in an infinite
2ad0: 20 6c 6f 6f 70 20 69 6e 20 73 6f 6d 65 20 63 61   loop in some ca
2ae0: 73 65 73 2c 20 73 6f 20 74 68 69 73 20 69 73 20  ses, so this is 
2af0: 6e 6f 74 20 61 20 74 6f 74 61 6c 0a 09 66 69 78  not a total..fix
2b00: 2e 20 20 54 68 69 73 20 6d 61 79 20 62 65 20 73  .  This may be s
2b10: 75 66 66 69 63 69 65 6e 74 20 66 6f 72 20 6e 6f  ufficient for no
2b20: 77 2c 20 68 6f 77 65 76 65 72 2e 20 5b 42 75 67  w, however. [Bug
2b30: 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 36  : 5623]..2000-06
2b40: 2d 30 31 20 20 53 63 6f 74 74 20 53 74 61 6e 74  -01  Scott Stant
2b50: 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40 73 63 72  on  <stanton@scr
2b60: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
2b70: 74 6c 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65  tlsIO.c: Restore
2b80: 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 76 65   the previous ve
2b90: 72 73 69 6f 6e 2e 20 20 46 69 78 65 64 20 74 68  rsion.  Fixed th
2ba0: 65 20 43 6c 6f 73 65 50 72 6f 63 20 73 6f 0a 09  e CloseProc so..
2bb0: 69 74 20 75 6e 72 65 67 69 73 74 65 72 73 20 74  it unregisters t
2bc0: 68 65 20 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c  he channel handl
2bd0: 65 72 20 6f 6e 20 74 68 65 20 73 75 70 65 72 63  er on the superc
2be0: 65 64 65 64 20 63 68 61 6e 6e 65 6c 0a 09 69 6e  eded channel..in
2bf0: 73 74 65 61 64 20 6f 66 20 74 68 65 20 75 70 70  stead of the upp
2c00: 65 72 20 63 68 61 6e 6e 65 6c 2e 20 41 6c 73 6f  er channel. Also
2c10: 20 72 65 6d 6f 76 65 64 20 74 68 65 20 63 61 6c   removed the cal
2c20: 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f 74 69 66 79  l to..Tcl_Notify
2c30: 43 68 61 6e 6e 65 6c 20 69 6e 20 74 68 65 20 43  Channel in the C
2c40: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 62 65  hannelHandler be
2c50: 63 61 75 73 65 20 74 68 69 73 20 77 69 6c 6c 20  cause this will 
2c60: 72 65 73 75 6c 74 0a 09 69 6e 20 61 6e 20 69 6e  result..in an in
2c70: 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 66 20 64  finite loop if d
2c80: 61 74 61 20 69 73 20 65 76 65 72 20 62 75 66 66  ata is ever buff
2c90: 65 72 65 64 20 69 6e 20 74 68 65 20 42 49 4f 0a  ered in the BIO.
2ca0: 09 73 74 72 75 63 74 75 72 65 2e 20 5b 42 75 67  .structure. [Bug
2cb0: 3a 20 35 36 32 33 5d 0a 0a 32 30 30 30 2d 30 35  : 5623]..2000-05
2cc0: 2d 33 31 20 20 42 72 65 6e 74 20 57 65 6c 63 68  -31  Brent Welch
2cd0: 20 3c 77 65 6c 63 68 40 73 63 72 69 70 74 69 63   <welch@scriptic
2ce0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63  s.com>...* tls.c
2cf0: 3a 20 43 68 61 6e 67 65 20 74 68 65 20 43 68 61  : Change the Cha
2d00: 6e 6e 65 6c 48 61 6e 64 6c 65 72 20 74 6f 20 62  nnelHandler to b
2d10: 65 20 72 65 67 69 73 74 65 72 65 64 20 6f 6e 20  e registered on 
2d20: 74 68 65 20 6d 61 69 6e 0a 09 63 68 61 6e 6e 65  the main..channe
2d30: 6c 20 61 73 20 6f 70 70 73 65 64 20 74 6f 20 74  l as oppsed to t
2d40: 68 65 20 22 70 61 72 65 6e 74 22 2c 20 6f 72 20  he "parent", or 
2d50: 73 75 70 65 72 63 65 65 64 65 64 2c 20 63 68 61  superceeded, cha
2d60: 6e 6e 65 6c 2e 20 20 54 68 69 73 0a 09 69 73 20  nnel.  This..is 
2d70: 62 65 63 61 75 73 65 20 74 68 65 20 73 6f 63 6b  because the sock
2d80: 65 74 20 64 72 69 76 65 72 20 6e 6f 74 69 66 69  et driver notifi
2d90: 65 73 20 74 68 65 20 6d 61 69 6e 20 63 68 61 6e  es the main chan
2da0: 6e 65 6c 2c 20 61 6e 64 20 74 68 65 72 65 0a 09  nel, and there..
2db0: 61 72 65 20 74 69 6d 65 73 20 77 69 74 68 20 74  are times with t
2dc0: 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 20  he main channel 
2dd0: 67 65 74 73 20 63 6c 6f 73 65 64 2c 20 62 75 74  gets closed, but
2de0: 20 74 68 65 20 73 75 70 65 72 63 65 64 65 64 0a   the superceded.
2df0: 09 6f 6e 65 20 69 73 20 6e 6f 74 20 79 65 74 20  .one is not yet 
2e00: 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 65 20  closed.  If the 
2e10: 63 68 61 6e 6e 65 6c 20 68 61 6e 64 6c 65 72 20  channel handler 
2e20: 67 65 74 73 20 74 72 69 67 67 65 72 65 64 20 69  gets triggered i
2e30: 6e 0a 09 74 68 69 73 20 68 61 6c 66 2d 6f 70 65  n..this half-ope
2e40: 6e 20 73 74 61 74 65 20 69 74 20 69 73 20 61 73  n state it is as
2e50: 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68  sociated with th
2e60: 65 20 73 75 70 65 72 63 65 65 64 65 64 0a 09 63  e superceeded..c
2e70: 68 61 6e 6e 65 64 6c 2c 20 62 75 74 20 75 73 65  hannedl, but use
2e80: 73 20 69 74 73 20 70 72 69 76 61 74 65 20 70 6f  s its private po
2e90: 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6d 61 69  inter to the mai
2ea0: 6e 20 63 68 61 6e 6e 65 6c 2c 20 77 68 69 63 68  n channel, which
2eb0: 0a 09 69 73 20 6d 6f 73 74 6c 79 20 64 65 73 74  ..is mostly dest
2ec0: 72 6f 79 65 64 2e 20 20 45 6c 69 6d 69 6e 61 74  royed.  Eliminat
2ed0: 65 64 20 74 68 65 20 72 65 64 75 6e 64 61 6e 74  ed the redundant
2ee0: 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f 4e 6f   call to..Tcl_No
2ef0: 74 69 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d  tifyChannel from
2f00: 20 54 6c 73 57 61 74 63 68 50 72 6f 63 2e 20 5b   TlsWatchProc. [
2f10: 42 75 67 3a 20 35 36 32 33 5d 0a                 Bug: 5623].