Lines Matching refs:ap
102 Data(Authenticator *ap, int type, const unsigned char *d, int c)
118 *p++ = ap->type;
119 *p++ = ap->way;
133 kerberos4_init(Authenticator *ap __unused, int server)
152 kerberos4_send(Authenticator *ap)
196 if (!Data(ap, KRB_AUTH, (void *)lauth.dat, lauth.length)) {
206 if ((ap->way & AUTH_HOW_MASK) == AUTH_HOW_MUTUAL) {
238 kerberos4_is(Authenticator *ap, unsigned char *data, int cnt)
253 Data(ap, KRB_REJECT, "No local V4 Realm.", -1);
254 auth_finished(ap, AUTH_REJECT);
271 Data(ap, KRB_REJECT, krb_err_txt[r], -1);
272 auth_finished(ap, AUTH_REJECT);
281 Data(ap, KRB_ACCEPT, NULL, 0);
283 Data(ap, KRB_REJECT, "user is not authorized", -1);
284 auth_finished(ap, AUTH_USER);
289 Data(ap, KRB_RESPONSE, NULL, 0);
297 Data(ap, KRB_RESPONSE, NULL, 0);
326 Data(ap, KRB_RESPONSE, challenge, sizeof(challenge));
333 Data(ap, KRB_REJECT, NULL, 0);
339 kerberos4_reply(Authenticator *ap, unsigned char *data, int cnt)
358 if ((ap->way & AUTH_HOW_MASK) == AUTH_HOW_MUTUAL) {
363 Data(ap, KRB_CHALLENGE, NULL, 0);
365 Data(ap, KRB_CHALLENGE, session_key,
375 auth_finished(ap, AUTH_USER);
393 auth_finished(ap, AUTH_USER);
404 kerberos4_status(Authenticator *ap __unused, char *nam, int level)