Mercurial > dropbear
comparison common-kex.c @ 907:4a74c58e11fc
Make some debug info conditional
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 24 Feb 2014 20:53:32 +0800 |
parents | cbc73a5aefb0 |
children | 7cd89d4e0335 |
comparison
equal
deleted
inserted
replaced
906:4696755c4cac | 907:4a74c58e11fc |
---|---|
787 ses.kexhashbuf->len); | 787 ses.kexhashbuf->len); |
788 ses.hash = buf_new(hash_desc->hashsize); | 788 ses.hash = buf_new(hash_desc->hashsize); |
789 hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize)); | 789 hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize)); |
790 buf_setlen(ses.hash, hash_desc->hashsize); | 790 buf_setlen(ses.hash, hash_desc->hashsize); |
791 | 791 |
792 #ifdef DEBUG_KEXHASH | 792 #if defined(DEBUG_KEXHASH) && defined(DEBUG_TRACE) |
793 printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len); | 793 if (!debug_trace) { |
794 printhex("kexhash", ses.hash->data, ses.hash->len); | 794 printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len); |
795 printhex("kexhash", ses.hash->data, ses.hash->len); | |
796 } | |
795 #endif | 797 #endif |
796 | 798 |
797 buf_burn(ses.kexhashbuf); | 799 buf_burn(ses.kexhashbuf); |
798 buf_free(ses.kexhashbuf); | 800 buf_free(ses.kexhashbuf); |
799 ses.kexhashbuf = NULL; | 801 ses.kexhashbuf = NULL; |