Hex Artifact Content

Artifact b7a2709a822fe01d78e7aa79c02495143df505fd:


0000: 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 31 39  Copyright (C) 19
0010: 39 37 2d 32 30 30 30 20 4d 61 74 74 20 4e 65 77  97-2000 Matt New
0020: 6d 61 6e 20 3c 6d 61 74 74 40 6e 6f 76 61 64 69  man <matt@novadi
0030: 67 6d 2e 63 6f 6d 3e 0a 0a 24 48 65 61 64 65 72  gm.com>..$Header
0040: 3a 20 2f 68 6f 6d 65 2f 72 6b 65 65 6e 65 2f 74  : /home/rkeene/t
0050: 6d 70 2f 63 76 73 32 66 6f 73 73 69 6c 2f 2e 2e  mp/cvs2fossil/..
0060: 2f 74 63 6c 74 6c 73 2f 74 6c 73 2f 74 6c 73 2f  /tcltls/tls/tls/
0070: 52 45 41 44 4d 45 2e 74 78 74 2c 76 20 31 2e 31  README.txt,v 1.1
0080: 2e 31 2e 31 20 32 30 30 30 2f 30 31 2f 31 39 20  .1.1 2000/01/19 
0090: 32 32 3a 31 30 3a 35 38 20 61 62 6f 72 72 20 45  22:10:58 aborr E
00a0: 78 70 20 24 0a 0a 54 4c 53 20 28 61 6b 61 20 53  xp $..TLS (aka S
00b0: 53 4c 29 20 43 68 61 6e 6e 65 6c 20 2d 20 63 61  SL) Channel - ca
00c0: 6e 20 62 65 20 6c 61 79 65 72 65 64 20 6f 6e 20  n be layered on 
00d0: 61 6e 79 20 62 69 2d 64 69 72 65 63 74 69 6f 6e  any bi-direction
00e0: 61 6c 0a 54 63 6c 5f 43 68 61 6e 6e 65 6c 20 28  al.Tcl_Channel (
00f0: 4e 6f 74 65 3a 20 52 65 71 75 69 72 65 73 20 54  Note: Requires T
0100: 72 66 20 43 6f 72 65 20 50 61 74 63 68 29 0a 0a  rf Core Patch)..
0110: 42 6f 74 68 20 63 6c 69 65 6e 74 20 61 6e 64 20  Both client and 
0120: 73 65 72 76 65 72 2d 73 69 64 65 20 73 6f 63 6b  server-side sock
0130: 65 74 73 20 61 72 65 20 70 6f 73 73 69 62 6c 65  ets are possible
0140: 2c 20 61 6e 64 20 74 68 69 73 20 63 6f 64 65 0a  , and this code.
0150: 73 68 6f 75 6c 64 20 77 6f 72 6b 20 6f 6e 20 61  should work on a
0160: 6e 79 20 70 6c 61 74 66 6f 72 6d 20 61 73 20 69  ny platform as i
0170: 74 20 75 73 65 73 20 61 20 67 65 6e 65 72 69 63  t uses a generic
0180: 20 6d 65 63 68 61 6e 69 73 6d 20 66 6f 72 0a 6c   mechanism for.l
0190: 61 79 65 72 69 6e 67 20 6f 6e 20 53 53 4c 20 61  ayering on SSL a
01a0: 6e 64 20 54 63 6c 2e 0a 0a 46 75 6c 6c 20 66 69  nd Tcl...Full fi
01b0: 6c 65 76 65 6e 74 20 73 65 6d 61 74 69 63 73 20  levent sematics 
01c0: 73 68 6f 75 6c 64 20 61 6c 73 6f 20 62 65 20 69  should also be i
01d0: 6e 74 61 63 74 20 2d 20 73 65 65 20 74 65 73 74  ntact - see test
01e0: 73 20 64 69 72 65 63 74 6f 72 79 20 66 6f 72 0a  s directory for.
01f0: 62 6c 6f 63 6b 69 6e 67 20 61 6e 64 20 6e 6f 6e  blocking and non
0200: 2d 62 6c 6f 63 6b 69 6e 67 20 65 78 61 6d 70 6c  -blocking exampl
0210: 65 73 2e 0a 0a 54 68 69 73 20 77 61 73 20 62 75  es...This was bu
0220: 69 6c 74 20 28 61 6c 6d 6f 73 74 29 20 66 72 6f  ilt (almost) fro
0230: 6d 20 73 63 72 61 74 63 68 20 62 61 73 65 64 20  m scratch based 
0240: 75 70 6f 6e 20 6f 62 73 65 72 76 61 74 69 6f 6e  upon observation
0250: 20 6f 66 20 4f 70 65 6e 53 53 4c 20 30 2e 39 2e   of OpenSSL 0.9.
0260: 32 42 0a 0a 41 64 64 69 74 69 6f 6e 20 63 72 65  2B..Addition cre
0270: 64 69 74 20 69 73 20 64 75 65 20 66 6f 72 20 41  dit is due for A
0280: 6e 64 72 65 61 73 20 4b 75 70 72 69 65 73 20 28  ndreas Kupries (
0290: 61 2e 6b 75 70 72 69 65 73 40 77 65 73 74 65 6e  a.kupries@westen
02a0: 64 2e 63 6f 6d 29 2c 20 66 6f 72 0a 70 72 6f 76  d.com), for.prov
02b0: 69 64 69 6e 67 20 74 68 65 20 54 63 6c 5f 52 65  iding the Tcl_Re
02c0: 70 6c 61 63 65 43 68 61 6e 6e 65 6c 20 6d 65 63  placeChannel mec
02d0: 68 61 6e 69 73 6d 20 61 6e 64 20 77 6f 72 6b 69  hanism and worki
02e0: 6e 67 20 63 6c 6f 73 65 6c 79 20 77 69 74 68 20  ng closely with 
02f0: 6d 65 0a 74 6f 20 65 6e 68 61 6e 63 65 20 69 74  me.to enhance it
0300: 20 74 6f 20 73 75 70 70 6f 72 74 20 66 75 6c 6c   to support full
0310: 20 66 69 6c 65 65 76 65 6e 74 20 73 65 6d 61 6e   fileevent seman
0320: 74 69 63 73 2e 0a 0a 41 6c 73 6f 20 77 6f 72 6b  tics...Also work
0330: 20 64 6f 6e 65 20 62 79 20 74 68 65 20 66 6f 6c   done by the fol
0340: 6c 6f 77 20 70 65 6f 70 6c 65 20 70 72 6f 76 69  low people provi
0350: 64 65 64 20 74 68 65 20 69 6d 70 65 74 75 73 20  ded the impetus 
0360: 74 6f 20 64 6f 20 74 68 69 73 20 22 72 69 67 68  to do this "righ
0370: 74 22 3a 2d 0a 74 63 6c 53 53 4c 20 28 43 6f 6c  t":-.tclSSL (Col
0380: 69 6e 20 4d 63 43 6f 72 6d 61 63 6b 2c 20 53 68  in McCormack, Sh
0390: 61 72 65 64 20 54 65 63 68 6e 6f 6c 6f 67 79 29  ared Technology)
03a0: 0a 53 53 4c 74 63 6c 20 28 50 65 74 65 72 20 41  .SSLtcl (Peter A
03b0: 6e 74 6d 61 6e 29 0a 0a 54 68 69 73 20 63 6f 64  ntman)..This cod
03c0: 65 20 69 73 20 6c 69 63 65 6e 73 65 64 20 75 6e  e is licensed un
03d0: 74 69 6c 20 74 68 65 20 73 61 6d 65 20 74 65 72  til the same ter
03e0: 6d 73 20 61 73 20 74 68 65 20 54 63 6c 20 43 6f  ms as the Tcl Co
03f0: 72 65 2e 0a 0a 49 20 77 6f 75 6c 64 20 61 6c 73  re...I would als
0400: 6f 20 6c 69 6b 65 20 74 6f 20 61 63 6b 6e 6f 77  o like to acknow
0410: 6c 65 64 67 65 20 74 68 65 20 69 6e 70 75 74 20  ledge the input 
0420: 6f 66 20 4d 61 72 73 68 61 6c 6c 20 52 6f 73 65  of Marshall Rose
0430: 2c 20 77 68 6f 20 63 6f 6e 76 69 6e 63 65 64 20  , who convinced 
0440: 0a 6d 65 20 74 68 61 74 20 70 65 6f 70 6c 65 20  .me that people 
0450: 6e 65 65 64 20 74 6f 20 62 65 20 61 62 6c 65 20  need to be able 
0460: 74 6f 20 73 77 69 74 63 68 2d 74 6f 2d 65 6e 63  to switch-to-enc
0470: 72 79 70 74 65 64 20 6d 6f 64 65 20 70 61 72 74  rypted mode part
0480: 20 77 61 79 0a 74 68 72 6f 75 67 68 20 61 20 63   way.through a c
0490: 6f 6e 76 65 72 73 61 74 69 6f 6e 2e 0a 0a 41 6c  onversation...Al
04a0: 73 6f 20 49 20 77 6f 75 6c 64 20 6c 69 6b 65 20  so I would like 
04b0: 74 6f 20 61 63 6b 6e 6f 77 6c 65 64 67 65 20 74  to acknowledge t
04c0: 68 65 20 6b 69 6e 64 20 73 75 70 70 6f 72 74 20  he kind support 
04d0: 6f 66 20 4e 6f 76 61 64 69 67 6d 20 49 6e 63 2c  of Novadigm Inc,
04e0: 20 6d 79 0a 63 75 72 72 65 6e 74 20 65 6d 70 6c   my.current empl
04f0: 6f 79 65 72 2c 20 77 68 69 63 68 20 6d 61 64 65  oyer, which made
0500: 20 74 68 69 73 20 70 6f 73 73 69 62 6c 65 2e 0a   this possible..
0510: 0a 0a 4d 61 74 74 20 4e 65 77 6d 61 6e 0a        ..Matt Newman.