diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2021-02-06 07:34:35 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2021-02-06 07:34:35 +0000 |
commit | 701fbc2be2251e85efebffb5ad7563132cdbdba0 (patch) | |
tree | e4422d4199ab720dbb454e9004bc00c7692a6a97 /regress | |
parent | a0bb713a2798664a7b85d737e5bbebf333112202 (diff) |
Only hexdump packets/messages on higher debug levels.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libssl/dtls/dtlstest.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/regress/lib/libssl/dtls/dtlstest.c b/regress/lib/libssl/dtls/dtlstest.c index cb83ced4d37..4274dee7f6b 100644 --- a/regress/lib/libssl/dtls/dtlstest.c +++ b/regress/lib/libssl/dtls/dtlstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dtlstest.c,v 1.5 2021/02/06 07:33:27 jsing Exp $ */ +/* $OpenBSD: dtlstest.c,v 1.6 2021/02/06 07:34:34 jsing Exp $ */ /* * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> * @@ -149,7 +149,8 @@ bio_packet_monkey_write(BIO *bio, const char *in, int in_len) if (debug) { fprintf(stderr, "DEBUG: %s packet...\n", drop ? "dropping" : "writing"); - hexdump(in, in_len); + if (debug > 1) + hexdump(in, in_len); } if (drop) return in_len; @@ -435,7 +436,7 @@ do_read(SSL *ssl, const char *name, int *done, short *events) if ((ssl_ret = SSL_read(ssl, buf, sizeof(buf))) > 0) { fprintf(stderr, "INFO: %s read done\n", name); - if (debug) + if (debug > 1) hexdump(buf, ssl_ret); *done = 1; return 1; |