Lines Matching defs:counter
42 unsigned int counter, counter_too_small;
549 unsigned int counter;
562 counter = data->counter_too_small;
564 counter = data->counter;
566 wpa_printf(MSG_DEBUG, " *AT_COUNTER %d", counter);
567 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, counter, NULL, 0);
600 wpa_printf(MSG_DEBUG, " *AT_COUNTER %d", data->counter);
601 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, data->counter,
812 /* RFC 4186 specifies that counter is initialized to one after
815 data->counter = 0;
841 if (eattr.counter < 0 || (size_t) eattr.counter != data->counter) {
843 "message does not match with counter in reauth "
959 if (eattr.nonce_s == NULL || eattr.counter < 0) {
962 eattr.counter < 0 ? " AT_COUNTER" : "");
968 if (eattr.counter < 0 || (size_t) eattr.counter <= data->counter) {
970 wpa_printf(MSG_INFO, "EAP-SIM: (encr) Invalid counter "
971 "(%d <= %d)", eattr.counter, data->counter);
972 data->counter_too_small = eattr.counter;
990 data->counter = eattr.counter;
996 eap_sim_derive_keys_reauth(data->counter,
1013 if (data->counter > EAP_SIM_MAX_FAST_REAUTHS) {