From 259630adeb4cb54a738351bef0e9367daa443b9b Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 25 Feb 2020 12:52:39 +0100 Subject: [PATCH] ssl_send_data(): Log the data before writing Sponsored by: Robert Klemme --- ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssl.c b/ssl.c index 9dc14ab5..14258797 100644 --- a/ssl.c +++ b/ssl.c @@ -229,6 +229,8 @@ extern int ssl_send_data(mbedtls_ssl_context *ssl, const unsigned char *buf, siz send_len = (int)max_fragment_size; } + log_error(LOG_LEVEL_WRITING, "TLS: %N", send_len, buf+pos); + /* * Sending one part of the buffer */ -- 2.39.2