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
2fb145d3
Commit
2fb145d3
authored
Mar 21, 2017
by
Alexander Alashkin
Committed by
Cesanta Bot
Mar 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix DISABLE_MD5 and DISABLE_SHA1 naming
PUBLISHED_FROM=2babde0d0c6add14aa500f4bf1c833715d979c6c
parent
14094aae
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
19 deletions
+19
-19
disabling-flags.md
docs/overview/build-options/disabling-flags.md
+2
-2
Makefile
examples/nRF51/http/boards/pca10028/armgcc/Makefile
+4
-4
Makefile
examples/nRF52/http/boards/pca10040/armgcc/Makefile
+4
-4
mongoose.c
mongoose.c
+3
-3
mongoose.h
mongoose.h
+6
-6
No files found.
docs/overview/build-options/disabling-flags.md
View file @
2fb145d3
...
...
@@ -3,6 +3,6 @@ title: Disabling flags
---
-
`MG_DISABLE_HTTP_DIGEST_AUTH`
disable HTTP Digest (MD5) authorisation support
-
`
MG
_DISABLE_SHA1`
disable SHA1 support (used by WebSocket)
-
`
MG
_DISABLE_MD5`
disable MD5 support (used by HTTP auth)
-
`
CS
_DISABLE_SHA1`
disable SHA1 support (used by WebSocket)
-
`
CS
_DISABLE_MD5`
disable MD5 support (used by HTTP auth)
-
`MG_DISABLE_HTTP_KEEP_ALIVE`
useful for embedded systems to save resources
examples/nRF51/http/boards/pca10028/armgcc/Makefile
View file @
2fb145d3
...
...
@@ -118,7 +118,7 @@ BUILD_DIRECTORIES := $(sort $(OBJECT_DIRECTORY) $(OUTPUT_BINARY_DIRECTORY) $(LIS
# Mongoose features
MG_FEATURES_TINY
=
\
-DMG_DISABLE_HTTP_DIGEST_AUTH
\
-D
MG
_DISABLE_MD5
\
-D
CS
_DISABLE_MD5
\
-DMG_DISABLE_HTTP_KEEP_ALIVE
\
-DMG_ENABLE_HTTP_SSI
=
0
\
-DMG_ENABLE_HTTP_STREAMING_MULTIPART
...
...
examples/nRF52/http/boards/pca10040/armgcc/Makefile
View file @
2fb145d3
...
...
@@ -165,7 +165,7 @@ BUILD_DIRECTORIES := $(sort $(OBJECT_DIRECTORY) $(OUTPUT_BINARY_DIRECTORY) $(LIS
# Mongoose features
MG_FEATURES_TINY
=
\
-DMG_DISABLE_HTTP_DIGEST_AUTH
\
-D
MG
_DISABLE_MD5
\
-D
CS
_DISABLE_MD5
\
-DMG_DISABLE_HTTP_KEEP_ALIVE
\
-DMG_ENABLE_HTTP_SSI
=
0
\
-DMG_ENABLE_HTTP_STREAMING_MULTIPART
...
...
mongoose.c
View file @
2fb145d3
...
...
@@ -793,7 +793,7 @@ double cs_time(void) {
/* Amalgamated: #include "common/str_util.h" */
#if !defined(EXCLUDE_COMMON)
#if !DISABLE_MD5
#if !
CS_
DISABLE_MD5
/* Amalgamated: #include "common/cs_endian.h" */
...
...
@@ -980,7 +980,7 @@ void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) {
memcpy
(
digest
,
ctx
->
buf
,
16
);
memset
((
char
*
)
ctx
,
0
,
sizeof
(
*
ctx
));
}
#endif
/* DISABLE_MD5 */
#endif
/*
CS_
DISABLE_MD5 */
char
*
cs_md5
(
char
buf
[
33
],
...)
{
unsigned
char
hash
[
16
];
...
...
@@ -1203,7 +1203,7 @@ int mg_strncmp(const struct mg_str str1, const struct mg_str str2, size_t n) {
/* Amalgamated: #include "common/sha1.h" */
#if !DISABLE_SHA1 && !defined(EXCLUDE_COMMON)
#if !
CS_
DISABLE_SHA1 && !defined(EXCLUDE_COMMON)
/* Amalgamated: #include "common/cs_endian.h" */
...
...
mongoose.h
View file @
2fb145d3
...
...
@@ -1802,11 +1802,11 @@ void mbuf_trim(struct mbuf *);
#ifndef CS_COMMON_SHA1_H_
#define CS_COMMON_SHA1_H_
#ifndef DISABLE_SHA1
#define DISABLE_SHA1 0
#ifndef
CS_
DISABLE_SHA1
#define
CS_
DISABLE_SHA1 0
#endif
#if !DISABLE_SHA1
#if !
CS_
DISABLE_SHA1
/* Amalgamated: #include "common/platform.h" */
...
...
@@ -1830,7 +1830,7 @@ void cs_hmac_sha1(const unsigned char *key, size_t key_len,
}
#endif
/* __cplusplus */
#endif
/* DISABLE_SHA1 */
#endif
/*
CS_
DISABLE_SHA1 */
#endif
/* CS_COMMON_SHA1_H_ */
#ifdef MG_MODULE_LINES
...
...
@@ -1846,8 +1846,8 @@ void cs_hmac_sha1(const unsigned char *key, size_t key_len,
/* Amalgamated: #include "common/platform.h" */
#ifndef DISABLE_MD5
#define DISABLE_MD5 0
#ifndef
CS_
DISABLE_MD5
#define
CS_
DISABLE_MD5 0
#endif
#ifdef __cplusplus
...
...
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