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