• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp-2.4.4/pppd/

Lines Matching defs:secret

793 		error("No secret found for PAP login");
1295 "but I couldn't find any suitable secret (password) for it to use to do so.");
1379 char secret[MAXWORDLEN];
1411 * Open the file of pap secrets and scan for a suitable secret
1424 if (scan_authfile(f, user, our_name, secret, &addrs, &opts, filename, 0) < 0) {
1425 warn("no PAP secret found for %s", user);
1428 * If the secret is "@login", it means to check
1431 int login_secret = strcmp(secret, "@login") == 0;
1434 /* login option or secret is @login */
1438 if (secret[0] != 0 && !login_secret) {
1440 if ((cryptpap || strcmp(passwd, secret) != 0)
1441 && strcmp(crypt(passwd, secret), secret) != 0)
1476 BZERO(secret, sizeof(secret));
1720 char secret[MAXWORDLEN];
1730 * Open the file of pap secrets and scan for a suitable secret.
1741 i = scan_authfile(f, "", our_name, secret, &addrs, &opts, filename, 0);
1742 ret = i >= 0 && secret[0] == 0;
1743 BZERO(secret, sizeof(secret));
1771 char secret[MAXWORDLEN];
1790 secret, NULL, NULL, filename, 0);
1795 strlcpy(passwd, secret, MAXSECRETLEN);
1796 BZERO(secret, sizeof(secret));
1844 * secret that we could possibly use for authenticating `client'
1894 * secret that we could possibly use for authenticating `client'
1936 * get_secret - open the CHAP secret file and return the secret
1941 get_secret(unit, client, server, secret, secret_len, am_server)
1945 char *secret;
1971 error("Can't open chap secret file %s: %m", filename);
1994 BCOPY(secbuf, secret, len);
2003 * get_srp_secret - open the SRP secret file and return the secret
2008 get_srp_secret(unit, client, server, secret, am_server)
2012 char *secret;
2021 strlcpy(secret, passwd, MAXWORDLEN);
2029 error("Can't open srp secret file %s: %m", filename);
2034 secret[0] = '\0';
2035 ret = scan_authfile(fp, client, server, secret, &addrs, &opts,
2310 * check_access - complain if a secret file has too-liberal permissions.
2320 warn("cannot stat secret file %s: %m", filename);
2322 warn("Warning - secret file %s has world and/or group access",
2329 * scan_authfile - Scan an authorization file for a secret suitable
2331 * if no secret is found, otherwise >= 0. The return value has
2332 * NONWILD_CLIENT set if the secret didn't have "*" for the client, and
2333 * NONWILD_SERVER set if the secret didn't have "*" for the server.
2338 * We assume secret is NULL or points to MAXWORDLEN bytes of space.
2339 * Flags are non-zero if we need two colons in the secret in order to
2343 scan_authfile(f, client, server, secret, addrs, opts, filename, flags)
2347 char *secret;
2412 * Get the secret.
2427 if (secret != NULL) {
2429 * Special syntax: @/pathname means read secret from file.
2434 warn("can't open indirect secret file %s", atfile);
2439 warn("no secret in indirect secret file %s", atfile);
2473 if (secret != NULL)
2474 strlcpy(secret, lsecret, MAXWORDLEN);