OLD | NEW |
1 /* | 1 /* |
2 * Functions to trace SSL protocol behavior in DEBUG builds. | 2 * Functions to trace SSL protocol behavior in DEBUG builds. |
3 * | 3 * |
4 * This Source Code Form is subject to the terms of the Mozilla Public | 4 * This Source Code Form is subject to the terms of the Mozilla Public |
5 * License, v. 2.0. If a copy of the MPL was not distributed with this | 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
7 /* $Id: ssltrace.c,v 1.5 2012/04/25 14:50:12 gerv%gerv.net Exp $ */ | 7 /* $Id$ */ |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include "cert.h" | 9 #include "cert.h" |
10 #include "ssl.h" | 10 #include "ssl.h" |
11 #include "sslimpl.h" | 11 #include "sslimpl.h" |
12 #include "sslproto.h" | 12 #include "sslproto.h" |
13 #include "prprf.h" | 13 #include "prprf.h" |
14 | 14 |
15 #if defined(DEBUG) || defined(TRACE) | 15 #if defined(DEBUG) || defined(TRACE) |
16 static const char *hex = "0123456789abcdef"; | 16 static const char *hex = "0123456789abcdef"; |
17 | 17 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 if (ssl_trace_iob) { | 235 if (ssl_trace_iob) { |
236 va_start(args, format); | 236 va_start(args, format); |
237 PR_vsnprintf(buf, sizeof(buf), format, args); | 237 PR_vsnprintf(buf, sizeof(buf), format, args); |
238 va_end(args); | 238 va_end(args); |
239 | 239 |
240 fputs(buf, ssl_trace_iob); | 240 fputs(buf, ssl_trace_iob); |
241 fputs("\n", ssl_trace_iob); | 241 fputs("\n", ssl_trace_iob); |
242 } | 242 } |
243 } | 243 } |
244 #endif | 244 #endif |
OLD | NEW |