Skip to content
Snippets Groups Projects
Commit cf3a4ee4 authored by Andy Green's avatar Andy Green
Browse files

mbedtls: client: stop spinning on handshake fail

parent f97b67a7
No related branches found
No related tags found
No related merge requests found
...@@ -284,9 +284,13 @@ some_wait: ...@@ -284,9 +284,13 @@ some_wait:
char *p = (char *)&pt->serv_buf[0]; char *p = (char *)&pt->serv_buf[0];
char *sb = p; char *sb = p;
lwsl_err("ssl hs1 error, X509_V_ERR = %d: %s\n", lwsl_err("ssl hs1 error, X509_V_ERR = %d: errno %d: %s\n",
n, ERR_error_string(n, sb)); n, errno, ERR_error_string(n, sb));
lws_ssl_elaborate_error(); lws_ssl_elaborate_error();
#if defined(LWS_WITH_MBEDTLS)
if (n == SSL_ERROR_SYSCALL)
return -1;
#endif
} }
n = -1; n = -1;
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment