method_tls_tunnel: Declare authentication success according to EAP

It is usually the outer EAP-Success/Failure message that confirm the
authentication is gracefully over.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-01-29 09:10:13 +01:00
parent 1290d83b9d
commit d2a0c034c1

View File

@ -550,7 +550,7 @@ EapPeerMethodResponseAction eap::method_tls_tunnel::process_request_packet(
m_module.log_event(&EAPMETHOD_TLS_QUERY_FAILED, event_data((unsigned int)SECPKG_ATTR_CONNECTION_INFO), event_data(status), event_data::blank);
m_phase = phase_t::finished;
m_cfg.m_last_status = config_method::status_t::success;
m_cfg.m_last_status = config_method::status_t::auth_failed; // Blame protocol if we fail beyond this point.
method_mschapv2_diameter *inner_mschapv2 = dynamic_cast<method_mschapv2_diameter*>(m_inner.get());
if (inner_mschapv2) {