Make TLS less verbose

This commit is contained in:
Sergey Lyubka 2024-01-14 23:27:52 +00:00
parent dfc2e97d5e
commit 0ad4002569
2 changed files with 4 additions and 4 deletions

View File

@ -9033,8 +9033,8 @@ static int x25519(uint8_t out[X25519_BYTES], const uint8_t scalar[X25519_BYTES],
// helper to hexdump buffers inline // helper to hexdump buffers inline
static void mg_tls_hexdump(const char *msg, uint8_t *buf, size_t bufsz) { static void mg_tls_hexdump(const char *msg, uint8_t *buf, size_t bufsz) {
char p[2048]; char p[512];
MG_INFO(("%s: %s", msg, mg_hex(buf, bufsz, p))); MG_VERBOSE(("%s: %s", msg, mg_hex(buf, bufsz, p)));
} }
// TLS1.3 secret derivation based on the key label // TLS1.3 secret derivation based on the key label

View File

@ -286,8 +286,8 @@ static int x25519(uint8_t out[X25519_BYTES], const uint8_t scalar[X25519_BYTES],
// helper to hexdump buffers inline // helper to hexdump buffers inline
static void mg_tls_hexdump(const char *msg, uint8_t *buf, size_t bufsz) { static void mg_tls_hexdump(const char *msg, uint8_t *buf, size_t bufsz) {
char p[2048]; char p[512];
MG_INFO(("%s: %s", msg, mg_hex(buf, bufsz, p))); MG_VERBOSE(("%s: %s", msg, mg_hex(buf, bufsz, p)));
} }
// TLS1.3 secret derivation based on the key label // TLS1.3 secret derivation based on the key label