Hex Artifact Content

Artifact a72d9b7c9c72badc6d1ffac5f464fb110a0a7488:


0000: 32 30 30 38 2d 30 36 2d 31 38 20 20 50 61 74 20  2008-06-18  Pat 
0010: 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79  Thoyts  <patthoy
0020: 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66  ts@users.sourcef
0030: 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 65  orge.net>...* te
0040: 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65 73 74  sts/ciphers.test
0050: 3a 20 46 69 78 20 66 6f 72 20 64 69 66 66 65 72  : Fix for differ
0060: 65 6e 74 20 6f 70 65 6e 73 73 6c 20 76 65 72 73  ent openssl vers
0070: 69 6f 6e 73 2e 0a 09 2a 20 77 69 6e 2f 6d 61 6b  ions...* win/mak
0080: 65 66 69 6c 65 2e 76 63 3a 20 20 20 20 55 70 64  efile.vc:    Upd
0090: 61 74 65 73 20 74 6f 20 73 75 70 70 6f 72 74 20  ates to support 
00a0: 74 65 73 74 73 2e 0a 09 2a 20 77 69 6e 2f 72 75  tests...* win/ru
00b0: 6c 65 73 2e 76 63 3a 0a 09 2a 20 77 69 6e 2f 6e  les.vc:..* win/n
00c0: 6d 61 6b 65 68 6c 70 2e 63 3a 0a 0a 32 30 30 38  makehlp.c:..2008
00d0: 2d 30 33 2d 31 39 20 20 4a 65 66 66 20 48 6f 62  -03-19  Jeff Hob
00e0: 62 73 20 20 3c 6a 65 66 66 68 40 41 63 74 69 76  bs  <jeffh@Activ
00f0: 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a 09 2a 2a  eState.com>...**
0100: 2a 20 54 4c 53 20 31 2e 36 20 54 41 47 47 45 44  * TLS 1.6 TAGGED
0110: 20 2a 2a 2a 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c   ***...* Makefil
0120: 65 2e 69 6e 20 28 64 69 73 74 29 3a 20 75 70 64  e.in (dist): upd
0130: 61 74 65 20 74 6f 20 69 6e 63 6c 75 64 65 20 77  ate to include w
0140: 69 6e 2f 20 61 6e 64 20 66 69 6c 65 2e 73 72 6c  in/ and file.srl
0150: 0a 0a 09 2a 20 77 69 6e 2f 6d 61 6b 65 66 69 6c  ...* win/makefil
0160: 65 2e 76 63 3a 20 62 75 6d 70 20 76 65 72 73 69  e.vc: bump versi
0170: 6f 6e 20 74 6f 20 31 2e 36 0a 09 2a 20 63 6f 6e  on to 1.6..* con
0180: 66 69 67 75 72 65 2e 69 6e 3a 20 75 73 65 20 2d  figure.in: use -
0190: 4c 20 61 6e 64 20 2d 52 20 77 68 65 72 65 20 6e  L and -R where n
01a0: 65 63 65 73 73 61 72 79 2e 20 5b 42 75 67 20 31  ecessary. [Bug 1
01b0: 37 34 32 38 35 39 5d 0a 0a 09 2a 20 61 63 6c 6f  742859]...* aclo
01c0: 63 61 6c 2e 6d 34 3a 20 69 6d 70 72 6f 76 65 20  cal.m4: improve 
01d0: 2d 2d 77 69 74 68 2d 73 73 6c 2d 64 69 72 20 63  --with-ssl-dir c
01e0: 68 65 63 6b 2e 0a 0a 09 2a 20 74 65 73 74 73 2f  heck....* tests/
01f0: 74 6c 73 49 4f 2e 74 65 73 74 20 28 74 6c 73 49  tlsIO.test (tlsI
0200: 4f 2d 31 34 2e 2a 29 3a 20 20 20 41 64 64 20 74  O-14.*):   Add t
0210: 6c 73 3a 3a 75 6e 69 6d 70 6f 72 74 20 66 6f 72  ls::unimport for
0220: 20 73 79 6d 6d 65 74 72 79 0a 09 2a 20 74 6c 73   symmetry..* tls
0230: 2e 68 74 6d 2c 20 74 6c 73 2e 63 20 28 55 6e 69  .htm, tls.c (Uni
0240: 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a 20 74 6f  mportObjCmd): to
0250: 20 74 6c 73 3a 3a 69 6d 70 6f 72 74 2e 20 5b 42   tls::import. [B
0260: 75 67 20 31 32 30 33 32 37 33 5d 0a 0a 09 2a 20  ug 1203273]...* 
0270: 74 6c 73 2e 63 20 28 54 6c 73 5f 43 6c 65 61 6e  tls.c (Tls_Clean
0280: 2c 20 49 6d 70 6f 72 74 4f 62 6a 43 6d 64 29 3a  , ImportObjCmd):
0290: 20 46 69 78 20 63 6c 65 61 6e 75 70 20 6d 65 6d   Fix cleanup mem
02a0: 20 6c 65 61 6b 20 5b 42 75 67 20 31 34 31 34 30   leak [Bug 14140
02b0: 34 35 5d 0a 09 55 73 65 20 62 65 74 74 65 72 20  45]..Use better 
02c0: 45 76 61 6c 20 41 50 49 73 2c 20 63 6c 65 61 6e  Eval APIs, clean
02d0: 65 72 20 54 63 6c 5f 4f 62 6a 2d 68 61 6e 64 6c  er Tcl_Obj-handl
02e0: 69 6e 67 2e 0a 0a 32 30 30 38 2d 30 33 2d 31 39  ing...2008-03-19
02f0: 20 20 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70    Pat Thoyts  <p
0300: 61 74 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73  atthoyts@users.s
0310: 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a  ourceforge.net>.
0320: 0a 09 2a 20 77 69 6e 2f 4d 61 6b 65 66 69 6c 65  ..* win/Makefile
0330: 2e 76 63 20 20 55 70 64 61 74 65 64 20 74 68 65  .vc  Updated the
0340: 20 6e 6d 61 6b 65 20 62 75 69 6c 64 20 66 69 6c   nmake build fil
0350: 65 73 20 77 69 74 68 20 4d 53 56 43 39 20 73 75  es with MSVC9 su
0360: 70 70 6f 72 74 0a 09 2a 20 77 69 6e 2f 72 75 6c  pport..* win/rul
0370: 65 73 2e 76 63 3a 20 20 20 20 61 6e 64 20 66 69  es.vc:    and fi
0380: 78 65 64 20 74 6f 20 72 75 6e 20 74 68 65 20 74  xed to run the t
0390: 65 73 74 2d 73 75 69 74 65 20 70 72 6f 70 65 72  est-suite proper
03a0: 6c 79 2e 0a 09 2a 20 77 69 6e 2f 6e 6d 61 6b 65  ly...* win/nmake
03b0: 68 6c 70 2e 63 3a 0a 09 2a 20 74 6c 73 2e 74 63  hlp.c:..* tls.tc
03c0: 6c 20 28 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 29  l (tls::initlib)
03d0: 3a 20 43 6f 72 72 65 63 74 65 64 20 6e 61 6d 65  : Corrected name
03e0: 73 70 61 63 65 20 68 61 6e 64 6c 69 6e 67 2e 0a  space handling..
03f0: 09 2a 20 74 6c 73 2e 63 3a 20 41 70 70 6c 69 65  .* tls.c: Applie
0400: 64 20 23 31 38 39 30 32 32 33 20 74 6f 20 66 69  d #1890223 to fi
0410: 78 20 68 61 6e 64 73 68 61 6b 65 20 6f 6e 20 6e  x handshake on n
0420: 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 20 73 6f 63 6b  on-blocking sock
0430: 65 74 73 0a 0a 32 30 30 38 2d 30 33 2d 31 37 20  ets..2008-03-17 
0440: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a 65   Jeff Hobbs  <je
0450: 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65 2e  ffh@ActiveState.
0460: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c  com>...* tls.tcl
0470: 20 28 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 29 3a   (tls::initlib):
0480: 20 20 20 20 20 6c 6f 61 64 20 74 6c 73 2e 74 63       load tls.tc
0490: 6c 20 66 69 72 73 74 20 61 6e 64 20 63 61 6c 6c  l first and call
04a0: 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20  ..* Makefile.in 
04b0: 28 70 6b 67 49 6e 64 65 78 2e 74 63 6c 29 3a 20  (pkgIndex.tcl): 
04c0: 74 6c 73 3a 3a 69 6e 69 74 6c 69 62 20 74 6f 20  tls::initlib to 
04d0: 6c 6f 61 64 20 6c 69 62 72 61 72 79 20 74 6f 0a  load library to.
04e0: 09 68 61 6e 64 6c 65 20 63 77 64 20 63 68 61 6e  .handle cwd chan
04f0: 67 65 73 2e 20 5b 42 75 67 20 31 38 38 38 31 31  ges. [Bug 188811
0500: 33 5d 0a 0a 32 30 30 37 2d 30 39 2d 30 36 20 20  3]..2007-09-06  
0510: 50 61 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74  Pat Thoyts  <pat
0520: 74 68 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75  thoyts@users.sou
0530: 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09  rceforge.net>...
0540: 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20  * tls.c:        
0550: 20 20 20 53 69 6c 65 6e 63 65 20 36 34 20 62 69     Silence 64 bi
0560: 74 20 69 6e 74 65 67 65 72 20 63 6f 6e 76 65 72  t integer conver
0570: 73 69 6f 6e 20 77 61 72 6e 69 6e 67 73 0a 09 2a  sion warnings..*
0580: 20 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a   win/nmakehlp.c:
0590: 20 20 55 70 64 61 74 65 20 62 75 69 6c 64 20 73    Update build s
05a0: 79 73 74 65 6d 20 74 6f 20 73 75 70 70 6f 72 74  ystem to support
05b0: 20 41 4d 44 36 34 20 74 61 72 67 65 74 0a 09 2a   AMD64 target..*
05c0: 20 77 69 6e 2f 6d 61 6b 65 66 69 6c 65 2e 76 63   win/makefile.vc
05d0: 3a 20 77 69 74 68 20 4d 53 56 43 38 0a 09 2a 20  : with MSVC8..* 
05e0: 77 69 6e 2f 72 75 6c 65 73 2e 76 63 3a 0a 0a 32  win/rules.vc:..2
05f0: 30 30 37 2d 30 36 2d 32 32 20 20 4a 65 66 66 20  007-06-22  Jeff 
0600: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63  Hobbs  <jeffh@Ac
0610: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a  tiveState.com>..
0620: 09 2a 20 74 6c 73 49 4f 2e 63 20 28 54 6c 73 49  .* tlsIO.c (TlsI
0630: 6e 70 75 74 50 72 6f 63 2c 20 54 6c 73 4f 75 74  nputProc, TlsOut
0640: 70 75 74 50 72 6f 63 2c 20 54 6c 73 57 61 74 63  putProc, TlsWatc
0650: 68 50 72 6f 63 29 3a 20 0a 09 2a 20 74 6c 73 2e  hProc): ..* tls.
0660: 63 20 28 56 65 72 69 66 79 43 61 6c 6c 62 61 63  c (VerifyCallbac
0670: 6b 29 3a 20 61 64 64 20 61 6e 20 73 74 61 74 65  k): add an state
0680: 20 66 6c 61 67 20 69 6e 20 74 68 65 20 76 65 72   flag in the ver
0690: 69 66 79 20 63 61 6c 6c 62 61 63 6b 0a 09 74 68  ify callback..th
06a0: 61 74 20 70 72 65 76 65 6e 74 73 20 70 6f 73 73  at prevents poss
06b0: 69 62 6c 79 20 72 65 63 75 72 73 69 6f 6e 20 28  ibly recursion (
06c0: 6f 6e 20 27 75 70 64 61 74 65 27 29 2e 20 5b 42  on 'update'). [B
06d0: 75 67 20 31 36 35 32 33 38 30 5d 0a 0a 09 2a 20  ug 1652380]...* 
06e0: 74 65 73 74 73 2f 63 69 70 68 65 72 73 2e 74 65  tests/ciphers.te
06f0: 73 74 3a 20 72 65 77 6f 72 6b 65 64 20 74 6f 20  st: reworked to 
0700: 6d 61 6b 65 20 74 65 73 74 20 6f 75 74 70 75 74  make test output
0710: 20 63 6c 65 61 6e 65 72 20 74 6f 0a 09 75 6e 64   cleaner to..und
0720: 65 72 73 74 61 6e 64 20 6d 69 73 73 69 6e 67 20  erstand missing 
0730: 63 69 70 68 65 72 73 20 28 69 66 20 61 6e 79 29  ciphers (if any)
0740: 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e  ...* Makefile.in
0750: 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e  , tclconfig/tcl.
0760: 6d 34 3a 20 75 70 64 61 74 65 20 74 6f 20 54 45  m4: update to TE
0770: 41 20 33 2e 36 0a 09 2a 20 63 6f 6e 66 69 67 75  A 3.6..* configu
0780: 72 65 2c 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e  re, configure.in
0790: 3a 20 20 20 20 20 20 20 75 73 69 6e 67 20 61 75  :       using au
07a0: 74 6f 63 6f 6e 66 2d 32 2e 35 39 0a 0a 32 30 30  toconf-2.59..200
07b0: 37 2d 30 32 2d 32 38 20 20 50 61 74 20 54 68 6f  7-02-28  Pat Tho
07c0: 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40  yts  <patthoyts@
07d0: 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67  users.sourceforg
07e0: 65 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e 2f 6d  e.net>...* win/m
07f0: 61 6b 65 66 69 6c 65 2e 76 63 3a 20 52 65 62 61  akefile.vc: Reba
0800: 73 65 20 74 68 65 20 44 4c 4c 20 73 65 6e 73 69  se the DLL sensi
0810: 62 6c 79 2e 20 41 64 64 69 74 69 6f 6e 61 6c 20  bly. Additional 
0820: 6c 69 62 73 20 66 6f 72 20 0a 09 73 74 61 74 69  libs for ..stati
0830: 63 20 6c 69 6e 6b 20 6f 66 20 6f 70 65 6e 73 73  c link of openss
0840: 6c 2e 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 20 62  l...* tls.tcl: b
0850: 75 67 20 23 31 35 37 39 38 33 37 20 2d 20 54 49  ug #1579837 - TI
0860: 50 20 32 37 38 20 62 75 67 20 28 70 6f 73 73 69  P 278 bug (possi
0870: 62 6c 79 29 20 2d 20 66 69 78 65 64 2e 0a 0a 32  bly) - fixed...2
0880: 30 30 36 2d 30 33 2d 33 30 20 20 50 61 74 20 54  006-03-30  Pat T
0890: 68 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74  hoyts  <patthoyt
08a0: 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f  s@users.sourcefo
08b0: 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 74 63 6c  rge.net>...* tcl
08c0: 63 6f 6e 66 69 67 2f 2a 3a 20 20 55 70 64 61 74  config/*:  Updat
08d0: 65 64 20 74 6f 20 54 45 41 20 33 2e 35 20 69 6e  ed to TEA 3.5 in
08e0: 20 72 65 73 70 6f 6e 73 65 20 74 6f 20 62 75 67   response to bug
08f0: 20 31 34 36 30 34 39 31 0a 09 2a 20 63 6f 6e 66   1460491..* conf
0900: 69 67 75 72 65 2a 3a 20 20 20 52 65 67 65 6e 65  igure*:   Regene
0910: 72 61 74 65 64 20 63 6f 6e 66 69 67 75 72 65 2e  rated configure.
0920: 0a 0a 32 30 30 35 2d 30 32 2d 30 38 20 20 4a 65  ..2005-02-08  Je
0930: 66 66 20 48 6f 62 62 73 20 20 3c 6a 65 66 66 68  ff Hobbs  <jeffh
0940: 40 41 63 74 69 76 65 53 74 61 74 65 2e 63 6f 6d  @ActiveState.com
0950: 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65 2e 69  >...* Makefile.i
0960: 6e 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c  n, tclconfig/tcl
0970: 2e 6d 34 3a 20 75 70 64 61 74 65 20 74 6f 20 54  .m4: update to T
0980: 45 41 20 33 2e 32 0a 09 2a 20 63 6f 6e 66 69 67  EA 3.2..* config
0990: 75 72 65 2c 20 63 6f 6e 66 69 67 75 72 65 2e 69  ure, configure.i
09a0: 6e 3a 20 20 20 20 20 20 20 75 73 69 6e 67 20 61  n:       using a
09b0: 75 74 6f 63 6f 6e 66 2d 32 2e 35 39 0a 0a 32 30  utoconf-2.59..20
09c0: 30 34 2d 31 32 2d 32 33 20 20 50 61 74 20 54 68  04-12-23  Pat Th
09d0: 6f 79 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73  oyts  <patthoyts
09e0: 40 75 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72  @users.sourcefor
09f0: 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 4d 61 6b 65  ge.net>...* Make
0a00: 66 69 6c 65 2e 69 6e 3a 20 20 20 20 20 20 52 65  file.in:      Re
0a10: 6d 6f 76 65 64 20 73 70 75 72 69 6f 75 73 20 63  moved spurious c
0a20: 6f 70 79 69 6e 67 20 6f 66 20 74 6c 73 2e 74 63  opying of tls.tc
0a30: 6c 20 69 6e 74 6f 20 74 68 65 0a 09 20 20 20 20  l into the..    
0a40: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0a50: 62 75 69 6c 64 20 64 69 72 65 63 74 6f 72 79 2e  build directory.
0a60: 0a 0a 32 30 30 34 2d 31 32 2d 32 32 20 20 50 61  ..2004-12-22  Pa
0a70: 74 20 54 68 6f 79 74 73 20 20 3c 70 61 74 74 68  t Thoyts  <patth
0a80: 6f 79 74 73 40 75 73 65 72 73 2e 73 6f 75 72 63  oyts@users.sourc
0a90: 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20  eforge.net>...* 
0aa0: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20 20 20  configure.in:   
0ab0: 20 20 49 6e 63 72 65 6d 65 6e 74 65 64 20 6d 69    Incremented mi
0ac0: 6e 6f 72 20 76 65 72 73 69 6f 6e 20 74 6f 20 31  nor version to 1
0ad0: 2e 35 2e 31 0a 09 2a 20 63 6f 6e 66 69 67 75 72  .5.1..* configur
0ae0: 65 3a 20 20 20 20 20 20 20 20 0a 0a 32 30 30 34  e:        ..2004
0af0: 2d 31 32 2d 31 37 20 20 50 61 74 20 54 68 6f 79  -12-17  Pat Thoy
0b00: 74 73 20 20 3c 70 61 74 74 68 6f 79 74 73 40 75  ts  <patthoyts@u
0b10: 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65  sers.sourceforge
0b20: 2e 6e 65 74 3e 0a 0a 09 2a 20 77 69 6e 2f 6d 61  .net>...* win/ma
0b30: 6b 65 66 69 6c 65 2e 76 63 3a 20 20 41 64 64 65  kefile.vc:  Adde
0b40: 64 20 74 68 65 20 4d 53 56 43 20 62 75 69 6c 64  d the MSVC build
0b50: 20 73 79 73 74 65 6d 20 28 66 72 6f 6d 20 74 68   system (from th
0b60: 65 20 54 63 6c 0a 09 2a 20 77 69 6e 2f 72 75 6c  e Tcl..* win/rul
0b70: 65 73 2e 76 63 3a 20 20 20 20 20 73 61 6d 70 6c  es.vc:     sampl
0b80: 65 65 78 74 65 6e 73 69 6f 6e 29 2e 0a 09 2a 20  eextension)...* 
0b90: 77 69 6e 2f 6e 6d 61 6b 65 68 6c 70 2e 63 3a 0a  win/nmakehlp.c:.
0ba0: 09 2a 20 77 69 6e 2f 74 6c 73 2e 72 63 20 20 20  .* win/tls.rc   
0bb0: 20 20 20 20 20 41 64 64 65 64 20 57 69 6e 64 6f       Added Windo
0bc0: 77 73 20 72 65 73 6f 75 72 63 65 20 66 69 6c 65  ws resource file
0bd0: 2e 0a 09 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a 20  .....* tls.tcl: 
0be0: 20 20 20 20 20 20 20 20 20 46 72 6f 6d 20 70 61           From pa
0bf0: 74 63 68 20 23 39 34 38 31 35 35 2c 20 61 64 64  tch #948155, add
0c00: 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 0a 09  ed support for..
0c10: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0c20: 20 20 20 20 61 6c 74 65 72 6e 61 74 65 20 73 6f      alternate so
0c30: 63 6b 65 74 20 63 6f 6d 6d 61 6e 64 73 2e 0a 09  cket commands...
0c40: 2a 20 74 6c 73 2e 63 3a 20 20 20 20 20 20 20 20  * tls.c:        
0c50: 20 20 20 20 51 75 69 65 74 65 6e 20 73 6f 6d 65      Quieten some
0c60: 20 4d 53 56 43 20 77 61 72 6e 69 6e 67 73 2e 20   MSVC warnings. 
0c70: 50 72 65 66 65 72 20 63 6b 61 6c 6c 6f 63 0a 09  Prefer ckalloc..
0c80: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0c90: 20 20 20 20 6f 76 65 72 20 54 63 6c 5f 41 6c 6c      over Tcl_All
0ca0: 6f 63 2e 20 28 44 61 76 69 64 20 47 72 61 76 65  oc. (David Grave
0cb0: 72 61 75 78 29 2e 0a 0a 32 30 30 34 2d 30 36 2d  raux)...2004-06-
0cc0: 32 39 20 20 50 61 74 20 54 68 6f 79 74 73 20 20  29  Pat Thoyts  
0cd0: 3c 70 61 74 74 68 6f 79 74 73 40 75 73 65 72 73  <patthoyts@users
0ce0: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74  .sourceforge.net
0cf0: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 20 20 20 20  >...* tls.c:    
0d00: 20 20 20 20 20 20 20 20 46 69 78 75 70 20 74 6f          Fixup to
0d10: 20 62 75 69 6c 64 20 61 67 61 69 6e 73 74 20 74   build against t
0d20: 63 6c 20 38 2e 33 2e 33 2e 20 48 61 6e 64 6c 65  cl 8.3.3. Handle
0d30: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 20 20 20  ..* tlsIO.c:    
0d40: 20 20 20 20 20 20 38 2e 34 20 63 6f 6e 73 74 69        8.4 consti
0d50: 66 69 63 61 74 69 6f 6e 2e 0a 0a 09 2a 20 74 6c  fication....* tl
0d60: 73 49 6e 74 2e 68 3a 20 20 20 20 20 20 20 20 20  sInt.h:         
0d70: 41 64 64 65 64 20 68 65 61 64 65 72 73 20 72 65  Added headers re
0d80: 71 75 69 72 65 64 20 77 69 74 68 20 4d 53 56 43  quired with MSVC
0d90: 20 6f 6e 20 57 69 6e 33 32 2e 0a 09 2a 20 74 6c   on Win32...* tl
0da0: 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20  sX509.c:        
0db0: 75 6e 64 65 66 20 6d 69 6e 20 61 6e 64 20 6d 61  undef min and ma
0dc0: 78 20 69 66 20 64 65 66 69 6e 65 64 20 28 77 69  x if defined (wi
0dd0: 6e 33 32 29 2e 0a 0a 09 2a 20 4d 61 6b 65 66 69  n32)....* Makefi
0de0: 6c 65 2e 69 6e 3a 20 20 20 20 20 20 46 69 78 65  le.in:      Fixe
0df0: 64 20 74 6f 20 62 75 69 6c 64 20 6f 6e 20 77 69  d to build on wi
0e00: 6e 33 32 20 75 73 69 6e 67 20 6d 73 79 73 20 77  n32 using msys w
0e10: 69 74 68 0a 09 2a 20 61 63 6c 6f 63 61 6c 2e 6d  ith..* aclocal.m
0e20: 34 3a 20 20 20 20 20 20 20 4d 53 56 43 2e 20 41  4:       MSVC. A
0e30: 6c 73 6f 20 66 69 78 65 64 20 74 68 65 20 74 65  lso fixed the te
0e40: 73 74 20 74 61 72 67 65 74 2e 0a 09 2a 20 63 6f  st target...* co
0e50: 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 63  nfigure.in:..* c
0e60: 6f 6e 66 69 67 75 72 65 3a 20 20 20 20 20 20 20  onfigure:       
0e70: 20 52 65 67 65 6e 65 72 61 74 65 64 2e 0a 09 2a   Regenerated...*
0e80: 20 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d   tclconfig/tcl.m
0e90: 34 3a 20 55 70 64 61 74 65 64 20 74 6f 20 6d 6f  4: Updated to mo
0ea0: 73 74 20 72 65 63 65 6e 74 20 76 65 72 73 69 6f  st recent versio
0eb0: 6e 2e 0a 0a 32 30 30 34 2d 30 33 2d 32 33 20 20  n...2004-03-23  
0ec0: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73  Dan Razzell <res
0ed0: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79  earch@starfishsy
0ee0: 73 74 65 6d 73 2e 63 61 3e 0a 09 2a 20 74 6c 73  stems.ca>..* tls
0ef0: 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a  .c:..* tlsBIO.c:
0f00: 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 0a 09 2a 20  ..* tlsIO.c:..* 
0f10: 74 6c 73 49 6e 74 2e 68 3a 09 46 69 78 65 64 20  tlsInt.h:.Fixed 
0f20: 74 79 70 65 20 6d 61 74 63 68 20 77 61 72 6e 69  type match warni
0f30: 6e 67 73 2e 0a 0a 32 30 30 34 2d 30 33 2d 31 39  ngs...2004-03-19
0f40: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a    Jeff Hobbs  <j
0f50: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65  effh@ActiveState
0f60: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20  .com>...* tls.c 
0f70: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 20 20 72 65  (Tls_Init):   re
0f80: 70 6c 61 63 65 64 20 6f 6c 64 65 72 20 54 45 41  placed older TEA
0f90: 20 63 6f 6e 66 69 67 20 77 69 74 68 20 6e 65 77   config with new
0fa0: 65 72 0a 09 2a 20 63 6f 6e 66 69 67 2f 2a 20 28  er..* config/* (
0fb0: 72 65 6d 6f 76 65 64 29 3a 0a 09 2a 20 70 6b 67  removed):..* pkg
0fc0: 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 2c 20 73 74  Index.tcl.in, st
0fd0: 72 6e 63 61 73 65 63 6d 70 2e 63 20 28 72 65 6d  rncasecmp.c (rem
0fe0: 6f 76 65 64 29 3a 0a 09 2a 20 4d 61 6b 65 66 69  oved):..* Makefi
0ff0: 6c 65 2e 69 6e 2c 20 61 63 6c 6f 63 61 6c 2e 6d  le.in, aclocal.m
1000: 34 2c 20 63 6f 6e 66 69 67 75 72 65 2c 20 63 6f  4, configure, co
1010: 6e 66 69 67 75 72 65 2e 69 6e 3a 0a 09 2a 20 74  nfigure.in:..* t
1020: 63 6c 63 6f 6e 66 69 67 2f 52 45 41 44 4d 45 2e  clconfig/README.
1030: 74 78 74 2c 20 74 63 6c 63 6f 6e 66 69 67 2f 69  txt, tclconfig/i
1040: 6e 73 74 61 6c 6c 2d 73 68 2c 20 74 63 6c 63 6f  nstall-sh, tclco
1050: 6e 66 69 67 2f 74 63 6c 2e 6d 34 3a 0a 0a 32 30  nfig/tcl.m4:..20
1060: 30 34 2d 30 33 2d 31 37 20 20 44 61 6e 20 52 61  04-03-17  Dan Ra
1070: 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63 68 40  zzell <research@
1080: 73 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e  starfishsystems.
1090: 63 61 3e 0a 0a 09 2a 20 74 6c 73 58 35 30 39 2e  ca>...* tlsX509.
10a0: 63 3a 09 41 64 64 20 73 75 70 70 6f 72 74 20 66  c:.Add support f
10b0: 6f 72 20 6c 6f 6e 67 20 73 65 72 69 61 6c 20 6e  or long serial n
10c0: 75 6d 62 65 72 73 20 70 65 72 20 52 46 43 20 33  umbers per RFC 3
10d0: 32 38 30 2e 0a 09 09 09 46 6f 72 6d 61 74 20 69  280.....Format i
10e0: 73 20 6e 6f 77 20 68 65 78 61 64 65 63 69 6d 61  s now hexadecima
10f0: 6c 2e 20 0a 09 09 09 5b 52 65 71 75 65 73 74 20  l. ....[Request 
1100: 23 39 31 35 33 31 33 5d 0a 09 09 09 43 6f 72 72  #915313]....Corr
1110: 65 63 74 6c 79 20 63 6f 6e 76 65 72 74 20 63 65  ectly convert ce
1120: 72 74 69 66 69 63 61 74 65 20 44 69 73 74 69 6e  rtificate Distin
1130: 67 75 69 73 68 65 64 20 4e 61 6d 65 73 0a 09 09  guished Names...
1140: 09 74 6f 20 54 63 6c 20 73 74 72 69 6e 67 20 72  .to Tcl string r
1150: 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 2e 20 20  epresentation.  
1160: 45 6c 69 6d 69 6e 61 74 65 73 20 75 73 65 20 6f  Eliminates use o
1170: 66 0a 09 09 09 64 65 70 72 65 63 61 74 65 64 20  f....deprecated 
1180: 4f 70 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f 6e  OpenSSL function
1190: 2e 20 20 46 6f 72 6d 61 74 20 69 73 20 6e 6f 77  .  Format is now
11a0: 20 63 6f 6d 70 6c 69 61 6e 74 0a 09 09 09 77 69   compliant....wi
11b0: 74 68 20 52 46 43 20 32 32 35 33 2e 20 20 5b 52  th RFC 2253.  [R
11c0: 65 71 75 65 73 74 20 23 39 31 35 33 31 35 5d 0a  equest #915315].
11d0: 0a 32 30 30 34 2d 30 32 2d 31 37 20 20 44 61 6e  .2004-02-17  Dan
11e0: 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72   Razzell <resear
11f0: 63 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65  ch@starfishsyste
1200: 6d 73 2e 63 61 3e 0a 0a 09 54 4c 53 20 31 2e 35  ms.ca>...TLS 1.5
1210: 2e 30 20 52 45 4c 45 41 53 45 0a 0a 32 30 30 34  .0 RELEASE..2004
1220: 2d 30 32 2d 31 32 20 20 44 61 6e 20 52 61 7a 7a  -02-12  Dan Razz
1230: 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74  ell.<research@st
1240: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61  arfishsystems.ca
1250: 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a 09 41 6c 6c  >...* tls.c:.All
1260: 6f 77 20 76 65 72 69 66 79 20 63 61 6c 6c 62 61  ow verify callba
1270: 63 6b 20 74 6f 20 72 65 74 75 72 6e 20 65 6d 70  ck to return emp
1280: 74 79 20 72 65 73 75 6c 74 2e 0a 09 2a 20 74 6c  ty result...* tl
1290: 73 2e 68 74 6d 3a 09 44 6f 63 75 6d 65 6e 74 20  s.htm:.Document 
12a0: 63 61 6c 6c 62 61 63 6b 20 62 65 68 61 76 69 6f  callback behavio
12b0: 72 73 2e 0a 0a 32 30 30 34 2d 30 32 2d 31 31 20  rs...2004-02-11 
12c0: 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c 72 65   Dan Razzell.<re
12d0: 73 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73  search@starfishs
12e0: 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 74  ystems.ca>...* t
12f0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a  ests/tlsIO.test:
1300: 0a 09 2a 20 72 65 6d 6f 74 65 2e 74 63 6c 3a 09  ..* remote.tcl:.
1310: 43 6f 6d 70 6c 65 74 65 20 70 72 69 76 61 74 65  Complete private
1320: 20 6b 65 79 20 6e 61 6d 65 20 63 68 61 6e 67 65   key name change
1330: 73 20 66 72 6f 6d 20 32 30 30 31 2d 30 36 2d 32  s from 2001-06-2
1340: 31 2e 0a 0a 32 30 30 34 2d 30 32 2d 30 33 20 20  1...2004-02-03  
1350: 44 61 6e 20 52 61 7a 7a 65 6c 6c 20 3c 72 65 73  Dan Razzell <res
1360: 65 61 72 63 68 40 73 74 61 72 66 69 73 68 73 79  earch@starfishsy
1370: 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a 20 4d 61  stems.ca>...* Ma
1380: 6b 65 66 69 6c 65 2e 69 6e 3a 09 52 65 6d 6f 76  kefile.in:.Remov
1390: 65 64 20 63 69 72 63 75 6c 61 72 20 64 65 70 65  ed circular depe
13a0: 6e 64 65 6e 63 79 2e 0a 09 2a 20 74 6c 73 49 6e  ndency...* tlsIn
13b0: 74 2e 68 3a 09 4d 61 6b 65 20 66 75 6e 63 74 69  t.h:.Make functi
13c0: 6f 6e 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20  on declarations 
13d0: 65 78 70 6c 69 63 69 74 2e 0a 09 2a 20 74 6c 73  explicit...* tls
13e0: 2e 63 3a 09 46 69 78 20 74 79 70 65 20 6d 61 74  .c:.Fix type mat
13f0: 63 68 20 61 6e 64 20 75 6e 75 73 65 64 20 76 61  ch and unused va
1400: 72 69 61 62 6c 65 20 77 61 72 6e 69 6e 67 73 2e  riable warnings.
1410: 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a 09 46 69  ..* tlsBIO.c:.Fi
1420: 78 20 74 79 70 65 20 6d 61 74 63 68 20 77 61 72  x type match war
1430: 6e 69 6e 67 2e 0a 0a 32 30 30 33 2d 31 32 2d 31  ning...2003-12-1
1440: 35 20 20 44 61 6e 20 52 61 7a 7a 65 6c 6c 09 3c  5  Dan Razzell.<
1450: 72 65 73 65 61 72 63 68 40 73 74 61 72 66 69 73  research@starfis
1460: 68 73 79 73 74 65 6d 73 2e 63 61 3e 0a 0a 09 2a  hsystems.ca>...*
1470: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e   pkgIndex.tcl.in
1480: 3a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a 0a 09 2a  :..* tls.htm:..*
1490: 20 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73   tests/tlsIO.tes
14a0: 74 3a 20 75 70 64 61 74 65 64 20 76 65 72 73 69  t: updated versi
14b0: 6f 6e 20 74 6f 20 31 2e 35 2e 0a 0a 32 30 30 33  on to 1.5...2003
14c0: 2d 31 30 2d 30 37 20 20 44 61 6e 20 52 61 7a 7a  -10-07  Dan Razz
14d0: 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73 74  ell.<research@st
14e0: 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63 61  arfishsystems.ca
14f0: 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68  >...* tests/ciph
1500: 65 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65  ers.test: update
1510: 64 20 6c 69 73 74 20 6f 66 20 74 65 73 74 65 64  d list of tested
1520: 20 63 69 70 68 65 72 73 20 74 6f 20 63 6f 72 72   ciphers to corr
1530: 65 73 70 6f 6e 64 0a 09 2a 20 77 69 74 68 20 74  espond..* with t
1540: 68 6f 73 65 20 61 76 61 69 6c 61 62 6c 65 20 66  hose available f
1550: 72 6f 6d 20 4f 70 65 6e 53 53 4c 2e 20 5b 52 65  rom OpenSSL. [Re
1560: 71 75 65 73 74 20 23 38 31 31 39 38 31 5d 0a 0a  quest #811981]..
1570: 32 30 30 33 2d 31 30 2d 30 37 20 20 44 61 6e 20  2003-10-07  Dan 
1580: 52 61 7a 7a 65 6c 6c 20 3c 72 65 73 65 61 72 63  Razzell <researc
1590: 68 40 73 74 61 72 66 69 73 68 73 79 73 74 65 6d  h@starfishsystem
15a0: 73 2e 63 61 3e 0a 0a 09 2a 20 74 6c 73 2e 63 3a  s.ca>...* tls.c:
15b0: 20 61 64 64 65 64 20 43 4f 4e 53 54 20 77 69 74   added CONST wit
15c0: 68 20 69 6e 74 65 6e 74 20 73 69 6d 69 6c 61 72  h intent similar
15d0: 20 74 6f 20 74 68 6f 73 65 20 66 72 6f 6d 20 32   to those from 2
15e0: 30 30 32 2d 30 32 2d 30 34 2e 0a 09 5b 52 65 71  002-02-04...[Req
15f0: 75 65 73 74 20 23 38 31 31 39 31 31 5d 0a 0a 32  uest #811911]..2
1600: 30 30 33 2d 30 37 2d 30 37 20 20 4a 65 66 66 20  003-07-07  Jeff 
1610: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 41 63  Hobbs  <jeffh@Ac
1620: 74 69 76 65 53 74 61 74 65 2e 63 6f 6d 3e 0a 0a  tiveState.com>..
1630: 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e  .* tls.c (Tls_In
1640: 69 74 29 3a 20 20 20 61 64 64 65 64 20 74 6c 73  it):   added tls
1650: 3a 3a 6d 69 73 63 20 63 6f 6d 6d 61 6e 64 20 70  ::misc command p
1660: 72 6f 76 69 64 65 64 20 62 79 0a 09 2a 20 74 6c  rovided by..* tl
1670: 73 58 35 30 39 2e 63 3a 20 20 20 20 20 20 20 20  sX509.c:        
1680: 20 20 57 6f 6a 63 69 65 63 68 20 4b 6f 63 6a 61    Wojciech Kocja
1690: 6e 20 28 77 6f 6a 63 69 65 63 68 20 6b 6f 63 6a  n (wojciech kocj
16a0: 61 6e 2e 6f 72 67 29 0a 09 2a 20 74 65 73 74 73  an.org)..* tests
16b0: 2f 6b 65 79 74 65 73 74 31 2e 74 63 6c 3a 20 74  /keytest1.tcl: t
16c0: 6f 20 65 78 70 6f 73 65 20 6d 6f 72 65 20 6c 6f  o expose more lo
16d0: 77 2d 6c 65 76 65 6c 20 53 53 4c 20 63 6f 6d 6d  w-level SSL comm
16e0: 61 6e 64 73 0a 09 2a 20 74 65 73 74 73 2f 6b 65  ands..* tests/ke
16f0: 79 74 65 73 74 32 2e 74 63 6c 3a 0a 0a 32 30 30  ytest2.tcl:..200
1700: 33 2d 30 35 2d 31 35 20 20 44 61 6e 20 52 61 7a  3-05-15  Dan Raz
1710: 7a 65 6c 6c 09 3c 72 65 73 65 61 72 63 68 40 73  zell.<research@s
1720: 74 61 72 66 69 73 68 73 79 73 74 65 6d 73 2e 63  tarfishsystems.c
1730: 61 3e 20 0a 0a 09 2a 20 74 6c 73 2e 74 63 6c 3a  a> ...* tls.tcl:
1740: 0a 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 0a 09 2a  ..* tlsInt.h:..*
1750: 20 74 6c 73 2e 63 3a 20 61 64 64 20 73 75 70 70   tls.c: add supp
1760: 6f 72 74 20 66 6f 72 20 62 69 6e 64 69 6e 67 20  ort for binding 
1770: 61 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62  a password callb
1780: 61 63 6b 20 74 6f 20 74 68 65 20 73 6f 63 6b 65  ack to the socke
1790: 74 2e 0a 09 4e 6f 77 20 65 61 63 68 20 73 6f 63  t...Now each soc
17a0: 6b 65 74 20 63 61 6e 20 68 61 76 65 20 69 74 73  ket can have its
17b0: 20 6f 77 6e 20 63 6f 6d 6d 61 6e 64 20 61 6e 64   own command and
17c0: 20 70 61 73 73 77 6f 72 64 20 63 61 6c 6c 62 61   password callba
17d0: 63 6b 73 20 69 6e 73 74 65 61 64 0a 09 6f 66 20  cks instead..of 
17e0: 62 65 69 6e 67 20 66 6f 72 63 65 64 20 74 6f 20  being forced to 
17f0: 68 61 76 65 20 61 6c 6c 20 70 61 73 73 77 6f 72  have all passwor
1800: 64 20 6d 61 6e 61 67 65 6d 65 6e 74 20 70 61 73  d management pas
1810: 73 20 74 68 72 6f 75 67 68 20 61 20 63 6f 6d 6d  s through a comm
1820: 6f 6e 0a 09 70 72 6f 63 65 64 75 72 65 2e 20 20  on..procedure.  
1830: 54 68 65 20 63 6f 6d 6d 6f 6e 20 70 61 73 73 77  The common passw
1840: 6f 72 64 20 70 72 6f 63 65 64 75 72 65 20 69 73  ord procedure is
1850: 20 72 65 74 61 69 6e 65 64 20 66 6f 72 20 63 6f   retained for co
1860: 6d 70 61 74 69 62 69 6c 69 74 79 0a 09 62 75 74  mpatibility..but
1870: 20 69 74 73 20 75 73 65 20 73 68 6f 75 6c 64 20   its use should 
1880: 62 65 20 44 45 50 52 45 43 41 54 45 44 2e 0a 09  be DEPRECATED...
1890: 41 64 64 20 76 65 72 73 69 6f 6e 20 63 6f 6d 6d  Add version comm
18a0: 61 6e 64 20 74 6f 20 72 65 74 75 72 6e 20 4f 70  and to return Op
18b0: 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 73 74  enSSL version st
18c0: 72 69 6e 67 2e 0a 09 52 65 6d 6f 76 65 20 75 6e  ring...Remove un
18d0: 73 74 61 62 6c 65 20 77 6f 72 6b 61 72 6f 75 6e  stable workaroun
18e0: 64 73 20 6e 65 65 64 65 64 20 66 6f 72 20 76 65  ds needed for ve
18f0: 72 69 66 79 20 69 6e 20 6f 62 73 6f 6c 65 74 65  rify in obsolete
1900: 20 76 65 72 73 69 6f 6e 73 20 6f 66 0a 09 4f 70   versions of..Op
1910: 65 6e 53 53 4c 2e 0a 09 46 69 78 20 6d 65 6d 6f  enSSL...Fix memo
1920: 72 79 20 6c 65 61 6b 2e 20 5b 52 65 71 75 65 73  ry leak. [Reques
1930: 74 20 23 36 34 30 36 36 30 5d 0a 09 4d 6f 72 65  t #640660]..More
1940: 20 63 61 73 74 73 20 74 6f 20 65 6c 69 6d 69 6e   casts to elimin
1950: 61 74 65 20 63 6f 6d 70 69 6c 65 72 20 77 61 72  ate compiler war
1960: 6e 69 6e 67 73 2e 0a 0a 09 2a 20 74 6c 73 2e 68  nings....* tls.h
1970: 74 6d 3a 20 64 6f 63 75 6d 65 6e 74 20 70 61 73  tm: document pas
1980: 73 77 6f 72 64 20 63 61 6c 6c 62 61 63 6b 2e 0a  sword callback..
1990: 09 43 6f 72 72 65 63 74 20 74 65 63 68 6e 69 63  .Correct technic
19a0: 61 6c 20 61 6e 64 20 74 79 70 6f 67 72 61 70 68  al and typograph
19b0: 69 63 20 65 72 72 6f 72 73 2e 0a 0a 09 2a 20 52  ic errors....* R
19c0: 45 41 44 4d 45 2e 74 78 74 3a 20 69 64 65 6e 74  EADME.txt: ident
19d0: 69 66 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 20  ify versions of 
19e0: 4f 70 65 6e 53 53 4c 20 77 68 69 63 68 20 66 69  OpenSSL which fi
19f0: 78 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d 73  x known problems
1a00: 2e 0a 09 47 65 6e 65 72 61 6c 20 77 61 72 6e 69  ...General warni
1a10: 6e 67 20 6f 66 20 73 65 63 75 72 69 74 79 20 70  ng of security p
1a20: 72 6f 62 6c 65 6d 73 20 69 6e 20 6f 6c 64 65 72  roblems in older
1a30: 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 4f 70 65   versions of Ope
1a40: 6e 53 53 4c 2e 0a 0a 32 30 30 32 2d 30 32 2d 30  nSSL...2002-02-0
1a50: 34 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  4  Jeff Hobbs  <
1a60: 6a 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74  jeffh@ActiveStat
1a70: 65 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 68  e.com>...* tls.h
1a80: 74 6d 3a 0a 09 2a 20 74 6c 73 2e 63 3a 20 61 64  tm:..* tls.c: ad
1a90: 64 65 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20  ded support for 
1aa0: 6c 6f 63 61 6c 20 63 65 72 74 69 66 69 63 61 74  local certificat
1ab0: 65 20 73 74 61 74 75 73 20 63 68 65 63 6b 2c 20  e status check, 
1ac0: 61 73 20 77 65 6c 6c 0a 09 61 73 20 72 65 74 75  as well..as retu
1ad0: 72 6e 69 6e 67 20 74 68 65 20 23 20 6f 66 20 62  rning the # of b
1ae0: 69 74 73 20 69 6e 20 74 68 65 20 73 65 73 73 69  its in the sessi
1af0: 6f 6e 20 6b 65 79 2e 20 5b 50 61 74 63 68 20 23  on key. [Patch #
1b00: 35 30 35 36 39 38 5d 20 28 72 6f 73 65 29 0a 0a  505698] (rose)..
1b10: 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a 20 74 6c 73  .* tls.c:..* tls
1b20: 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e  IO.c:..* tlsBIO.
1b30: 63 3a 20 61 64 64 65 64 20 43 4f 4e 53 54 73 20  c: added CONSTs 
1b40: 74 6f 20 73 61 74 69 73 66 79 20 54 63 6c 20 38  to satisfy Tcl 8
1b50: 2e 34 20 73 6f 75 72 63 65 73 2e 20 20 54 68 69  .4 sources.  Thi
1b60: 73 20 6d 61 79 0a 09 67 69 76 65 20 77 61 72 6e  s may..give warn
1b70: 69 6e 67 73 20 77 68 65 6e 20 63 6f 6d 70 69 6c  ings when compil
1b80: 65 64 20 61 67 61 69 6e 73 74 20 38 2e 33 2c 20  ed against 8.3, 
1b90: 62 75 74 20 74 68 65 79 20 63 61 6e 20 62 65 20  but they can be 
1ba0: 69 67 6e 6f 72 65 64 2e 0a 0a 09 2a 20 74 65 73  ignored....* tes
1bb0: 74 73 2f 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e  ts/simpleClient.
1bc0: 74 63 6c 3a 0a 09 2a 20 74 65 73 74 73 2f 73 69  tcl:..* tests/si
1bd0: 6d 70 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20  mpleServer.tcl: 
1be0: 70 6f 69 6e 74 20 74 6f 20 75 70 64 61 74 65 64  point to updated
1bf0: 20 63 6c 69 65 6e 74 2f 73 65 72 76 65 72 20 6b   client/server k
1c00: 65 79 20 66 69 6c 65 73 2e 0a 0a 09 2a 20 74 65  ey files....* te
1c10: 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 0a  sts/tlsIO.test:.
1c20: 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65 72 73  .* tests/ciphers
1c30: 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64 20 74  .test: updated t
1c40: 6f 20 6c 6f 61 64 20 74 6c 73 20 66 72 6f 6d 20  o load tls from 
1c50: 62 75 69 6c 64 20 64 69 72 2e 0a 0a 09 2a 20 4d  build dir....* M
1c60: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 72 65 6d 6f  akefile.in: remo
1c70: 76 65 64 20 73 74 72 6e 63 61 73 65 63 6d 70 20  ved strncasecmp 
1c80: 66 72 6f 6d 20 64 65 66 61 75 6c 74 20 6f 62 6a  from default obj
1c90: 65 63 74 20 73 65 74 2e 20 20 54 68 69 73 0a 09  ect set.  This..
1ca0: 69 73 20 6f 6e 6c 79 20 6e 65 65 64 65 64 20 6f  is only needed o
1cb0: 6e 20 74 68 65 20 4d 61 63 2c 20 61 6e 64 20 54  n the Mac, and T
1cc0: 63 6c 20 73 74 75 62 73 20 70 72 6f 76 69 64 65  cl stubs provide
1cd0: 73 20 69 74 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67  s it....* config
1ce0: 75 72 65 3a 20 72 65 67 65 6e 27 65 64 2e 0a 09  ure: regen'ed...
1cf0: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20  * configure.in: 
1d00: 75 70 64 61 74 65 64 20 74 6f 20 31 2e 35 2e 30  updated to 1.5.0
1d10: 20 66 6f 72 20 6e 65 78 74 20 72 65 6c 65 61 73   for next releas
1d20: 65 2e 0a 09 43 68 61 6e 67 65 64 20 64 65 66 61  e...Changed defa
1d30: 75 6c 74 20 6f 70 65 6e 73 73 6c 20 6c 6f 63 61  ult openssl loca
1d40: 74 69 6f 6e 20 74 6f 20 2f 75 73 72 2f 6c 6f 63  tion to /usr/loc
1d50: 61 6c 2f 73 73 6c 20 28 74 68 69 73 20 69 73 20  al/ssl (this is 
1d60: 77 68 65 72 65 0a 09 6f 70 65 6e 73 73 6c 20 30  where..openssl 0
1d70: 2e 39 2e 36 63 20 69 6e 73 74 61 6c 6c 73 20 62  .9.6c installs b
1d80: 79 20 64 65 66 61 75 6c 74 29 2e 0a 09 43 68 61  y default)...Cha
1d90: 6e 67 65 64 20 74 6f 20 75 73 65 20 70 75 62 6c  nged to use publ
1da0: 69 63 20 54 63 6c 20 68 65 61 64 65 72 73 20 28  ic Tcl headers (
1db0: 70 72 69 76 61 74 65 20 6e 6f 74 20 6e 65 65 64  private not need
1dc0: 65 64 29 2e 0a 0a 32 30 30 31 2d 30 36 2d 32 31  ed)...2001-06-21
1dd0: 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 6a    Jeff Hobbs  <j
1de0: 65 66 66 68 40 41 63 74 69 76 65 53 74 61 74 65  effh@ActiveState
1df0: 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31 2e 34 2e  .com>...TLS 1.4.
1e00: 31 20 52 45 4c 45 41 53 45 0a 0a 09 2a 20 63 6f  1 RELEASE...* co
1e10: 6e 66 69 67 75 72 65 3a 20 61 64 64 65 64 20 63  nfigure: added c
1e20: 6f 6e 66 69 67 75 72 65 20 74 6f 20 43 56 53 0a  onfigure to CVS.
1e30: 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a  .* configure.in:
1e40: 20 6d 6f 76 65 64 20 74 6f 20 70 61 74 63 68 6c   moved to patchl
1e50: 65 76 65 6c 20 31 2e 34 2e 31 0a 0a 09 2a 20 4d  evel 1.4.1...* M
1e60: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 63 6f 72 72  akefile.in: corr
1e70: 65 63 74 65 64 20 27 64 69 73 74 27 20 74 61 72  ected 'dist' tar
1e80: 67 65 74 0a 0a 09 2a 20 74 65 73 74 73 2f 63 65  get...* tests/ce
1e90: 72 74 73 2f 66 69 6c 65 2e 73 72 6c 3a 0a 09 2a  rts/file.srl:..*
1ea0: 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63 61 2e   tests/certs/ca.
1eb0: 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65  pem:..* tests/ce
1ec0: 72 74 73 2f 63 6c 69 65 6e 74 2e 6b 65 79 3a 0a  rts/client.key:.
1ed0: 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73 2f 63  .* tests/certs/c
1ee0: 6c 69 65 6e 74 2e 70 65 6d 3a 0a 09 2a 20 74 65  lient.pem:..* te
1ef0: 73 74 73 2f 63 65 72 74 73 2f 63 6c 69 65 6e 74  sts/certs/client
1f00: 2e 72 65 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63  .req:..* tests/c
1f10: 65 72 74 73 2f 70 72 69 76 6b 65 79 2e 70 65 6d  erts/privkey.pem
1f20: 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74 73  :..* tests/certs
1f30: 2f 73 65 72 76 65 72 2e 6b 65 79 3a 0a 09 2a 20  /server.key:..* 
1f40: 74 65 73 74 73 2f 63 65 72 74 73 2f 73 65 72 76  tests/certs/serv
1f50: 65 72 2e 70 65 6d 3a 0a 09 2a 20 74 65 73 74 73  er.pem:..* tests
1f60: 2f 63 65 72 74 73 2f 73 65 72 76 65 72 2e 72 65  /certs/server.re
1f70: 71 3a 0a 09 2a 20 74 65 73 74 73 2f 63 65 72 74  q:..* tests/cert
1f80: 73 2f 63 61 63 65 72 74 2e 70 65 6d 3a 20 72 65  s/cacert.pem: re
1f90: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 63 61  placed by new ca
1fa0: 2e 70 65 6d 0a 09 2a 20 74 65 73 74 73 2f 63 65  .pem..* tests/ce
1fb0: 72 74 73 2f 73 6b 65 79 2e 70 65 6d 3a 20 72 65  rts/skey.pem: re
1fc0: 70 6c 61 63 65 64 20 62 79 20 6e 65 77 20 73 65  placed by new se
1fd0: 72 76 65 72 2e 6b 65 79 0a 09 2a 20 74 65 73 74  rver.key..* test
1fe0: 73 2f 63 65 72 74 73 2f 63 6b 65 79 2e 70 65 6d  s/certs/ckey.pem
1ff0: 3a 20 72 65 70 6c 61 63 65 64 20 62 79 20 6e 65  : replaced by ne
2000: 77 20 63 6c 69 65 6e 74 2e 6b 65 79 0a 09 2a 20  w client.key..* 
2010: 74 65 73 74 73 2f 63 65 72 74 73 2f 52 45 41 44  tests/certs/READ
2020: 4d 45 2e 74 78 74 3a 20 6e 65 77 20 73 65 74 20  ME.txt: new set 
2030: 6f 66 20 74 65 73 74 20 63 65 72 74 69 66 69 63  of test certific
2040: 61 74 65 73 20 77 69 74 68 20 73 6f 6d 65 0a 09  ates with some..
2050: 52 45 41 44 4d 45 20 69 6e 66 6f 20 6f 6e 20 74  README info on t
2060: 68 65 69 72 20 67 65 6e 65 72 61 74 69 6f 6e 2e  heir generation.
2070: 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70 68 65  ...* tests/ciphe
2080: 72 73 2e 74 65 73 74 3a 20 75 70 64 61 74 65 64  rs.test: updated
2090: 20 63 69 70 68 65 72 73 20 65 78 70 65 63 74 65   ciphers expecte
20a0: 64 20 77 69 74 68 20 64 65 66 61 75 6c 74 0a 09  d with default..
20b0: 6f 70 65 6e 73 73 6c 20 62 75 69 6c 64 2e 0a 0a  openssl build...
20c0: 09 2a 20 74 65 73 74 73 2f 74 63 6c 49 4f 2e 74  .* tests/tclIO.t
20d0: 65 73 74 3a 20 75 70 64 61 74 65 64 20 74 6f 20  est: updated to 
20e0: 75 73 65 20 6e 65 77 20 6e 61 6d 65 73 20 66 6f  use new names fo
20f0: 72 20 63 65 72 74 73 2f 6b 65 79 73 2e 0a 0a 32  r certs/keys...2
2100: 30 30 31 2d 30 33 2d 31 34 20 20 4a 65 66 66 20  001-03-14  Jeff 
2110: 48 6f 62 62 73 20 20 3c 6a 65 66 66 68 40 67 69  Hobbs  <jeffh@gi
2120: 6d 6c 65 74 2e 61 63 74 69 76 65 73 74 61 74 65  mlet.activestate
2130: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 20  .com>...* tls.c 
2140: 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64 64 20  (Tls_Init): add 
2150: 64 6f 2f 77 68 69 6c 65 20 66 6f 72 20 72 61 6e  do/while for ran
2160: 64 6f 6d 20 6e 75 6d 62 65 72 20 69 6e 69 74 69  dom number initi
2170: 61 6c 69 7a 61 74 69 6f 6e 0a 09 74 6f 20 77 6f  alization..to wo
2180: 72 6b 20 61 72 6f 75 6e 64 20 73 6f 6d 65 20 4f  rk around some O
2190: 53 65 73 20 71 75 69 72 6b 73 2e 20 20 28 52 61  Ses quirks.  (Ra
21a0: 6c 70 68 2e 42 69 6c 6c 65 73 40 74 65 6c 74 65  lph.Billes@telte
21b0: 63 68 2e 63 6f 6d 2e 61 75 29 0a 0a 32 30 30 30  ch.com.au)..2000
21c0: 2d 30 39 2d 30 37 20 20 4a 65 66 66 20 48 6f 62  -09-07  Jeff Hob
21d0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
21e0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tics.com>...* tl
21f0: 73 49 4f 2e 63 20 28 54 6c 73 5f 43 68 61 6e 6e  sIO.c (Tls_Chann
2200: 65 6c 54 79 70 65 29 3a 20 73 65 74 20 74 79 70  elType): set typ
2210: 65 4e 61 6d 65 20 66 69 65 6c 64 20 6f 66 20 63  eName field of c
2220: 68 61 6e 6e 65 6c 20 74 79 70 65 20 74 6f 0a 09  hannel type to..
2230: 22 74 6c 73 22 20 28 74 68 69 73 20 67 6f 74 20  "tls" (this got 
2240: 6c 6f 73 74 20 69 6e 20 6d 6f 76 65 20 74 6f 20  lost in move to 
2250: 64 79 6e 61 6d 69 63 20 76 65 72 73 69 6f 6e 20  dynamic version 
2260: 63 6f 6d 70 61 74 61 62 69 6c 69 74 79 0a 09 63  compatability..c
2270: 68 65 63 6b 69 6e 67 29 2e 0a 0a 32 30 30 30 2d  hecking)...2000-
2280: 30 38 2d 32 33 20 20 4a 65 66 66 20 48 6f 62 62  08-23  Jeff Hobb
2290: 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74  s  <hobbs@script
22a0: 69 63 73 2e 63 6f 6d 3e 0a 0a 09 54 4c 53 20 31  ics.com>...TLS 1
22b0: 2e 34 20 52 45 4c 45 41 53 45 44 0a 0a 09 2a 20  .4 RELEASED...* 
22c0: 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 28 64 69 73  Makefile.in (dis
22d0: 74 29 3a 20 63 72 65 61 74 65 20 64 69 73 74 20  t): create dist 
22e0: 74 61 72 67 65 74 20 66 6f 72 20 61 72 63 68 69  target for archi
22f0: 76 65 20 64 69 73 74 72 69 62 75 74 69 6f 6e 73  ve distributions
2300: 0a 0a 09 2a 20 74 65 73 74 73 2f 74 6c 73 49 4f  ...* tests/tlsIO
2310: 2e 74 65 73 74 20 28 74 6c 73 49 4f 2d 38 2e 31  .test (tlsIO-8.1
2320: 29 3a 20 61 64 64 65 64 20 61 20 64 65 6c 61 79  ): added a delay
2330: 20 6f 6e 20 74 68 65 20 61 63 63 65 70 74 20 63   on the accept c
2340: 6c 6f 73 65 0a 09 74 6f 20 6d 61 6b 65 20 74 68  lose..to make th
2350: 65 20 74 65 73 74 20 77 6f 72 6b 20 77 69 74 68  e test work with
2360: 20 4f 70 65 6e 53 53 4c 20 6f 6e 20 57 69 6e 64   OpenSSL on Wind
2370: 6f 77 73 20 28 64 6f 65 73 6e 27 74 20 61 66 66  ows (doesn't aff
2380: 65 63 74 0a 09 6f 74 68 65 72 20 62 75 69 6c 64  ect..other build
2390: 73 29 2e 0a 0a 09 2a 20 74 6c 73 2e 68 74 6d 3a  s)....* tls.htm:
23a0: 20 75 70 64 61 74 65 64 20 77 69 74 68 20 6e 6f   updated with no
23b0: 74 65 73 20 66 6f 72 20 31 2e 34 2e 0a 0a 32 30  tes for 1.4...20
23c0: 30 30 2d 30 38 2d 32 31 20 20 4a 65 66 66 20 48  00-08-21  Jeff H
23d0: 6f 62 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72  obbs  <hobbs@scr
23e0: 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20  iptics.com>...* 
23f0: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74  tests/tlsIO.test
2400: 3a 20 72 65 71 75 69 72 65 20 61 74 20 6c 65 61  : require at lea
2410: 73 74 20 74 6c 73 31 2e 34 20 69 6e 20 74 65 73  st tls1.4 in tes
2420: 74 20 73 75 69 74 65 2e 0a 0a 32 30 30 30 2d 30  t suite...2000-0
2430: 38 2d 31 38 20 20 4a 65 66 66 20 48 6f 62 62 73  8-18  Jeff Hobbs
2440: 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69    <hobbs@scripti
2450: 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e  cs.com>...* tls.
2460: 63 20 28 54 6c 73 5f 49 6e 69 74 29 3a 20 61 64  c (Tls_Init): ad
2470: 64 65 64 20 63 61 6c 6c 20 74 6f 20 52 41 4e 44  ded call to RAND
2480: 5f 73 65 65 64 20 74 6f 20 73 65 65 64 20 74 68  _seed to seed th
2490: 65 20 53 53 4c 20 72 61 6e 64 6f 6d 0a 09 6e 75  e SSL random..nu
24a0: 6d 62 65 72 20 67 65 6e 65 72 61 74 6f 72 2e 20  mber generator. 
24b0: 20 57 69 74 68 6f 75 74 20 74 68 69 73 2c 20 4f   Without this, O
24c0: 70 65 6e 53 53 4c 20 30 2e 39 2e 35 20 63 68 6f  penSSL 0.9.5 cho
24d0: 6b 65 73 2c 20 61 6e 64 20 69 6e 20 61 6e 79 0a  kes, and in any.
24e0: 09 63 61 73 65 20 69 74 20 69 73 20 61 20 62 69  .case it is a bi
24f0: 67 20 73 65 63 75 72 69 74 79 20 68 6f 6c 65 20  g security hole 
2500: 74 6f 20 64 6f 20 77 69 74 68 6f 75 74 20 69 74  to do without it
2510: 2e 0a 0a 09 2a 20 63 6f 6e 66 69 67 75 72 65 2e  ....* configure.
2520: 69 6e 20 28 4f 50 45 4e 53 53 4c 29 3a 20 61 64  in (OPENSSL): ad
2530: 64 65 64 20 4e 4f 5f 49 44 45 41 20 61 6e 64 20  ded NO_IDEA and 
2540: 4e 4f 5f 52 43 35 20 64 65 66 69 6e 65 73 20 62  NO_RC5 defines b
2550: 79 0a 09 64 65 66 61 75 6c 74 20 77 68 65 6e 20  y..default when 
2560: 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 4f  compiling with O
2570: 70 65 6e 53 53 4c 2e 0a 0a 09 2a 20 74 6c 73 49  penSSL....* tlsI
2580: 6e 74 2e 68 3a 20 61 64 64 65 64 20 65 72 72 2e  nt.h: added err.
2590: 68 20 69 6e 63 6c 75 64 65 0a 0a 09 2a 20 74 6c  h include...* tl
25a0: 73 42 49 4f 2e 63 3a 0a 09 2a 20 74 6c 73 49 4f  sBIO.c:..* tlsIO
25b0: 2e 63 3a 20 63 6f 72 72 65 63 74 65 64 20 70 65  .c: corrected pe
25c0: 64 61 6e 74 69 63 20 63 61 73 74 20 65 72 72 6f  dantic cast erro
25d0: 72 73 2e 0a 0a 32 30 30 30 2d 30 38 2d 31 36 20  rs...2000-08-16 
25e0: 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c 68 6f   Jeff Hobbs  <ho
25f0: 62 62 73 40 73 63 72 69 70 74 69 63 73 2e 63 6f  bbs@scriptics.co
2600: 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 63 69 70  m>...* tests/cip
2610: 68 65 72 73 2e 74 65 73 74 3a 20 69 6d 70 72 6f  hers.test: impro
2620: 76 65 64 20 61 62 69 6c 69 74 79 20 74 6f 20 63  ved ability to c
2630: 68 61 6e 67 65 20 63 6f 6e 73 74 72 61 69 6e 74  hange constraint
2640: 0a 09 73 65 74 74 69 6e 67 20 66 6f 72 20 77 68  ..setting for wh
2650: 65 74 68 65 72 20 75 73 65 72 20 63 6f 6d 70 69  ether user compi
2660: 6c 65 64 20 61 67 61 69 6e 73 74 20 52 53 41 20  led against RSA 
2670: 6f 72 20 4f 70 65 6e 53 53 4c 20 6c 69 62 73 2e  or OpenSSL libs.
2680: 0a 0a 09 2a 20 74 6c 73 2e 63 20 28 54 6c 73 5f  ...* tls.c (Tls_
2690: 49 6e 69 74 29 3a 20 63 6f 72 72 65 63 74 65 64  Init): corrected
26a0: 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e 20   interpretation 
26b0: 6f 66 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65  of version numbe
26c0: 72 0a 09 28 70 61 74 63 68 6c 65 76 65 6c 20 61  r..(patchlevel a
26d0: 6e 64 20 72 65 6c 65 61 73 65 2f 73 65 72 69 61  nd release/seria
26e0: 6c 20 77 65 72 65 20 73 77 61 70 70 65 64 29 2e  l were swapped).
26f0: 0a 0a 32 30 30 30 2d 30 38 2d 31 35 20 20 4a 65  ..2000-08-15  Je
2700: 66 66 20 48 6f 62 62 73 20 20 3c 68 6f 62 62 73  ff Hobbs  <hobbs
2710: 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a  @scriptics.com>.
2720: 0a 09 2a 20 52 45 41 44 4d 45 2e 74 78 74 3a 20  ..* README.txt: 
2730: 61 64 64 65 64 20 6e 6f 74 65 73 20 61 62 6f 75  added notes abou
2740: 74 20 6e 65 65 64 20 74 6f 20 75 73 65 20 38 2e  t need to use 8.
2750: 32 2e 30 2b 2e 0a 0a 09 2a 20 74 6c 73 49 6e 74  2.0+....* tlsInt
2760: 2e 68 3a 0a 09 2a 20 74 6c 73 2e 63 3a 0a 09 2a  .h:..* tls.c:..*
2770: 20 74 6c 73 49 4f 2e 63 3a 20 63 6f 72 72 65 63   tlsIO.c: correc
2780: 74 65 64 20 73 74 72 75 63 74 75 72 65 20 69 6e  ted structure in
2790: 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 74 6f 20  itialization to 
27a0: 77 6f 72 6b 20 77 68 65 6e 0a 09 63 6f 6d 70 69  work when..compi
27b0: 6c 69 6e 67 20 77 69 74 68 20 38 2e 32 2e 20 20  ling with 8.2.  
27c0: 4e 6f 77 20 63 6f 6d 70 69 6c 65 73 20 77 69 74  Now compiles wit
27d0: 68 20 38 2e 32 2b 20 61 6e 64 20 74 65 73 74 65  h 8.2+ and teste
27e0: 64 20 74 6f 20 77 6f 72 6b 0a 09 77 69 74 68 20  d to work..with 
27f0: 38 2e 32 2b 20 61 6e 64 20 64 79 6e 61 6d 69 63  8.2+ and dynamic
2800: 61 6c 6c 79 20 61 64 6a 75 73 74 20 74 6f 20 74  ally adjust to t
2810: 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 63  he version of Tc
2820: 6c 20 69 74 20 77 61 73 0a 09 6c 6f 61 64 65 64  l it was..loaded
2830: 20 69 6e 74 6f 2e 20 20 54 4c 53 20 77 69 6c 6c   into.  TLS will
2840: 20 66 61 69 6c 20 74 68 65 20 74 65 73 74 20 73   fail the test s
2850: 75 69 74 65 20 77 69 74 68 20 54 63 6c 20 38 2e  uite with Tcl 8.
2860: 32 2d 38 2e 33 2e 31 2e 0a 0a 09 2a 20 74 65 73  2-8.3.1....* tes
2870: 74 73 2f 61 6c 6c 2e 74 63 6c 3a 20 61 64 64 65  ts/all.tcl: adde
2880: 64 20 63 61 74 63 68 20 61 72 6f 75 6e 64 20 3a  d catch around :
2890: 3a 74 63 6c 74 65 73 74 3a 3a 6e 6f 72 6d 61 6c  :tcltest::normal
28a0: 69 7a 65 50 61 74 68 0a 09 62 65 63 61 75 73 65  izePath..because
28b0: 20 69 74 20 64 6f 65 73 6e 27 74 20 65 78 69 73   it doesn't exis
28c0: 74 20 69 6e 20 70 72 65 2d 38 2e 33 20 74 63 6c  t in pre-8.3 tcl
28d0: 74 65 73 74 2e 0a 0a 09 2a 20 74 65 73 74 73 2f  test....* tests/
28e0: 73 69 6d 70 6c 65 43 6c 69 65 6e 74 2e 74 63 6c  simpleClient.tcl
28f0: 3a 20 0a 09 2a 20 74 65 73 74 73 2f 73 69 6d 70  : ..* tests/simp
2900: 6c 65 53 65 72 76 65 72 2e 74 63 6c 3a 20 61 64  leServer.tcl: ad
2910: 64 65 64 20 73 69 6d 70 6c 65 20 63 6c 69 65 6e  ded simple clien
2920: 74 2f 73 65 72 76 65 72 20 74 65 73 74 20 73 63  t/server test sc
2930: 72 69 70 74 73 0a 09 74 68 61 74 20 75 73 65 20  ripts..that use 
2940: 74 65 73 74 20 63 65 72 74 73 20 61 6e 64 20 63  test certs and c
2950: 61 6e 20 64 6f 20 73 69 6d 70 6c 65 20 73 74 72  an do simple str
2960: 65 73 73 20 74 65 73 74 73 2e 0a 0a 32 30 30 30  ess tests...2000
2970: 2d 30 38 2d 31 34 20 20 4a 65 66 66 20 48 6f 62  -08-14  Jeff Hob
2980: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
2990: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  tics.com>...* tl
29a0: 73 49 6e 74 2e 68 3a 0a 09 2a 20 74 6c 73 49 4f  sInt.h:..* tlsIO
29b0: 2e 63 3a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 3a  .c:..* tlsBIO.c:
29c0: 0a 09 2a 20 74 6c 73 2e 63 3a 20 63 68 61 6e 67  ..* tls.c: chang
29d0: 65 64 20 61 72 6f 75 6e 64 20 74 6f 20 6f 6e 6c  ed around to onl
29e0: 79 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 38  y working with 8
29f0: 2e 32 2e 30 2b 20 28 38 2e 33 2e 32 2b 0a 09 70  .2.0+ (8.3.2+..p
2a00: 72 65 66 65 72 72 65 64 29 2c 20 77 69 74 68 20  referred), with 
2a10: 72 75 6e 74 69 6d 65 20 63 68 65 63 6b 73 20 66  runtime checks f
2a20: 6f 72 20 70 72 65 2d 20 61 6e 64 20 70 6f 73 74  or pre- and post
2a30: 2d 69 6f 2d 72 65 77 72 69 74 65 2e 0a 0a 09 2a  -io-rewrite....*
2a40: 20 74 6c 73 2e 63 20 28 54 6c 73 5f 49 6e 69 74   tls.c (Tls_Init
2a50: 29 3a 20 63 68 61 6e 67 65 64 20 69 74 20 74 6f  ): changed it to
2a60: 20 72 65 71 75 69 72 65 20 38 2e 33 2e 32 20 77   require 8.3.2 w
2a70: 68 65 6e 20 54 63 6c 5f 49 6e 69 74 53 74 75 62  hen Tcl_InitStub
2a80: 73 0a 09 77 61 73 20 63 61 6c 6c 65 64 20 62 65  s..was called be
2a90: 63 61 75 73 65 20 77 65 20 64 6f 6e 27 74 20 77  cause we don't w
2aa0: 61 6e 74 20 70 65 6f 70 6c 65 20 75 73 69 6e 67  ant people using
2ab0: 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a 09 6f   TLS with the..o
2ac0: 72 69 67 69 6e 61 6c 20 73 74 61 63 6b 65 64 20  riginal stacked 
2ad0: 63 68 61 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e  channel implemen
2ae0: 74 61 74 69 6f 6e 2e 0a 0a 32 30 30 30 2d 30 37  tation...2000-07
2af0: 2d 32 36 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -26  Jeff Hobbs 
2b00: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
2b10: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 6d 65 72 67 65  s.com>...* merge
2b20: 64 20 61 6c 6c 20 63 68 61 6e 67 65 73 20 66 72  d all changes fr
2b30: 6f 6d 20 74 6c 73 2d 31 2d 33 2d 69 6f 2d 72 65  om tls-1-3-io-re
2b40: 77 72 69 74 65 20 62 61 63 6b 20 69 6e 74 6f 20  write back into 
2b50: 6d 61 69 6e 20 62 72 61 6e 63 68 0a 0a 09 2a 20  main branch...* 
2b60: 74 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74  tests/tlsIO.test
2b70: 3a 20 75 70 64 61 74 65 64 20 63 6f 6d 6d 65 6e  : updated commen
2b80: 74 73 2c 20 66 69 78 65 64 20 61 20 70 63 43 72  ts, fixed a pcCr
2b90: 61 73 68 20 63 61 73 65 20 74 68 61 74 0a 09 77  ash case that..w
2ba0: 61 73 20 64 75 65 20 74 6f 20 64 65 62 75 67 20  as due to debug 
2bb0: 61 73 73 65 72 74 69 6f 6e 20 69 6e 20 57 69 6e  assertion in Win
2bc0: 64 6f 77 73 20 53 53 4c 2e 0a 0a 09 2a 20 74 6c  dows SSL....* tl
2bd0: 73 2e 63 20 28 49 6d 70 6f 72 74 4f 62 6a 43 6d  s.c (ImportObjCm
2be0: 64 29 3a 20 72 65 6d 6f 76 65 64 20 75 6e 6e 65  d): removed unne
2bf0: 63 65 73 73 61 72 79 20 75 73 65 20 6f 66 20 27  cessary use of '
2c00: 62 69 6f 27 20 61 72 67 2e 0a 09 28 54 6c 73 5f  bio' arg...(Tls_
2c10: 49 6e 69 74 29 3a 20 63 68 65 63 6b 20 72 65 74  Init): check ret
2c20: 75 72 6e 20 76 61 6c 75 65 20 6f 66 20 53 53 4c  urn value of SSL
2c30: 5f 6c 69 62 72 61 72 79 5f 69 6e 69 74 2e 20 20  _library_init.  
2c40: 41 6c 73 6f 20 6c 6f 74 73 20 6f 66 0a 09 77 68  Also lots of..wh
2c50: 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70  itespace cleanup
2c60: 20 28 6d 6f 72 65 20 6c 69 6b 65 20 54 63 6c 20   (more like Tcl 
2c70: 45 6e 67 20 73 74 79 6c 65 20 67 75 69 64 65 29  Eng style guide)
2c80: 2c 20 62 75 74 20 6e 6f 74 20 61 6c 6c 0a 09 63  , but not all..c
2c90: 6f 64 65 20 77 61 73 20 63 6c 65 61 6e 65 64 20  ode was cleaned 
2ca0: 75 70 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63  up....* tlsBIO.c
2cb0: 3a 20 6d 69 6e 6f 72 20 77 68 69 74 65 73 70 61  : minor whitespa
2cc0: 63 65 20 63 6c 65 61 6e 75 70 0a 0a 09 2a 20 74  ce cleanup...* t
2cd0: 6c 73 49 4f 2e 63 3a 20 6d 69 6e 6f 72 20 77 68  lsIO.c: minor wh
2ce0: 69 74 65 73 70 61 63 65 20 63 6c 65 61 6e 75 70  itespace cleanup
2cf0: 2e 0a 09 28 54 6c 73 49 6e 70 75 74 50 72 6f 63  ...(TlsInputProc
2d00: 2c 20 54 6c 73 4f 75 74 70 75 74 50 72 6f 63 29  , TlsOutputProc)
2d10: 3a 20 41 64 64 65 64 20 45 52 52 5f 63 6c 65 61  : Added ERR_clea
2d20: 72 5f 65 72 72 6f 72 20 62 65 66 6f 72 65 20 63  r_error before c
2d30: 61 6c 6c 73 0a 09 74 6f 20 42 49 4f 5f 72 65 61  alls..to BIO_rea
2d40: 64 20 6f 72 20 42 49 4f 5f 77 72 69 74 65 2c 20  d or BIO_write, 
2d50: 62 65 63 61 75 73 65 20 77 65 20 63 6f 75 6c 64  because we could
2d60: 20 6f 74 68 65 72 77 69 73 65 20 65 6e 64 20 75   otherwise end u
2d70: 70 0a 09 70 75 6c 6c 69 6e 67 20 61 6e 20 65 72  p..pulling an er
2d80: 72 6f 72 20 6f 66 66 20 74 68 65 20 73 74 61 63  ror off the stac
2d90: 6b 20 74 68 61 74 20 64 69 64 6e 27 74 20 62 65  k that didn't be
2da0: 6c 6f 6e 67 20 74 6f 20 75 73 2e 20 20 41 6c 73  long to us.  Als
2db0: 6f 0a 09 63 6c 65 61 6e 75 70 20 75 70 20 65 78  o..cleanup up ex
2dc0: 63 65 73 73 69 76 65 20 75 73 65 20 6f 66 20 67  cessive use of g
2dd0: 6f 74 6f 73 2e 0a 0a 32 30 30 30 2d 30 37 2d 32  otos...2000-07-2
2de0: 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  0  Jeff Hobbs  <
2df0: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
2e00: 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f 74  com>...* tests/t
2e10: 6c 73 49 4f 2e 74 65 73 74 3a 20 63 6f 72 72 65  lsIO.test: corre
2e20: 63 74 65 64 20 76 61 72 69 6f 75 73 20 74 65 73  cted various tes
2e30: 74 73 20 74 6f 20 62 65 20 63 6f 72 72 65 63 74  ts to be correct
2e40: 20 66 6f 72 20 54 4c 53 0a 09 73 74 61 63 6b 65   for TLS..stacke
2e50: 64 20 63 68 61 6e 6e 65 6c 73 20 28 61 73 20 6f  d channels (as o
2e60: 70 70 6f 73 65 64 20 74 6f 20 74 68 65 20 73 74  pposed to the st
2e70: 61 6e 64 61 72 64 20 73 6f 63 6b 65 74 73 20 74  andard sockets t
2e80: 68 65 20 74 65 73 74 0a 09 73 75 69 74 65 20 77  he test..suite w
2e90: 61 73 20 61 64 6f 70 74 65 64 20 66 72 6f 6d 29  as adopted from)
2ea0: 2e 20 20 4b 65 79 20 64 69 66 66 65 72 65 6e 63  .  Key differenc
2eb0: 65 73 20 61 72 65 20 74 68 61 74 20 54 4c 53 20  es are that TLS 
2ec0: 63 61 6e 6e 6f 74 0a 09 6f 70 65 72 61 74 65 20  cannot..operate 
2ed0: 69 6e 20 6f 6e 65 20 70 72 6f 63 65 73 73 20 77  in one process w
2ee0: 69 74 68 6f 75 74 20 61 6c 6c 20 63 68 61 6e 6e  ithout all chann
2ef0: 65 6c 73 20 62 65 69 6e 67 20 6e 6f 6e 2d 62 6c  els being non-bl
2f00: 6f 63 6b 69 6e 67 2c 20 6f 72 0a 09 74 68 65 20  ocking, or..the 
2f10: 68 61 6e 64 73 68 61 6b 65 20 77 69 6c 6c 20 62  handshake will b
2f20: 6c 6f 63 6b 2c 20 61 6e 64 20 68 61 6e 64 73 68  lock, and handsh
2f30: 61 6b 69 6e 67 20 6d 75 73 74 20 62 65 20 66 6f  aking must be fo
2f40: 72 63 65 64 20 69 6e 20 73 6f 6d 65 0a 09 63 61  rced in some..ca
2f50: 73 65 73 2e 20 20 41 6c 73 6f 2c 20 68 61 6e 64  ses.  Also, hand
2f60: 73 68 61 6b 65 73 20 64 6f 6e 27 74 20 73 65 65  shakes don't see
2f70: 6d 20 74 6f 20 63 6f 6d 70 6c 65 74 65 20 75 6e  m to complete un
2f80: 6c 65 73 73 20 74 68 65 20 63 6c 69 65 6e 74 0a  less the client.
2f90: 09 68 61 73 20 70 6c 61 63 65 64 20 61 74 20 6c  .has placed at l
2fa0: 65 61 73 74 20 6f 6e 65 20 62 79 74 65 20 66 6f  east one byte fo
2fb0: 72 20 74 68 65 20 73 65 72 76 65 72 20 74 6f 20  r the server to 
2fc0: 72 65 61 64 20 69 6e 20 74 68 65 20 63 68 61 6e  read in the chan
2fd0: 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73 2f 72  nel....* tests/r
2fe0: 65 6d 6f 74 65 2e 74 63 6c 3a 20 63 6f 72 72 65  emote.tcl: corre
2ff0: 63 74 65 64 20 74 68 65 20 66 69 6e 64 69 6e 67  cted the finding
3000: 20 6f 66 20 74 65 73 74 73 20 63 65 72 74 69 66   of tests certif
3010: 69 63 61 74 65 73 0a 0a 09 2a 20 74 6c 73 49 4f  icates...* tlsIO
3020: 2e 63 20 28 54 6c 73 43 6c 6f 73 65 50 72 6f 63  .c (TlsCloseProc
3030: 29 3a 20 72 65 6d 6f 76 65 64 20 64 65 6c 65 74  ): removed delet
3040: 69 6e 67 20 6f 66 20 74 69 6d 65 72 20 68 61 6e  ing of timer han
3050: 64 6c 65 72 20 61 73 0a 09 74 68 61 74 20 69 73  dler as..that is
3060: 20 68 61 6e 64 6c 65 64 20 62 79 20 54 6c 73 5f   handled by Tls_
3070: 43 6c 65 61 6e 2e 0a 0a 09 2a 20 74 6c 73 2e 74  Clean....* tls.t
3080: 63 6c 20 28 74 6c 73 3a 3a 5f 61 63 63 65 70 74  cl (tls::_accept
3090: 29 3a 20 63 6f 72 72 65 63 74 65 64 20 74 68 65  ): corrected the
30a0: 20 69 6e 74 65 72 6e 61 6c 20 5f 61 63 63 65 70   internal _accep
30b0: 74 20 74 6f 0a 09 74 72 69 63 6b 6c 65 20 63 61  t to..trickle ca
30c0: 6c 6c 62 61 63 6b 20 65 72 72 6f 72 73 20 74 6f  llback errors to
30d0: 20 74 68 65 20 75 73 65 72 2e 0a 0a 09 2a 20 4d   the user....* M
30e0: 61 6b 65 66 69 6c 65 2e 69 6e 3a 20 6d 61 64 65  akefile.in: made
30f0: 20 74 68 65 20 69 6e 73 74 61 6c 6c 2d 62 69 6e   the install-bin
3100: 61 72 69 65 73 20 74 61 72 67 65 74 20 72 65 67  aries target reg
3110: 65 6e 65 72 61 74 65 20 74 68 65 0a 09 70 6b 67  enerate the..pkg
3120: 49 6e 64 65 78 2e 74 63 6c 20 63 6f 72 72 65 63  Index.tcl correc
3130: 74 6c 79 2e 20 20 54 68 65 20 74 65 73 74 20 74  tly.  The test t
3140: 61 72 67 65 74 20 70 72 6f 62 61 62 6c 79 20 73  arget probably s
3150: 68 6f 75 6c 64 6e 27 74 20 73 63 72 65 77 0a 09  houldn't screw..
3160: 69 74 20 75 70 2c 20 62 75 74 20 74 68 69 73 20  it up, but this 
3170: 69 73 20 74 6f 20 62 65 20 6f 6e 20 74 68 65 20  is to be on the 
3180: 73 61 66 65 20 73 69 64 65 2e 0a 0a 32 30 30 30  safe side...2000
3190: 2d 30 37 2d 31 37 20 20 4a 65 66 66 20 48 6f 62  -07-17  Jeff Hob
31a0: 62 73 20 20 3c 68 6f 62 62 73 40 73 63 72 69 70  bs  <hobbs@scrip
31b0: 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 70 6b  tics.com>...* pk
31c0: 67 49 6e 64 65 78 2e 74 63 6c 2e 69 6e 3a 0a 09  gIndex.tcl.in:..
31d0: 2a 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 3a 20  * configure.in: 
31e0: 75 70 64 61 74 65 64 20 76 65 72 73 69 6f 6e 20  updated version 
31f0: 74 6f 20 31 2e 34 0a 0a 32 30 30 30 2d 30 37 2d  to 1.4..2000-07-
3200: 31 33 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20  13  Jeff Hobbs  
3210: 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73  <hobbs@scriptics
3220: 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 65 73 74 73 2f  .com>...* tests/
3230: 74 6c 73 49 4f 2e 74 65 73 74 3a 20 65 6e 61 62  tlsIO.test: enab
3240: 6c 65 64 20 74 65 73 74 73 20 32 2e 31 30 2c 20  led tests 2.10, 
3250: 37 2e 5b 31 32 34 35 5d 20 28 74 68 65 72 65 20  7.[1245] (there 
3260: 69 73 20 6e 6f 20 33 29 2c 0a 09 77 68 69 63 68  is no 3),..which
3270: 20 6e 6f 77 20 70 61 73 73 2e 20 20 41 64 64 65   now pass.  Adde
3280: 64 20 73 6f 6d 65 20 63 6f 6d 6d 65 6e 74 73 20  d some comments 
3290: 74 6f 20 6f 74 68 65 72 20 66 61 69 6c 69 6e 67  to other failing
32a0: 20 74 65 73 74 73 2e 0a 0a 32 30 30 30 2d 30 37   tests...2000-07
32b0: 2d 31 31 20 20 4a 65 66 66 20 48 6f 62 62 73 20  -11  Jeff Hobbs 
32c0: 20 3c 68 6f 62 62 73 40 73 63 72 69 70 74 69 63   <hobbs@scriptic
32d0: 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 49 4f  s.com>...* tlsIO
32e0: 2e 63 3a 20 63 68 61 6e 67 65 64 20 61 6c 6c 20  .c: changed all 
32f0: 74 68 65 20 63 68 61 6e 6e 65 6c 20 70 72 6f 63  the channel proc
3300: 73 20 74 6f 20 73 74 61 72 74 20 77 69 74 68 20  s to start with 
3310: 54 6c 73 2a 20 66 6f 72 0a 09 62 65 74 74 65 72  Tls* for..better
3320: 20 70 61 72 69 74 79 20 77 68 65 6e 20 63 6f 6d   parity when com
3330: 70 61 72 69 6e 67 20 77 69 74 68 20 54 72 61 6e  paring with Tran
3340: 73 66 6f 72 6d 20 63 68 61 6e 6e 65 6c 20 70 72  sform channel pr
3350: 6f 63 73 2e 0a 09 52 65 77 72 6f 74 65 20 54 6c  ocs...Rewrote Tl
3360: 73 57 61 74 63 68 50 72 6f 63 2c 20 61 64 64 65  sWatchProc, adde
3370: 64 20 54 6c 73 4e 6f 74 69 66 79 50 72 6f 63 20  d TlsNotifyProc 
3380: 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65  according to the
3390: 20 6e 65 77 0a 09 63 68 61 6e 6e 65 6c 20 64 65   new..channel de
33a0: 73 69 67 6e 2c 20 77 68 69 63 68 20 61 6c 73 6f  sign, which also
33b0: 20 6c 65 61 76 65 73 20 54 6c 73 43 68 61 6e 6e   leaves TlsChann
33c0: 65 6c 48 61 6e 64 6c 65 72 20 75 6e 75 73 65 64  elHandler unused
33d0: 2e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e 63 20 28  ....* tlsBIO.c (
33e0: 42 69 6f 43 74 72 6c 29 3a 20 63 68 61 6e 67 65  BioCtrl): change
33f0: 64 20 42 49 4f 5f 43 54 52 4c 5f 46 4c 55 53 48  d BIO_CTRL_FLUSH
3400: 20 63 61 73 65 20 74 6f 20 75 73 65 0a 09 54 63   case to use..Tc
3410: 6c 5f 57 72 69 74 65 52 61 77 20 69 6e 73 74 65  l_WriteRaw inste
3420: 61 64 20 6f 66 20 54 63 6c 5f 46 6c 75 73 68 20  ad of Tcl_Flush 
3430: 28 74 6f 20 6f 70 65 72 61 74 65 20 6f 6e 20 63  (to operate on c
3440: 6f 72 72 65 63 74 20 63 68 61 6e 6e 65 6c 0a 09  orrect channel..
3450: 69 6e 20 74 68 65 20 73 74 61 63 6b 20 69 6e 73  in the stack ins
3460: 74 65 61 64 20 6f 66 20 73 74 61 72 74 69 6e 67  tead of starting
3470: 20 61 74 20 74 68 65 20 74 6f 70 20 61 67 61 69   at the top agai
3480: 6e 29 2e 20 20 57 6f 75 6c 64 0a 09 6f 74 68 65  n).  Would..othe
3490: 72 77 69 73 65 20 63 61 75 73 65 20 61 20 72 65  rwise cause a re
34a0: 63 75 72 73 69 76 65 20 73 74 61 63 6b 20 62 6f  cursive stack bo
34b0: 6d 62 20 77 68 65 6e 20 69 6d 70 6c 69 63 69 74  mb when implicit
34c0: 20 68 61 6e 64 73 68 61 6b 69 6e 67 0a 09 74 6f   handshaking..to
34d0: 6f 6b 20 65 66 66 65 63 74 2e 0a 0a 09 2a 20 74  ok effect....* t
34e0: 65 73 74 73 2f 74 6c 73 49 4f 2e 74 65 73 74 3a  ests/tlsIO.test:
34f0: 20 72 65 6d 6f 76 65 64 20 63 68 61 6e 67 65 73   removed changes
3500: 20 6d 61 64 65 20 74 6f 20 74 65 73 74 20 73 75   made to test su
3510: 69 74 65 20 28 61 6c 6c 20 74 65 73 74 73 0a 09  ite (all tests..
3520: 74 68 61 74 20 72 61 6e 20 62 65 66 6f 72 65 20  that ran before 
3530: 6e 6f 77 20 70 61 73 73 20 63 6f 72 72 65 63 74  now pass correct
3540: 6c 79 29 2c 20 61 6e 64 20 63 68 61 6e 67 65 64  ly), and changed
3550: 20 73 6f 6d 65 20 61 63 63 65 70 74 20 70 72 6f   some accept pro
3560: 63 0a 09 61 72 67 73 20 74 6f 20 72 65 66 6c 65  c..args to refle
3570: 63 74 20 74 68 61 74 20 61 20 73 6f 63 6b 20 69  ct that a sock i
3580: 73 20 61 6e 20 61 72 67 2c 20 6e 6f 74 20 61 20  s an arg, not a 
3590: 66 69 6c 65 2e 0a 0a 32 30 30 30 2d 30 37 2d 31  file...2000-07-1
35a0: 30 20 20 4a 65 66 66 20 48 6f 62 62 73 20 20 3c  0  Jeff Hobbs  <
35b0: 68 6f 62 62 73 40 73 63 72 69 70 74 69 63 73 2e  hobbs@scriptics.
35c0: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 42 49 4f 2e  com>...* tlsBIO.
35d0: 63 20 28 42 69 6f 57 72 69 74 65 2c 20 42 69 6f  c (BioWrite, Bio
35e0: 52 65 61 64 29 3a 20 63 68 61 6e 67 65 64 20 54  Read): changed T
35f0: 63 6c 5f 52 65 61 64 2f 57 72 69 74 65 20 74 6f  cl_Read/Write to
3600: 0a 09 54 63 6c 5f 52 65 61 64 52 61 77 2f 54 63  ..Tcl_ReadRaw/Tc
3610: 6c 57 72 69 74 65 52 61 77 2e 0a 0a 09 2a 20 74  lWriteRaw....* t
3620: 6c 73 2e 63 3a 20 61 64 64 65 64 20 75 73 65 20  ls.c: added use 
3630: 6f 66 20 54 63 6c 5f 47 65 74 54 6f 70 43 68 61  of Tcl_GetTopCha
3640: 6e 6e 65 6c 20 61 66 74 65 72 20 54 63 6c 5f 47  nnel after Tcl_G
3650: 65 74 43 68 61 6e 6e 65 6c 20 61 6e 64 0a 09 67  etChannel and..g
3660: 6f 74 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20  ot return value 
3670: 66 72 6f 6d 20 54 63 6c 5f 53 74 61 63 6b 43 68  from Tcl_StackCh
3680: 61 6e 6e 65 6c 2e 0a 0a 09 2a 20 74 65 73 74 73  annel....* tests
3690: 2f 74 6c 73 49 4f 2e 74 65 73 74 3a 20 61 64 64  /tlsIO.test: add
36a0: 65 64 20 73 6f 6d 65 20 68 61 6e 64 73 68 61 6b  ed some handshak
36b0: 69 6e 67 20 74 68 61 74 20 73 68 6f 75 6c 64 6e  ing that shouldn
36c0: 27 74 20 62 65 0a 09 6e 65 63 65 73 73 61 72 79  't be..necessary
36d0: 2c 20 62 75 74 20 77 65 20 63 72 61 73 68 20 6f  , but we crash o
36e0: 74 68 65 72 77 69 73 65 20 28 6e 65 65 64 73 20  therwise (needs 
36f0: 6d 6f 72 65 20 74 65 73 74 69 6e 67 29 2e 0a 0a  more testing)...
3700: 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 61 64 64 65  .* tlsIO.c: adde
3710: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 22 63  d support for "c
3720: 6f 72 72 65 63 74 65 64 22 20 73 74 61 63 6b 65  orrected" stacke
3730: 64 20 63 68 61 6e 6e 65 6c 73 2e 20 20 41 6c 6c  d channels.  All
3740: 0a 09 74 68 65 20 61 62 6f 76 65 20 63 68 61 6e  ..the above chan
3750: 6e 65 6c 73 20 61 72 65 20 69 6e 20 54 43 4c 5f  nels are in TCL_
3760: 43 48 41 4e 4e 45 4c 5f 56 45 52 53 49 4f 4e 5f  CHANNEL_VERSION_
3770: 32 20 23 69 66 64 65 66 73 2e 0a 0a 32 30 30 30  2 #ifdefs...2000
3780: 2d 30 36 2d 30 35 20 20 53 63 6f 74 74 20 53 74  -06-05  Scott St
3790: 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74 6f 6e 40  anton  <stanton@
37a0: 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e 63  ajubasolutions.c
37b0: 6f 6d 3e 0a 0a 09 2a 20 4d 61 6b 65 66 69 6c 65  om>...* Makefile
37c0: 2e 69 6e 3a 20 46 69 78 65 64 20 62 72 6f 6b 65  .in: Fixed broke
37d0: 6e 20 74 65 73 74 20 74 61 72 67 65 74 2e 0a 0a  n test target...
37e0: 09 2a 20 74 6c 73 49 6e 74 2e 68 3a 20 0a 09 2a  .* tlsInt.h: ..*
37f0: 20 74 6c 73 2e 63 3a 20 43 6c 65 61 6e 65 64 20   tls.c: Cleaned 
3800: 75 70 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 20  up declarations 
3810: 6f 66 20 54 6c 73 5f 43 6c 65 61 6e 20 74 6f 20  of Tls_Clean to 
3820: 61 76 6f 69 64 20 65 72 72 6f 72 73 20 6f 6e 0a  avoid errors on.
3830: 09 57 69 6e 64 6f 77 73 20 28 6c 69 6e 74 29 2e  .Windows (lint).
3840: 0a 0a 32 30 30 30 2d 30 36 2d 30 35 20 20 42 72  ..2000-06-05  Br
3850: 65 6e 74 20 57 65 6c 63 68 20 3c 77 65 6c 63 68  ent Welch <welch
3860: 40 61 6a 75 62 61 73 6f 6c 75 74 69 6f 6e 73 2e  @ajubasolutions.
3870: 63 6f 6d 3e 0a 0a 09 2a 20 74 6c 73 2e 63 2c 20  com>...* tls.c, 
3880: 74 6c 73 49 4f 2e 63 3a 20 20 53 70 6c 69 74 20  tlsIO.c:  Split 
3890: 54 6c 73 5f 46 72 65 65 20 69 6e 74 6f 20 54 6c  Tls_Free into Tl
38a0: 73 5f 43 6c 65 61 6e 2c 20 77 68 69 63 68 20 64  s_Clean, which d
38b0: 6f 65 73 0a 09 74 68 65 20 53 53 4c 20 63 6c 65  oes..the SSL cle
38c0: 61 6e 75 70 2c 20 61 6e 64 20 74 68 65 20 54 63  anup, and the Tc
38d0: 6c 5f 46 72 65 65 20 63 61 6c 6c 2e 20 20 49 74  l_Free call.  It
38e0: 20 69 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f   is important to
38f0: 20 73 68 75 74 64 6f 77 6e 0a 09 74 68 65 20 53   shutdown..the S
3900: 53 4c 20 73 74 61 74 65 20 22 73 79 6e 63 68 72  SL state "synchr
3910: 6f 6e 6f 75 73 6c 79 22 20 64 75 72 69 6e 67 20  onously" during 
3920: 61 20 73 74 61 63 6b 65 64 20 66 6c 75 73 68 2e  a stacked flush.
3930: 0a 0a 32 30 30 30 2d 30 36 2d 30 31 20 20 53 63  ..2000-06-01  Sc
3940: 6f 74 74 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74  ott Stanton  <st
3950: 61 6e 74 6f 6e 40 61 6a 75 62 61 73 6f 6c 75 74  anton@ajubasolut
3960: 69 6f 6e 73 2e 63 6f 6d 3e 0a 0a 09 2a 20 74 6c  ions.com>...* tl
3970: 73 49 4f 2e 63 3a 20 52 65 73 74 6f 72 65 64 20  sIO.c: Restored 
3980: 63 61 6c 6c 20 74 6f 20 54 63 6c 5f 4e 6f 74 69  call to Tcl_Noti
3990: 66 79 43 68 61 6e 6e 65 6c 20 66 72 6f 6d 20 43  fyChannel from C
39a0: 68 61 6e 6e 65 6c 48 61 6e 64 6c 65 72 0a 09 74  hannelHandler..t
39b0: 6f 20 65 6e 73 75 72 65 20 74 68 61 74 20 65 76  o ensure that ev
39c0: 65 6e 74 73 20 70 72 6f 70 61 67 61 74 65 20 66  ents propagate f
39d0: 72 6f 6d 20 74 68 65 20 6c 6f 77 65 72 20 64 72  rom the lower dr
39e0: 69 76 65 72 2e 20 20 54 68 69 73 20 6d 61 79 0a  iver.  This may.
39f0: 09 72 65 73 75 6c 74 20 69 6e 20 61 6e 20 69 6e  .result in an in
3a00: 66 69 6e 69 74 65 20 6c 6f 6f 70 20 69 6e 20 73  finite loop in s
3a10: 6f 6d 65 20 63 61 73 65 73 2c 20 73 6f 20 74 68  ome cases, so th
3a20: 69 73 20 69 73 20 6e 6f 74 20 61 20 74 6f 74 61  is is not a tota
3a30: 6c 0a 09 66 69 78 2e 20 20 54 68 69 73 20 6d 61  l..fix.  This ma
3a40: 79 20 62 65 20 73 75 66 66 69 63 69 65 6e 74 20  y be sufficient 
3a50: 66 6f 72 20 6e 6f 77 2c 20 68 6f 77 65 76 65 72  for now, however
3a60: 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32  . [Bug: 5623]..2
3a70: 30 30 30 2d 30 36 2d 30 31 20 20 53 63 6f 74 74  000-06-01  Scott
3a80: 20 53 74 61 6e 74 6f 6e 20 20 3c 73 74 61 6e 74   Stanton  <stant
3a90: 6f 6e 40 73 63 72 69 70 74 69 63 73 2e 63 6f 6d  on@scriptics.com
3aa0: 3e 0a 0a 09 2a 20 74 6c 73 49 4f 2e 63 3a 20 52  >...* tlsIO.c: R
3ab0: 65 73 74 6f 72 65 20 74 68 65 20 70 72 65 76 69  estore the previ
3ac0: 6f 75 73 20 76 65 72 73 69 6f 6e 2e 20 20 46 69  ous version.  Fi
3ad0: 78 65 64 20 74 68 65 20 43 6c 6f 73 65 50 72 6f  xed the ClosePro
3ae0: 63 20 73 6f 0a 09 69 74 20 75 6e 72 65 67 69 73  c so..it unregis
3af0: 74 65 72 73 20 74 68 65 20 63 68 61 6e 6e 65 6c  ters the channel
3b00: 20 68 61 6e 64 6c 65 72 20 6f 6e 20 74 68 65 20   handler on the 
3b10: 73 75 70 65 72 63 65 64 65 64 20 63 68 61 6e 6e  superceded chann
3b20: 65 6c 0a 09 69 6e 73 74 65 61 64 20 6f 66 20 74  el..instead of t
3b30: 68 65 20 75 70 70 65 72 20 63 68 61 6e 6e 65 6c  he upper channel
3b40: 2e 20 41 6c 73 6f 20 72 65 6d 6f 76 65 64 20 74  . Also removed t
3b50: 68 65 20 63 61 6c 6c 20 74 6f 0a 09 54 63 6c 5f  he call to..Tcl_
3b60: 4e 6f 74 69 66 79 43 68 61 6e 6e 65 6c 20 69 6e  NotifyChannel in
3b70: 20 74 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64   the ChannelHand
3b80: 6c 65 72 20 62 65 63 61 75 73 65 20 74 68 69 73  ler because this
3b90: 20 77 69 6c 6c 20 72 65 73 75 6c 74 0a 09 69 6e   will result..in
3ba0: 20 61 6e 20 69 6e 66 69 6e 69 74 65 20 6c 6f 6f   an infinite loo
3bb0: 70 20 69 66 20 64 61 74 61 20 69 73 20 65 76 65  p if data is eve
3bc0: 72 20 62 75 66 66 65 72 65 64 20 69 6e 20 74 68  r buffered in th
3bd0: 65 20 42 49 4f 0a 09 73 74 72 75 63 74 75 72 65  e BIO..structure
3be0: 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d 0a 0a 32  . [Bug: 5623]..2
3bf0: 30 30 30 2d 30 35 2d 33 31 20 20 42 72 65 6e 74  000-05-31  Brent
3c00: 20 57 65 6c 63 68 20 3c 77 65 6c 63 68 40 73 63   Welch <welch@sc
3c10: 72 69 70 74 69 63 73 2e 63 6f 6d 3e 0a 0a 09 2a  riptics.com>...*
3c20: 20 74 6c 73 2e 63 3a 20 43 68 61 6e 67 65 20 74   tls.c: Change t
3c30: 68 65 20 43 68 61 6e 6e 65 6c 48 61 6e 64 6c 65  he ChannelHandle
3c40: 72 20 74 6f 20 62 65 20 72 65 67 69 73 74 65 72  r to be register
3c50: 65 64 20 6f 6e 20 74 68 65 20 6d 61 69 6e 0a 09  ed on the main..
3c60: 63 68 61 6e 6e 65 6c 20 61 73 20 6f 70 70 73 65  channel as oppse
3c70: 64 20 74 6f 20 74 68 65 20 22 70 61 72 65 6e 74  d to the "parent
3c80: 22 2c 20 6f 72 20 73 75 70 65 72 63 65 65 64 65  ", or superceede
3c90: 64 2c 20 63 68 61 6e 6e 65 6c 2e 20 20 54 68 69  d, channel.  Thi
3ca0: 73 0a 09 69 73 20 62 65 63 61 75 73 65 20 74 68  s..is because th
3cb0: 65 20 73 6f 63 6b 65 74 20 64 72 69 76 65 72 20  e socket driver 
3cc0: 6e 6f 74 69 66 69 65 73 20 74 68 65 20 6d 61 69  notifies the mai
3cd0: 6e 20 63 68 61 6e 6e 65 6c 2c 20 61 6e 64 20 74  n channel, and t
3ce0: 68 65 72 65 0a 09 61 72 65 20 74 69 6d 65 73 20  here..are times 
3cf0: 77 69 74 68 20 74 68 65 20 6d 61 69 6e 20 63 68  with the main ch
3d00: 61 6e 6e 65 6c 20 67 65 74 73 20 63 6c 6f 73 65  annel gets close
3d10: 64 2c 20 62 75 74 20 74 68 65 20 73 75 70 65 72  d, but the super
3d20: 63 65 64 65 64 0a 09 6f 6e 65 20 69 73 20 6e 6f  ceded..one is no
3d30: 74 20 79 65 74 20 63 6c 6f 73 65 64 2e 20 20 49  t yet closed.  I
3d40: 66 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 68 61  f the channel ha
3d50: 6e 64 6c 65 72 20 67 65 74 73 20 74 72 69 67 67  ndler gets trigg
3d60: 65 72 65 64 20 69 6e 0a 09 74 68 69 73 20 68 61  ered in..this ha
3d70: 6c 66 2d 6f 70 65 6e 20 73 74 61 74 65 20 69 74  lf-open state it
3d80: 20 69 73 20 61 73 73 6f 63 69 61 74 65 64 20 77   is associated w
3d90: 69 74 68 20 74 68 65 20 73 75 70 65 72 63 65 65  ith the supercee
3da0: 64 65 64 0a 09 63 68 61 6e 6e 65 64 6c 2c 20 62  ded..channedl, b
3db0: 75 74 20 75 73 65 73 20 69 74 73 20 70 72 69 76  ut uses its priv
3dc0: 61 74 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 74  ate pointer to t
3dd0: 68 65 20 6d 61 69 6e 20 63 68 61 6e 6e 65 6c 2c  he main channel,
3de0: 20 77 68 69 63 68 0a 09 69 73 20 6d 6f 73 74 6c   which..is mostl
3df0: 79 20 64 65 73 74 72 6f 79 65 64 2e 20 20 45 6c  y destroyed.  El
3e00: 69 6d 69 6e 61 74 65 64 20 74 68 65 20 72 65 64  iminated the red
3e10: 75 6e 64 61 6e 74 20 63 61 6c 6c 20 74 6f 0a 09  undant call to..
3e20: 54 63 6c 5f 4e 6f 74 69 66 79 43 68 61 6e 6e 65  Tcl_NotifyChanne
3e30: 6c 20 66 72 6f 6d 20 54 6c 73 57 61 74 63 68 50  l from TlsWatchP
3e40: 72 6f 63 2e 20 5b 42 75 67 3a 20 35 36 32 33 5d  roc. [Bug: 5623]
3e50: 0a                                               .