Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
7776df24
Commit
7776df24
authored
Nov 28, 2016
by
Deomid Ryabkov
Committed by
Cesanta Bot
Nov 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable server name verification on mbedTLS
PUBLISHED_FROM=54774944d5402a5d6a351b4609428940c0ad20ea
parent
e17fdcb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mongoose.c
mongoose.c
+4
-4
No files found.
mongoose.c
View file @
7776df24
...
@@ -4370,10 +4370,6 @@ enum mg_ssl_if_result mg_ssl_if_conn_init(
...
@@ -4370,10 +4370,6 @@ enum mg_ssl_if_result mg_ssl_if_conn_init(
return
MG_SSL_ERROR
;
return
MG_SSL_ERROR
;
}
}
if
(
params
->
server_name
!=
NULL
)
{
/* TODO(rojer): Implement server name verification on mbedTLS. */
}
mg_set_cipher_list
(
ctx
,
NULL
);
mg_set_cipher_list
(
ctx
,
NULL
);
if
(
!
(
nc
->
flags
&
MG_F_LISTENING
))
{
if
(
!
(
nc
->
flags
&
MG_F_LISTENING
))
{
...
@@ -4383,6 +4379,10 @@ enum mg_ssl_if_result mg_ssl_if_conn_init(
...
@@ -4383,6 +4379,10 @@ enum mg_ssl_if_result mg_ssl_if_conn_init(
MG_SET_PTRPTR
(
err_msg
,
"Failed to create SSL session"
);
MG_SET_PTRPTR
(
err_msg
,
"Failed to create SSL session"
);
return
MG_SSL_ERROR
;
return
MG_SSL_ERROR
;
}
}
if
(
params
->
server_name
!=
NULL
&&
mbedtls_ssl_set_hostname
(
ctx
->
ssl
,
params
->
server_name
)
!=
0
)
{
return
MG_SSL_ERROR
;
}
}
}
nc
->
flags
|=
MG_F_SSL
;
nc
->
flags
|=
MG_F_SSL
;
...
...
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