Searched refs:spw (Results 1 - 5 of 5) sorted by relevance

/freebsd-13-stable/crypto/openssh/
H A Dauth-shadow.c56 auth_shadow_acctexpired(struct spwd *spw) argument
63 daysleft = spw->sp_expire - today;
65 (int)spw->sp_expire, daysleft);
67 if (spw->sp_expire == -1) {
70 logit("Account %.100s has expired", spw->sp_namp);
72 } else if (daysleft <= spw->sp_warn) {
90 struct spwd *spw = NULL; local
95 if ((spw = getspnam((char *)user)) == NULL) {
102 (int)spw->sp_lstchg, (int)spw
[all...]
H A Dauth.c109 struct spwd *spw = NULL; local
118 spw = getspnam(pw->pw_name);
120 if (!options.use_pam && spw != NULL && auth_shadow_acctexpired(spw))
128 if (spw != NULL)
132 passwd = spw->sp_pwdp;
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dxcrypt.c141 struct spwd *spw = getspnam(pw->pw_name); local
143 if (spw != NULL)
144 pw_password = spw->sp_pwdp;
152 struct passwd_adjunct *spw; local
153 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL)
154 pw_password = spw->pwa_passwd;
156 struct pr_passwd *spw = getprpwnam(pw->pw_name);
158 if (spw != NULL)
159 pw_password = spw->ufld.fd_encrypt;
/freebsd-13-stable/contrib/pam_modules/pam_passwdqc/
H A Dpam_passwdqc.c317 struct spwd *spw; local
388 spw = getspnam(user);
390 if (spw) {
391 if (strcmp(crypt(oldpass, spw->sp_pwdp),
392 spw->sp_pwdp))
394 memset(spw->sp_pwdp, 0,
395 strlen(spw->sp_pwdp));
/freebsd-13-stable/lib/libutil/
H A Dpw_util.c221 if (snprintf(tempname, sizeof(tempname), "%.*spw.XXXXXX",
433 const struct passwd *spw; local
441 spw = old_pw;
451 if (spw == NULL)
452 spw = pw;
529 if (fpw == NULL || strcmp(fpw->pw_name, spw->pw_name) != 0) {

Completed in 117 milliseconds