Mercurial > dropbear
comparison debug.h @ 1013:a1e79ffa5862
Tighten validation of DH values. Odds of x==0 being generated are
improbable, roughly 2**-1023
Regression in 0.49
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 10 Feb 2015 21:46:19 +0800 |
parents | 0459ff21e320 |
children | cb7b510b4dd2 |
comparison
equal
deleted
inserted
replaced
1012:ffd2359564b0 | 1013:a1e79ffa5862 |
---|---|
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 && \ |