comparison common-kex.c @ 1402:553c6bb80265

fix DEBUG_* condition
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Nov 2016 10:47:18 +0100
parents 750ec4ec4cbe
children 798854f62430 06d52bcb8094
comparison
equal deleted inserted replaced
1401:ead816a63549 1402:553c6bb80265
772 ses.kexhashbuf->len); 772 ses.kexhashbuf->len);
773 ses.hash = buf_new(hash_desc->hashsize); 773 ses.hash = buf_new(hash_desc->hashsize);
774 hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize)); 774 hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize));
775 buf_setlen(ses.hash, hash_desc->hashsize); 775 buf_setlen(ses.hash, hash_desc->hashsize);
776 776
777 #if (DEBUG_KEXHASH) && (DEBUG_TRACE) 777 #if defined(DEBUG_KEXHASH) && DEBUG_TRACE
778 if (!debug_trace) { 778 if (!debug_trace) {
779 printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len); 779 printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
780 printhex("kexhash", ses.hash->data, ses.hash->len); 780 printhex("kexhash", ses.hash->data, ses.hash->len);
781 } 781 }
782 #endif 782 #endif