EAP-TTLS inner method no longer needs to have support for configured credentials
This commit is contained in:
@@ -257,7 +257,8 @@ const wchar_t* eap::config_method_ttls::get_method_str() const
|
||||
eap::credentials* eap::config_method_ttls::make_credentials() const
|
||||
{
|
||||
credentials_ttls *cred = new credentials_ttls(m_module);
|
||||
cred->m_inner.reset(m_inner->make_credentials());
|
||||
auto *cfg_inner = dynamic_cast<const config_method_with_cred*>(m_inner.get());
|
||||
cred->m_inner.reset(cfg_inner ? cfg_inner->make_credentials() : nullptr);
|
||||
return cred;
|
||||
}
|
||||
|
||||
|
@@ -179,9 +179,9 @@ wstring eap::credentials_ttls::get_identity() const
|
||||
|
||||
|
||||
eap::credentials::source_t eap::credentials_ttls::combine(
|
||||
_In_ const credentials *cred_cached,
|
||||
_In_ const config_method_with_cred &cfg,
|
||||
_In_opt_z_ LPCTSTR pszTargetName)
|
||||
_In_opt_ const credentials *cred_cached,
|
||||
_In_ const config_method &cfg,
|
||||
_In_opt_z_ LPCTSTR pszTargetName)
|
||||
{
|
||||
// Combine outer credentials.
|
||||
source_t src_outer = credentials_tls::combine(
|
||||
|
Reference in New Issue
Block a user