mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-05 22:08:23 +00:00
Changed API: function mg_modify_passwords_file(). Instead of passing context, a domain name is passed, thus making this function completely mongoose-agnostic.
This commit is contained in:
1 parent
27ccf416c1
commit
29716fa22e
3 files changed
+7
-25
No files matched your search
+4
-2
@@ -138,8 +138,10 @@ const char **mg_get_valid_option_names(void);
|
||||
//
|
||||
// Return:
|
||||
// 1 on success, 0 on error.
|
||||
int mg_modify_passwords_file(struct mg_context *ctx,
|
||||
const char *passwords_file_name, const char *user, const char *password);
|
||||
int mg_modify_passwords_file(const char *passwords_file_name,
|
||||
const char *domain,
|
||||
const char *user,
|
||||
const char *password);
|
||||
|
||||
// Send data to the client.
|
||||
int mg_write(struct mg_connection *, const void *buf, size_t len);
|
||||
|
||||
Reference in new issue
Block a user