peer: Move all generic methods upstream from peer_tls_base

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2020-02-05 12:53:36 +01:00
parent 33e765adcd
commit 6511d826a0
13 changed files with 369 additions and 443 deletions

View File

@@ -56,6 +56,9 @@ namespace eap
virtual void shutdown();
protected:
///
/// @copydoc eap::peer::combine_credentials()
///
_Success_(return != 0) virtual const config_method_with_cred* combine_credentials(
_In_ DWORD dwFlags,
_In_ const config_connection &cfg,
@@ -85,9 +88,9 @@ namespace eap
protected:
///
/// @copydoc eap::peer_tls_base::make_method()
/// @copydoc eap::peer::make_method()
///
virtual method* make_method(_In_ config_method_tls &cfg, _In_ credentials_tls &cred);
virtual method* make_method(_In_ config_method &cfg, _In_ credentials &cred);
};
/// @}

View File

@@ -171,7 +171,7 @@ eap::config_method* eap::peer_ttls::make_config()
}
eap::method* eap::peer_ttls::make_method(_In_ config_method_tls &cfg, _In_ credentials_tls &cred)
eap::method* eap::peer_ttls::make_method(_In_ config_method &cfg, _In_ credentials &cred)
{
unique_ptr<method> meth_inner;
auto &cfg_ttls = dynamic_cast<config_method_ttls&>(cfg);