Lines Matching refs:skey
39 #include <skey.h>
57 struct skey skey;
171 rval = skeylookup(&skey, pp->pw_name);
178 exit(skeyzero(&skey, pp->pw_name));
181 printf("Old key: [%s] %s\n", skey_get_algorithm(), skey.seed);
184 * lets be nice if they have a skey.seed that
187 l = strlen(skey.seed);
189 lastc = skey.seed[l - 1];
191 (void)strlcpy(defaultseed, skey.seed,
197 (void)strlcpy(defaultseed, skey.seed,
223 printf("You need the 6 english words generated from the \"skey\" command.\n");
339 if ((skey.val = (char *)malloc(16 + 1)) == NULL)
344 (void)skeyzero(&skey, pp->pw_name);
346 if (skeylookup(&skey, pp->pw_name) == -1)
350 btoa8(skey.val, key);
357 if ((rval = flock(fileno(skey.keyfile), LOCK_EX|LOCK_NB)) == 0
369 (void)fprintf(skey.keyfile, "%s %04d %-16s %s %-21s\n",
370 pp->pw_name, n, seed, skey.val, tbuf);
372 (void)fprintf(skey.keyfile, "%s %s %04d %-16s %s %-21s\n",
373 pp->pw_name, skey_get_algorithm(), n, seed, skey.val, tbuf);
375 (void)fclose(skey.keyfile);
377 (void)printf("\nID %s skey is otp-%s %d %s\n", pp->pw_name,