Home
last modified time | relevance | path

Searched refs:spw (Results 1 – 6 of 6) sorted by relevance

/dragonfly/lib/libssh/openbsd-compat/
H A Dxcrypt.c134 struct spwd *spw = getspnam(pw->pw_name); in shadow_pw() local
136 if (spw != NULL) in shadow_pw()
137 pw_password = spw->sp_pwdp; in shadow_pw()
145 struct passwd_adjunct *spw; in shadow_pw() local
146 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() local
151 if (spw != NULL) in shadow_pw()
152 pw_password = spw->ufld.fd_encrypt; in shadow_pw()
/dragonfly/crypto/openssh/
H A Dplatform.c209 struct spwd *spw = NULL; in platform_locked_account() local
214 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()
/dragonfly/contrib/pam_passwdqc/
H A Dpam_passwdqc.c261 struct spwd *spw = getspnam(pw->pw_name); local
263 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));
/dragonfly/lib/libutil/
H A Dpw_util.c427 const struct passwd *spw; in pw_copy() local
434 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()
/dragonfly/contrib/tcsh-6/
H A Dtc.func.c732 struct spwd *spw; in auto_lock() local
738 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()
/dragonfly/contrib/cvs-1.12/src/
H A Dserver.c6942 struct spwd *spw; in check_system_password() local
6944 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()