HTTPS debug level tweak
This commit is contained in:
parent
7ac1985681
commit
afcbbc8e74
1 changed files with 3 additions and 1 deletions
|
@ -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{
|
||||||
|
|
Loading…
Add table
Reference in a new issue