Artifact
a6c725bf3710c92fe3b6ca1731a332ffeb06555b:
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 34 20 32 30 30 30 2f 30 t.h,v 1.4 2000/0
0090: 36 2f 30 36 20 30 31 3a 30 34 3a 33 35 20 73 74 6/06 01:04:35 st
00a0: 61 6e 74 6f 6e 20 45 78 70 20 24 0a 20 2a 0a 20 anton Exp $. *.
00b0: 2a 20 54 4c 53 20 28 61 6b 61 20 53 53 4c 29 20 * TLS (aka SSL)
00c0: 43 68 61 6e 6e 65 6c 20 2d 20 63 61 6e 20 62 65 Channel - can be
00d0: 20 6c 61 79 65 72 65 64 20 6f 6e 20 61 6e 79 20 layered on any
00e0: 62 69 2d 64 69 72 65 63 74 69 6f 6e 61 6c 0a 20 bi-directional.
00f0: 2a 20 54 63 6c 5f 43 68 61 6e 6e 65 6c 20 28 4e * Tcl_Channel (N
0100: 6f 74 65 3a 20 52 65 71 75 69 72 65 73 20 54 72 ote: Requires Tr
0110: 66 20 43 6f 72 65 20 50 61 74 63 68 29 0a 20 2a f Core Patch). *
0120: 0a 20 2a 20 54 68 69 73 20 77 61 73 20 62 75 69 . * This was bui
0130: 6c 74 20 66 72 6f 6d 20 73 63 72 61 74 63 68 20 lt from scratch
0140: 62 61 73 65 64 20 75 70 6f 6e 20 6f 62 73 65 72 based upon obser
0150: 76 61 74 69 6f 6e 20 6f 66 20 4f 70 65 6e 53 53 vation of OpenSS
0160: 4c 20 30 2e 39 2e 32 42 0a 20 2a 0a 20 2a 20 41 L 0.9.2B. *. * A
0170: 64 64 69 74 69 6f 6e 20 63 72 65 64 69 74 20 69 ddition credit i
0180: 73 20 64 75 65 20 66 6f 72 20 41 6e 64 72 65 61 s due for Andrea
0190: 73 20 4b 75 70 72 69 65 73 20 28 61 2e 6b 75 70 s Kupries (a.kup
01a0: 72 69 65 73 40 77 65 73 74 65 6e 64 2e 63 6f 6d ries@westend.com
01b0: 29 2c 20 66 6f 72 0a 20 2a 20 70 72 6f 76 69 64 ), for. * provid
01c0: 69 6e 67 20 74 68 65 20 54 63 6c 5f 52 65 70 6c ing the Tcl_Repl
01d0: 61 63 65 43 68 61 6e 6e 65 6c 20 6d 65 63 68 61 aceChannel mecha
01e0: 6e 69 73 6d 20 61 6e 64 20 77 6f 72 6b 69 6e 67 nism and working
01f0: 20 63 6c 6f 73 65 6c 79 20 77 69 74 68 20 6d 65 closely with me
0200: 0a 20 2a 20 74 6f 20 65 6e 68 61 6e 63 65 20 69 . * to enhance i
0210: 74 20 74 6f 20 73 75 70 70 6f 72 74 20 66 75 6c t to support ful
0220: 6c 20 66 69 6c 65 65 76 65 6e 74 20 73 65 6d 61 l fileevent sema
0230: 6e 74 69 63 73 2e 0a 20 2a 0a 20 2a 20 41 6c 73 ntics.. *. * Als
0240: 6f 20 77 6f 72 6b 20 64 6f 6e 65 20 62 79 20 74 o work done by t
0250: 68 65 20 66 6f 6c 6c 6f 77 20 70 65 6f 70 6c 65 he follow people
0260: 20 70 72 6f 76 69 64 65 64 20 74 68 65 20 69 6d provided the im
0270: 70 65 74 75 73 20 74 6f 20 64 6f 20 74 68 69 73 petus to do this
0280: 20 22 72 69 67 68 74 22 3a 2d 0a 20 2a 09 74 63 "right":-. *.tc
0290: 6c 53 53 4c 20 28 43 6f 6c 69 6e 20 4d 63 43 6f lSSL (Colin McCo
02a0: 72 6d 61 63 6b 2c 20 53 68 61 72 65 64 20 54 65 rmack, Shared Te
02b0: 63 68 6e 6f 6c 6f 67 79 29 0a 20 2a 09 53 53 4c chnology). *.SSL
02c0: 74 63 6c 20 28 50 65 74 65 72 20 41 6e 74 6d 61 tcl (Peter Antma
02d0: 6e 29 0a 20 2a 0a 20 2a 2f 0a 23 69 66 6e 64 65 n). *. */.#ifnde
02e0: 66 20 5f 54 53 4c 49 4e 54 5f 48 0a 23 64 65 66 f _TSLINT_H.#def
02f0: 69 6e 65 20 5f 54 4c 53 49 4e 54 5f 48 0a 0a 23 ine _TLSINT_H..#
0300: 69 6e 63 6c 75 64 65 20 22 74 6c 73 2e 68 22 0a include "tls.h".
0310: 23 69 6e 63 6c 75 64 65 20 3c 65 72 72 6e 6f 2e #include <errno.
0320: 68 3e 0a 0a 23 69 66 64 65 66 20 4e 4f 5f 50 41 h>..#ifdef NO_PA
0330: 54 45 4e 54 53 0a 23 64 65 66 69 6e 65 20 4e 4f TENTS.#define NO
0340: 5f 49 44 45 41 0a 23 64 65 66 69 6e 65 20 4e 4f _IDEA.#define NO
0350: 5f 52 43 32 0a 23 64 65 66 69 6e 65 20 4e 4f 5f _RC2.#define NO_
0360: 52 43 34 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 52 RC4.#define NO_R
0370: 43 35 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 52 53 C5.#define NO_RS
0380: 41 0a 23 64 65 66 69 6e 65 20 4e 4f 5f 53 53 4c A.#define NO_SSL
0390: 32 0a 23 65 6e 64 69 66 0a 0a 23 69 66 64 65 66 2.#endif..#ifdef
03a0: 20 42 53 41 46 45 0a 23 69 6e 63 6c 75 64 65 20 BSAFE.#include
03b0: 3c 73 73 6c 2e 68 3e 0a 23 65 6c 73 65 0a 23 69 <ssl.h>.#else.#i
03c0: 6e 63 6c 75 64 65 20 3c 6f 70 65 6e 73 73 6c 2f nclude <openssl/
03d0: 73 73 6c 2e 68 3e 0a 23 65 6e 64 69 66 0a 0a 23 ssl.h>.#endif..#
03e0: 69 66 64 65 66 20 54 43 4c 5f 53 54 4f 52 41 47 ifdef TCL_STORAG
03f0: 45 5f 43 4c 41 53 53 0a 23 20 75 6e 64 65 66 20 E_CLASS.# undef
0400: 54 43 4c 5f 53 54 4f 52 41 47 45 5f 43 4c 41 53 TCL_STORAGE_CLAS
0410: 53 0a 23 65 6e 64 69 66 0a 23 69 66 64 65 66 20 S.#endif.#ifdef
0420: 42 55 49 4c 44 5f 74 6c 73 0a 23 20 64 65 66 69 BUILD_tls.# defi
0430: 6e 65 20 54 43 4c 5f 53 54 4f 52 41 47 45 5f 43 ne TCL_STORAGE_C
0440: 4c 41 53 53 20 44 4c 4c 45 58 50 4f 52 54 0a 23 LASS DLLEXPORT.#
0450: 65 6c 73 65 0a 23 20 64 65 66 69 6e 65 20 54 43 else.# define TC
0460: 4c 5f 53 54 4f 52 41 47 45 5f 43 4c 41 53 53 20 L_STORAGE_CLASS
0470: 44 4c 4c 49 4d 50 4f 52 54 0a 23 65 6e 64 69 66 DLLIMPORT.#endif
0480: 0a 20 0a 23 69 66 6e 64 65 66 20 45 43 4f 4e 4e . .#ifndef ECONN
0490: 41 42 4f 52 54 45 44 0a 23 64 65 66 69 6e 65 20 ABORTED.#define
04a0: 45 43 4f 4e 4e 41 42 4f 52 54 45 44 09 31 33 30 ECONNABORTED.130
04b0: 09 2f 2a 20 53 6f 66 74 77 61 72 65 20 63 61 75 ./* Software cau
04c0: 73 65 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 61 sed connection a
04d0: 62 6f 72 74 20 2a 2f 0a 23 65 6e 64 69 66 0a 23 bort */.#endif.#
04e0: 69 66 6e 64 65 66 20 45 43 4f 4e 4e 52 45 53 45 ifndef ECONNRESE
04f0: 54 0a 23 64 65 66 69 6e 65 20 45 43 4f 4e 4e 52 T.#define ECONNR
0500: 45 53 45 54 09 31 33 31 09 2f 2a 20 43 6f 6e 6e ESET.131./* Conn
0510: 65 63 74 69 6f 6e 20 72 65 73 65 74 20 62 79 20 ection reset by
0520: 70 65 65 72 20 2a 2f 0a 23 65 6e 64 69 66 0a 0a peer */.#endif..
0530: 23 69 66 64 65 66 20 44 45 42 55 47 0a 23 64 65 #ifdef DEBUG.#de
0540: 66 69 6e 65 20 64 70 72 69 6e 74 66 20 66 70 72 fine dprintf fpr
0550: 69 6e 74 66 0a 23 65 6c 73 65 0a 23 64 65 66 69 intf.#else.#defi
0560: 6e 65 20 64 70 72 69 6e 74 66 20 69 66 20 28 30 ne dprintf if (0
0570: 29 20 66 70 72 69 6e 74 66 0a 23 65 6e 64 69 66 ) fprintf.#endif
0580: 0a 0a 23 64 65 66 69 6e 65 20 53 53 4c 5f 45 52 ..#define SSL_ER
0590: 52 4f 52 28 73 73 6c 2c 65 72 72 29 09 5c 0a 09 ROR(ssl,err).\..
05a0: 20 20 20 20 28 28 63 68 61 72 2a 29 45 52 52 5f ((char*)ERR_
05b0: 72 65 61 73 6f 6e 5f 65 72 72 6f 72 5f 73 74 72 reason_error_str
05c0: 69 6e 67 28 53 53 4c 5f 67 65 74 5f 65 72 72 6f ing(SSL_get_erro
05d0: 72 28 28 73 73 6c 29 2c 28 65 72 72 29 29 29 29 r((ssl),(err))))
05e0: 0a 2f 2a 0a 20 2a 20 4f 70 65 6e 53 53 4c 20 42 ./*. * OpenSSL B
05f0: 49 4f 20 52 6f 75 74 69 6e 65 73 0a 20 2a 2f 0a IO Routines. */.
0600: 23 64 65 66 69 6e 65 20 42 49 4f 5f 54 59 50 45 #define BIO_TYPE
0610: 5f 54 43 4c 09 28 31 39 7c 30 78 30 34 30 30 29 _TCL.(19|0x0400)
0620: 0a 0a 2f 2a 0a 20 2a 20 44 65 66 69 6e 65 73 20 ../*. * Defines
0630: 66 6f 72 20 53 74 61 74 65 2e 66 6c 61 67 73 0a for State.flags.
0640: 20 2a 2f 0a 23 64 65 66 69 6e 65 20 54 4c 53 5f */.#define TLS_
0650: 54 43 4c 5f 41 53 59 4e 43 09 28 31 3c 3c 30 29 TCL_ASYNC.(1<<0)
0660: 09 2f 2a 20 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 ./* non-blocking
0670: 20 6d 6f 64 65 20 2a 2f 0a 23 64 65 66 69 6e 65 mode */.#define
0680: 20 54 4c 53 5f 54 43 4c 5f 53 45 52 56 45 52 09 TLS_TCL_SERVER.
0690: 28 31 3c 3c 31 29 09 2f 2a 20 53 65 72 76 65 72 (1<<1)./* Server
06a0: 2d 53 69 64 65 20 2a 2f 0a 23 64 65 66 69 6e 65 -Side */.#define
06b0: 20 54 4c 53 5f 54 43 4c 5f 49 4e 49 54 09 28 31 TLS_TCL_INIT.(1
06c0: 3c 3c 32 29 09 2f 2a 20 49 6e 69 74 69 61 6c 69 <<2)./* Initiali
06d0: 7a 69 6e 67 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 zing connection
06e0: 2a 2f 0a 23 64 65 66 69 6e 65 20 54 4c 53 5f 54 */.#define TLS_T
06f0: 43 4c 5f 44 45 42 55 47 09 28 31 3c 3c 33 29 09 CL_DEBUG.(1<<3).
0700: 2f 2a 20 53 68 6f 77 20 64 65 62 75 67 20 74 72 /* Show debug tr
0710: 61 63 69 6e 67 20 2a 2f 0a 0a 23 64 65 66 69 6e acing */..#defin
0720: 65 20 54 4c 53 5f 54 43 4c 5f 44 45 4c 41 59 20 e TLS_TCL_DELAY
0730: 28 35 29 0a 0a 2f 2a 0a 20 2a 20 54 68 69 73 20 (5)../*. * This
0740: 73 74 72 75 63 74 75 72 65 20 64 65 73 63 72 69 structure descri
0750: 62 65 73 20 74 68 65 20 70 65 72 2d 69 6e 73 74 bes the per-inst
0760: 61 6e 63 65 20 73 74 61 74 65 0a 20 2a 20 6f 66 ance state. * of
0770: 20 61 6e 20 73 73 6c 20 63 68 61 6e 6e 65 6c 2e an ssl channel.
0780: 0a 20 2a 0a 20 2a 20 54 68 65 20 53 53 4c 20 70 . *. * The SSL p
0790: 72 6f 63 65 73 73 69 6e 67 20 63 6f 6e 74 65 78 rocessing contex
07a0: 74 20 69 73 20 6d 61 69 6e 74 61 69 6e 65 64 20 t is maintained
07b0: 68 65 72 65 2c 20 69 6e 20 74 68 65 20 43 6c 69 here, in the Cli
07c0: 65 6e 74 44 61 74 61 0a 20 2a 2f 0a 74 79 70 65 entData. */.type
07d0: 64 65 66 20 73 74 72 75 63 74 20 53 74 61 74 65 def struct State
07e0: 20 7b 0a 20 20 20 20 54 63 6c 5f 43 68 61 6e 6e {. Tcl_Chann
07f0: 65 6c 20 73 65 6c 66 3b 09 2f 2a 20 74 68 69 73 el self;./* this
0800: 20 73 6f 63 6b 65 74 20 63 68 61 6e 6e 65 6c 20 socket channel
0810: 2a 2f 0a 23 69 66 20 54 43 4c 5f 4d 41 4a 4f 52 */.#if TCL_MAJOR
0820: 5f 56 45 52 53 49 4f 4e 20 3d 3d 20 38 20 26 26 _VERSION == 8 &&
0830: 20 54 43 4c 5f 4d 49 4e 4f 52 5f 56 45 52 53 49 TCL_MINOR_VERSI
0840: 4f 4e 20 3c 20 32 0a 20 20 20 20 54 63 6c 5f 43 ON < 2. Tcl_C
0850: 68 61 6e 6e 65 6c 20 70 61 72 65 6e 74 3b 09 2f hannel parent;./
0860: 2a 20 75 6e 64 65 72 6c 79 69 6e 67 20 63 68 61 * underlying cha
0870: 6e 6e 65 6c 20 2a 2f 0a 23 65 6e 64 69 66 0a 20 nnel */.#endif.
0880: 20 20 20 54 63 6c 5f 54 69 6d 65 72 54 6f 6b 65 Tcl_TimerToke
0890: 6e 20 74 69 6d 65 72 3b 0a 0a 20 20 20 20 69 6e n timer;.. in
08a0: 74 20 66 6c 61 67 73 3b 09 09 2f 2a 20 63 75 72 t flags;../* cur
08b0: 72 65 6e 74 6c 79 20 6f 6e 6c 79 20 43 48 41 4e rently only CHAN
08c0: 4e 45 4c 5f 41 53 59 4e 43 20 2a 2f 0a 20 20 20 NEL_ASYNC */.
08d0: 20 69 6e 74 20 77 61 74 63 68 4d 61 73 6b 3b 09 int watchMask;.
08e0: 2f 2a 20 63 75 72 72 65 6e 74 20 57 61 74 63 68 /* current Watch
08f0: 50 72 6f 63 20 6d 61 73 6b 20 2a 2f 0a 20 20 20 Proc mask */.
0900: 20 69 6e 74 20 6d 6f 64 65 3b 09 09 2f 2a 20 63 int mode;../* c
0910: 75 72 72 65 6e 74 20 6d 6f 64 65 20 6f 66 20 70 urrent mode of p
0920: 61 72 65 6e 74 20 63 68 61 6e 6e 65 6c 20 2a 2f arent channel */
0930: 0a 0a 20 20 20 20 54 63 6c 5f 49 6e 74 65 72 70 .. Tcl_Interp
0940: 20 2a 69 6e 74 65 72 70 3b 09 2f 2a 20 69 6e 74 *interp;./* int
0950: 65 72 70 72 65 74 65 72 20 69 6e 20 77 68 69 63 erpreter in whic
0960: 68 20 74 68 69 73 20 72 65 73 69 64 65 73 20 2a h this resides *
0970: 2f 0a 20 20 20 20 54 63 6c 5f 4f 62 6a 20 2a 63 /. Tcl_Obj *c
0980: 61 6c 6c 62 61 63 6b 3b 09 2f 2a 20 73 63 72 69 allback;./* scri
0990: 70 74 20 63 61 6c 6c 65 64 20 66 6f 72 20 74 72 pt called for tr
09a0: 61 63 69 6e 67 2c 20 76 65 72 69 66 79 69 6e 67 acing, verifying
09b0: 20 61 6e 64 20 65 72 72 6f 72 73 20 2a 2f 0a 0a and errors */..
09c0: 20 20 20 20 69 6e 74 20 76 66 6c 61 67 73 3b 09 int vflags;.
09d0: 09 2f 2a 20 76 65 72 69 66 79 20 66 6c 61 67 73 ./* verify flags
09e0: 20 2a 2f 0a 20 20 20 20 53 53 4c 20 2a 73 73 6c */. SSL *ssl
09f0: 3b 09 09 2f 2a 20 53 74 72 75 63 74 20 66 6f 72 ;../* Struct for
0a00: 20 53 53 4c 20 70 72 6f 63 65 73 73 69 6e 67 20 SSL processing
0a10: 2a 2f 0a 20 20 20 20 53 53 4c 5f 43 54 58 20 2a */. SSL_CTX *
0a20: 63 74 78 3b 09 2f 2a 20 53 53 4c 20 43 6f 6e 74 ctx;./* SSL Cont
0a30: 65 78 74 20 2a 2f 0a 20 20 20 20 42 49 4f 20 2a ext */. BIO *
0a40: 62 69 6f 3b 09 09 2f 2a 20 53 74 72 75 63 74 20 bio;../* Struct
0a50: 66 6f 72 20 53 53 4c 20 70 72 6f 63 65 73 73 69 for SSL processi
0a60: 6e 67 20 2a 2f 0a 20 20 20 20 42 49 4f 20 2a 70 ng */. BIO *p
0a70: 5f 62 69 6f 3b 09 09 2f 2a 20 50 61 72 65 6e 74 _bio;../* Parent
0a80: 20 42 49 4f 20 28 74 68 61 74 20 69 73 20 6c 61 BIO (that is la
0a90: 79 65 72 65 64 20 6f 6e 20 54 63 6c 5f 43 68 61 yered on Tcl_Cha
0aa0: 6e 6e 65 6c 29 20 2a 2f 0a 0a 20 20 20 20 63 68 nnel) */.. ch
0ab0: 61 72 20 2a 65 72 72 3b 0a 7d 20 53 74 61 74 65 ar *err;.} State
0ac0: 3b 0a 0a 2f 2a 0a 20 2a 20 46 6f 72 77 61 72 64 ;../*. * Forward
0ad0: 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 0a 20 2a declarations. *
0ae0: 2f 0a 0a 45 58 54 45 52 4e 20 76 6f 69 64 09 09 /..EXTERN void..
0af0: 54 6c 73 5f 43 6c 65 61 6e 20 5f 41 4e 53 49 5f Tls_Clean _ANSI_
0b00: 41 52 47 53 5f 28 28 53 74 61 74 65 20 2a 62 6c ARGS_((State *bl
0b10: 6f 63 6b 50 74 72 29 29 3b 0a 45 58 54 45 52 4e ockPtr));.EXTERN
0b20: 20 54 63 6c 5f 43 68 61 6e 6e 65 6c 54 79 70 65 Tcl_ChannelType
0b30: 20 2a 54 6c 73 5f 43 68 61 6e 6e 65 6c 54 79 70 *Tls_ChannelTyp
0b40: 65 20 5f 41 4e 53 49 5f 41 52 47 53 5f 28 28 76 e _ANSI_ARGS_((v
0b50: 6f 69 64 29 29 3b 0a 45 58 54 45 52 4e 20 54 63 oid));.EXTERN Tc
0b60: 6c 5f 43 68 61 6e 6e 65 6c 09 54 6c 73 5f 47 65 l_Channel.Tls_Ge
0b70: 74 50 61 72 65 6e 74 20 5f 41 4e 53 49 5f 41 52 tParent _ANSI_AR
0b80: 47 53 5f 28 28 53 74 61 74 65 20 2a 73 74 61 74 GS_((State *stat
0b90: 65 50 74 72 29 29 3b 0a 0a 45 58 54 45 52 4e 20 ePtr));..EXTERN
0ba0: 54 63 6c 5f 4f 62 6a 2a 09 09 54 6c 73 5f 4e 65 Tcl_Obj*..Tls_Ne
0bb0: 77 58 35 30 39 4f 62 6a 20 5f 41 4e 53 49 5f 41 wX509Obj _ANSI_A
0bc0: 52 47 53 5f 20 28 28 20 54 63 6c 5f 49 6e 74 65 RGS_ (( Tcl_Inte
0bd0: 72 70 20 2a 69 6e 74 65 72 70 2c 20 58 35 30 39 rp *interp, X509
0be0: 20 2a 63 65 72 74 29 29 3b 0a 45 58 54 45 52 4e *cert));.EXTERN
0bf0: 20 76 6f 69 64 09 09 54 6c 73 5f 45 72 72 6f 72 void..Tls_Error
0c00: 20 5f 41 4e 53 49 5f 41 52 47 53 5f 20 28 28 53 _ANSI_ARGS_ ((S
0c10: 74 61 74 65 20 2a 73 74 61 74 65 50 74 72 2c 20 tate *statePtr,
0c20: 63 68 61 72 20 2a 6d 73 67 29 29 3b 0a 45 58 54 char *msg));.EXT
0c30: 45 52 4e 20 76 6f 69 64 09 09 54 6c 73 5f 46 72 ERN void..Tls_Fr
0c40: 65 65 20 5f 41 4e 53 49 5f 41 52 47 53 5f 20 28 ee _ANSI_ARGS_ (
0c50: 28 63 68 61 72 20 2a 62 6c 6f 63 6b 50 74 72 29 (char *blockPtr)
0c60: 29 3b 0a 45 58 54 45 52 4e 20 69 6e 74 09 09 54 );.EXTERN int..T
0c70: 6c 73 5f 57 61 69 74 46 6f 72 43 6f 6e 6e 65 63 ls_WaitForConnec
0c80: 74 20 5f 41 4e 53 49 5f 41 52 47 53 5f 28 28 20 t _ANSI_ARGS_((
0c90: 53 74 61 74 65 20 2a 73 74 61 74 65 50 74 72 2c State *statePtr,
0ca0: 0a 09 09 09 09 09 09 09 69 6e 74 20 2a 65 72 72 ........int *err
0cb0: 6f 72 43 6f 64 65 50 74 72 29 29 3b 0a 0a 45 58 orCodePtr));..EX
0cc0: 54 45 52 4e 20 42 49 4f 5f 4d 45 54 48 4f 44 20 TERN BIO_METHOD
0cd0: 2a 09 42 49 4f 5f 73 5f 74 63 6c 20 5f 41 4e 53 *.BIO_s_tcl _ANS
0ce0: 49 5f 41 52 47 53 5f 28 28 76 6f 69 64 29 29 3b I_ARGS_((void));
0cf0: 0a 45 58 54 45 52 4e 20 42 49 4f 20 2a 09 09 42 .EXTERN BIO *..B
0d00: 49 4f 5f 6e 65 77 5f 74 63 6c 20 5f 41 4e 53 49 IO_new_tcl _ANSI
0d10: 5f 41 52 47 53 5f 28 28 53 74 61 74 65 2a 20 73 _ARGS_((State* s
0d20: 74 61 74 65 50 74 72 2c 20 69 6e 74 20 66 6c 61 tatePtr, int fla
0d30: 67 73 29 29 3b 0a 0a 23 65 6e 64 69 66 20 2f 2a gs));..#endif /*
0d40: 20 5f 54 4c 53 49 4e 54 5f 48 20 2a 2f 0a _TLSINT_H */.