mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
Reduce stack usage in mg_tls_hexdump()
This commit is contained in:
1 parent
573f13c1ed
commit
2def6e867d
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -9501,8 +9501,7 @@ static uint8_t zeros_sha256_digest[32] = {
|
|||||||
|
|
||||||
// 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[8 * 4096];
|
MG_VERBOSE(("%s: %M", msg, mg_print_hex, bufsz, buf));
|
||||||
MG_VERBOSE(("%s: %s", msg, mg_hex(buf, bufsz, p)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// helper utilities to parse ASN.1 DER
|
// helper utilities to parse ASN.1 DER
|
||||||
|
|||||||
+1
-2
@@ -127,8 +127,7 @@ static uint8_t zeros_sha256_digest[32] = {
|
|||||||
|
|
||||||
// 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[8 * 4096];
|
MG_VERBOSE(("%s: %M", msg, mg_print_hex, bufsz, buf));
|
||||||
MG_VERBOSE(("%s: %s", msg, mg_hex(buf, bufsz, p)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// helper utilities to parse ASN.1 DER
|
// helper utilities to parse ASN.1 DER
|
||||||
|
|||||||
Reference in new issue
Block a user