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
fae26c1b
Commit
fae26c1b
authored
Feb 19, 2011
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style cleanup
parent
29716fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
mongoose.c
mongoose.c
+4
-5
No files found.
mongoose.c
View file @
fae26c1b
...
@@ -683,7 +683,8 @@ static char *skip_quoted(char **buf, const char *delimiters, const char *whitesp
...
@@ -683,7 +683,8 @@ static char *skip_quoted(char **buf, const char *delimiters, const char *whitesp
return
begin_word
;
return
begin_word
;
}
}
// Simplified version of skip_quoted without quote char and whitespace == delimiters
// Simplified version of skip_quoted without quote char
// and whitespace == delimiters
static
char
*
skip
(
char
**
buf
,
const
char
*
delimiters
)
{
static
char
*
skip
(
char
**
buf
,
const
char
*
delimiters
)
{
return
skip_quoted
(
buf
,
delimiters
,
delimiters
,
0
);
return
skip_quoted
(
buf
,
delimiters
,
delimiters
,
0
);
}
}
...
@@ -2016,7 +2017,7 @@ static int check_password(const char *method, const char *ha1, const char *uri,
...
@@ -2016,7 +2017,7 @@ static int check_password(const char *method, const char *ha1, const char *uri,
char
ha2
[
32
+
1
],
expected_response
[
32
+
1
];
char
ha2
[
32
+
1
],
expected_response
[
32
+
1
];
// Some of the parameters may be NULL
// Some of the parameters may be NULL
if
(
method
==
NULL
||
nonce
==
NULL
||
nc
==
NULL
||
cnonce
==
NULL
||
if
(
method
==
NULL
||
nonce
==
NULL
||
nc
==
NULL
||
cnonce
==
NULL
||
qop
==
NULL
||
response
==
NULL
)
{
qop
==
NULL
||
response
==
NULL
)
{
return
0
;
return
0
;
}
}
...
@@ -2104,9 +2105,7 @@ static int parse_auth_header(struct mg_connection *conn, char *buf,
...
@@ -2104,9 +2105,7 @@ static int parse_auth_header(struct mg_connection *conn, char *buf,
if
(
s
[
0
]
==
','
)
{
if
(
s
[
0
]
==
','
)
{
s
++
;
s
++
;
}
}
}
}
else
{
else
{
value
=
skip_quoted
(
&
s
,
", "
,
" "
,
0
);
// IE uses commas, FF uses spaces
value
=
skip_quoted
(
&
s
,
", "
,
" "
,
0
);
// IE uses commas, FF uses spaces
}
}
if
(
*
name
==
'\0'
)
{
if
(
*
name
==
'\0'
)
{
...
...
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