Hex Artifact Content

Artifact 8ab4c9a90ac0490890aed6b7e28fed6874c8a431:


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 49 6e  ls/tls/tls/tlsIn
0080: 74 2e 68 2c 76 20 31 2e 31 2e 31 2e 31 20 32 30  t.h,v 1.1.1.1 20
0090: 30 30 2f 30 31 2f 31 39 20 32 32 3a 31 30 3a 35  00/01/19 22:10:5
00a0: 38 20 61 62 6f 72 72 20 45 78 70 20 24 0a 20 2a  8 aborr Exp $. *
00b0: 0a 20 2a 20 54 4c 53 20 28 61 6b 61 20 53 53 4c  . * TLS (aka SSL
00c0: 29 20 43 68 61 6e 6e 65 6c 20 2d 20 63 61 6e 20  ) Channel - can 
00d0: 62 65 20 6c 61 79 65 72 65 64 20 6f 6e 20 61 6e  be layered on an
00e0: 79 20 62 69 2d 64 69 72 65 63 74 69 6f 6e 61 6c  y bi-directional
00f0: 0a 20 2a 20 54 63 6c 5f 43 68 61 6e 6e 65 6c 20  . * Tcl_Channel 
0100: 28 4e 6f 74 65 3a 20 52 65 71 75 69 72 65 73 20  (Note: Requires 
0110: 54 72 66 20 43 6f 72 65 20 50 61 74 63 68 29 0a  Trf Core Patch).
0120: 20 2a 0a 20 2a 20 54 68 69 73 20 77 61 73 20 62   *. * This was b
0130: 75 69 6c 74 20 66 72 6f 6d 20 73 63 72 61 74 63  uilt from scratc
0140: 68 20 62 61 73 65 64 20 75 70 6f 6e 20 6f 62 73  h based upon obs
0150: 65 72 76 61 74 69 6f 6e 20 6f 66 20 4f 70 65 6e  ervation of Open
0160: 53 53 4c 20 30 2e 39 2e 32 42 0a 20 2a 0a 20 2a  SSL 0.9.2B. *. *
0170: 20 41 64 64 69 74 69 6f 6e 20 63 72 65 64 69 74   Addition credit
0180: 20 69 73 20 64 75 65 20 66 6f 72 20 41 6e 64 72   is due for Andr
0190: 65 61 73 20 4b 75 70 72 69 65 73 20 28 61 2e 6b  eas Kupries (a.k
01a0: 75 70 72 69 65 73 40 77 65 73 74 65 6e 64 2e 63  upries@westend.c
01b0: 6f 6d 29 2c 20 66 6f 72 0a 20 2a 20 70 72 6f 76  om), for. * prov
01c0: 69 64 69 6e 67 20 74 68 65 20 54 63 6c 5f 52 65  iding the Tcl_Re
01d0: 70 6c 61 63 65 43 68 61 6e 6e 65 6c 20 6d 65 63  placeChannel mec
01e0: 68 61 6e 69 73 6d 20 61 6e 64 20 77 6f 72 6b 69  hanism and worki
01f0: 6e 67 20 63 6c 6f 73 65 6c 79 20 77 69 74 68 20  ng closely with 
0200: 6d 65 0a 20 2a 20 74 6f 20 65 6e 68 61 6e 63 65  me. * to enhance
0210: 20 69 74 20 74 6f 20 73 75 70 70 6f 72 74 20 66   it to support f
0220: 75 6c 6c 20 66 69 6c 65 65 76 65 6e 74 20 73 65  ull fileevent se
0230: 6d 61 6e 74 69 63 73 2e 0a 20 2a 0a 20 2a 20 41  mantics.. *. * A
0240: 6c 73 6f 20 77 6f 72 6b 20 64 6f 6e 65 20 62 79  lso work done by
0250: 20 74 68 65 20 66 6f 6c 6c 6f 77 20 70 65 6f 70   the follow peop
0260: 6c 65 20 70 72 6f 76 69 64 65 64 20 74 68 65 20  le provided the 
0270: 69 6d 70 65 74 75 73 20 74 6f 20 64 6f 20 74 68  impetus to do th
0280: 69 73 20 22 72 69 67 68 74 22 3a 2d 0a 20 2a 09  is "right":-. *.
0290: 74 63 6c 53 53 4c 20 28 43 6f 6c 69 6e 20 4d 63  tclSSL (Colin Mc
02a0: 43 6f 72 6d 61 63 6b 2c 20 53 68 61 72 65 64 20  Cormack, Shared 
02b0: 54 65 63 68 6e 6f 6c 6f 67 79 29 0a 20 2a 09 53  Technology). *.S
02c0: 53 4c 74 63 6c 20 28 50 65 74 65 72 20 41 6e 74  SLtcl (Peter Ant
02d0: 6d 61 6e 29 0a 20 2a 0a 20 2a 2f 0a 23 69 66 6e  man). *. */.#ifn
02e0: 64 65 66 20 5f 54 53 4c 49 4e 54 5f 48 0a 23 64  def _TSLINT_H.#d
02f0: 65 66 69 6e 65 20 5f 54 4c 53 49 4e 54 5f 48 0a  efine _TLSINT_H.
0300: 0a 23 69 6e 63 6c 75 64 65 20 22 74 6c 73 2e 68  .#include "tls.h
0310: 22 0a 23 69 6e 63 6c 75 64 65 20 3c 65 72 72 6e  ".#include <errn
0320: 6f 2e 68 3e 0a 0a 23 69 66 64 65 66 20 4e 4f 5f  o.h>..#ifdef NO_
0330: 50 41 54 45 4e 54 53 0a 23 64 65 66 69 6e 65 20  PATENTS.#define 
0340: 4e 4f 5f 49 44 45 41 0a 23 64 65 66 69 6e 65 20  NO_IDEA.#define 
0350: 4e 4f 5f 52 43 32 0a 23 64 65 66 69 6e 65 20 4e  NO_RC2.#define N
0360: 4f 5f 52 43 34 0a 23 64 65 66 69 6e 65 20 4e 4f  O_RC4.#define NO
0370: 5f 52 43 35 0a 23 64 65 66 69 6e 65 20 4e 4f 5f  _RC5.#define NO_
0380: 52 53 41 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 53  RSA.#define NO_S
0390: 53 4c 32 0a 23 65 6e 64 69 66 0a 0a 23 69 6e 63  SL2.#endif..#inc
03a0: 6c 75 64 65 20 3c 6f 70 65 6e 73 73 6c 2f 73 73  lude <openssl/ss
03b0: 6c 2e 68 3e 0a 0a 23 69 66 64 65 66 20 54 43 4c  l.h>..#ifdef TCL
03c0: 5f 53 54 4f 52 41 47 45 5f 43 4c 41 53 53 0a 23  _STORAGE_CLASS.#
03d0: 20 75 6e 64 65 66 20 54 43 4c 5f 53 54 4f 52 41   undef TCL_STORA
03e0: 47 45 5f 43 4c 41 53 53 0a 23 65 6e 64 69 66 0a  GE_CLASS.#endif.
03f0: 23 69 66 64 65 66 20 42 55 49 4c 44 5f 74 6c 73  #ifdef BUILD_tls
0400: 0a 23 20 64 65 66 69 6e 65 20 54 43 4c 5f 53 54  .# define TCL_ST
0410: 4f 52 41 47 45 5f 43 4c 41 53 53 20 44 4c 4c 45  ORAGE_CLASS DLLE
0420: 58 50 4f 52 54 0a 23 65 6c 73 65 0a 23 20 64 65  XPORT.#else.# de
0430: 66 69 6e 65 20 54 43 4c 5f 53 54 4f 52 41 47 45  fine TCL_STORAGE
0440: 5f 43 4c 41 53 53 20 44 4c 4c 49 4d 50 4f 52 54  _CLASS DLLIMPORT
0450: 0a 23 65 6e 64 69 66 0a 20 0a 23 69 66 6e 64 65  .#endif. .#ifnde
0460: 66 20 45 43 4f 4e 4e 41 42 4f 52 54 45 44 0a 23  f ECONNABORTED.#
0470: 64 65 66 69 6e 65 20 45 43 4f 4e 4e 41 42 4f 52  define ECONNABOR
0480: 54 45 44 09 31 33 30 09 2f 2a 20 53 6f 66 74 77  TED.130./* Softw
0490: 61 72 65 20 63 61 75 73 65 64 20 63 6f 6e 6e 65  are caused conne
04a0: 63 74 69 6f 6e 20 61 62 6f 72 74 20 2a 2f 0a 23  ction abort */.#
04b0: 65 6e 64 69 66 0a 23 69 66 6e 64 65 66 20 45 43  endif.#ifndef EC
04c0: 4f 4e 4e 52 45 53 45 54 0a 23 64 65 66 69 6e 65  ONNRESET.#define
04d0: 20 45 43 4f 4e 4e 52 45 53 45 54 09 31 33 31 09   ECONNRESET.131.
04e0: 2f 2a 20 43 6f 6e 6e 65 63 74 69 6f 6e 20 72 65  /* Connection re
04f0: 73 65 74 20 62 79 20 70 65 65 72 20 2a 2f 0a 23  set by peer */.#
0500: 65 6e 64 69 66 0a 0a 23 69 66 64 65 66 20 44 45  endif..#ifdef DE
0510: 42 55 47 0a 23 64 65 66 69 6e 65 20 64 70 72 69  BUG.#define dpri
0520: 6e 74 66 20 66 70 72 69 6e 74 66 0a 23 65 6c 73  ntf fprintf.#els
0530: 65 0a 23 64 65 66 69 6e 65 20 64 70 72 69 6e 74  e.#define dprint
0540: 66 20 69 66 20 28 30 29 20 66 70 72 69 6e 74 66  f if (0) fprintf
0550: 0a 23 65 6e 64 69 66 0a 0a 23 64 65 66 69 6e 65  .#endif..#define
0560: 20 53 53 4c 5f 45 52 52 4f 52 28 73 73 6c 2c 65   SSL_ERROR(ssl,e
0570: 72 72 29 09 5c 0a 09 20 20 20 20 28 28 63 68 61  rr).\..    ((cha
0580: 72 2a 29 45 52 52 5f 72 65 61 73 6f 6e 5f 65 72  r*)ERR_reason_er
0590: 72 6f 72 5f 73 74 72 69 6e 67 28 53 53 4c 5f 67  ror_string(SSL_g
05a0: 65 74 5f 65 72 72 6f 72 28 28 73 73 6c 29 2c 28  et_error((ssl),(
05b0: 65 72 72 29 29 29 29 0a 2f 2a 0a 20 2a 20 4f 70  err))))./*. * Op
05c0: 65 6e 53 53 4c 20 42 49 4f 20 52 6f 75 74 69 6e  enSSL BIO Routin
05d0: 65 73 0a 20 2a 2f 0a 23 64 65 66 69 6e 65 20 42  es. */.#define B
05e0: 49 4f 5f 54 59 50 45 5f 54 43 4c 09 28 31 39 7c  IO_TYPE_TCL.(19|
05f0: 30 78 30 34 30 30 29 0a 0a 2f 2a 0a 20 2a 20 44  0x0400)../*. * D
0600: 65 66 69 6e 65 73 20 66 6f 72 20 53 74 61 74 65  efines for State
0610: 2e 66 6c 61 67 73 0a 20 2a 2f 0a 23 64 65 66 69  .flags. */.#defi
0620: 6e 65 20 54 4c 53 5f 54 43 4c 5f 41 53 59 4e 43  ne TLS_TCL_ASYNC
0630: 09 28 31 3c 3c 30 29 09 2f 2a 20 6e 6f 6e 2d 62  .(1<<0)./* non-b
0640: 6c 6f 63 6b 69 6e 67 20 6d 6f 64 65 20 2a 2f 0a  locking mode */.
0650: 23 64 65 66 69 6e 65 20 54 4c 53 5f 54 43 4c 5f  #define TLS_TCL_
0660: 53 45 52 56 45 52 09 28 31 3c 3c 31 29 09 2f 2a  SERVER.(1<<1)./*
0670: 20 53 65 72 76 65 72 2d 53 69 64 65 20 2a 2f 0a   Server-Side */.
0680: 23 64 65 66 69 6e 65 20 54 4c 53 5f 54 43 4c 5f  #define TLS_TCL_
0690: 49 4e 49 54 09 28 31 3c 3c 32 29 09 2f 2a 20 49  INIT.(1<<2)./* I
06a0: 6e 69 74 69 61 6c 69 7a 69 6e 67 20 63 6f 6e 6e  nitializing conn
06b0: 65 63 74 69 6f 6e 20 2a 2f 0a 23 64 65 66 69 6e  ection */.#defin
06c0: 65 20 54 4c 53 5f 54 43 4c 5f 44 45 42 55 47 09  e TLS_TCL_DEBUG.
06d0: 28 31 3c 3c 33 29 09 2f 2a 20 53 68 6f 77 20 64  (1<<3)./* Show d
06e0: 65 62 75 67 20 74 72 61 63 69 6e 67 20 2a 2f 0a  ebug tracing */.
06f0: 0a 23 64 65 66 69 6e 65 20 54 4c 53 5f 54 43 4c  .#define TLS_TCL
0700: 5f 44 45 4c 41 59 20 28 35 29 0a 0a 2f 2a 0a 20  _DELAY (5)../*. 
0710: 2a 20 54 68 69 73 20 73 74 72 75 63 74 75 72 65  * This structure
0720: 20 64 65 73 63 72 69 62 65 73 20 74 68 65 20 70   describes the p
0730: 65 72 2d 69 6e 73 74 61 6e 63 65 20 73 74 61 74  er-instance stat
0740: 65 0a 20 2a 20 6f 66 20 61 6e 20 73 73 6c 20 63  e. * of an ssl c
0750: 68 61 6e 6e 65 6c 2e 0a 20 2a 0a 20 2a 20 54 68  hannel.. *. * Th
0760: 65 20 53 53 4c 20 70 72 6f 63 65 73 73 69 6e 67  e SSL processing
0770: 20 63 6f 6e 74 65 78 74 20 69 73 20 6d 61 69 6e   context is main
0780: 74 61 69 6e 65 64 20 68 65 72 65 2c 20 69 6e 20  tained here, in 
0790: 74 68 65 20 43 6c 69 65 6e 74 44 61 74 61 0a 20  the ClientData. 
07a0: 2a 2f 0a 74 79 70 65 64 65 66 20 73 74 72 75 63  */.typedef struc
07b0: 74 20 53 74 61 74 65 20 7b 0a 20 20 20 20 54 63  t State {.    Tc
07c0: 6c 5f 43 68 61 6e 6e 65 6c 20 73 65 6c 66 3b 09  l_Channel self;.
07d0: 2f 2a 20 74 68 69 73 20 73 6f 63 6b 65 74 20 63  /* this socket c
07e0: 68 61 6e 6e 65 6c 20 2a 2f 0a 23 69 66 20 54 43  hannel */.#if TC
07f0: 4c 5f 4d 41 4a 4f 52 5f 56 45 52 53 49 4f 4e 20  L_MAJOR_VERSION 
0800: 3d 3d 20 38 20 26 26 20 54 43 4c 5f 4d 49 4e 4f  == 8 && TCL_MINO
0810: 52 5f 56 45 52 53 49 4f 4e 20 3c 20 32 0a 20 20  R_VERSION < 2.  
0820: 20 20 54 63 6c 5f 43 68 61 6e 6e 65 6c 20 70 61    Tcl_Channel pa
0830: 72 65 6e 74 3b 09 2f 2a 20 75 6e 64 65 72 6c 79  rent;./* underly
0840: 69 6e 67 20 63 68 61 6e 6e 65 6c 20 2a 2f 0a 23  ing channel */.#
0850: 65 6e 64 69 66 0a 20 20 20 20 54 63 6c 5f 54 69  endif.    Tcl_Ti
0860: 6d 65 72 54 6f 6b 65 6e 20 74 69 6d 65 72 3b 0a  merToken timer;.
0870: 0a 20 20 20 20 69 6e 74 20 66 6c 61 67 73 3b 09  .    int flags;.
0880: 09 2f 2a 20 63 75 72 72 65 6e 74 6c 79 20 6f 6e  ./* currently on
0890: 6c 79 20 43 48 41 4e 4e 45 4c 5f 41 53 59 4e 43  ly CHANNEL_ASYNC
08a0: 20 2a 2f 0a 20 20 20 20 69 6e 74 20 77 61 74 63   */.    int watc
08b0: 68 4d 61 73 6b 3b 09 2f 2a 20 63 75 72 72 65 6e  hMask;./* curren
08c0: 74 20 57 61 74 63 68 50 72 6f 63 20 6d 61 73 6b  t WatchProc mask
08d0: 20 2a 2f 0a 20 20 20 20 69 6e 74 20 6d 6f 64 65   */.    int mode
08e0: 3b 09 09 2f 2a 20 63 75 72 72 65 6e 74 20 6d 6f  ;../* current mo
08f0: 64 65 20 6f 66 20 70 61 72 65 6e 74 20 63 68 61  de of parent cha
0900: 6e 6e 65 6c 20 2a 2f 0a 0a 20 20 20 20 54 63 6c  nnel */..    Tcl
0910: 5f 49 6e 74 65 72 70 20 2a 69 6e 74 65 72 70 3b  _Interp *interp;
0920: 09 2f 2a 20 69 6e 74 65 72 70 72 65 74 65 72 20  ./* interpreter 
0930: 69 6e 20 77 68 69 63 68 20 74 68 69 73 20 72 65  in which this re
0940: 73 69 64 65 73 20 2a 2f 0a 20 20 20 20 54 63 6c  sides */.    Tcl
0950: 5f 4f 62 6a 20 2a 63 61 6c 6c 62 61 63 6b 3b 09  _Obj *callback;.
0960: 2f 2a 20 73 63 72 69 70 74 20 63 61 6c 6c 65 64  /* script called
0970: 20 66 6f 72 20 74 72 61 63 69 6e 67 2c 20 76 65   for tracing, ve
0980: 72 69 66 79 69 6e 67 20 61 6e 64 20 65 72 72 6f  rifying and erro
0990: 72 73 20 2a 2f 0a 0a 20 20 20 20 69 6e 74 20 76  rs */..    int v
09a0: 66 6c 61 67 73 3b 09 09 2f 2a 20 76 65 72 69 66  flags;../* verif
09b0: 79 20 66 6c 61 67 73 20 2a 2f 0a 20 20 20 20 53  y flags */.    S
09c0: 53 4c 20 2a 73 73 6c 3b 09 09 2f 2a 20 53 74 72  SL *ssl;../* Str
09d0: 75 63 74 20 66 6f 72 20 53 53 4c 20 70 72 6f 63  uct for SSL proc
09e0: 65 73 73 69 6e 67 20 2a 2f 0a 20 20 20 20 53 53  essing */.    SS
09f0: 4c 5f 43 54 58 20 2a 63 74 78 3b 09 2f 2a 20 53  L_CTX *ctx;./* S
0a00: 53 4c 20 43 6f 6e 74 65 78 74 20 2a 2f 0a 20 20  SL Context */.  
0a10: 20 20 42 49 4f 20 2a 62 69 6f 3b 09 09 2f 2a 20    BIO *bio;../* 
0a20: 53 74 72 75 63 74 20 66 6f 72 20 53 53 4c 20 70  Struct for SSL p
0a30: 72 6f 63 65 73 73 69 6e 67 20 2a 2f 0a 20 20 20  rocessing */.   
0a40: 20 42 49 4f 20 2a 70 5f 62 69 6f 3b 09 09 2f 2a   BIO *p_bio;../*
0a50: 20 50 61 72 65 6e 74 20 42 49 4f 20 28 74 68 61   Parent BIO (tha
0a60: 74 20 69 73 20 6c 61 79 65 72 65 64 20 6f 6e 20  t is layered on 
0a70: 54 63 6c 5f 43 68 61 6e 6e 65 6c 29 20 2a 2f 0a  Tcl_Channel) */.
0a80: 0a 20 20 20 20 63 68 61 72 20 2a 65 72 72 3b 0a  .    char *err;.
0a90: 7d 20 53 74 61 74 65 3b 0a 0a 2f 2a 0a 20 2a 20  } State;../*. * 
0aa0: 46 6f 72 77 61 72 64 20 64 65 63 6c 61 72 61 74  Forward declarat
0ab0: 69 6f 6e 73 0a 20 2a 2f 0a 0a 45 58 54 45 52 4e  ions. */..EXTERN
0ac0: 20 54 63 6c 5f 43 68 61 6e 6e 65 6c 54 79 70 65   Tcl_ChannelType
0ad0: 20 2a 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70   *Tls_ChannelTyp
0ae0: 65 20 5f 41 4e 53 49 5f 41 52 47 53 5f 28 28 76  e _ANSI_ARGS_((v
0af0: 6f 69 64 29 29 3b 0a 45 58 54 45 52 4e 20 54 63  oid));.EXTERN Tc
0b00: 6c 5f 43 68 61 6e 6e 65 6c 09 54 6c 73 5f 47 65  l_Channel.Tls_Ge
0b10: 74 50 61 72 65 6e 74 20 5f 41 4e 53 49 5f 41 52  tParent _ANSI_AR
0b20: 47 53 5f 28 28 53 74 61 74 65 20 2a 73 74 61 74  GS_((State *stat
0b30: 65 50 74 72 29 29 3b 0a 0a 45 58 54 45 52 4e 20  ePtr));..EXTERN 
0b40: 54 63 6c 5f 4f 62 6a 2a 09 09 54 6c 73 5f 4e 65  Tcl_Obj*..Tls_Ne
0b50: 77 58 35 30 39 4f 62 6a 20 5f 41 4e 53 49 5f 41  wX509Obj _ANSI_A
0b60: 52 47 53 5f 20 28 28 20 54 63 6c 5f 49 6e 74 65  RGS_ (( Tcl_Inte
0b70: 72 70 20 2a 69 6e 74 65 72 70 2c 20 58 35 30 39  rp *interp, X509
0b80: 20 2a 63 65 72 74 29 29 3b 0a 45 58 54 45 52 4e   *cert));.EXTERN
0b90: 20 76 6f 69 64 09 09 54 6c 73 5f 45 72 72 6f 72   void..Tls_Error
0ba0: 20 5f 41 4e 53 49 5f 41 52 47 53 5f 20 28 28 53   _ANSI_ARGS_ ((S
0bb0: 74 61 74 65 20 2a 73 74 61 74 65 50 74 72 2c 20  tate *statePtr, 
0bc0: 63 68 61 72 20 2a 6d 73 67 29 29 3b 0a 45 58 54  char *msg));.EXT
0bd0: 45 52 4e 20 76 6f 69 64 09 09 54 6c 73 5f 46 72  ERN void..Tls_Fr
0be0: 65 65 20 5f 41 4e 53 49 5f 41 52 47 53 5f 20 28  ee _ANSI_ARGS_ (
0bf0: 28 63 68 61 72 20 2a 62 6c 6f 63 6b 50 74 72 29  (char *blockPtr)
0c00: 29 3b 0a 45 58 54 45 52 4e 20 69 6e 74 09 09 54  );.EXTERN int..T
0c10: 6c 73 5f 57 61 69 74 46 6f 72 43 6f 6e 6e 65 63  ls_WaitForConnec
0c20: 74 20 5f 41 4e 53 49 5f 41 52 47 53 5f 28 28 20  t _ANSI_ARGS_(( 
0c30: 53 74 61 74 65 20 2a 73 74 61 74 65 50 74 72 2c  State *statePtr,
0c40: 0a 09 09 09 09 09 09 09 69 6e 74 20 2a 65 72 72  ........int *err
0c50: 6f 72 43 6f 64 65 50 74 72 29 29 3b 0a 0a 45 58  orCodePtr));..EX
0c60: 54 45 52 4e 20 42 49 4f 5f 4d 45 54 48 4f 44 20  TERN BIO_METHOD 
0c70: 2a 09 42 49 4f 5f 73 5f 74 63 6c 20 5f 41 4e 53  *.BIO_s_tcl _ANS
0c80: 49 5f 41 52 47 53 5f 28 28 76 6f 69 64 29 29 3b  I_ARGS_((void));
0c90: 0a 45 58 54 45 52 4e 20 42 49 4f 20 2a 09 09 42  .EXTERN BIO *..B
0ca0: 49 4f 5f 6e 65 77 5f 74 63 6c 20 5f 41 4e 53 49  IO_new_tcl _ANSI
0cb0: 5f 41 52 47 53 5f 28 28 53 74 61 74 65 2a 20 73  _ARGS_((State* s
0cc0: 74 61 74 65 50 74 72 2c 20 69 6e 74 20 66 6c 61  tatePtr, int fla
0cd0: 67 73 29 29 3b 0a 0a 23 65 6e 64 69 66 20 2f 2a  gs));..#endif /*
0ce0: 20 5f 54 4c 53 49 4e 54 5f 48 20 2a 2f 0a         _TLSINT_H */.