Lines Matching refs:rhostname
409 char rhostname[256];
433 if (len >= sizeof(rhostname))
434 len = sizeof(rhostname) - 1;
435 BCOPY(inp, rhostname, len);
436 rhostname[len] = '\000';
439 if (explicit_remote || (remote_name[0] != 0 && rhostname[0] == 0)) {
440 strlcpy(rhostname, remote_name, sizeof(rhostname));
442 rhostname));
446 if (!get_secret(cstate->unit, cstate->resp_name, rhostname,
449 warn("No CHAP secret found for authenticating us to %q", rhostname);
501 char rhostname[256];
545 if (len >= sizeof(rhostname))
546 len = sizeof(rhostname) - 1;
547 BCOPY(inp, rhostname, len);
548 rhostname[len] = '\000';
555 if (!get_secret(cstate->unit, (explicit_remote? remote_name: rhostname),
557 warn("No CHAP secret found for authenticating %q", rhostname);
589 auth_peer_success(cstate->unit, PPP_CHAP, rhostname, len);
593 notice("CHAP peer authentication succeeded for %q", rhostname);
596 error("CHAP peer authentication failed for remote host %q", rhostname);