Mercurial > dropbear
comparison debug.h @ 118:5312ca05ed48 private-rez
propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 12 Sep 2004 04:56:50 +0000 |
parents | 2e9d1f29c50f |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
57:3b2a5a1c4347 | 118:5312ca05ed48 |
---|---|
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 print trace statements - very verbose */ | 36 /* Define this to compile in trace debugging printf()s. |
37 /* Caution: Don't use this in an unfriendly environment (ie unfirewalled), | 37 * You'll need to run programs with "-v" to turn this on. |
38 * since the printing does not sanitise strings etc */ | 38 * |
39 #define DEBUG_TRACE | 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 | |
41 * amount to your executable size. */ | |
42 /* #define DEBUG_TRACE */ | |
40 | 43 |
41 /* All functions writing to the cleartext payload buffer call | 44 /* All functions writing to the cleartext payload buffer call |
42 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're | 45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're |
43 * attempting to track down a problem */ | 46 * attempting to track down a problem */ |
44 #define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ | 47 #define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ |
45 ses.writepayload->pos == 0) | 48 ses.writepayload->pos == 0) |
46 | 49 |
47 /* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon | 50 /* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon |
48 * output when Dropbear forks. This will allow it gprof to be used. | 51 * output when Dropbear forks. This will allow it gprof to be used. |
49 * It's useful to run dropbear -F, so you don't fork as much */ | 52 * It's useful to run dropbear -F, so you don't fork as much */ |
53 /* (This is Linux specific) */ | |
50 /*#define DEBUG_FORKGPROF*/ | 54 /*#define DEBUG_FORKGPROF*/ |
51 | 55 |
52 /* A couple of flags, not usually useful, and mightn't do anything */ | 56 /* A couple of flags, not usually useful, and mightn't do anything */ |
53 | 57 |
54 /*#define DEBUG_KEXHASH*/ | 58 /*#define DEBUG_KEXHASH*/ |