EAP-TTLS inner method no longer needs to have support for configured credentials
This commit is contained in:
@@ -172,7 +172,7 @@ namespace eap {
|
||||
std::wstring get_public_identity(const credentials_ttls &cred) const;
|
||||
|
||||
public:
|
||||
std::unique_ptr<config_method_with_cred> m_inner; ///< Inner authentication configuration
|
||||
std::wstring m_anonymous_identity; ///< Anonymous identity
|
||||
std::unique_ptr<config_method> m_inner; ///< Inner authentication configuration
|
||||
std::wstring m_anonymous_identity; ///< Anonymous identity
|
||||
};
|
||||
}
|
||||
|
@@ -172,7 +172,7 @@ namespace eap
|
||||
/// Combine credentials in the following order:
|
||||
///
|
||||
/// 1. Cached credentials
|
||||
/// 2. Pre-configured credentials
|
||||
/// 2. Configured credentials (if \p cfg is derived from config_method_with_cred)
|
||||
/// 3. Stored credentials
|
||||
///
|
||||
/// \param[in] cred_cached Cached credentials (optional, can be \c NULL, must be credentials_ttls* type)
|
||||
@@ -185,9 +185,9 @@ namespace eap
|
||||
/// - \c source_storage Credentials were loaded from Windows Credential Manager
|
||||
///
|
||||
virtual source_t 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);
|
||||
|
||||
public:
|
||||
std::unique_ptr<credentials> m_inner; ///< Inner credentials
|
||||
|
@@ -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