Lines Matching defs:TlsRec
14 typedef struct TlsRec TlsRec; typedef
102 struct TlsRec struct
104 Chan *c; /* io channel */
105 int ref; /* serialized by tdlock for atomic destroy */
106 int version; /* version of the protocol we are speaking */
107 char verset; /* version has been set */
108 char opened; /* opened command every issued? */
109 char err[ERRMAX]; /* error message to return to handshake requests */
110 vlong handin; /* bytes communicated by the record layer */
111 vlong handout;
112 vlong datain;
113 vlong dataout;
115 Lock statelk;
116 int state;
117 int debug;
120 void (*packMac)(Secret*, uchar*, uchar*, uchar*, uchar*, int, uchar*);
123 OneWay in;
124 Block *processed; /* next bunch of application data */
125 Block *unprocessed; /* data read from c but not parsed into records */
128 Lock hqlock; /* protects hqref, alloc & free of handq, hprocessed */
129 int hqref;
130 Queue *handq; /* queue of handshake messages */
131 Block *hprocessed; /* remainder of last block read from handq */
132 QLock hqread; /* protects reads for hprocessed, handq */
135 OneWay out;
138 char *user;
139 int perm;