mongoose/docs/c-api/http_server.h/mg_check_digest_auth.md
Dmitry Frank d4b55c4ceb Separate digest auth from HTTP headers parsing
PUBLISHED_FROM=f97569ae2f31ab94ce4875eae4d0a198f719c388
2017-08-22 19:51:53 +00:00

605 B

title decl_name symbol_kind signature
mg_check_digest_auth() mg_check_digest_auth func int mg_check_digest_auth(struct mg_str method, struct mg_str uri, struct mg_str username, struct mg_str cnonce, struct mg_str response, struct mg_str qop, struct mg_str nc, struct mg_str nonce, struct mg_str auth_domain, FILE *fp);

Authenticates given response params against an opened password file. Returns 1 if authenticated, 0 otherwise.

It's used by mg_http_check_digest_auth().