diff --git a/lib/EAPBase_UI/include/EAP_UI.h b/lib/EAPBase_UI/include/EAP_UI.h index a7ebdd4..d4bff03 100644 --- a/lib/EAPBase_UI/include/EAP_UI.h +++ b/lib/EAPBase_UI/include/EAP_UI.h @@ -904,12 +904,12 @@ protected: m_password ->Enable(false); } - return wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPassPanelBase>::TransferDataToWindow(); + return wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataToWindow(); } virtual bool TransferDataFromWindow() { - if (!wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPassPanelBase>::TransferDataFromWindow()) + if (!wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataFromWindow()) return false; m_cred.m_identity = m_identity->GetValue(); diff --git a/lib/EAPBase_UI/res/wxEAP_UI.cpp b/lib/EAPBase_UI/res/wxEAP_UI.cpp index 62c0500..65a1d98 100644 --- a/lib/EAPBase_UI/res/wxEAP_UI.cpp +++ b/lib/EAPBase_UI/res/wxEAP_UI.cpp @@ -349,7 +349,7 @@ wxEAPCredentialsConfigPanelBase::~wxEAPCredentialsConfigPanelBase() } -wxEAPCredentialsPassPanelBase::wxEAPCredentialsPassPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxEAPCredentialsPanelBase( parent, id, pos, size, style ) +wxEAPCredentialsPromptPassPanelBase::wxEAPCredentialsPromptPassPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxEAPCredentialsPanelBase( parent, id, pos, size, style ) { wxStaticBoxSizer* sb_credentials; sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Client Credentials") ), wxVERTICAL ); @@ -410,7 +410,7 @@ wxEAPCredentialsPassPanelBase::wxEAPCredentialsPassPanelBase( wxWindow* parent, this->Layout(); } -wxEAPCredentialsPassPanelBase::~wxEAPCredentialsPassPanelBase() +wxEAPCredentialsPromptPassPanelBase::~wxEAPCredentialsPromptPassPanelBase() { } diff --git a/lib/EAPBase_UI/res/wxEAP_UI.fbp b/lib/EAPBase_UI/res/wxEAP_UI.fbp index bfa3f09..495a924 100644 --- a/lib/EAPBase_UI/res/wxEAP_UI.fbp +++ b/lib/EAPBase_UI/res/wxEAP_UI.fbp @@ -2377,7 +2377,7 @@ wxID_ANY - wxEAPCredentialsPassPanelBase + wxEAPCredentialsPromptPassPanelBase 500,-1 wxEAPCredentialsPanelBase; ../include/wxEAP_UIBase.h diff --git a/lib/EAPBase_UI/res/wxEAP_UI.h b/lib/EAPBase_UI/res/wxEAP_UI.h index 7e13613..78f56a5 100644 --- a/lib/EAPBase_UI/res/wxEAP_UI.h +++ b/lib/EAPBase_UI/res/wxEAP_UI.h @@ -192,9 +192,9 @@ class wxEAPCredentialsConfigPanelBase : public wxPanel }; /////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPCredentialsPassPanelBase +/// Class wxEAPCredentialsPromptPassPanelBase /////////////////////////////////////////////////////////////////////////////// -class wxEAPCredentialsPassPanelBase : public wxEAPCredentialsPanelBase +class wxEAPCredentialsPromptPassPanelBase : public wxEAPCredentialsPanelBase { private: @@ -209,8 +209,8 @@ class wxEAPCredentialsPassPanelBase : public wxEAPCredentialsPanelBase public: - wxEAPCredentialsPassPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxEAPCredentialsPassPanelBase(); + wxEAPCredentialsPromptPassPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); + ~wxEAPCredentialsPromptPassPanelBase(); }; diff --git a/lib/MSCHAPv2_UI/include/MSCHAPv2_UI.h b/lib/MSCHAPv2_UI/include/MSCHAPv2_UI.h index be228ee..8d7e3e4 100644 --- a/lib/MSCHAPv2_UI/include/MSCHAPv2_UI.h +++ b/lib/MSCHAPv2_UI/include/MSCHAPv2_UI.h @@ -24,7 +24,7 @@ /// /// MSCHAPv2 credential configuration panel /// -typedef wxEAPCredentialsConfigPanel > wxMSCHAPv2CredentialsConfigPanel; +typedef wxEAPCredentialsConfigPanel > wxMSCHAPv2CredentialsConfigPanel; /// /// MSCHAPv2 configuration panel @@ -34,7 +34,7 @@ class wxMSCHAPv2ConfigPanel; /// /// MSCHAPv2 credential entry panel /// -typedef wxPasswordCredentialsPanel wxMSCHAPv2CredentialsPanel; +typedef wxPasswordCredentialsPanel wxMSCHAPv2CredentialsPanel; #pragma once diff --git a/lib/PAP_UI/include/PAP_UI.h b/lib/PAP_UI/include/PAP_UI.h index c41ac3b..4a6f95c 100644 --- a/lib/PAP_UI/include/PAP_UI.h +++ b/lib/PAP_UI/include/PAP_UI.h @@ -24,7 +24,7 @@ /// /// PAP credential configuration panel /// -typedef wxEAPCredentialsConfigPanel > wxPAPCredentialsConfigPanel; +typedef wxEAPCredentialsConfigPanel > wxPAPCredentialsConfigPanel; /// /// PAP configuration panel @@ -34,7 +34,7 @@ class wxPAPConfigPanel; /// /// PAP credential entry panel /// -typedef wxPasswordCredentialsPanel wxPAPCredentialsPanel; +typedef wxPasswordCredentialsPanel wxPAPCredentialsPanel; #pragma once diff --git a/lib/TLS_UI/include/TLS_UI.h b/lib/TLS_UI/include/TLS_UI.h index e80859a..988d4af 100644 --- a/lib/TLS_UI/include/TLS_UI.h +++ b/lib/TLS_UI/include/TLS_UI.h @@ -58,7 +58,7 @@ class wxFQDNListValidator; /// /// TLS credential panel /// -class wxTLSCredentialsPanel; +class wxEAPCredentialsPromptTLSPanel; /// /// TLS server trust configuration panel @@ -68,7 +68,7 @@ class wxTLSServerTrustPanel; /// /// TLS credentials configuration panel /// -typedef wxEAPCredentialsConfigPanel wxTLSCredentialsConfigPanel; +typedef wxEAPCredentialsConfigPanel wxEAPCredentialsPromptTLSConfigPanel; /// /// TLS configuration panel @@ -248,7 +248,7 @@ protected: }; -class wxTLSCredentialsPanel : public wxEAPCredentialsPanel +class wxEAPCredentialsPromptTLSPanel : public wxEAPCredentialsPanel { public: /// @@ -260,7 +260,7 @@ public: /// \param[in] parent Parent window /// \param[in] is_config Is this panel used to pre-enter credentials? When \c true, the "Remember" checkbox is always selected and disabled. /// - wxTLSCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, eap::credentials_tls &cred, wxWindow* parent, bool is_config = false); + wxEAPCredentialsPromptTLSPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, eap::credentials_tls &cred, wxWindow* parent, bool is_config = false); protected: /// \cond internal @@ -333,5 +333,5 @@ protected: const eap::config_provider &m_prov; ///< EAP provider eap::config_method_tls &m_cfg; ///< TLS configuration wxTLSServerTrustPanel *m_server_trust; ///< Server trust configuration panel - wxTLSCredentialsConfigPanel *m_credentials; ///< Credentials configuration panel + wxEAPCredentialsPromptTLSConfigPanel *m_credentials; ///< Credentials configuration panel }; diff --git a/lib/TLS_UI/res/wxTLS_UI.cpp b/lib/TLS_UI/res/wxTLS_UI.cpp index a4d1d54..fb4d09a 100644 --- a/lib/TLS_UI/res/wxTLS_UI.cpp +++ b/lib/TLS_UI/res/wxTLS_UI.cpp @@ -114,7 +114,7 @@ wxEAPTLSServerTrustConfigPanelBase::~wxEAPTLSServerTrustConfigPanelBase() } -wxTLSCredentialsPanelBase::wxTLSCredentialsPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) +wxEAPCredentialsPromptTLSPanelBase::wxEAPCredentialsPromptTLSPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) { wxStaticBoxSizer* sb_credentials; sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("TLS Client Certificate") ), wxVERTICAL ); @@ -196,12 +196,12 @@ wxTLSCredentialsPanelBase::wxTLSCredentialsPanelBase( wxWindow* parent, wxWindow this->Layout(); // Connect Events - this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxTLSCredentialsPanelBase::OnUpdateUI ) ); + this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPCredentialsPromptTLSPanelBase::OnUpdateUI ) ); } -wxTLSCredentialsPanelBase::~wxTLSCredentialsPanelBase() +wxEAPCredentialsPromptTLSPanelBase::~wxEAPCredentialsPromptTLSPanelBase() { // Disconnect Events - this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxTLSCredentialsPanelBase::OnUpdateUI ) ); + this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPCredentialsPromptTLSPanelBase::OnUpdateUI ) ); } diff --git a/lib/TLS_UI/res/wxTLS_UI.fbp b/lib/TLS_UI/res/wxTLS_UI.fbp index c34b839..263c60f 100644 --- a/lib/TLS_UI/res/wxTLS_UI.fbp +++ b/lib/TLS_UI/res/wxTLS_UI.fbp @@ -1013,7 +1013,7 @@ wxID_ANY - wxTLSCredentialsPanelBase + wxEAPCredentialsPromptTLSPanelBase 500,-1 diff --git a/lib/TLS_UI/res/wxTLS_UI.h b/lib/TLS_UI/res/wxTLS_UI.h index 27042b0..5c3113e 100644 --- a/lib/TLS_UI/res/wxTLS_UI.h +++ b/lib/TLS_UI/res/wxTLS_UI.h @@ -68,9 +68,9 @@ class wxEAPTLSServerTrustConfigPanelBase : public wxPanel }; /////////////////////////////////////////////////////////////////////////////// -/// Class wxTLSCredentialsPanelBase +/// Class wxEAPCredentialsPromptTLSPanelBase /////////////////////////////////////////////////////////////////////////////// -class wxTLSCredentialsPanelBase : public wxPanel +class wxEAPCredentialsPromptTLSPanelBase : public wxPanel { private: @@ -91,8 +91,8 @@ class wxTLSCredentialsPanelBase : public wxPanel public: - wxTLSCredentialsPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxTLSCredentialsPanelBase(); + wxEAPCredentialsPromptTLSPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); + ~wxEAPCredentialsPromptTLSPanelBase(); }; diff --git a/lib/TLS_UI/src/TLS_UI.cpp b/lib/TLS_UI/src/TLS_UI.cpp index d32a3f3..0782f9f 100644 --- a/lib/TLS_UI/src/TLS_UI.cpp +++ b/lib/TLS_UI/src/TLS_UI.cpp @@ -308,11 +308,11 @@ bool wxFQDNListValidator::Parse(const wxString &val_in, size_t i_start, size_t i ////////////////////////////////////////////////////////////////////// -// wxTLSCredentialsPanel +// wxEAPCredentialsPromptTLSPanel ////////////////////////////////////////////////////////////////////// -wxTLSCredentialsPanel::wxTLSCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, eap::credentials_tls &cred, wxWindow* parent, bool is_config) : - wxEAPCredentialsPanel(prov, cfg, cred, parent, is_config) +wxEAPCredentialsPromptTLSPanel::wxEAPCredentialsPromptTLSPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, eap::credentials_tls &cred, wxWindow* parent, bool is_config) : + wxEAPCredentialsPanel(prov, cfg, cred, parent, is_config) { // Load and set icon. winstd::library lib_shell32; @@ -321,7 +321,7 @@ wxTLSCredentialsPanel::wxTLSCredentialsPanel(const eap::config_provider &prov, c } -bool wxTLSCredentialsPanel::TransferDataToWindow() +bool wxEAPCredentialsPromptTLSPanel::TransferDataToWindow() { // Populate certificate list. bool is_found = false; @@ -361,11 +361,11 @@ bool wxTLSCredentialsPanel::TransferDataToWindow() m_identity->SetValue(m_cred.m_identity); - return wxEAPCredentialsPanel::TransferDataToWindow(); + return wxEAPCredentialsPanel::TransferDataToWindow(); } -bool wxTLSCredentialsPanel::TransferDataFromWindow() +bool wxEAPCredentialsPromptTLSPanel::TransferDataFromWindow() { if (m_cert_none->GetValue()) m_cred.m_cert.free(); @@ -381,11 +381,11 @@ bool wxTLSCredentialsPanel::TransferDataFromWindow() // Inherited TransferDataFromWindow() calls m_cred.store(). // Therefore, call it only now, that m_cred is set. - return wxEAPCredentialsPanel::TransferDataFromWindow(); + return wxEAPCredentialsPanel::TransferDataFromWindow(); } -void wxTLSCredentialsPanel::OnUpdateUI(wxUpdateUIEvent& /*event*/) +void wxEAPCredentialsPromptTLSPanel::OnUpdateUI(wxUpdateUIEvent& /*event*/) { if (!m_is_config && m_cfg.m_use_cred) { // Credential prompt mode & Using configured credentials @@ -579,7 +579,7 @@ wxTLSConfigPanel::wxTLSConfigPanel(const eap::config_provider &prov, eap::config m_server_trust = new wxTLSServerTrustPanel(prov, cfg, this); sb_content->Add(m_server_trust, 0, wxDOWN|wxEXPAND, 5); - m_credentials = new wxTLSCredentialsConfigPanel(prov, cfg, this); + m_credentials = new wxEAPCredentialsPromptTLSConfigPanel(prov, cfg, this); sb_content->Add(m_credentials, 0, wxUP|wxEXPAND, 5); this->SetSizer(sb_content); diff --git a/lib/TTLS_UI/include/TTLS_UI.h b/lib/TTLS_UI/include/TTLS_UI.h index 87ca6f5..3f2beaa 100644 --- a/lib/TTLS_UI/include/TTLS_UI.h +++ b/lib/TTLS_UI/include/TTLS_UI.h @@ -137,7 +137,7 @@ protected: /// \endcond public: - wxTLSCredentialsPanel *m_outer_cred; ///< Outer credentials panel + wxEAPCredentialsPromptTLSPanel *m_outer_cred; ///< Outer credentials panel wxEAPCredentialsPanelBase *m_inner_cred; ///< Inner credentials panel protected: diff --git a/lib/TTLS_UI/src/TTLS_UI.cpp b/lib/TTLS_UI/src/TTLS_UI.cpp index 2ea76dd..9e2b0ef 100644 --- a/lib/TTLS_UI/src/TTLS_UI.cpp +++ b/lib/TTLS_UI/src/TTLS_UI.cpp @@ -267,7 +267,7 @@ wxTTLSCredentialsPanel::wxTTLSCredentialsPanel(const eap::config_provider &prov, if (eap::config_method_with_cred::status_cred_begin <= m_cfg.m_last_status && m_cfg.m_last_status < eap::config_method_with_cred::status_cred_end) sb_content->Add(new wxEAPCredentialWarningPanel(m_prov, m_cfg.m_last_status, this), 0, wxALL|wxEXPAND, 5); - m_outer_cred = new wxTLSCredentialsPanel(m_prov, (const eap::config_method_tls&)m_cfg, (eap::credentials_tls&)cred, this, is_config); + m_outer_cred = new wxEAPCredentialsPromptTLSPanel(m_prov, (const eap::config_method_tls&)m_cfg, (eap::credentials_tls&)cred, this, is_config); sb_content->Add(m_outer_cred, 0, wxALL|wxEXPAND, 5); this->SetSizer(sb_content);