summaryrefslogtreecommitdiffhomepage
path: root/rsa.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 /rsa.c
parentbb7934bf04128c8db9d129fd0c5db7f03b5311b8 (diff)
Make some debug info conditional
Diffstat (limited to 'rsa.c')
-rw-r--r--rsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rsa.c b/rsa.c
index 7eb6413..193e577 100644
--- a/rsa.c
+++ b/rsa.c
@@ -347,7 +347,9 @@ void buf_put_rsa_sign(buffer* buf, dropbear_rsa_key *key, buffer *data_buf) {
mp_clear(&rsa_s);
#if defined(DEBUG_RSA) && defined(DEBUG_TRACE)
- printhex("RSA sig", buf->data, buf->len);
+ if (!debug_trace) {
+ printhex("RSA sig", buf->data, buf->len);
+ }
#endif