Clean-up
This commit is contained in:
parent
bd7f3f4a38
commit
a8070e9bba
@ -124,23 +124,11 @@ void eap::method_ttls::get_result(
|
|||||||
method_tls::get_result(reason, ppResult);
|
method_tls::get_result(reason, ppResult);
|
||||||
|
|
||||||
if (m_phase == phase_application_data) {
|
if (m_phase == phase_application_data) {
|
||||||
|
|
||||||
// Get inner method result.
|
// Get inner method result.
|
||||||
EapPeerMethodResult result = {};
|
EapPeerMethodResult result = {};
|
||||||
m_inner->get_result(reason, &result);
|
m_inner->get_result(reason, &result);
|
||||||
|
|
||||||
if (result.fSaveConnectionData)
|
if (result.fSaveConnectionData)
|
||||||
ppResult->fSaveConnectionData = TRUE;
|
ppResult->fSaveConnectionData = TRUE;
|
||||||
|
|
||||||
if (reason == EapPeerMethodResultFailure) {
|
|
||||||
// Clear session resumption data.
|
|
||||||
#if EAP_TLS < EAP_TLS_SCHANNEL
|
|
||||||
m_cfg.m_session_id.clear();
|
|
||||||
m_cfg.m_master_secret.clear();
|
|
||||||
#else
|
|
||||||
// TODO: Research how a Schannel session context can be cleared not to resume.
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user