Lines Matching defs:secret

277 		syslog(LOG_ERR, "No secret found for PAP login");
552 option_error("peer authentication required but no suitable secret(s) found\n");
629 char secret[MAXWORDLEN];
642 * Open the file of pap secrets and scan for a suitable secret
656 secret, &addrs, filename) < 0
657 || (secret[0] != 0 && (cryptpap || strcmp(passwd, secret) != 0)
658 && strcmp(crypt(passwd, secret), secret) != 0)) {
700 EXPLICIT_BZERO(secret, sizeof(secret));
786 char secret[MAXWORDLEN];
789 * Open the file of pap secrets and scan for a suitable secret.
799 i = scan_authfile(f, "", our_name, (u_int32_t)0, secret, &addrs, filename);
800 ret = i >= 0 && (i & NONWILD_CLIENT) != 0 && secret[0] == 0;
801 EXPLICIT_BZERO(secret, sizeof(secret));
824 char secret[MAXWORDLEN];
833 (u_int32_t)0, secret, NULL, filename);
838 strlcpy(passwd, secret, MAXSECRETLEN);
839 EXPLICIT_BZERO(secret, sizeof(secret));
874 * secret that we could possibly use for authenticating `client'
905 * get_secret - open the CHAP secret file and return the secret
911 char *secret, int *secret_len, int save_addrs)
925 syslog(LOG_ERR, "Can't open chap secret file %s: %m", filename);
944 BCOPY(secbuf, secret, len);
1084 * check_access - complain if a secret file has too-liberal permissions.
1092 syslog(LOG_WARNING, "cannot stat secret file %s: %m", filename);
1094 syslog(LOG_WARNING, "Warning - secret file %s has world and/or group access", filename);
1100 * scan_authfile - Scan an authorization file for a secret suitable
1102 * if no secret is found, otherwise >= 0. The return value has
1103 * NONWILD_CLIENT set if the secret didn't have "*" for the client, and
1104 * NONWILD_SERVER set if the secret didn't have "*" for the server.
1110 char *secret, struct wordlist **addrs, char *filename)
1167 * Get the secret.
1175 * Special syntax: @filename means read secret from file.
1180 syslog(LOG_WARNING, "can't open indirect secret file %s",
1186 syslog(LOG_WARNING, "no secret in indirect secret file %s",
1193 if (secret != NULL)
1235 if (secret != NULL)
1236 strlcpy(secret, lsecret, MAXWORDLEN);