Definition:
char *ap_validate_password(const char *passwd, const char *hash);
Usage example:
pwcheck = ap_validate_password(pw_from_request, pw_from_file);
if (pwcheck == NULL) {
/* Password matches */
}
else {
ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r,
"Authentication failed: %s", pwcheck);
return HTTP_UNAUTHORIZED;
}
No documentation available.
Previous: ap_uuencode
Next: ap_vbprintf
Table of Contents
(Routines,
Structures,
Data Cells,
Constants)