comparison debug.h @ 659:1e0414b29ce9

Fix accidentally committed change
author Matt Johnston <matt@ucc.asn.au>
date Wed, 22 Feb 2012 19:33:07 +0800
parents d4d0279710b9
children 9a5438271556 3062da90dab8
comparison
equal deleted inserted replaced
658:d4d0279710b9 659:1e0414b29ce9
29 29
30 /* Debugging */ 30 /* Debugging */
31 31
32 /* Work well for valgrind - don't clear environment, be nicer with signals 32 /* Work well for valgrind - don't clear environment, be nicer with signals
33 * etc. Don't use this normally, it might cause problems */ 33 * etc. Don't use this normally, it might cause problems */
34 #define DEBUG_VALGRIND 34 /* #define DEBUG_VALGRIND */
35 35
36 /* Define this to compile in trace debugging printf()s. 36 /* Define this to compile in trace debugging printf()s.
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 && \
67 #define TRACE(X) 67 #define TRACE(X)
68 #endif /*DEBUG_TRACE*/ 68 #endif /*DEBUG_TRACE*/
69 69
70 /* To debug with GDB it is easier to run with no forking of child processes. 70 /* To debug with GDB it is easier to run with no forking of child processes.
71 You will need to pass "-F" as well. */ 71 You will need to pass "-F" as well. */
72 #define DEBUG_NOFORK 72 /* #define DEBUG_NOFORK */
73 73
74 74
75 /* For testing as non-root on shadowed systems, include the crypt of a password 75 /* 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 76 * 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 77 * make your own password, and are careful about using this. This will also