comparison debug.h @ 851:c1c1b43f78c2 ecc

comments, turn off debugging options
author Matt Johnston <matt@ucc.asn.au>
date Sat, 09 Nov 2013 00:14:28 +0800
parents 754d7bee1068
children cbc73a5aefb0
comparison
equal deleted inserted replaced
850:7507b174bba0 851:c1c1b43f78c2
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
44 43
45 /* All functions writing to the cleartext payload buffer call 44 /* All functions writing to the cleartext payload buffer call
46 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're 45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're
47 * attempting to track down a problem */ 46 * attempting to track down a problem */
48 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ 47 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \
71 #endif /*DEBUG_TRACE*/ 70 #endif /*DEBUG_TRACE*/
72 71
73 /* 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.
74 You will need to pass "-F" as well. */ 73 You will need to pass "-F" as well. */
75 /* #define DEBUG_NOFORK */ 74 /* #define DEBUG_NOFORK */
76 #define DEBUG_NOFORK
77 75
78 76
79 /* For testing as non-root on shadowed systems, include the crypt of a password 77 /* For testing as non-root on shadowed systems, include the crypt of a password
80 * here. You can then log in as any user with this password. Ensure that you 78 * here. You can then log in as any user with this password. Ensure that you
81 * make your own password, and are careful about using this. This will also 79 * make your own password, and are careful about using this. This will also