ssl_send_data(): Log the data before writing
authorFabian Keil <fk@fabiankeil.de>
Tue, 25 Feb 2020 11:52:39 +0000 (12:52 +0100)
committerFabian Keil <fk@fabiankeil.de>
Wed, 26 Feb 2020 07:28:08 +0000 (08:28 +0100)
Sponsored by: Robert Klemme

ssl.c

diff --git a/ssl.c b/ssl.c
index 9dc14ab..1425879 100644 (file)
--- 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
        */