Merge pull request #1014 from urish/patch-1

Fix secure TCP connections for `net` and `mqtt` modules.
This commit is contained in:
Arnim Läuger 2016-02-07 19:51:32 +01:00
commit 25585672ae
2 changed files with 3 additions and 1 deletions

View File

@ -821,6 +821,7 @@ static sint8 socket_connect(struct espconn *pesp_conn)
#ifdef CLIENT_SSL_ENABLE
if(mud->secure)
{
espconn_secure_set_size(ESPCONN_CLIENT, 5120); /* set SSL buffer size */
espconn_status = espconn_secure_connect(pesp_conn);
}
else

View File

@ -594,6 +594,7 @@ static void socket_connect(struct espconn *pesp_conn)
{
#ifdef CLIENT_SSL_ENABLE
if(nud->secure){
espconn_secure_set_size(ESPCONN_CLIENT, 5120); /* set SSL buffer size */
espconn_secure_connect(pesp_conn);
}
else