Home | History | Annotate | Download | only in ssl

Lines Matching defs:bp

73     char *bp;
83 bp = buf;
87 *bp++ = hex[(ch >> 4) & 0xf];
88 *bp++ = hex[ch & 0xf];
89 *bp++ = ' ';
95 bp = buf;
99 if (bp > buf) {
134 char *bp;
143 bp = buf;
146 *bp++ = hex[(ch >> 4) & 0xf];
147 *bp++ = hex[ch & 0xf];
148 *bp++ = ' ';
149 if (bp + 4 > buf + 50) {
150 *bp = 0;
157 bp = buf;
160 if (bp > buf) {
161 *bp = 0;
171 void ssl_DumpMsg(sslSocket *ss, unsigned char *bp, unsigned len)
173 switch (bp[0]) {
176 PrintInt(ss, "error", LEN(bp+1));
181 unsigned lcs = LEN(bp+3);
182 unsigned ls = LEN(bp+5);
183 unsigned lc = LEN(bp+7);
187 PrintInt(ss, "version (Major)", bp[1]);
188 PrintInt(ss, "version (minor)", bp[2]);
190 PrintBuf(ss, "cipher-specs", bp+9, lcs);
191 PrintBuf(ss, "session-id", bp+9+lcs, ls);
192 PrintBuf(ss, "challenge", bp+9+lcs+ls, lc);
197 unsigned lck = LEN(bp+4);
198 unsigned lek = LEN(bp+6);
199 unsigned lka = LEN(bp+8);
203 PrintInt(ss, "cipher-choice", bp[1]);
204 PrintInt(ss, "key-length", LEN(bp+2));
206 PrintBuf(ss, "clear-key", bp+10, lck);
207 PrintBuf(ss, "encrypted-key", bp+10+lck, lek);
208 PrintBuf(ss, "key-arg", bp+10+lck+lek, lka);
213 PrintBuf(ss, "connection-id", bp+1, len-1);
217 unsigned lc = LEN(bp+5);
218 unsigned lcs = LEN(bp+7);
219 unsigned lci = LEN(bp+9);
223 PrintInt(ss, "session-id-hit", bp[1]);
224 PrintInt(ss, "certificate-type", bp[2]);
225 PrintInt(ss, "version (Major)", bp[3]);
226 PrintInt(ss, "version (minor)", bp[3]);
227 PrintBuf(ss, "certificate", bp+11, lc);
228 PrintBuf(ss, "cipher-specs", bp+11+lc, lcs);
229 PrintBuf(ss, "connection-id", bp+11+lc+lcs, lci);
234 PrintBuf(ss, "challenge", bp+1, len-1);
238 PrintBuf(ss, "session-id", bp+1, len-1);
242 PrintInt(ss, "authentication-type", bp[1]);
243 PrintBuf(ss, "certificate-challenge", bp+2, len-2);
247 unsigned lc = LEN(bp+2);
248 unsigned lr = LEN(bp+4);
250 PrintInt(ss, "certificate-type", bp[1]);
251 PrintBuf(ss, "certificate", bp+6, lc);
252 PrintBuf(ss, "response", bp+6+lc, lr);
256 ssl_PrintBuf(ss, "sending *unknown* message type", bp, len);