eap: add accessor for method success

This commit is contained in:
Tim Kourt 2018-02-21 16:47:19 -08:00 committed by Denis Kenzior
parent 7fd6803c7a
commit ad94752170
2 changed files with 6 additions and 0 deletions

View File

@ -438,6 +438,11 @@ void eap_method_event(struct eap_state *eap, unsigned int id, const void *data)
eap->event_func(id, data, eap->user_data);
}
bool eap_method_is_success(struct eap_state *eap)
{
return eap->method_success;
}
void eap_method_success(struct eap_state *eap)
{
eap->method_success = true;

View File

@ -139,6 +139,7 @@ void eap_set_key_material(struct eap_state *eap,
void eap_start_complete_timeout(struct eap_state *eap);
bool eap_method_is_success(struct eap_state *eap);
void eap_method_success(struct eap_state *eap);
void eap_method_error(struct eap_state *eap);
void eap_method_event(struct eap_state *eap, unsigned int type,