ssl_recv_data(): Log the received data
authorFabian Keil <fk@fabiankeil.de>
Tue, 25 Feb 2020 11:50:48 +0000 (12:50 +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 d8ae0fe..9dc14ab 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -302,6 +302,8 @@ extern int ssl_recv_data(mbedtls_ssl_context *ssl, unsigned char *buf, size_t ma
       return -1;
    }
 
+   log_error(LOG_LEVEL_RECEIVED, "TLS: %N", ret, buf);
+
    return ret;
 }