Lines Matching defs:secret

1486 "but I couldn't find any suitable secret (password) for it to use to do so.");
1572 char secret[MAXWORDLEN];
1604 * Open the file of pap secrets and scan for a suitable secret
1616 if (scan_authfile(f, ppp_settings.user, our_name, secret, &addrs, &opts, filename, 0) < 0) {
1617 ppp_warn("no PAP secret found for %s", user);
1620 * If the secret is "@login", it means to check
1623 int login_secret = strcmp(secret, "@login") == 0;
1626 /* login option or secret is @login */
1636 if (secret[0] != 0 && !login_secret) {
1638 if ((cryptpap || strcmp(ppp_settings.passwd, secret) != 0)
1639 && strcmp(crypt(ppp_settings.passwd, secret), secret) != 0)
1674 BZERO(secret, sizeof(secret));
1692 char secret[MAXWORDLEN];
1702 * Open the file of pap secrets and scan for a suitable secret.
1712 i = scan_authfile(f, "", our_name, secret, &addrs, &opts, filename, 0);
1713 ret = i >= 0 && secret[0] == 0;
1714 BZERO(secret, sizeof(secret));
1741 char secret[MAXWORDLEN];
1759 secret, NULL, NULL, filename, 0);
1764 strlcpy(passwd, secret, MAXSECRETLEN);
1765 BZERO(secret, sizeof(secret));
1810 * secret that we could possibly use for authenticating `client'
1858 * secret that we could possibly use for authenticating `client'
1900 * get_secret - open the CHAP secret file and return the secret
1904 int get_secret(ppp_pcb *pcb, const char *client, const char *server, char *secret, int *secret_len, int am_server) {
1919 MEMCPY(secret, pcb->settings.passwd, len);
1947 ppp_error("Can't open chap secret file %s: %m", filename);
1970 MEMCPY(secret, secbuf, len);
1982 * get_srp_secret - open the SRP secret file and return the secret
1987 get_srp_secret(unit, client, server, secret, am_server)
1991 char *secret;
2000 strlcpy(secret, ppp_settings.passwd, MAXWORDLEN);
2007 ppp_error("Can't open srp secret file %s: %m", filename);
2012 secret[0] = '\0';
2013 ret = scan_authfile(fp, client, server, secret, &addrs, &opts,
2288 * check_access - complain if a secret file has too-liberal permissions.
2298 ppp_warn("cannot stat secret file %s: %m", filename);
2300 ppp_warn("Warning - secret file %s has world and/or group access",
2306 * scan_authfile - Scan an authorization file for a secret suitable
2308 * if no secret is found, otherwise >= 0. The return value has
2309 * NONWILD_CLIENT set if the secret didn't have "*" for the client, and
2310 * NONWILD_SERVER set if the secret didn't have "*" for the server.
2315 * We assume secret is NULL or points to MAXWORDLEN bytes of space.
2316 * Flags are non-zero if we need two colons in the secret in order to
2320 scan_authfile(f, client, server, secret, addrs, opts, filename, flags)
2324 char *secret;
2389 * Get the secret.
2404 if (secret != NULL) {
2406 * Special syntax: @/pathname means read secret from file.
2411 ppp_warn("can't open indirect secret file %s", atfile);
2416 ppp_warn("no secret in indirect secret file %s", atfile);
2450 if (secret != NULL)
2451 strlcpy(secret, lsecret, MAXWORDLEN);