Hex Artifact Content

Artifact 166f5ea0c83c4dff35a6f0b92a940bab05a04574:


0000: 2f 2a 0a 20 2a 20 43 6f 70 79 72 69 67 68 74 20  /*. * Copyright 
0010: 28 43 29 20 31 39 39 37 2d 31 39 39 39 20 4d 61  (C) 1997-1999 Ma
0020: 74 74 20 4e 65 77 6d 61 6e 20 3c 6d 61 74 74 40  tt Newman <matt@
0030: 6e 6f 76 61 64 69 67 6d 2e 63 6f 6d 3e 0a 20 2a  novadigm.com>. *
0040: 0a 20 2a 20 24 48 65 61 64 65 72 3a 20 2f 68 6f  . * $Header: /ho
0050: 6d 65 2f 72 6b 65 65 6e 65 2f 74 6d 70 2f 63 76  me/rkeene/tmp/cv
0060: 73 32 66 6f 73 73 69 6c 2f 2e 2e 2f 74 63 6c 74  s2fossil/../tclt
0070: 6c 73 2f 74 6c 73 2f 74 6c 73 2f 74 6c 73 2e 68  ls/tls/tls/tls.h
0080: 2c 76 20 31 2e 31 2e 31 2e 31 20 32 30 30 30 2f  ,v 1.1.1.1 2000/
0090: 30 31 2f 31 39 20 32 32 3a 31 30 3a 35 38 20 61  01/19 22:10:58 a
00a0: 62 6f 72 72 20 45 78 70 20 24 0a 20 2a 0a 20 2a  borr Exp $. *. *
00b0: 20 54 4c 53 20 28 61 6b 61 20 53 53 4c 29 20 43   TLS (aka SSL) C
00c0: 68 61 6e 6e 65 6c 20 2d 20 63 61 6e 20 62 65 20  hannel - can be 
00d0: 6c 61 79 65 72 65 64 20 6f 6e 20 61 6e 79 20 62  layered on any b
00e0: 69 2d 64 69 72 65 63 74 69 6f 6e 61 6c 0a 20 2a  i-directional. *
00f0: 20 54 63 6c 5f 43 68 61 6e 6e 65 6c 20 28 4e 6f   Tcl_Channel (No
0100: 74 65 3a 20 52 65 71 75 69 72 65 73 20 54 72 66  te: Requires Trf
0110: 20 43 6f 72 65 20 50 61 74 63 68 29 0a 20 2a 0a   Core Patch). *.
0120: 20 2a 20 54 68 69 73 20 77 61 73 20 62 75 69 6c   * This was buil
0130: 74 20 66 72 6f 6d 20 73 63 72 61 74 63 68 20 62  t from scratch b
0140: 61 73 65 64 20 75 70 6f 6e 20 6f 62 73 65 72 76  ased upon observ
0150: 61 74 69 6f 6e 20 6f 66 20 4f 70 65 6e 53 53 4c  ation of OpenSSL
0160: 20 30 2e 39 2e 32 42 0a 20 2a 0a 20 2a 20 41 64   0.9.2B. *. * Ad
0170: 64 69 74 69 6f 6e 20 63 72 65 64 69 74 20 69 73  dition credit is
0180: 20 64 75 65 20 66 6f 72 20 41 6e 64 72 65 61 73   due for Andreas
0190: 20 4b 75 70 72 69 65 73 20 28 61 2e 6b 75 70 72   Kupries (a.kupr
01a0: 69 65 73 40 77 65 73 74 65 6e 64 2e 63 6f 6d 29  ies@westend.com)
01b0: 2c 20 66 6f 72 0a 20 2a 20 70 72 6f 76 69 64 69  , for. * providi
01c0: 6e 67 20 74 68 65 20 54 63 6c 5f 52 65 70 6c 61  ng the Tcl_Repla
01d0: 63 65 43 68 61 6e 6e 65 6c 20 6d 65 63 68 61 6e  ceChannel mechan
01e0: 69 73 6d 20 61 6e 64 20 77 6f 72 6b 69 6e 67 20  ism and working 
01f0: 63 6c 6f 73 65 6c 79 20 77 69 74 68 20 6d 65 0a  closely with me.
0200: 20 2a 20 74 6f 20 65 6e 68 61 6e 63 65 20 69 74   * to enhance it
0210: 20 74 6f 20 73 75 70 70 6f 72 74 20 66 75 6c 6c   to support full
0220: 20 66 69 6c 65 65 76 65 6e 74 20 73 65 6d 61 6e   fileevent seman
0230: 74 69 63 73 2e 0a 20 2a 0a 20 2a 20 41 6c 73 6f  tics.. *. * Also
0240: 20 77 6f 72 6b 20 64 6f 6e 65 20 62 79 20 74 68   work done by th
0250: 65 20 66 6f 6c 6c 6f 77 20 70 65 6f 70 6c 65 20  e follow people 
0260: 70 72 6f 76 69 64 65 64 20 74 68 65 20 69 6d 70  provided the imp
0270: 65 74 75 73 20 74 6f 20 64 6f 20 74 68 69 73 20  etus to do this 
0280: 22 72 69 67 68 74 22 3a 2d 0a 20 2a 09 74 63 6c  "right":-. *.tcl
0290: 53 53 4c 20 28 43 6f 6c 69 6e 20 4d 63 43 6f 72  SSL (Colin McCor
02a0: 6d 61 63 6b 2c 20 53 68 61 72 65 64 20 54 65 63  mack, Shared Tec
02b0: 68 6e 6f 6c 6f 67 79 29 0a 20 2a 09 53 53 4c 74  hnology). *.SSLt
02c0: 63 6c 20 28 50 65 74 65 72 20 41 6e 74 6d 61 6e  cl (Peter Antman
02d0: 29 0a 20 2a 0a 20 2a 2f 0a 23 69 66 6e 64 65 66  ). *. */.#ifndef
02e0: 20 5f 54 4c 53 5f 48 0a 23 64 65 66 69 6e 65 20   _TLS_H.#define 
02f0: 5f 54 4c 53 5f 48 0a 0a 23 69 6e 63 6c 75 64 65  _TLS_H..#include
0300: 20 3c 74 63 6c 2e 68 3e 09 2f 2a 20 49 6e 74 65   <tcl.h>./* Inte
0310: 72 6e 61 6c 20 64 65 66 69 6e 69 74 69 6f 6e 73  rnal definitions
0320: 20 66 6f 72 20 54 63 6c 2e 20 2a 2f 0a 0a 23 69   for Tcl. */..#i
0330: 66 64 65 66 20 54 43 4c 5f 53 54 4f 52 41 47 45  fdef TCL_STORAGE
0340: 5f 43 4c 41 53 53 0a 23 20 75 6e 64 65 66 20 54  _CLASS.# undef T
0350: 43 4c 5f 53 54 4f 52 41 47 45 5f 43 4c 41 53 53  CL_STORAGE_CLASS
0360: 0a 23 65 6e 64 69 66 0a 23 69 66 64 65 66 20 42  .#endif.#ifdef B
0370: 55 49 4c 44 5f 74 6c 73 0a 23 20 64 65 66 69 6e  UILD_tls.# defin
0380: 65 20 54 43 4c 5f 53 54 4f 52 41 47 45 5f 43 4c  e TCL_STORAGE_CL
0390: 41 53 53 20 44 4c 4c 45 58 50 4f 52 54 0a 23 65  ASS DLLEXPORT.#e
03a0: 6c 73 65 0a 23 20 64 65 66 69 6e 65 20 54 43 4c  lse.# define TCL
03b0: 5f 53 54 4f 52 41 47 45 5f 43 4c 41 53 53 20 44  _STORAGE_CLASS D
03c0: 4c 4c 49 4d 50 4f 52 54 0a 23 65 6e 64 69 66 0a  LLIMPORT.#endif.
03d0: 0a 2f 2a 0a 20 2a 20 46 6f 72 77 61 72 64 20 64  ./*. * Forward d
03e0: 65 63 6c 61 72 61 74 69 6f 6e 73 0a 20 2a 2f 0a  eclarations. */.
03f0: 0a 45 58 54 45 52 4e 20 69 6e 74 20 54 6c 73 5f  .EXTERN int Tls_
0400: 49 6e 69 74 20 5f 41 4e 53 49 5f 41 52 47 53 5f  Init _ANSI_ARGS_
0410: 20 28 28 54 63 6c 5f 49 6e 74 65 72 70 20 2a 29   ((Tcl_Interp *)
0420: 29 3b 0a 45 58 54 45 52 4e 20 69 6e 74 20 54 6c  );.EXTERN int Tl
0430: 73 5f 53 61 66 65 49 6e 69 74 20 5f 41 4e 53 49  s_SafeInit _ANSI
0440: 5f 41 52 47 53 5f 20 28 28 54 63 6c 5f 49 6e 74  _ARGS_ ((Tcl_Int
0450: 65 72 70 20 2a 29 29 3b 0a 0a 23 65 6e 64 69 66  erp *));..#endif
0460: 20 2f 2a 20 5f 54 4c 53 5f 48 20 2a 2f 0a         /* _TLS_H */.