mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Make some debug info conditional
This commit is contained in:
parent
bb7934bf04
commit
12e7d570a2
@ -789,9 +789,11 @@ static void finish_kexhashbuf(void) {
|
|||||||
hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize));
|
hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize));
|
||||||
buf_setlen(ses.hash, hash_desc->hashsize);
|
buf_setlen(ses.hash, hash_desc->hashsize);
|
||||||
|
|
||||||
#ifdef DEBUG_KEXHASH
|
#if defined(DEBUG_KEXHASH) && defined(DEBUG_TRACE)
|
||||||
printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
|
if (!debug_trace) {
|
||||||
printhex("kexhash", ses.hash->data, ses.hash->len);
|
printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
|
||||||
|
printhex("kexhash", ses.hash->data, ses.hash->len);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
buf_burn(ses.kexhashbuf);
|
buf_burn(ses.kexhashbuf);
|
||||||
|
4
rsa.c
4
rsa.c
@ -347,7 +347,9 @@ void buf_put_rsa_sign(buffer* buf, dropbear_rsa_key *key, buffer *data_buf) {
|
|||||||
mp_clear(&rsa_s);
|
mp_clear(&rsa_s);
|
||||||
|
|
||||||
#if defined(DEBUG_RSA) && defined(DEBUG_TRACE)
|
#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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user