summaryrefslogtreecommitdiff
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
commit01faf1d6a3537a2e5ddc469ef60cdf3ebf02e76c (patch)
tree1e7ab4d230a9bc745f1ce80a12b4a34afa66ecfb /rsa.c
parent75d54828b67e3752c89da035dcca6abf0d59d14c (diff)
downloaddropbear-01faf1d6a3537a2e5ddc469ef60cdf3ebf02e76c.tar.gz
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