Exemplo n.º 1
0
static struct wpabuf * eap_aka_synchronization_failure(
    struct eap_aka_data *data, u8 id)
{
    struct eap_sim_msg *msg;

    data->num_id_req = 0;
    data->num_notification = 0;

    wpa_printf(MSG_DEBUG, "Generating EAP-AKA Synchronization-Failure "
               "(id=%d)", id);
    msg = eap_sim_msg_init(EAP_CODE_RESPONSE, id, data->eap_method,
                           EAP_AKA_SUBTYPE_SYNCHRONIZATION_FAILURE);
    wpa_printf(MSG_DEBUG, "   AT_AUTS");
    eap_sim_msg_add_full(msg, EAP_SIM_AT_AUTS, data->auts,
                         EAP_AKA_AUTS_LEN);
    return eap_sim_msg_finish(msg, NULL, NULL, 0);
}
Exemplo n.º 2
0
static u8 * eap_aka_synchronization_failure(struct eap_aka_data *data,
					    const struct eap_hdr *req,
					    size_t *respDataLen)
{
	struct eap_sim_msg *msg;

	data->num_id_req = 0;
	data->num_notification = 0;

	wpa_printf(MSG_DEBUG, "Generating EAP-AKA Synchronization-Failure "
		   "(id=%d)", req->identifier);
	msg = eap_sim_msg_init(EAP_CODE_RESPONSE, req->identifier,
			       EAP_TYPE_AKA,
			       EAP_AKA_SUBTYPE_SYNCHRONIZATION_FAILURE);
	wpa_printf(MSG_DEBUG, "   AT_AUTS");
	eap_sim_msg_add_full(msg, EAP_SIM_AT_AUTS, data->auts,
			     EAP_AKA_AUTS_LEN);
	return eap_sim_msg_finish(msg, respDataLen, NULL, NULL, 0);
}