diff --git a/lib/EAPBase/include/Config.h b/lib/EAPBase/include/Config.h index 58ca4e5..7be0678 100644 --- a/lib/EAPBase/include/Config.h +++ b/lib/EAPBase/include/Config.h @@ -47,7 +47,7 @@ namespace eap /// /// Base class for the list of providers configuration storage /// - class config_providers; + class config_provider_list; } /// @@ -484,7 +484,7 @@ namespace eap }; - class config_providers : public config + class config_provider_list : public config { public: /// @@ -492,21 +492,21 @@ namespace eap /// /// \param[in] mod EAP module to use for global services /// - config_providers(_In_ module &mod); + config_provider_list(_In_ module &mod); /// /// Copies configuration /// /// \param[in] other Configuration to copy from /// - config_providers(_In_ const config_providers &other); + config_provider_list(_In_ const config_provider_list &other); /// /// Moves configuration /// /// \param[in] other Configuration to move from /// - config_providers(_Inout_ config_providers &&other); + config_provider_list(_Inout_ config_provider_list &&other); /// /// Copies configuration @@ -515,7 +515,7 @@ namespace eap /// /// \returns Reference to this object /// - config_providers& operator=(_In_ const config_providers &other); + config_provider_list& operator=(_In_ const config_provider_list &other); /// /// Moves configuration @@ -524,7 +524,7 @@ namespace eap /// /// \returns Reference to this object /// - config_providers& operator=(_Inout_ config_providers &&other); + config_provider_list& operator=(_Inout_ config_provider_list &&other); /// /// Clones configuration diff --git a/lib/EAPBase/include/Session.h b/lib/EAPBase/include/Session.h index 64fc07c..1a936c4 100644 --- a/lib/EAPBase/include/Session.h +++ b/lib/EAPBase/include/Session.h @@ -340,7 +340,7 @@ namespace eap public: module &m_module; ///< EAP module - config_providers m_cfg; ///< Providers configuration + config_provider_list m_cfg; ///< Providers configuration credentials_type m_cred; ///< User credentials interactive_request_type m_intreq; ///< Interactive UI request data DWORD m_eap_flags; ///< A combination of EAP flags that describe the new EAP authentication session behavior diff --git a/lib/EAPBase/src/Config.cpp b/lib/EAPBase/src/Config.cpp index 21294d7..9e4debc 100644 --- a/lib/EAPBase/src/Config.cpp +++ b/lib/EAPBase/src/Config.cpp @@ -658,29 +658,29 @@ void eap::config_provider::operator>>(_Inout_ cursor_in &cursor) ////////////////////////////////////////////////////////////////////// -// eap::config_providers +// eap::config_provider_list ////////////////////////////////////////////////////////////////////// -eap::config_providers::config_providers(_In_ module &mod) : config(mod) +eap::config_provider_list::config_provider_list(_In_ module &mod) : config(mod) { } -eap::config_providers::config_providers(_In_ const config_providers &other) : +eap::config_provider_list::config_provider_list(_In_ const config_provider_list &other) : m_providers(other.m_providers), config(other) { } -eap::config_providers::config_providers(_Inout_ config_providers &&other) : +eap::config_provider_list::config_provider_list(_Inout_ config_provider_list &&other) : m_providers(std::move(other.m_providers)), config(std::move(other)) { } -eap::config_providers& eap::config_providers::operator=(_In_ const config_providers &other) +eap::config_provider_list& eap::config_provider_list::operator=(_In_ const config_provider_list &other) { if (this != &other) { (config&)*this = other; @@ -691,7 +691,7 @@ eap::config_providers& eap::config_providers::operator=(_In_ const config_provid } -eap::config_providers& eap::config_providers::operator=(_Inout_ config_providers &&other) +eap::config_provider_list& eap::config_provider_list::operator=(_Inout_ config_provider_list &&other) { if (this != &other) { (config&&)*this = std::move(other); @@ -702,13 +702,13 @@ eap::config_providers& eap::config_providers::operator=(_Inout_ config_providers } -eap::config* eap::config_providers::clone() const +eap::config* eap::config_provider_list::clone() const { - return new config_providers(*this); + return new config_provider_list(*this); } -bool eap::config_providers::save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **ppEapError) const +bool eap::config_provider_list::save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **ppEapError) const { if (!config::save(pDoc, pConfigRoot, ppEapError)) return false; @@ -746,7 +746,7 @@ bool eap::config_providers::save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *p } -bool eap::config_providers::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **ppEapError) +bool eap::config_provider_list::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **ppEapError) { assert(pConfigRoot); assert(ppEapError); @@ -781,14 +781,14 @@ bool eap::config_providers::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR } -void eap::config_providers::operator<<(_Inout_ cursor_out &cursor) const +void eap::config_provider_list::operator<<(_Inout_ cursor_out &cursor) const { config::operator<<(cursor); cursor << m_providers; } -size_t eap::config_providers::get_pk_size() const +size_t eap::config_provider_list::get_pk_size() const { return config::get_pk_size() + @@ -796,7 +796,7 @@ size_t eap::config_providers::get_pk_size() const } -void eap::config_providers::operator>>(_Inout_ cursor_in &cursor) +void eap::config_provider_list::operator>>(_Inout_ cursor_in &cursor) { config::operator>>(cursor); diff --git a/lib/EAPBase_UI/include/EAP_UI.h b/lib/EAPBase_UI/include/EAP_UI.h index b39a1a9..d79ed15 100644 --- a/lib/EAPBase_UI/include/EAP_UI.h +++ b/lib/EAPBase_UI/include/EAP_UI.h @@ -109,7 +109,7 @@ public: /// \param[inout] cfg Providers configuration data /// \param[in] parent Parent window /// - wxEAPConfigDialog(eap::config_providers &cfg, wxWindow* parent) : + wxEAPConfigDialog(eap::config_provider_list &cfg, wxWindow* parent) : m_cfg(cfg), wxEAPConfigDialogBase(parent) { @@ -152,7 +152,7 @@ protected: protected: - eap::config_providers &m_cfg; ///< EAP providers configuration + eap::config_provider_list &m_cfg; ///< EAP providers configuration }; diff --git a/lib/TTLS/src/Module.cpp b/lib/TTLS/src/Module.cpp index 5456ea2..bafad72 100644 --- a/lib/TTLS/src/Module.cpp +++ b/lib/TTLS/src/Module.cpp @@ -82,7 +82,7 @@ bool eap::peer_ttls::get_identity( assert(ppEapError); // Unpack configuration. - config_providers cfg(*this); + config_provider_list cfg(*this); if (!unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError)) return false; else if (cfg.m_providers.empty() || cfg.m_providers.front().m_methods.empty()) { diff --git a/lib/TTLS_UI/src/Module.cpp b/lib/TTLS_UI/src/Module.cpp index 66f2fee..d0632ce 100644 --- a/lib/TTLS_UI/src/Module.cpp +++ b/lib/TTLS_UI/src/Module.cpp @@ -49,7 +49,7 @@ bool eap::peer_ttls_ui::config_xml2blob( UNREFERENCED_PARAMETER(dwFlags); // Load configuration from XML. - config_providers cfg(*this); + config_provider_list cfg(*this); if (!cfg.load(pConfigRoot, ppEapError)) return false; @@ -69,7 +69,7 @@ bool eap::peer_ttls_ui::config_blob2xml( UNREFERENCED_PARAMETER(dwFlags); // Unpack configuration. - config_providers cfg(*this); + config_provider_list cfg(*this); if (!unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError)) return false; @@ -87,7 +87,7 @@ bool eap::peer_ttls_ui::invoke_config_ui( _Out_ EAP_ERROR **ppEapError) { // Unpack configuration. - config_providers cfg(*this); + config_provider_list cfg(*this); if (dwConnectionDataInSize && !unpack(cfg, pConnectionDataIn, dwConnectionDataInSize, ppEapError)) return false; @@ -135,7 +135,7 @@ bool eap::peer_ttls_ui::invoke_identity_ui( _Out_ LPWSTR *ppwszIdentity, _Out_ EAP_ERROR **ppEapError) { - config_providers cfg(*this); + config_provider_list cfg(*this); if (!unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError)) return false; else if (cfg.m_providers.empty() || cfg.m_providers.front().m_methods.empty()) {