Lines Matching defs:q_id
158 eap2mschap_access_request(void *ctx, u_int q_id, const u_char *reqpkt,
171 if ((req = eap_recv(self, q_id, pkt)) == NULL)
179 module_accsreq_next(self->base, q_id, reqpkt, reqpktlen);
184 module_accsreq_aborted(self->base, q_id);
188 eap2mschap_next_response(void *ctx, u_int q_id, const u_char *respkt,
196 if (req->q_id == q_id)
200 module_accsreq_answer(self->base, q_id, respkt, respktlen);
206 q_id);
214 module_accsreq_aborted(self->base, q_id);
252 access_request_new(struct eap2mschap *self, u_int q_id)
261 req->q_id = q_id;
290 eap_recv(struct eap2mschap *self, u_int q_id, RADIUS_PACKET *pkt)
307 "authenticator", q_id);
313 log_warnx("q=%u Received EAP message is too big %zu", q_id,
328 "received length %zu eap.length=%u", q_id, msgsiz,
333 EAP2MSCHAP_DBG("q=%u Received EAP code=%d type=%d", q_id,
338 q_id, (unsigned)eap->code);
349 if ((req = access_request_new(self, q_id)) == NULL)
357 q_id, hex_string(req->state, sizeof(req->state),
394 module_accsreq_answer(self->base, req->q_id,
409 "proper state attribute", q_id, eap->value[0]);
416 "the state=%s", q_id, eap->value[0], hex_string(state,
421 req->q_id = q_id;
424 log_info("q=%u EAP state=%s NAK received", q_id,
426 eap_send_reject(req, pkt, q_id);
432 "%zu eap.length=%u", q_id,
442 q_id, hex_string(state, statesiz, buf2, sizeof(buf2)),
480 "chap.length=%u valuesize=%u", req->q_id,
487 "CHAP-Response", req->q_id, hex_string(req->state,
502 log_info("q=%u EAP state=%s username=%s", req->q_id,
529 module_accsreq_next(self->base, req->q_id, radius_get_data(pkt),
544 "CHAP-Success but EAP code is wrong %u", req->q_id,
596 module_accsreq_answer(self->base, req->q_id,
609 "(chap.code=%d) in EAP CHAP state=%s", req->q_id, hex_string(
646 "MS-CHAP2-Success attribute", req->q_id,
690 module_accsreq_answer(req->eap2mschap->base, req->q_id,
706 req->q_id, code);
713 module_accsreq_aborted(self->base, req->q_id);
719 eap_send_reject(struct access_req *req, RADIUS_PACKET *reqp, u_int q_id)
731 module_accsreq_aborted(req->eap2mschap->base, q_id);
740 module_accsreq_answer(req->eap2mschap->base, q_id,