changeset 1402:553c6bb80265

fix DEBUG_* condition
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Nov 2016 10:47:18 +0100
parents ead816a63549
children ae6887d9ab46
files common-kex.c rsa.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/common-kex.c	Sat Nov 19 10:38:47 2016 +0100
+++ b/common-kex.c	Sat Nov 19 10:47:18 2016 +0100
@@ -774,7 +774,7 @@
 	hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize));
 	buf_setlen(ses.hash, hash_desc->hashsize);
 
-#if (DEBUG_KEXHASH) && (DEBUG_TRACE)
+#if defined(DEBUG_KEXHASH) && DEBUG_TRACE
 	if (!debug_trace) {
 		printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
 		printhex("kexhash", ses.hash->data, ses.hash->len);
--- a/rsa.c	Sat Nov 19 10:38:47 2016 +0100
+++ b/rsa.c	Sat Nov 19 10:47:18 2016 +0100
@@ -346,7 +346,7 @@
 	buf_incrwritepos(buf, ssize);
 	mp_clear(&rsa_s);
 
-#if defined(DEBUG_RSA) && defined(DEBUG_TRACE)
+#if defined(DEBUG_RSA) && DEBUG_TRACE
 	if (!debug_trace) {
 		printhex("RSA sig", buf->data, buf->len);
 	}