Lines Matching refs:hash
77 const char *hash)
83 if (hash[0] == '$'
84 && hash[1] == '2'
85 && (hash[2] == 'a' || hash[2] == 'y')
86 && hash[3] == '$') {
87 if (_crypt_blowfish_rn(passwd, hash, sample, sizeof(sample)) == NULL)
90 else if (!strncmp(hash, apr1_id, strlen(apr1_id))) {
92 * The hash was created using our custom algorithm.
94 apr_md5_encode(passwd, hash, sample, sizeof(sample));
96 else if (!strncmp(hash, APR_SHA1PW_ID, APR_SHA1PW_IDLEN)) {
104 return (strcmp(passwd, hash) == 0) ? APR_SUCCESS : APR_EMISMATCH;
111 crypt_pw = crypt_r(passwd, hash, buffer);
115 rv = (strcmp(crypt_pw, hash) == 0) ? APR_SUCCESS : APR_EMISMATCH;
142 crypt_pw = crypt_r(passwd, hash, buffer);
146 rv = (strcmp(crypt_pw, hash) == 0) ? APR_SUCCESS : APR_EMISMATCH;
165 crypt_pw = crypt(passwd, hash);
170 rv = (strcmp(crypt_pw, hash) == 0) ? APR_SUCCESS : APR_EMISMATCH;
177 return (strcmp(sample, hash) == 0) ? APR_SUCCESS : APR_EMISMATCH;