comparison debug.h @ 801:7dcb46da72d9 ecc

merge in HEAD
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 May 2013 12:09:35 +0800
parents e465ed10c51d 2f1c199b6e4b
children b298bb438625
comparison
equal deleted inserted replaced
799:c344607b7341 801:7dcb46da72d9
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 #define DEBUG_TRACE
43 44
44 /* All functions writing to the cleartext payload buffer call 45 /* All functions writing to the cleartext payload buffer call
45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're 46 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're
46 * attempting to track down a problem */ 47 * attempting to track down a problem */
47 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ 48 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \
61 /*#define DEBUG_RSA*/ 62 /*#define DEBUG_RSA*/
62 63
63 /* you don't need to touch this block */ 64 /* you don't need to touch this block */
64 #ifdef DEBUG_TRACE 65 #ifdef DEBUG_TRACE
65 #define TRACE(X) dropbear_trace X; 66 #define TRACE(X) dropbear_trace X;
67 #define TRACE2(X) dropbear_trace2 X;
66 #else /*DEBUG_TRACE*/ 68 #else /*DEBUG_TRACE*/
67 #define TRACE(X) 69 #define TRACE(X)
70 #define TRACE2(X)
68 #endif /*DEBUG_TRACE*/ 71 #endif /*DEBUG_TRACE*/
69 72
70 /* To debug with GDB it is easier to run with no forking of child processes. 73 /* To debug with GDB it is easier to run with no forking of child processes.
71 You will need to pass "-F" as well. */ 74 You will need to pass "-F" as well. */
72 /*#define DEBUG_NOFORK*/ 75 #define DEBUG_NOFORK
73 76
74 77
75 /* For testing as non-root on shadowed systems, include the crypt of a password 78 /* For testing as non-root on shadowed systems, include the crypt of a password
76 * here. You can then log in as any user with this password. Ensure that you 79 * here. You can then log in as any user with this password. Ensure that you
77 * make your own password, and are careful about using this. This will also 80 * make your own password, and are careful about using this. This will also