Lines Matching defs:auth
59 static int auth = -1;
61 messagef((state->id, NiL, -8, "auth(%d,%s,%s) call", fd, path, arg));
71 messagef((state->id, NiL, -1, "auth: `%-.*s': KEY_SEND write error", n - 1, buf));
76 messagef((state->id, NiL, -1, "auth: KEY_SEND read error"));
86 messagef((state->id, NiL, -1, "auth: %s: stat error", path));
116 messagef((state->id, NiL, -1, "auth: `%-.*s': key write error", n - 1, tmp));
121 messagef((state->id, NiL, -1, "auth: key read error"));
141 messagef((state->id, NiL, -1, "auth: %s: challenge directory error", tmp));
149 if (auth < 0) auth = (unsigned int)CSTOSS(m, 0) % AUTH_BASE;
150 n = auth;
153 if (++auth >= AUTH_BASE) auth = 0;
154 if (auth == n)
156 messagef((state->id, NiL, -1, "auth: %s: challenge directory full", tmp));
159 s = b + sfsprintf(b, sizeof(tmp) - (b - tmp), "%03d", auth);
165 messagef((state->id, NiL, -1, "auth: `%s': challenge syntax error", num));
172 messagef((state->id, NiL, -1, "auth: %s: challenge chmod error", tmp));
195 messagef((state->id, NiL, -1, "auth: `%s': ack write error", tmp));
200 messagef((state->id, NiL, -1, "auth: ack read error"));
205 messagef((state->id, NiL, -1, "auth: %s: challenge remove error", tmp));
211 messagef((state->id, NiL, -8, "auth(%d,%s,%s) = 0", fd, path, arg));
230 messagef((state->id, NiL, -1, "auth: %s: challenge touch error", path));
235 messagef((state->id, NiL, -1, "auth: %s: challenge stat error", path));