Lines Matching defs:secret

595 		error("No secret found for PAP login");
1003 "but I couldn't find any suitable secret (password) for it to use to do so.");
1080 char secret[MAXWORDLEN];
1111 * Open the file of pap secrets and scan for a suitable secret
1123 if (scan_authfile(f, user, our_name, secret, &addrs, &opts, filename) < 0) {
1124 warn("no PAP secret found for %s", user);
1128 } else if (secret[0] != '\0') {
1130 if ((!cryptpap && strcmp(passwd, secret) == 0)
1131 || strcmp(crypt(passwd, secret), secret) == 0)
1174 BZERO(secret, sizeof(secret));
1442 char secret[MAXWORDLEN];
1445 * Open the file of pap secrets and scan for a suitable secret.
1454 i = scan_authfile(f, "", our_name, secret, &addrs, &opts, filename);
1455 ret = i >= 0 && secret[0] == '\0';
1456 BZERO(secret, sizeof(secret));
1483 char secret[MAXWORDLEN];
1501 secret, NULL, NULL, filename);
1506 (void) strlcpy(passwd, secret, MAXSECRETLEN);
1507 BZERO(secret, sizeof(secret));
1553 * have_chap_secret - check whether we have a CHAP file with a secret
1595 * get_secret - open the CHAP secret file and return the secret
1605 get_secret(unit, client, server, secret, secret_len, am_server)
1609 char *secret;
1633 error("Can't open chap secret file %s: %m", filename);
1662 /* Do not leave a temporary copy of the secret on the stack. */
1663 BCOPY(secbuf, secret, len);
1898 * check_access - complain if a secret file has too-liberal permissions.
1908 warn("cannot stat secret file %s: %m", filename);
1910 warn("Warning - secret file %s has world and/or group access",
1917 * scan_authfile - Scan an authorization file for a secret suitable
1919 * no secret is found, otherwise >= 0. The return value has
1920 * NONWILD_CLIENT set if the secret didn't have "*" for the client,
1921 * and NONWILD_SERVER set if the secret didn't have "*" for the
1931 * We assume secret is NULL or points to MAXWORDLEN bytes of space.
1934 scan_authfile(f, client, server, secret, addrs, opts, filename)
1938 char *secret;
2010 * Get the secret.
2018 * Special syntax: @filename means read secret from file.
2032 warn("can't open indirect secret file %s: %m", atfile);
2037 warn("no secret in indirect secret file %s", atfile);
2043 if (secret != NULL)
2071 if (secret != NULL)
2072 (void) strlcpy(secret, lsecret, MAXWORDLEN);