HTTPS debug level tweak

This commit is contained in:
Thulinma 2018-08-06 11:35:30 +02:00
parent 7ac1985681
commit afcbbc8e74

View file

@ -78,7 +78,9 @@ namespace Mist{
// do the SSL handshake // do the SSL handshake
while ((ret = mbedtls_ssl_handshake(&ssl)) != 0){ while ((ret = mbedtls_ssl_handshake(&ssl)) != 0){
if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE){ 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(); C.close();
return; return;
}else{ }else{