Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
25585672
Commit
25585672
authored
Feb 07, 2016
by
Arnim Läuger
Browse files
Merge pull request #1014 from urish/patch-1
Fix secure TCP connections for `net` and `mqtt` modules.
parents
81c1d55a
31a62a9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/modules/mqtt.c
View file @
25585672
...
@@ -821,7 +821,8 @@ static sint8 socket_connect(struct espconn *pesp_conn)
...
@@ -821,7 +821,8 @@ static sint8 socket_connect(struct espconn *pesp_conn)
#ifdef CLIENT_SSL_ENABLE
#ifdef CLIENT_SSL_ENABLE
if
(
mud
->
secure
)
if
(
mud
->
secure
)
{
{
espconn_status
=
espconn_secure_connect
(
pesp_conn
);
espconn_secure_set_size
(
ESPCONN_CLIENT
,
5120
);
/* set SSL buffer size */
espconn_status
=
espconn_secure_connect
(
pesp_conn
);
}
}
else
else
#endif
#endif
...
...
app/modules/net.c
View file @
25585672
...
@@ -594,6 +594,7 @@ static void socket_connect(struct espconn *pesp_conn)
...
@@ -594,6 +594,7 @@ static void socket_connect(struct espconn *pesp_conn)
{
{
#ifdef CLIENT_SSL_ENABLE
#ifdef CLIENT_SSL_ENABLE
if
(
nud
->
secure
){
if
(
nud
->
secure
){
espconn_secure_set_size
(
ESPCONN_CLIENT
,
5120
);
/* set SSL buffer size */
espconn_secure_connect
(
pesp_conn
);
espconn_secure_connect
(
pesp_conn
);
}
}
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment