mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-26 22:41:03 +08:00
Merge pull request #2747 from cesanta/t2
Reduce stack usage in mg_tls_hexdump()
This commit is contained in:
commit
6c7672f4af
@ -9501,8 +9501,7 @@ static uint8_t zeros_sha256_digest[32] = {
|
||||
|
||||
// helper to hexdump buffers inline
|
||||
static void mg_tls_hexdump(const char *msg, uint8_t *buf, size_t bufsz) {
|
||||
char p[8 * 4096];
|
||||
MG_VERBOSE(("%s: %s", msg, mg_hex(buf, bufsz, p)));
|
||||
MG_VERBOSE(("%s: %M", msg, mg_print_hex, bufsz, buf));
|
||||
}
|
||||
|
||||
// helper utilities to parse ASN.1 DER
|
||||
|
@ -127,8 +127,7 @@ static uint8_t zeros_sha256_digest[32] = {
|
||||
|
||||
// helper to hexdump buffers inline
|
||||
static void mg_tls_hexdump(const char *msg, uint8_t *buf, size_t bufsz) {
|
||||
char p[8 * 4096];
|
||||
MG_VERBOSE(("%s: %s", msg, mg_hex(buf, bufsz, p)));
|
||||
MG_VERBOSE(("%s: %M", msg, mg_print_hex, bufsz, buf));
|
||||
}
|
||||
|
||||
// helper utilities to parse ASN.1 DER
|
||||
|
Loading…
x
Reference in New Issue
Block a user