Artifact
a2f4c7f22f84b24cb00befde7917055a6fa68c75:
0000: 4f 72 69 67 69 6e 61 6c 20 54 4c 53 20 43 6f 70 Original TLS Cop
0010: 79 72 69 67 68 74 20 28 43 29 20 31 39 39 37 2d yright (C) 1997-
0020: 32 30 30 30 20 4d 61 74 74 20 4e 65 77 6d 61 6e 2000 Matt Newman
0030: 20 3c 6d 61 74 74 40 6e 6f 76 61 64 69 67 6d 2e <matt@novadigm.
0040: 63 6f 6d 3e 0a 54 4c 53 20 31 2e 34 2e 31 20 20 com>.TLS 1.4.1
0050: 20 20 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 Copyright (C)
0060: 32 30 30 30 20 41 6a 75 62 61 20 53 6f 6c 75 74 2000 Ajuba Solut
0070: 69 6f 6e 73 0a 54 4c 53 20 31 2e 36 20 20 20 20 ions.TLS 1.6
0080: 20 20 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 Copyright (C)
0090: 32 30 30 38 20 41 63 74 69 76 65 53 74 61 74 65 2008 ActiveState
00a0: 20 53 6f 66 74 77 61 72 65 20 49 6e 63 2e 0a 0a Software Inc...
00b0: 24 48 65 61 64 65 72 3a 20 2f 68 6f 6d 65 2f 72 $Header: /home/r
00c0: 6b 65 65 6e 65 2f 74 6d 70 2f 63 76 73 32 66 6f keene/tmp/cvs2fo
00d0: 73 73 69 6c 2f 2e 2e 2f 74 63 6c 74 6c 73 2f 74 ssil/../tcltls/t
00e0: 6c 73 2f 74 6c 73 2f 52 45 41 44 4d 45 2e 74 78 ls/tls/README.tx
00f0: 74 2c 76 20 31 2e 37 20 32 30 30 38 2f 30 33 2f t,v 1.7 2008/03/
0100: 31 39 20 32 32 3a 34 39 3a 31 32 20 68 6f 62 62 19 22:49:12 hobb
0110: 73 32 20 45 78 70 20 24 0a 0a 54 4c 53 20 28 61 s2 Exp $..TLS (a
0120: 6b 61 20 53 53 4c 29 20 43 68 61 6e 6e 65 6c 20 ka SSL) Channel
0130: 2d 20 63 61 6e 20 62 65 20 6c 61 79 65 72 65 64 - can be layered
0140: 20 6f 6e 20 61 6e 79 20 62 69 2d 64 69 72 65 63 on any bi-direc
0150: 74 69 6f 6e 61 6c 20 54 63 6c 5f 43 68 61 6e 6e tional Tcl_Chann
0160: 65 6c 2e 0a 0a 42 6f 74 68 20 63 6c 69 65 6e 74 el...Both client
0170: 20 61 6e 64 20 73 65 72 76 65 72 2d 73 69 64 65 and server-side
0180: 20 73 6f 63 6b 65 74 73 20 61 72 65 20 70 6f 73 sockets are pos
0190: 73 69 62 6c 65 2c 20 61 6e 64 20 74 68 69 73 20 sible, and this
01a0: 63 6f 64 65 20 73 68 6f 75 6c 64 20 77 6f 72 6b code should work
01b0: 0a 6f 6e 20 61 6e 79 20 70 6c 61 74 66 6f 72 6d .on any platform
01c0: 20 61 73 20 69 74 20 75 73 65 73 20 61 20 67 65 as it uses a ge
01d0: 6e 65 72 69 63 20 6d 65 63 68 61 6e 69 73 6d 20 neric mechanism
01e0: 66 6f 72 20 6c 61 79 65 72 69 6e 67 20 6f 6e 20 for layering on
01f0: 53 53 4c 20 61 6e 64 20 54 63 6c 2e 0a 0a 46 75 SSL and Tcl...Fu
0200: 6c 6c 20 66 69 6c 65 76 65 6e 74 20 73 65 6d 61 ll filevent sema
0210: 74 69 63 73 20 73 68 6f 75 6c 64 20 61 6c 73 6f tics should also
0220: 20 62 65 20 69 6e 74 61 63 74 20 2d 20 73 65 65 be intact - see
0230: 20 74 65 73 74 73 20 64 69 72 65 63 74 6f 72 79 tests directory
0240: 20 66 6f 72 0a 62 6c 6f 63 6b 69 6e 67 20 61 6e for.blocking an
0250: 64 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 20 65 d non-blocking e
0260: 78 61 6d 70 6c 65 73 2e 0a 0a 54 68 65 20 63 75 xamples...The cu
0270: 72 72 65 6e 74 20 72 65 6c 65 61 73 65 20 69 73 rrent release is
0280: 20 54 4c 53 20 31 2e 36 2c 20 77 69 74 68 20 62 TLS 1.6, with b
0290: 69 6e 61 72 69 65 73 20 62 75 69 6c 74 20 61 67 inaries built ag
02a0: 61 69 6e 73 74 20 4f 70 65 6e 53 53 4c 20 30 2e ainst OpenSSL 0.
02b0: 39 2e 38 67 2e 0a 46 6f 72 20 62 65 73 74 20 73 9.8g..For best s
02c0: 65 63 75 72 69 74 79 20 61 6e 64 20 66 75 6e 63 ecurity and func
02d0: 74 69 6f 6e 2c 20 61 6c 77 61 79 73 20 63 6f 6d tion, always com
02e0: 70 69 6c 65 20 66 72 6f 6d 20 73 6f 75 72 63 65 pile from source
02f0: 20 77 69 74 68 20 74 68 65 20 6c 61 74 65 73 74 with the latest
0300: 0a 6f 66 66 69 63 69 61 6c 20 72 65 6c 65 61 73 .official releas
0310: 65 20 6f 66 20 4f 70 65 6e 53 53 4c 20 28 68 74 e of OpenSSL (ht
0320: 74 70 3a 2f 2f 77 77 77 2e 6f 70 65 6e 73 73 6c tp://www.openssl
0330: 2e 6f 72 67 2f 29 2e 0a 0a 54 4c 53 20 72 65 71 .org/)...TLS req
0340: 75 69 72 65 73 20 54 63 6c 20 38 2e 32 2e 30 2b uires Tcl 8.2.0+
0350: 2c 20 77 69 74 68 20 38 2e 33 2e 32 2b 20 70 72 , with 8.3.2+ pr
0360: 65 66 65 72 72 65 64 2e 20 20 54 68 65 20 73 74 eferred. The st
0370: 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 0a 69 6d acked channel.im
0380: 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 69 6e 20 plementation in
0390: 54 63 6c 20 77 61 73 20 6f 72 69 67 69 6e 61 6c Tcl was original
03a0: 6c 79 20 69 6e 74 72 6f 64 75 63 65 64 20 69 6e ly introduced in
03b0: 20 38 2e 32 2e 30 20 28 70 72 65 76 69 6f 75 73 8.2.0 (previous
03c0: 6c 79 20 74 68 65 0a 54 72 66 20 70 61 74 63 68 ly the.Trf patch
03d0: 29 20 61 6e 64 20 72 65 77 72 69 74 74 65 6e 20 ) and rewritten
03e0: 66 6f 72 20 38 2e 33 2e 32 2b 20 64 75 65 20 74 for 8.3.2+ due t
03f0: 6f 20 69 6e 68 65 72 65 6e 74 20 6c 69 6d 69 74 o inherent limit
0400: 61 74 69 6f 6e 73 20 69 6e 20 74 68 65 0a 65 61 ations in the.ea
0410: 72 6c 69 65 72 20 69 6d 70 6c 65 6d 65 6e 74 61 rlier implementa
0420: 74 69 6f 6e 2e 20 20 54 4c 53 20 73 68 6f 75 6c tion. TLS shoul
0430: 64 20 63 6f 6d 70 69 6c 65 20 77 69 74 68 20 61 d compile with a
0440: 6e 79 20 73 74 75 62 73 2d 63 61 70 61 62 6c 65 ny stubs-capable
0450: 20 54 63 6c 0a 69 6e 74 65 72 70 72 65 74 65 72 Tcl.interpreter
0460: 2c 20 62 75 74 20 77 69 6c 6c 20 72 65 71 75 69 , but will requi
0470: 72 65 20 38 2e 32 2b 20 77 68 65 6e 20 6c 6f 61 re 8.2+ when loa
0480: 64 65 64 2e 20 20 54 68 65 72 65 20 61 72 65 20 ded. There are
0490: 6b 6e 6f 77 6e 0a 6c 69 6d 69 74 61 74 69 6f 6e known.limitation
04a0: 73 20 69 6e 20 74 68 65 20 38 2e 32 2e 30 2d 38 s in the 8.2.0-8
04b0: 2e 33 2e 31 20 73 74 61 63 6b 65 64 20 63 68 61 .3.1 stacked cha
04c0: 6e 6e 65 6c 20 69 6d 70 6c 65 6d 65 6e 74 61 74 nnel implementat
04d0: 69 6f 6e 2c 20 73 6f 20 69 74 20 69 73 0a 65 6e ion, so it is.en
04e0: 63 6f 75 72 61 67 65 64 20 74 68 61 74 20 70 65 couraged that pe
04f0: 6f 70 6c 65 20 75 73 65 20 54 4c 53 20 77 69 74 ople use TLS wit
0500: 68 20 61 6e 20 38 2e 33 2e 32 2b 20 54 63 6c 20 h an 8.3.2+ Tcl
0510: 69 6e 74 65 72 70 72 65 74 65 72 2e 20 20 54 68 interpreter. Th
0520: 65 73 65 0a 6d 6f 64 69 66 69 63 61 74 69 6f 6e ese.modification
0530: 73 20 61 72 65 20 62 79 20 4a 65 66 66 20 48 6f s are by Jeff Ho
0540: 62 62 73 2e 0a 0a 4e 6f 6e 2d 65 78 63 6c 75 73 bbs...Non-exclus
0550: 69 76 65 20 63 72 65 64 69 74 73 20 66 6f 72 20 ive credits for
0560: 54 4c 53 20 61 72 65 3a 0a 20 20 20 4f 72 69 67 TLS are:. Orig
0570: 69 6e 61 6c 20 77 6f 72 6b 3a 20 4d 61 74 74 20 inal work: Matt
0580: 4e 65 77 6d 61 6e 20 40 20 4e 6f 76 61 64 69 67 Newman @ Novadig
0590: 6d 0a 20 20 20 55 70 64 61 74 65 73 3a 20 4a 65 m. Updates: Je
05a0: 66 66 20 48 6f 62 62 73 20 40 20 41 63 74 69 76 ff Hobbs @ Activ
05b0: 65 53 74 61 74 65 0a 20 20 20 54 63 6c 20 43 68 eState. Tcl Ch
05c0: 61 6e 6e 65 6c 20 6d 65 63 68 61 6e 69 73 6d 3a annel mechanism:
05d0: 20 41 6e 64 72 65 61 73 20 4b 75 70 72 69 65 73 Andreas Kupries
05e0: 0a 20 20 20 49 6d 70 65 74 75 73 2f 52 65 6c 61 . Impetus/Rela
05f0: 74 65 64 20 77 6f 72 6b 3a 20 74 63 6c 53 53 4c ted work: tclSSL
0600: 20 28 43 6f 6c 69 6e 20 4d 63 43 6f 72 6d 61 63 (Colin McCormac
0610: 6b 2c 20 53 68 61 72 65 64 20 54 65 63 68 6e 6f k, Shared Techno
0620: 6c 6f 67 79 29 0a 20 20 20 20 20 20 20 20 20 20 logy).
0630: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 S
0640: 53 4c 74 63 6c 20 28 50 65 74 65 72 20 41 6e 74 SLtcl (Peter Ant
0650: 6d 61 6e 29 0a 0a 54 68 69 73 20 63 6f 64 65 20 man)..This code
0660: 69 73 20 6c 69 63 65 6e 73 65 64 20 75 6e 64 65 is licensed unde
0670: 72 20 74 68 65 20 73 61 6d 65 20 74 65 72 6d 73 r the same terms
0680: 20 61 73 20 74 68 65 20 54 63 6c 20 43 6f 72 65 as the Tcl Core
0690: 2e 0a ..