mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
NO_AUTH -> MONGOOSE_NO_AUTH
This commit is contained in:
1 parent
2fc654ac35
commit
7010addadb
1 file changed
+3
-3
+3
-3
@@ -131,7 +131,7 @@ static void show_usage_and_exit(void) {
|
|||||||
fprintf(stderr, "Mongoose version %s (c) Sergey Lyubka, built on %s\n",
|
fprintf(stderr, "Mongoose version %s (c) Sergey Lyubka, built on %s\n",
|
||||||
MONGOOSE_VERSION, __DATE__);
|
MONGOOSE_VERSION, __DATE__);
|
||||||
fprintf(stderr, "Usage:\n");
|
fprintf(stderr, "Usage:\n");
|
||||||
#ifndef NO_AUTH
|
#ifndef MONGOOSE_NO_AUTH
|
||||||
fprintf(stderr, " mongoose -A <htpasswd_file> <realm> <user> <passwd>\n");
|
fprintf(stderr, " mongoose -A <htpasswd_file> <realm> <user> <passwd>\n");
|
||||||
#endif
|
#endif
|
||||||
fprintf(stderr, " mongoose [config_file]\n");
|
fprintf(stderr, " mongoose [config_file]\n");
|
||||||
@@ -310,7 +310,7 @@ static void set_absolute_path(char *options[], const char *option_name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_AUTH
|
#ifndef MONGOOSE_NO_AUTH
|
||||||
int modify_passwords_file(const char *fname, const char *domain,
|
int modify_passwords_file(const char *fname, const char *domain,
|
||||||
const char *user, const char *pass) {
|
const char *user, const char *pass) {
|
||||||
int found;
|
int found;
|
||||||
@@ -383,7 +383,7 @@ static void start_mongoose(int argc, char *argv[]) {
|
|||||||
die("%s", "Failed to start Mongoose.");
|
die("%s", "Failed to start Mongoose.");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_AUTH
|
#ifndef MONGOOSE_NO_AUTH
|
||||||
// Edit passwords file if -A option is specified
|
// Edit passwords file if -A option is specified
|
||||||
if (argc > 1 && !strcmp(argv[1], "-A")) {
|
if (argc > 1 && !strcmp(argv[1], "-A")) {
|
||||||
if (argc != 6) {
|
if (argc != 6) {
|
||||||
|
|||||||
Reference in new issue
Block a user