Lines Matching refs:LEN
36 void ssl_PrintBuf(sslSocket *ss, const char *msg, const void *vp, int len)
44 SSL_TRACE(("%d: SSL[%d]: %s [Len: %d]", SSL_GETPID(), ss->fd,
45 msg, len));
47 SSL_TRACE(("%d: SSL: %s [Len: %d]", SSL_GETPID(), msg, len));
52 while (--len >= 0) {
72 #define LEN(cp) (((cp)[0] << 8) | ((cp)[1]))
98 static void PrintBuf(sslSocket *ss, char *msg, unsigned char *cp, int len)
104 SSL_TRACE(("%d: SSL[%d]: %s [Len: %d]",
105 SSL_GETPID(), ss->fd, msg, len));
107 SSL_TRACE(("%d: SSL: %s [Len: %d]",
108 SSL_GETPID(), msg, len));
111 while (--len >= 0) {
138 void ssl_DumpMsg(sslSocket *ss, unsigned char *bp, unsigned len)
143 PrintInt(ss, "error", LEN(bp+1));
148 unsigned lcs = LEN(bp+3);
149 unsigned ls = LEN(bp+5);
150 unsigned lc = LEN(bp+7);
164 unsigned lck = LEN(bp+4);
165 unsigned lek = LEN(bp+6);
166 unsigned lka = LEN(bp+8);
171 PrintInt(ss, "key-length", LEN(bp+2));
180 PrintBuf(ss, "connection-id", bp+1, len-1);
184 unsigned lc = LEN(bp+5);
185 unsigned lcs = LEN(bp+7);
186 unsigned lci = LEN(bp+9);
201 PrintBuf(ss, "challenge", bp+1, len-1);
205 PrintBuf(ss, "session-id", bp+1, len-1);
210 PrintBuf(ss, "certificate-challenge", bp+2, len-2);
214 unsigned lc = LEN(bp+2);
215 unsigned lr = LEN(bp+4);
223 ssl_PrintBuf(ss, "sending *unknown* message type", bp, len);