Added method to enumerate EAP types contained in an EAP-Nak

This commit is contained in:
Tobias Brunner
2012-08-31 11:40:28 +02:00
parent cc4eec56f7
commit 576490ab09
2 changed files with 79 additions and 11 deletions
@@ -82,6 +82,14 @@ struct eap_payload_t {
*/
eap_type_t (*get_type) (eap_payload_t *this, u_int32_t *vendor);
/**
* Enumerate the EAP method types contained in an EAP-Nak (i.e. get_type()
* returns EAP_NAK).
*
* @return enumerator over (eap_type_t type, u_int32_t vendor)
*/
enumerator_t* (*get_types) (eap_payload_t *this);
/**
* Check if the EAP method type is encoded in the Expanded Type format.
*