Lines Matching refs:passwd
170 int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp,
178 int (*pap_passwd_hook) __P((char *user, char *passwd)) = NULL;
184 int (*chap_passwd_hook) __P((char *user, char *passwd)) = NULL;
368 { "password", o_string, passwd,
463 strlcpy(passwd, p, sizeof(passwd));
788 if (passwd[0] == 0 && !explicit_passwd) {
790 if (!get_pap_passwd(passwd))
793 upap_authwithpeer(unit, user, passwd);
995 BZERO(passwd, MAXSECRETLEN);
1036 BZERO(passwd, MAXSECRETLEN);
1325 ao->neg_upap = !refuse_pap && (passwd[0] != 0 || get_pap_passwd(NULL));
1327 && (passwd[0] != 0 ||
1331 passwd[0] != 0 ||
1380 char passwd[256], user[256];
1389 slprintf(passwd, sizeof(passwd), "%.*v", passwdlen, apasswd);
1397 ret = (*pap_auth_hook)(user, passwd, msg, &addrs, &opts);
1407 BZERO(passwd, sizeof(passwd));
1436 if (session_full(user, passwd, devnam, msg) == 0) {
1447 if (cryptpap || strcmp(passwd, secret) != 0) {
1448 char *cbuf = crypt(passwd, secret);
1484 BZERO(passwd, sizeof(passwd));
1548 get_pap_passwd(passwd) in get_pap_passwd() argument
1549 char *passwd; in get_pap_passwd()
1560 ret = (*pap_passwd_hook)(user, passwd);
1576 if (passwd != NULL)
1577 strlcpy(passwd, secret, MAXSECRETLEN);
1734 if (!am_server && passwd[0] != 0) {
1735 strlcpy(secbuf, passwd, sizeof(secbuf));
1798 if (!am_server && passwd[0] != '\0') {
1799 strlcpy(secret, passwd, MAXWORDLEN);
2343 struct passwd *pw;