Lines Matching refs:pw
227 if ((lc = login_getclass(authctxt->pw->pw_class)) == NULL && in fake_salt_and_scheme()
281 authctxt->valid, authctxt->pw->pw_passwd); in auth2_jpake_get_pwdata()
287 if (strncmp(authctxt->pw->pw_passwd, "$2$", 3) == 0 && in auth2_jpake_get_pwdata()
288 strlen(authctxt->pw->pw_passwd) > 28) { in auth2_jpake_get_pwdata()
295 strlcpy(*salt, authctxt->pw->pw_passwd, salt_len); in auth2_jpake_get_pwdata()
297 } else if (strncmp(authctxt->pw->pw_passwd, "$2a$", 4) == 0 && in auth2_jpake_get_pwdata()
298 strlen(authctxt->pw->pw_passwd) > 29) { in auth2_jpake_get_pwdata()
305 strlcpy(*salt, authctxt->pw->pw_passwd, salt_len); in auth2_jpake_get_pwdata()
307 } else if (strncmp(authctxt->pw->pw_passwd, "$1$", 3) == 0 && in auth2_jpake_get_pwdata()
308 strlen(authctxt->pw->pw_passwd) > 5) { in auth2_jpake_get_pwdata()
313 cp = strchr(authctxt->pw->pw_passwd + 3, '$'); in auth2_jpake_get_pwdata()
315 salt_len = (cp - authctxt->pw->pw_passwd) + 1; in auth2_jpake_get_pwdata()
317 strlcpy(*salt, authctxt->pw->pw_passwd, in auth2_jpake_get_pwdata()
321 } else if (strncmp(authctxt->pw->pw_passwd, "_", 1) == 0 && in auth2_jpake_get_pwdata()
322 strlen(authctxt->pw->pw_passwd) > 9) { in auth2_jpake_get_pwdata()
329 strlcpy(*salt, authctxt->pw->pw_passwd, salt_len); in auth2_jpake_get_pwdata()
331 } else if (strlen(authctxt->pw->pw_passwd) == 13 && in auth2_jpake_get_pwdata()
332 valid_crypt_salt(authctxt->pw->pw_passwd[0]) && in auth2_jpake_get_pwdata()
333 valid_crypt_salt(authctxt->pw->pw_passwd[1])) { in auth2_jpake_get_pwdata()
340 strlcpy(*salt, authctxt->pw->pw_passwd, salt_len); in auth2_jpake_get_pwdata()
345 __func__, authctxt->pw->pw_name); in auth2_jpake_get_pwdata()
351 if (hash_buffer(authctxt->pw->pw_passwd, in auth2_jpake_get_pwdata()
352 strlen(authctxt->pw->pw_passwd), EVP_sha256(), in auth2_jpake_get_pwdata()