Lines Matching refs:skey
38 #include "skey.h"
42 /* Issue a skey challenge for user 'name'. If successful,
43 * fill in the caller's skey structure and return 0. If unsuccessful
49 int getskeyprompt(struct skey *mp, char *name, char *prompt)
73 /* Return a skey challenge string for user 'name'. If successful,
74 * fill in the caller's skey structure and return 0. If unsuccessful
80 int skeychallenge(struct skey *mp, const char *name, char *ss, size_t sslen)
126 int skeylookup(struct skey *mp, const char *name)
189 int skeygetnext(struct skey *mp)
241 int skeyverify(struct skey *mp, char *response)
355 struct skey skey;
358 i = skeylookup(&skey, username);
360 if (skey.keyfile != NULL) {
361 fclose(skey.keyfile);
362 skey.keyfile = NULL;
375 struct skey skey;
377 i = skeychallenge(&skey, username, str, sizeof str);
381 if (skey.keyfile != NULL) {
382 fclose(skey.keyfile);
383 skey.keyfile = NULL;
398 struct skey skey;
400 i = skeylookup (&skey, username);
404 if (skeyverify (&skey, passwd) == 0)
405 return skey.n;
447 struct skey skey;
452 struct skey skey;
456 i = skeychallenge(&skey, username, skeyprompt, sizeof skeyprompt);
577 if (i == 0 && skeyverify(&skey, pbuf) == 0) {
578 if (skey.n < 5) {
581 skey.n);
598 int skeyzero(struct skey *mp, char *response)