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
627a6dbb
Commit
627a6dbb
authored
May 04, 2010
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mg_md5 made public
parent
b33755c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
mongoose.c
mongoose.c
+1
-1
mongoose.h
mongoose.h
+11
-0
No files found.
mongoose.c
View file @
627a6dbb
...
...
@@ -2120,7 +2120,7 @@ bin2str(char *to, const unsigned char *p, size_t len)
* Return stringified MD5 hash for list of vectors.
* buf must point to 33-bytes long buffer
*/
static
void
void
mg_md5
(
char
*
buf
,
...)
{
unsigned
char
hash
[
16
];
...
...
mongoose.h
View file @
627a6dbb
...
...
@@ -236,6 +236,17 @@ enum mg_error_t mg_get_cookie(const struct mg_connection *,
const
char
*
mg_version
(
void
);
/*
* MD5 hash given strings.
* Buffer 'buf' must be 33 bytes long. Varargs is a NULL terminated list of
* asciiz strings. When function returns, buf will contain human-readable
* MD5 hash. Example:
* char buf[33];
* mg_md5(buf, "aa", "bb", NULL);
*/
void
mg_md5
(
char
*
buf
,
...);
/*
* Print command line usage string.
*/
...
...
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