Lines Matching defs:passwd
146 /* Set if we got the contents of passwd[] from the pap-secrets file. */
274 if (passwd[0] == 0) {
276 if (!get_pap_passwd(passwd))
279 upap_authwithpeer(unit, user, passwd);
392 EXPLICIT_BZERO(passwd, MAXSECRETLEN);
414 EXPLICIT_BZERO(passwd, MAXSECRETLEN);
594 ao->neg_upap = !refuse_pap && (passwd[0] != 0 || get_pap_passwd(NULL));
609 * check_passwd - Check the user name and passwd against the PAP secrets
628 char passwd[256], user[256];
635 BCOPY(apasswd, passwd, passwdlen);
636 passwd[passwdlen] = '\0';
657 || (secret[0] != 0 && (cryptpap || strcmp(passwd, secret) != 0)
658 && strcmp(crypt(passwd, secret), secret) != 0)) {
666 ret = plogin(user, passwd, msg, msglen);
677 * Frustrate passwd stealer programs.
699 EXPLICIT_BZERO(passwd, sizeof(passwd));
716 plogin(char *user, char *passwd, char **msg, int *msglen)
718 struct passwd *pw;
722 if (crypt_checkpass(passwd, pw ? pw->pw_passwd : NULL))
819 get_pap_passwd(char *passwd)
837 if (passwd != NULL)
838 strlcpy(passwd, secret, MAXSECRETLEN);
1273 struct passwd *pw;