Lines Matching refs:ss

69 void ssl_PrintBuf(sslSocket *ss, const char *msg, const void *vp, int len)
76 if (ss) {
77 SSL_TRACE(("%d: SSL[%d]: %s [Len: %d]", SSL_GETPID(), ss->fd,
107 static void PrintType(sslSocket *ss, char *msg)
109 if (ss) {
110 SSL_TRACE(("%d: SSL[%d]: dump-msg: %s", SSL_GETPID(), ss->fd,
117 static void PrintInt(sslSocket *ss, char *msg, unsigned v)
119 if (ss) {
120 SSL_TRACE(("%d: SSL[%d]: %s=%u", SSL_GETPID(), ss->fd,
131 static void PrintBuf(sslSocket *ss, char *msg, unsigned char *cp, int len)
136 if (ss) {
138 SSL_GETPID(), ss->fd, msg, len));
151 if (ss) {
153 SSL_GETPID(), ss->fd, buf));
162 if (ss) {
164 SSL_GETPID(), ss->fd, buf));
171 void ssl_DumpMsg(sslSocket *ss, unsigned char *bp, unsigned len)
175 PrintType(ss, "Error");
176 PrintInt(ss, "error", LEN(bp+1));
185 PrintType(ss, "Client-Hello");
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);
201 PrintType(ss, "Client-Master-Key");
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);
212 PrintType(ss, "Client-Finished");
213 PrintBuf(ss, "connection-id", bp+1, len-1);
221 PrintType(ss, "Server-Hello");
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);
233 PrintType(ss, "Server-Verify");
234 PrintBuf(ss, "challenge", bp+1, len-1);
237 PrintType(ss, "Server-Finished");
238 PrintBuf(ss, "session-id", bp+1, len-1);
241 PrintType(ss, "Request-Certificate");
242 PrintInt(ss, "authentication-type", bp[1]);
243 PrintBuf(ss, "certificate-challenge", bp+2, len-2);
249 PrintType(ss, "Client-Certificate");
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);