config_method_ttls is now descendant of config_method_tls
This commit is contained in:
@@ -139,15 +139,15 @@ void eap::peer_ttls_ui::invoke_identity_ui(
|
||||
const config_provider &cfg_prov(cfg.m_providers.front());
|
||||
config_method_ttls *cfg_method = dynamic_cast<config_method_ttls*>(cfg_prov.m_methods.front().get());
|
||||
assert(cfg_method);
|
||||
config_method_pap *cfg_inner_pap = dynamic_cast<config_method_pap*>(cfg_method->m_inner.get());
|
||||
config_method_with_cred *cfg_inner = dynamic_cast<config_method_with_cred*>(cfg_method->m_inner.get());
|
||||
|
||||
if (dwFlags & EAP_FLAG_GUEST_ACCESS) {
|
||||
// Disable credential saving for guests.
|
||||
cfg_method->m_outer.m_allow_save = false;
|
||||
if (cfg_inner_pap)
|
||||
cfg_inner_pap->m_allow_save = false;
|
||||
cfg_method->m_allow_save = false;
|
||||
if (cfg_inner)
|
||||
cfg_inner->m_allow_save = false;
|
||||
else
|
||||
assert(0); // Unsupported inner authentication method type.
|
||||
assert(0); // Missing inner configuration.
|
||||
}
|
||||
|
||||
// Initialize application.
|
||||
|
@@ -125,7 +125,7 @@ wxTTLSConfigWindow::wxTTLSConfigWindow(const eap::config_provider &prov, eap::co
|
||||
m_outer_identity = new wxTTLSConfigPanel(m_prov, m_cfg, this);
|
||||
sb_content->Add(m_outer_identity, 0, wxALL|wxEXPAND, 5);
|
||||
|
||||
m_tls = new wxTLSConfigPanel(m_prov, m_cfg.m_outer, pszCredTarget, this);
|
||||
m_tls = new wxTLSConfigPanel(m_prov, m_cfg, pszCredTarget, this);
|
||||
sb_content->Add(m_tls, 0, wxALL|wxEXPAND, 5);
|
||||
|
||||
wxSize size = sb_content->CalcMin();
|
||||
|
Reference in New Issue
Block a user