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