Lines Matching refs:secret
4 as command line arguments, prompts for the user's secret pass phrase,
98 static void getsecret FUNCTION((secret, promptextra, retype), char *secret AND char *promptextra AND int flags)
101 if (!opiereadpass(secret, OPIE_SECRET_MAX, 0)) {
105 if (secret[0] && (flags & 1)) {
112 memset(secret, 0, OPIE_SECRET_MAX + 1);
115 if (verify[0] && strcmp(verify, secret)) {
118 memset(secret, 0, OPIE_SECRET_MAX + 1);
123 if (!(flags & 2) && !aflag && opiepasscheck(secret)) {
124 memset(secret, 0, OPIE_SECRET_MAX + 1);
138 char secret[OPIE_SECRET_MAX + 1], newsecret[OPIE_SECRET_MAX + 1];
249 fprintf(stderr, "Warning: Continuing could disclose your secret pass phrase to an attacker!\n");
257 getsecret(secret, "old ", 1);
259 getsecret(secret, "old ", 0);
263 strcpy(newsecret, secret);
279 getsecret(secret, "", 1);
281 getsecret(secret, "", 0);
284 /* Crunch seed and secret password into starting key normally */
285 if (opiekeycrunch(algorithm, &key, seed, secret)) {
338 memset(secret, 0, sizeof(secret));
343 memset(secret, 0, sizeof(secret));