From afcbbc8e74d3d85319936107662a80c513e5f0d7 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 6 Aug 2018 11:35:30 +0200 Subject: [PATCH] HTTPS debug level tweak --- src/output/output_https.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/output/output_https.cpp b/src/output/output_https.cpp index 08a6bf10..581e33f8 100644 --- a/src/output/output_https.cpp +++ b/src/output/output_https.cpp @@ -78,7 +78,9 @@ namespace Mist{ // do the SSL handshake while ((ret = mbedtls_ssl_handshake(&ssl)) != 0){ if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE){ - MEDIUM_MSG("Could not handshake, SSL error: %d", ret); + char error_buf[200]; + mbedtls_strerror(ret, error_buf, 200); + MEDIUM_MSG("Could not handshake, SSL error: %s (%d)", error_buf, ret); C.close(); return; }else{