Searched refs:spw (Results 1 – 6 of 6) sorted by relevance
134 struct spwd *spw = getspnam(pw->pw_name); in shadow_pw() local136 if (spw != NULL) in shadow_pw()137 pw_password = spw->sp_pwdp; in shadow_pw()145 struct passwd_adjunct *spw; in shadow_pw() local146 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in shadow_pw()147 pw_password = spw->pwa_passwd; in shadow_pw()149 struct pr_passwd *spw = getprpwnam(pw->pw_name); in shadow_pw() local151 if (spw != NULL) in shadow_pw()152 pw_password = spw->ufld.fd_encrypt; in shadow_pw()
209 struct spwd *spw = NULL; in platform_locked_account() local214 spw = getspnam(pw->pw_name); in platform_locked_account()216 if (spw != NULL && auth_shadow_acctexpired(spw)) in platform_locked_account()220 if (spw != NULL) in platform_locked_account()224 passwd = spw->sp_pwdp; in platform_locked_account()
261 struct spwd *spw = getspnam(pw->pw_name); local263 if (!spw)266 if (strlen(spw->sp_pwdp) >= 13) {268 hash = bigcrypt(pass, spw->sp_pwdp);270 hash = crypt(pass, spw->sp_pwdp);273 retval = (hash && !strcmp(hash, spw->sp_pwdp)) ? 0 : -1;274 _passwdqc_memzero(spw->sp_pwdp, strlen(spw->sp_pwdp));
427 const struct passwd *spw; in pw_copy() local434 spw = old_pw; in pw_copy()444 if (spw == NULL) in pw_copy()445 spw = pw; in pw_copy()512 if (fpw == NULL || strcmp(fpw->pw_name, spw->pw_name) != 0) { in pw_copy()
732 struct spwd *spw; in auto_lock() local738 while ((spw = getspnam(pw->pw_name)) == NULL && errno == EINTR) { in auto_lock()742 if (spw != NULL) /* shadowed passwd */ in auto_lock()743 srpp = spw->sp_pwdp; in auto_lock()
6942 struct spwd *spw; in check_system_password() local6944 spw = getspnam (username); in check_system_password()6945 if (spw != NULL) in check_system_password()6946 found_passwd = spw->sp_pwdp; in check_system_password()