comparison debug.h @ 165:0cfba3034be5

Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
author Matt Johnston <matt@ucc.asn.au>
date Sun, 02 Jan 2005 20:25:56 +0000
parents 2e9d1f29c50f
children 161557a9dde8
comparison
equal deleted inserted replaced
161:b9d3f725e00b 165:0cfba3034be5
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 && \
58 /*#define DEBUG_KEXHASH*/ 58 /*#define DEBUG_KEXHASH*/
59 /*#define DEBUG_RSA*/ 59 /*#define DEBUG_RSA*/
60 60
61 /* you don't need to touch this block */ 61 /* you don't need to touch this block */
62 #ifdef DEBUG_TRACE 62 #ifdef DEBUG_TRACE
63 #define TRACE(X) (dropbear_trace X) 63 #define TRACE(X) dropbear_trace X;
64 #else /*DEBUG_TRACE*/ 64 #else /*DEBUG_TRACE*/
65 #define TRACE(X) 65 #define TRACE(X)
66 #endif /*DEBUG_TRACE*/ 66 #endif /*DEBUG_TRACE*/
67 67
68 /* For testing as non-root on shadowed systems, include the crypt of a password 68 /* For testing as non-root on shadowed systems, include the crypt of a password