comparison debug.h @ 743:09c5eb71ec96 kexguess

merge from head roundtrip changes
author Matt Johnston <matt@ucc.asn.au>
date Mon, 01 Apr 2013 00:13:41 +0800
parents 3062da90dab8 9a5438271556
children 077bbe1eb220
comparison
equal deleted inserted replaced
742:cd201dc2da9a 743:09c5eb71ec96
37 * You'll need to run programs with "-v" to turn this on. 37 * You'll need to run programs with "-v" to turn this on.
38 * 38 *
39 * Caution: Don't use this in an unfriendly environment (ie unfirewalled), 39 * Caution: Don't use this in an unfriendly environment (ie unfirewalled),
40 * since the printing may not sanitise strings etc. This will add a reasonable 40 * since the printing may not sanitise strings etc. This will add a reasonable
41 * amount to your executable size. */ 41 * amount to your executable size. */
42 #define DEBUG_TRACE 42 /* #define DEBUG_TRACE */
43 43
44 /* All functions writing to the cleartext payload buffer call 44 /* All functions writing to the cleartext payload buffer call
45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're 45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're
46 * attempting to track down a problem */ 46 * attempting to track down a problem */
47 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ 47 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \
61 /*#define DEBUG_RSA*/ 61 /*#define DEBUG_RSA*/
62 62
63 /* you don't need to touch this block */ 63 /* you don't need to touch this block */
64 #ifdef DEBUG_TRACE 64 #ifdef DEBUG_TRACE
65 #define TRACE(X) dropbear_trace X; 65 #define TRACE(X) dropbear_trace X;
66 #define TRACE2(X) dropbear_trace2 X;
66 #else /*DEBUG_TRACE*/ 67 #else /*DEBUG_TRACE*/
67 #define TRACE(X) 68 #define TRACE(X)
69 #define TRACE2(X)
68 #endif /*DEBUG_TRACE*/ 70 #endif /*DEBUG_TRACE*/
69 71
70 /* To debug with GDB it is easier to run with no forking of child processes. 72 /* To debug with GDB it is easier to run with no forking of child processes.
71 You will need to pass "-F" as well. */ 73 You will need to pass "-F" as well. */
72 #define DEBUG_NOFORK 74 #define DEBUG_NOFORK