summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2016-11-19 10:47:18 +0100
committerFrancois Perrad <francois.perrad@gadz.org>2017-06-01 19:10:37 +0200
commit9dcb04a1e08990d3f95656c8f73d145c2121c75e (patch)
tree79e65fe629925aab266e20f52b3421ed49d98ce4
parent08543d0c76152f3643f5d6f3de7c040465049698 (diff)
fix DEBUG_* condition
-rw-r--r--common-kex.c2
-rw-r--r--rsa.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common-kex.c b/common-kex.c
index 072b6fb..d60b9ea 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -774,7 +774,7 @@ static void finish_kexhashbuf(void) {
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);
diff --git a/rsa.c b/rsa.c
index 0e6639e..c09447f 100644
--- a/rsa.c
+++ b/rsa.c
@@ -346,7 +346,7 @@ void buf_put_rsa_sign(buffer* buf, dropbear_rsa_key *key, buffer *data_buf) {
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);
}