Apache 1.3 API Documentation

Routine ap_validate_password

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.

See also:
ap_auth_name, ap_auth_type

Previous: ap_uuencode Next: ap_vbprintf

Table of Contents (Routines, Structures, Data Cells, Constants)