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

/freebsd-10-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
96 if ((spw = getspnam((char *)user)) == NULL) {
103 (int)spw->sp_lstchg, (int)spw
[all...]
H A Dauth.c108 struct spwd *spw = NULL; local
117 spw = getspnam(pw->pw_name);
119 if (!options.use_pam && spw != NULL && auth_shadow_acctexpired(spw))
127 if (spw != NULL)
131 passwd = spw->sp_pwdp;
/freebsd-10-stable/crypto/openssh/openbsd-compat/
H A Dxcrypt.c140 struct spwd *spw = getspnam(pw->pw_name); local
142 if (spw != NULL)
143 pw_password = spw->sp_pwdp;
151 struct passwd_adjunct *spw; local
152 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL)
153 pw_password = spw->pwa_passwd;
155 struct pr_passwd *spw = getprpwnam(pw->pw_name);
157 if (spw != NULL)
158 pw_password = spw->ufld.fd_encrypt;
/freebsd-10-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-10-stable/lib/libutil/
H A Dpw_util.c224 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 202 milliseconds