method_eap: Add EAP Success/Failure support

Although, EapHost takes care for EAP Success and Failure packets for us,
it does so for the outer-most method only. When using EAP inside a TLS
tunnel, we are responsible for EAP Success and Failure packets ourselves.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2020-01-20 16:00:37 +01:00
parent e5e5f1c63e
commit 9d0e261bbe
3 changed files with 47 additions and 22 deletions

View File

@@ -319,9 +319,11 @@ namespace eap
///
enum class phase_t {
unknown = -1, ///< Unknown phase
identity = 0, ///< Send identity
init = 0, ///< Initialize
identity, ///< Send identity
inner, ///< Send inner method response
nak, ///< Send Legacy Nak response
finished, ///< EAP Success packet received
} m_phase; ///< What phase is our communication at?
};