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
6bd35a4c
Commit
6bd35a4c
authored
Sep 28, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style changes
parent
fb8f0ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
mongoose.c
mongoose.c
+4
-6
No files found.
mongoose.c
View file @
6bd35a4c
...
@@ -2295,10 +2295,8 @@ static int authorize(struct mg_connection *conn, FILE *fp) {
...
@@ -2295,10 +2295,8 @@ static int authorize(struct mg_connection *conn, FILE *fp) {
if
(
!
strcmp
(
ah
.
user
,
f_user
)
&&
if
(
!
strcmp
(
ah
.
user
,
f_user
)
&&
!
strcmp
(
conn
->
ctx
->
config
[
AUTHENTICATION_DOMAIN
],
f_domain
))
!
strcmp
(
conn
->
ctx
->
config
[
AUTHENTICATION_DOMAIN
],
f_domain
))
return
check_password
(
return
check_password
(
conn
->
request_info
.
request_method
,
ha1
,
ah
.
uri
,
conn
->
request_info
.
request_method
,
ah
.
nonce
,
ah
.
nc
,
ah
.
cnonce
,
ah
.
qop
,
ah
.
response
);
ha1
,
ah
.
uri
,
ah
.
nonce
,
ah
.
nc
,
ah
.
cnonce
,
ah
.
qop
,
ah
.
response
);
}
}
return
0
;
return
0
;
...
@@ -4329,7 +4327,7 @@ static int set_ssl_option(struct mg_context *ctx) {
...
@@ -4329,7 +4327,7 @@ static int set_ssl_option(struct mg_context *ctx) {
struct
mg_connection
*
conn
;
struct
mg_connection
*
conn
;
int
i
,
size
;
int
i
,
size
;
const
char
*
pem
;
const
char
*
pem
;
// If PEM file is not specified, skip SSL initialization.
// If PEM file is not specified, skip SSL initialization.
if
((
pem
=
ctx
->
config
[
SSL_CERTIFICATE
])
==
NULL
)
{
if
((
pem
=
ctx
->
config
[
SSL_CERTIFICATE
])
==
NULL
)
{
return
1
;
return
1
;
...
@@ -4354,7 +4352,7 @@ static int set_ssl_option(struct mg_context *ctx) {
...
@@ -4354,7 +4352,7 @@ static int set_ssl_option(struct mg_context *ctx) {
cry
(
fc
(
ctx
),
"SSL_CTX_new (server) error: %s"
,
ssl_error
());
cry
(
fc
(
ctx
),
"SSL_CTX_new (server) error: %s"
,
ssl_error
());
return
0
;
return
0
;
}
}
// If user callback returned non-NULL, that means that user callback has
// If user callback returned non-NULL, that means that user callback has
// set up certificate itself. In this case, skip sertificate setting.
// set up certificate itself. In this case, skip sertificate setting.
conn
=
fc
(
ctx
);
conn
=
fc
(
ctx
);
...
...
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