summaryrefslogtreecommitdiffhomepage
path: root/common-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-02-24 20:53:32 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-02-24 20:53:32 +0800
commit12e7d570a2c853b675ad5157732a265abae295c1 (patch)
tree41640c696e6dd199293758f1cece7745d7e518b7 /common-kex.c
parentbb7934bf04128c8db9d129fd0c5db7f03b5311b8 (diff)
Make some debug info conditional
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/common-kex.c b/common-kex.c
index 9373aa2..10ea554 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -789,9 +789,11 @@ static void finish_kexhashbuf(void) {
hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize));
buf_setlen(ses.hash, hash_desc->hashsize);
-#ifdef DEBUG_KEXHASH
- printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
- printhex("kexhash", ses.hash->data, ses.hash->len);
+#if defined(DEBUG_KEXHASH) && defined(DEBUG_TRACE)
+ if (!debug_trace) {
+ printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
+ printhex("kexhash", ses.hash->data, ses.hash->len);
+ }
#endif
buf_burn(ses.kexhashbuf);