Artifact
d57265c137bbe8971c3842ee38c57cc64b995715:
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 32 30 30 30 20 4d 61 (C) 1997-2000 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 33 20 32 30 30 30 2f 30 t.h,v 1.3 2000/0
0090: 35 2f 30 34 20 32 30 3a 32 31 3a 30 36 20 61 62 5/04 20:21:06 ab
00a0: 6f 72 72 20 45 78 70 20 24 0a 20 2a 0a 20 2a 20 orr Exp $. *. *
00b0: 54 4c 53 20 28 61 6b 61 20 53 53 4c 29 20 43 68 TLS (aka SSL) Ch
00c0: 61 6e 6e 65 6c 20 2d 20 63 61 6e 20 62 65 20 6c annel - can be l
00d0: 61 79 65 72 65 64 20 6f 6e 20 61 6e 79 20 62 69 ayered on any bi
00e0: 2d 64 69 72 65 63 74 69 6f 6e 61 6c 0a 20 2a 20 -directional. *
00f0: 54 63 6c 5f 43 68 61 6e 6e 65 6c 20 28 4e 6f 74 Tcl_Channel (Not
0100: 65 3a 20 52 65 71 75 69 72 65 73 20 54 72 66 20 e: Requires Trf
0110: 43 6f 72 65 20 50 61 74 63 68 29 0a 20 2a 0a 20 Core Patch). *.
0120: 2a 20 54 68 69 73 20 77 61 73 20 62 75 69 6c 74 * This was built
0130: 20 66 72 6f 6d 20 73 63 72 61 74 63 68 20 62 61 from scratch ba
0140: 73 65 64 20 75 70 6f 6e 20 6f 62 73 65 72 76 61 sed upon observa
0150: 74 69 6f 6e 20 6f 66 20 4f 70 65 6e 53 53 4c 20 tion of OpenSSL
0160: 30 2e 39 2e 32 42 0a 20 2a 0a 20 2a 20 41 64 64 0.9.2B. *. * Add
0170: 69 74 69 6f 6e 20 63 72 65 64 69 74 20 69 73 20 ition credit is
0180: 64 75 65 20 66 6f 72 20 41 6e 64 72 65 61 73 20 due for Andreas
0190: 4b 75 70 72 69 65 73 20 28 61 2e 6b 75 70 72 69 Kupries (a.kupri
01a0: 65 73 40 77 65 73 74 65 6e 64 2e 63 6f 6d 29 2c es@westend.com),
01b0: 20 66 6f 72 0a 20 2a 20 70 72 6f 76 69 64 69 6e for. * providin
01c0: 67 20 74 68 65 20 54 63 6c 5f 52 65 70 6c 61 63 g the Tcl_Replac
01d0: 65 43 68 61 6e 6e 65 6c 20 6d 65 63 68 61 6e 69 eChannel mechani
01e0: 73 6d 20 61 6e 64 20 77 6f 72 6b 69 6e 67 20 63 sm and working c
01f0: 6c 6f 73 65 6c 79 20 77 69 74 68 20 6d 65 0a 20 losely with me.
0200: 2a 20 74 6f 20 65 6e 68 61 6e 63 65 20 69 74 20 * to enhance it
0210: 74 6f 20 73 75 70 70 6f 72 74 20 66 75 6c 6c 20 to support full
0220: 66 69 6c 65 65 76 65 6e 74 20 73 65 6d 61 6e 74 fileevent semant
0230: 69 63 73 2e 0a 20 2a 0a 20 2a 20 41 6c 73 6f 20 ics.. *. * Also
0240: 77 6f 72 6b 20 64 6f 6e 65 20 62 79 20 74 68 65 work done by the
0250: 20 66 6f 6c 6c 6f 77 20 70 65 6f 70 6c 65 20 70 follow people p
0260: 72 6f 76 69 64 65 64 20 74 68 65 20 69 6d 70 65 rovided the impe
0270: 74 75 73 20 74 6f 20 64 6f 20 74 68 69 73 20 22 tus to do this "
0280: 72 69 67 68 74 22 3a 2d 0a 20 2a 09 74 63 6c 53 right":-. *.tclS
0290: 53 4c 20 28 43 6f 6c 69 6e 20 4d 63 43 6f 72 6d SL (Colin McCorm
02a0: 61 63 6b 2c 20 53 68 61 72 65 64 20 54 65 63 68 ack, Shared Tech
02b0: 6e 6f 6c 6f 67 79 29 0a 20 2a 09 53 53 4c 74 63 nology). *.SSLtc
02c0: 6c 20 28 50 65 74 65 72 20 41 6e 74 6d 61 6e 29 l (Peter Antman)
02d0: 0a 20 2a 0a 20 2a 2f 0a 23 69 66 6e 64 65 66 20 . *. */.#ifndef
02e0: 5f 54 53 4c 49 4e 54 5f 48 0a 23 64 65 66 69 6e _TSLINT_H.#defin
02f0: 65 20 5f 54 4c 53 49 4e 54 5f 48 0a 0a 23 69 6e e _TLSINT_H..#in
0300: 63 6c 75 64 65 20 22 74 6c 73 2e 68 22 0a 23 69 clude "tls.h".#i
0310: 6e 63 6c 75 64 65 20 3c 65 72 72 6e 6f 2e 68 3e nclude <errno.h>
0320: 0a 0a 23 69 66 64 65 66 20 4e 4f 5f 50 41 54 45 ..#ifdef NO_PATE
0330: 4e 54 53 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 49 NTS.#define NO_I
0340: 44 45 41 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 52 DEA.#define NO_R
0350: 43 32 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 52 43 C2.#define NO_RC
0360: 34 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 52 43 35 4.#define NO_RC5
0370: 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 52 53 41 0a .#define NO_RSA.
0380: 23 64 65 66 69 6e 65 20 4e 4f 5f 53 53 4c 32 0a #define NO_SSL2.
0390: 23 65 6e 64 69 66 0a 0a 23 69 66 64 65 66 20 42 #endif..#ifdef B
03a0: 53 41 46 45 0a 23 69 6e 63 6c 75 64 65 20 3c 73 SAFE.#include <s
03b0: 73 6c 2e 68 3e 0a 23 65 6c 73 65 0a 23 69 6e 63 sl.h>.#else.#inc
03c0: 6c 75 64 65 20 3c 6f 70 65 6e 73 73 6c 2f 73 73 lude <openssl/ss
03d0: 6c 2e 68 3e 0a 23 65 6e 64 69 66 0a 0a 23 69 66 l.h>.#endif..#if
03e0: 64 65 66 20 54 43 4c 5f 53 54 4f 52 41 47 45 5f def TCL_STORAGE_
03f0: 43 4c 41 53 53 0a 23 20 75 6e 64 65 66 20 54 43 CLASS.# undef TC
0400: 4c 5f 53 54 4f 52 41 47 45 5f 43 4c 41 53 53 0a L_STORAGE_CLASS.
0410: 23 65 6e 64 69 66 0a 23 69 66 64 65 66 20 42 55 #endif.#ifdef BU
0420: 49 4c 44 5f 74 6c 73 0a 23 20 64 65 66 69 6e 65 ILD_tls.# define
0430: 20 54 43 4c 5f 53 54 4f 52 41 47 45 5f 43 4c 41 TCL_STORAGE_CLA
0440: 53 53 20 44 4c 4c 45 58 50 4f 52 54 0a 23 65 6c SS DLLEXPORT.#el
0450: 73 65 0a 23 20 64 65 66 69 6e 65 20 54 43 4c 5f se.# define TCL_
0460: 53 54 4f 52 41 47 45 5f 43 4c 41 53 53 20 44 4c STORAGE_CLASS DL
0470: 4c 49 4d 50 4f 52 54 0a 23 65 6e 64 69 66 0a 20 LIMPORT.#endif.
0480: 0a 23 69 66 6e 64 65 66 20 45 43 4f 4e 4e 41 42 .#ifndef ECONNAB
0490: 4f 52 54 45 44 0a 23 64 65 66 69 6e 65 20 45 43 ORTED.#define EC
04a0: 4f 4e 4e 41 42 4f 52 54 45 44 09 31 33 30 09 2f ONNABORTED.130./
04b0: 2a 20 53 6f 66 74 77 61 72 65 20 63 61 75 73 65 * Software cause
04c0: 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 61 62 6f d connection abo
04d0: 72 74 20 2a 2f 0a 23 65 6e 64 69 66 0a 23 69 66 rt */.#endif.#if
04e0: 6e 64 65 66 20 45 43 4f 4e 4e 52 45 53 45 54 0a ndef ECONNRESET.
04f0: 23 64 65 66 69 6e 65 20 45 43 4f 4e 4e 52 45 53 #define ECONNRES
0500: 45 54 09 31 33 31 09 2f 2a 20 43 6f 6e 6e 65 63 ET.131./* Connec
0510: 74 69 6f 6e 20 72 65 73 65 74 20 62 79 20 70 65 tion reset by pe
0520: 65 72 20 2a 2f 0a 23 65 6e 64 69 66 0a 0a 23 69 er */.#endif..#i
0530: 66 64 65 66 20 44 45 42 55 47 0a 23 64 65 66 69 fdef DEBUG.#defi
0540: 6e 65 20 64 70 72 69 6e 74 66 20 66 70 72 69 6e ne dprintf fprin
0550: 74 66 0a 23 65 6c 73 65 0a 23 64 65 66 69 6e 65 tf.#else.#define
0560: 20 64 70 72 69 6e 74 66 20 69 66 20 28 30 29 20 dprintf if (0)
0570: 66 70 72 69 6e 74 66 0a 23 65 6e 64 69 66 0a 0a fprintf.#endif..
0580: 23 64 65 66 69 6e 65 20 53 53 4c 5f 45 52 52 4f #define SSL_ERRO
0590: 52 28 73 73 6c 2c 65 72 72 29 09 5c 0a 09 20 20 R(ssl,err).\..
05a0: 20 20 28 28 63 68 61 72 2a 29 45 52 52 5f 72 65 ((char*)ERR_re
05b0: 61 73 6f 6e 5f 65 72 72 6f 72 5f 73 74 72 69 6e ason_error_strin
05c0: 67 28 53 53 4c 5f 67 65 74 5f 65 72 72 6f 72 28 g(SSL_get_error(
05d0: 28 73 73 6c 29 2c 28 65 72 72 29 29 29 29 0a 2f (ssl),(err))))./
05e0: 2a 0a 20 2a 20 4f 70 65 6e 53 53 4c 20 42 49 4f *. * OpenSSL BIO
05f0: 20 52 6f 75 74 69 6e 65 73 0a 20 2a 2f 0a 23 64 Routines. */.#d
0600: 65 66 69 6e 65 20 42 49 4f 5f 54 59 50 45 5f 54 efine BIO_TYPE_T
0610: 43 4c 09 28 31 39 7c 30 78 30 34 30 30 29 0a 0a CL.(19|0x0400)..
0620: 2f 2a 0a 20 2a 20 44 65 66 69 6e 65 73 20 66 6f /*. * Defines fo
0630: 72 20 53 74 61 74 65 2e 66 6c 61 67 73 0a 20 2a r State.flags. *
0640: 2f 0a 23 64 65 66 69 6e 65 20 54 4c 53 5f 54 43 /.#define TLS_TC
0650: 4c 5f 41 53 59 4e 43 09 28 31 3c 3c 30 29 09 2f L_ASYNC.(1<<0)./
0660: 2a 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 20 6d * non-blocking m
0670: 6f 64 65 20 2a 2f 0a 23 64 65 66 69 6e 65 20 54 ode */.#define T
0680: 4c 53 5f 54 43 4c 5f 53 45 52 56 45 52 09 28 31 LS_TCL_SERVER.(1
0690: 3c 3c 31 29 09 2f 2a 20 53 65 72 76 65 72 2d 53 <<1)./* Server-S
06a0: 69 64 65 20 2a 2f 0a 23 64 65 66 69 6e 65 20 54 ide */.#define T
06b0: 4c 53 5f 54 43 4c 5f 49 4e 49 54 09 28 31 3c 3c LS_TCL_INIT.(1<<
06c0: 32 29 09 2f 2a 20 49 6e 69 74 69 61 6c 69 7a 69 2)./* Initializi
06d0: 6e 67 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 2a 2f ng connection */
06e0: 0a 23 64 65 66 69 6e 65 20 54 4c 53 5f 54 43 4c .#define TLS_TCL
06f0: 5f 44 45 42 55 47 09 28 31 3c 3c 33 29 09 2f 2a _DEBUG.(1<<3)./*
0700: 20 53 68 6f 77 20 64 65 62 75 67 20 74 72 61 63 Show debug trac
0710: 69 6e 67 20 2a 2f 0a 0a 23 64 65 66 69 6e 65 20 ing */..#define
0720: 54 4c 53 5f 54 43 4c 5f 44 45 4c 41 59 20 28 35 TLS_TCL_DELAY (5
0730: 29 0a 0a 2f 2a 0a 20 2a 20 54 68 69 73 20 73 74 )../*. * This st
0740: 72 75 63 74 75 72 65 20 64 65 73 63 72 69 62 65 ructure describe
0750: 73 20 74 68 65 20 70 65 72 2d 69 6e 73 74 61 6e s the per-instan
0760: 63 65 20 73 74 61 74 65 0a 20 2a 20 6f 66 20 61 ce state. * of a
0770: 6e 20 73 73 6c 20 63 68 61 6e 6e 65 6c 2e 0a 20 n ssl channel..
0780: 2a 0a 20 2a 20 54 68 65 20 53 53 4c 20 70 72 6f *. * The SSL pro
0790: 63 65 73 73 69 6e 67 20 63 6f 6e 74 65 78 74 20 cessing context
07a0: 69 73 20 6d 61 69 6e 74 61 69 6e 65 64 20 68 65 is maintained he
07b0: 72 65 2c 20 69 6e 20 74 68 65 20 43 6c 69 65 6e re, in the Clien
07c0: 74 44 61 74 61 0a 20 2a 2f 0a 74 79 70 65 64 65 tData. */.typede
07d0: 66 20 73 74 72 75 63 74 20 53 74 61 74 65 20 7b f struct State {
07e0: 0a 20 20 20 20 54 63 6c 5f 43 68 61 6e 6e 65 6c . Tcl_Channel
07f0: 20 73 65 6c 66 3b 09 2f 2a 20 74 68 69 73 20 73 self;./* this s
0800: 6f 63 6b 65 74 20 63 68 61 6e 6e 65 6c 20 2a 2f ocket channel */
0810: 0a 23 69 66 20 54 43 4c 5f 4d 41 4a 4f 52 5f 56 .#if TCL_MAJOR_V
0820: 45 52 53 49 4f 4e 20 3d 3d 20 38 20 26 26 20 54 ERSION == 8 && T
0830: 43 4c 5f 4d 49 4e 4f 52 5f 56 45 52 53 49 4f 4e CL_MINOR_VERSION
0840: 20 3c 20 32 0a 20 20 20 20 54 63 6c 5f 43 68 61 < 2. Tcl_Cha
0850: 6e 6e 65 6c 20 70 61 72 65 6e 74 3b 09 2f 2a 20 nnel parent;./*
0860: 75 6e 64 65 72 6c 79 69 6e 67 20 63 68 61 6e 6e underlying chann
0870: 65 6c 20 2a 2f 0a 23 65 6e 64 69 66 0a 20 20 20 el */.#endif.
0880: 20 54 63 6c 5f 54 69 6d 65 72 54 6f 6b 65 6e 20 Tcl_TimerToken
0890: 74 69 6d 65 72 3b 0a 0a 20 20 20 20 69 6e 74 20 timer;.. int
08a0: 66 6c 61 67 73 3b 09 09 2f 2a 20 63 75 72 72 65 flags;../* curre
08b0: 6e 74 6c 79 20 6f 6e 6c 79 20 43 48 41 4e 4e 45 ntly only CHANNE
08c0: 4c 5f 41 53 59 4e 43 20 2a 2f 0a 20 20 20 20 69 L_ASYNC */. i
08d0: 6e 74 20 77 61 74 63 68 4d 61 73 6b 3b 09 2f 2a nt watchMask;./*
08e0: 20 63 75 72 72 65 6e 74 20 57 61 74 63 68 50 72 current WatchPr
08f0: 6f 63 20 6d 61 73 6b 20 2a 2f 0a 20 20 20 20 69 oc mask */. i
0900: 6e 74 20 6d 6f 64 65 3b 09 09 2f 2a 20 63 75 72 nt mode;../* cur
0910: 72 65 6e 74 20 6d 6f 64 65 20 6f 66 20 70 61 72 rent mode of par
0920: 65 6e 74 20 63 68 61 6e 6e 65 6c 20 2a 2f 0a 0a ent channel */..
0930: 20 20 20 20 54 63 6c 5f 49 6e 74 65 72 70 20 2a Tcl_Interp *
0940: 69 6e 74 65 72 70 3b 09 2f 2a 20 69 6e 74 65 72 interp;./* inter
0950: 70 72 65 74 65 72 20 69 6e 20 77 68 69 63 68 20 preter in which
0960: 74 68 69 73 20 72 65 73 69 64 65 73 20 2a 2f 0a this resides */.
0970: 20 20 20 20 54 63 6c 5f 4f 62 6a 20 2a 63 61 6c Tcl_Obj *cal
0980: 6c 62 61 63 6b 3b 09 2f 2a 20 73 63 72 69 70 74 lback;./* script
0990: 20 63 61 6c 6c 65 64 20 66 6f 72 20 74 72 61 63 called for trac
09a0: 69 6e 67 2c 20 76 65 72 69 66 79 69 6e 67 20 61 ing, verifying a
09b0: 6e 64 20 65 72 72 6f 72 73 20 2a 2f 0a 0a 20 20 nd errors */..
09c0: 20 20 69 6e 74 20 76 66 6c 61 67 73 3b 09 09 2f int vflags;../
09d0: 2a 20 76 65 72 69 66 79 20 66 6c 61 67 73 20 2a * verify flags *
09e0: 2f 0a 20 20 20 20 53 53 4c 20 2a 73 73 6c 3b 09 /. SSL *ssl;.
09f0: 09 2f 2a 20 53 74 72 75 63 74 20 66 6f 72 20 53 ./* Struct for S
0a00: 53 4c 20 70 72 6f 63 65 73 73 69 6e 67 20 2a 2f SL processing */
0a10: 0a 20 20 20 20 53 53 4c 5f 43 54 58 20 2a 63 74 . SSL_CTX *ct
0a20: 78 3b 09 2f 2a 20 53 53 4c 20 43 6f 6e 74 65 78 x;./* SSL Contex
0a30: 74 20 2a 2f 0a 20 20 20 20 42 49 4f 20 2a 62 69 t */. BIO *bi
0a40: 6f 3b 09 09 2f 2a 20 53 74 72 75 63 74 20 66 6f o;../* Struct fo
0a50: 72 20 53 53 4c 20 70 72 6f 63 65 73 73 69 6e 67 r SSL processing
0a60: 20 2a 2f 0a 20 20 20 20 42 49 4f 20 2a 70 5f 62 */. BIO *p_b
0a70: 69 6f 3b 09 09 2f 2a 20 50 61 72 65 6e 74 20 42 io;../* Parent B
0a80: 49 4f 20 28 74 68 61 74 20 69 73 20 6c 61 79 65 IO (that is laye
0a90: 72 65 64 20 6f 6e 20 54 63 6c 5f 43 68 61 6e 6e red on Tcl_Chann
0aa0: 65 6c 29 20 2a 2f 0a 0a 20 20 20 20 63 68 61 72 el) */.. char
0ab0: 20 2a 65 72 72 3b 0a 7d 20 53 74 61 74 65 3b 0a *err;.} State;.
0ac0: 0a 2f 2a 0a 20 2a 20 46 6f 72 77 61 72 64 20 64 ./*. * Forward d
0ad0: 65 63 6c 61 72 61 74 69 6f 6e 73 0a 20 2a 2f 0a eclarations. */.
0ae0: 0a 45 58 54 45 52 4e 20 54 63 6c 5f 43 68 61 6e .EXTERN Tcl_Chan
0af0: 6e 65 6c 54 79 70 65 20 2a 54 6c 73 5f 43 68 61 nelType *Tls_Cha
0b00: 6e 6e 65 6c 54 79 70 65 20 5f 41 4e 53 49 5f 41 nnelType _ANSI_A
0b10: 52 47 53 5f 28 28 76 6f 69 64 29 29 3b 0a 45 58 RGS_((void));.EX
0b20: 54 45 52 4e 20 54 63 6c 5f 43 68 61 6e 6e 65 6c TERN Tcl_Channel
0b30: 09 54 6c 73 5f 47 65 74 50 61 72 65 6e 74 20 5f .Tls_GetParent _
0b40: 41 4e 53 49 5f 41 52 47 53 5f 28 28 53 74 61 74 ANSI_ARGS_((Stat
0b50: 65 20 2a 73 74 61 74 65 50 74 72 29 29 3b 0a 0a e *statePtr));..
0b60: 45 58 54 45 52 4e 20 54 63 6c 5f 4f 62 6a 2a 09 EXTERN Tcl_Obj*.
0b70: 09 54 6c 73 5f 4e 65 77 58 35 30 39 4f 62 6a 20 .Tls_NewX509Obj
0b80: 5f 41 4e 53 49 5f 41 52 47 53 5f 20 28 28 20 54 _ANSI_ARGS_ (( T
0b90: 63 6c 5f 49 6e 74 65 72 70 20 2a 69 6e 74 65 72 cl_Interp *inter
0ba0: 70 2c 20 58 35 30 39 20 2a 63 65 72 74 29 29 3b p, X509 *cert));
0bb0: 0a 45 58 54 45 52 4e 20 76 6f 69 64 09 09 54 6c .EXTERN void..Tl
0bc0: 73 5f 45 72 72 6f 72 20 5f 41 4e 53 49 5f 41 52 s_Error _ANSI_AR
0bd0: 47 53 5f 20 28 28 53 74 61 74 65 20 2a 73 74 61 GS_ ((State *sta
0be0: 74 65 50 74 72 2c 20 63 68 61 72 20 2a 6d 73 67 tePtr, char *msg
0bf0: 29 29 3b 0a 45 58 54 45 52 4e 20 76 6f 69 64 09 ));.EXTERN void.
0c00: 09 54 6c 73 5f 46 72 65 65 20 5f 41 4e 53 49 5f .Tls_Free _ANSI_
0c10: 41 52 47 53 5f 20 28 28 63 68 61 72 20 2a 62 6c ARGS_ ((char *bl
0c20: 6f 63 6b 50 74 72 29 29 3b 0a 45 58 54 45 52 4e ockPtr));.EXTERN
0c30: 20 69 6e 74 09 09 54 6c 73 5f 57 61 69 74 46 6f int..Tls_WaitFo
0c40: 72 43 6f 6e 6e 65 63 74 20 5f 41 4e 53 49 5f 41 rConnect _ANSI_A
0c50: 52 47 53 5f 28 28 20 53 74 61 74 65 20 2a 73 74 RGS_(( State *st
0c60: 61 74 65 50 74 72 2c 0a 09 09 09 09 09 09 09 69 atePtr,........i
0c70: 6e 74 20 2a 65 72 72 6f 72 43 6f 64 65 50 74 72 nt *errorCodePtr
0c80: 29 29 3b 0a 0a 45 58 54 45 52 4e 20 42 49 4f 5f ));..EXTERN BIO_
0c90: 4d 45 54 48 4f 44 20 2a 09 42 49 4f 5f 73 5f 74 METHOD *.BIO_s_t
0ca0: 63 6c 20 5f 41 4e 53 49 5f 41 52 47 53 5f 28 28 cl _ANSI_ARGS_((
0cb0: 76 6f 69 64 29 29 3b 0a 45 58 54 45 52 4e 20 42 void));.EXTERN B
0cc0: 49 4f 20 2a 09 09 42 49 4f 5f 6e 65 77 5f 74 63 IO *..BIO_new_tc
0cd0: 6c 20 5f 41 4e 53 49 5f 41 52 47 53 5f 28 28 53 l _ANSI_ARGS_((S
0ce0: 74 61 74 65 2a 20 73 74 61 74 65 50 74 72 2c 20 tate* statePtr,
0cf0: 69 6e 74 20 66 6c 61 67 73 29 29 3b 0a 0a 23 65 int flags));..#e
0d00: 6e 64 69 66 20 2f 2a 20 5f 54 4c 53 49 4e 54 5f ndif /* _TLSINT_
0d10: 48 20 2a 2f 0a H */.