diff --git a/EAPMethods/include/EAP_UI.h b/EAPMethods/include/EAP_UI.h index 4472c17..f50c541 100644 Binary files a/EAPMethods/include/EAP_UI.h and b/EAPMethods/include/EAP_UI.h differ diff --git a/EAPMethods/include/TLS.h b/EAPMethods/include/TLS.h index 1dda441..107bf46 100644 Binary files a/EAPMethods/include/TLS.h and b/EAPMethods/include/TLS.h differ diff --git a/EAPMethods/include/TLS_UI.h b/EAPMethods/include/TLS_UI.h index 4f9951d..5266675 100644 Binary files a/EAPMethods/include/TLS_UI.h and b/EAPMethods/include/TLS_UI.h differ diff --git a/EAPMethods/include/TTLS_UI.h b/EAPMethods/include/TTLS_UI.h index c3bf12d..409c102 100644 Binary files a/EAPMethods/include/TTLS_UI.h and b/EAPMethods/include/TTLS_UI.h differ diff --git a/EAPMethods/res/wxEAP_UI.cpp b/EAPMethods/res/wxEAP_UI.cpp index 96190ed..cad4220 100644 --- a/EAPMethods/res/wxEAP_UI.cpp +++ b/EAPMethods/res/wxEAP_UI.cpp @@ -53,12 +53,12 @@ wxEAPBannerPanelBase::wxEAPBannerPanelBase( wxWindow* parent, wxWindowID id, con wxBoxSizer* sc_content; sc_content = new wxBoxSizer( wxVERTICAL ); - m_product_name = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); - m_product_name->Wrap( -1 ); - m_product_name->SetFont( wxFont( 14, 70, 90, 90, false, wxEmptyString ) ); - m_product_name->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) ); + m_title = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); + m_title->Wrap( -1 ); + m_title->SetFont( wxFont( 14, 70, 90, 90, false, wxEmptyString ) ); + m_title->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) ); - sc_content->Add( m_product_name, 0, wxALL|wxEXPAND, 5 ); + sc_content->Add( m_title, 0, wxALL|wxEXPAND, 5 ); this->SetSizer( sc_content ); @@ -70,74 +70,10 @@ wxEAPBannerPanelBase::~wxEAPBannerPanelBase() { } -wxCredentialsConfigPanelBase::wxCredentialsConfigPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) +wxPasswordConfigCredentialsPanelBase::wxPasswordConfigCredentialsPanelBase( 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, _("Client Credentials") ), wxVERTICAL ); - - wxBoxSizer* sb_credentials_horiz; - sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL ); - - m_credentials_icon = new wxStaticBitmap( sb_credentials->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); - sb_credentials_horiz->Add( m_credentials_icon, 0, wxALL, 5 ); - - wxBoxSizer* sb_credentials_vert; - sb_credentials_vert = new wxBoxSizer( wxVERTICAL ); - - m_credentials_label = new wxStaticText( sb_credentials->GetStaticBox(), wxID_ANY, _("Manage your credentials to identify you during the connection attempt."), wxDefaultPosition, wxDefaultSize, 0 ); - m_credentials_label->Wrap( 446 ); - sb_credentials_vert->Add( m_credentials_label, 0, wxALL|wxEXPAND, 5 ); - - m_allow_save = new wxCheckBox( sb_credentials->GetStaticBox(), wxID_ANY, _("Allow credentials to be &remembered in Credential Manager"), wxDefaultPosition, wxDefaultSize, 0 ); - m_allow_save->SetHelpText( _("Check if you would like to allow saving credentials to Windows Credential Manager") ); - - sb_credentials_vert->Add( m_allow_save, 0, wxALL, 5 ); - - wxBoxSizer* sb_cred_store_btn; - sb_cred_store_btn = new wxBoxSizer( wxHORIZONTAL ); - - m_cred_store_set = new wxButton( sb_credentials->GetStaticBox(), wxID_ANY, _("&Set Credentials..."), wxDefaultPosition, wxDefaultSize, 0 ); - m_cred_store_set->SetToolTip( _("Adds a new certificate authority from the file to the list") ); - - sb_cred_store_btn->Add( m_cred_store_set, 0, wxRIGHT|wxLEFT, 5 ); - - m_cred_store_clear = new wxButton( sb_credentials->GetStaticBox(), wxID_ANY, _("&Clear Credentials"), wxDefaultPosition, wxDefaultSize, 0 ); - m_cred_store_clear->SetToolTip( _("Removes selected certificate authorities from the list") ); - - sb_cred_store_btn->Add( m_cred_store_clear, 0, wxLEFT, 5 ); - - - sb_credentials_vert->Add( sb_cred_store_btn, 0, wxALIGN_RIGHT|wxALL, 5 ); - - - sb_credentials_horiz->Add( sb_credentials_vert, 1, wxEXPAND, 5 ); - - - sb_credentials->Add( sb_credentials_horiz, 1, wxEXPAND, 5 ); - - - this->SetSizer( sb_credentials ); - this->Layout(); - - // Connect Events - m_allow_save->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( wxCredentialsConfigPanelBase::OnAllowSave ), NULL, this ); - m_cred_store_set->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxCredentialsConfigPanelBase::OnCredentialsSet ), NULL, this ); - m_cred_store_clear->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxCredentialsConfigPanelBase::OnCredentialsClear ), NULL, this ); -} - -wxCredentialsConfigPanelBase::~wxCredentialsConfigPanelBase() -{ - // Disconnect Events - m_allow_save->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( wxCredentialsConfigPanelBase::OnAllowSave ), NULL, this ); - m_cred_store_set->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxCredentialsConfigPanelBase::OnCredentialsSet ), NULL, this ); - m_cred_store_clear->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxCredentialsConfigPanelBase::OnCredentialsClear ), NULL, this ); - -} - -wxPasswordCredentialsPanelBase::wxPasswordCredentialsPanelBase( 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, _("Session Credentials") ), wxVERTICAL ); + sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Client Certificate") ), wxVERTICAL ); wxBoxSizer* sb_credentials_horiz; sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL ); @@ -176,10 +112,10 @@ wxPasswordCredentialsPanelBase::wxPasswordCredentialsPanelBase( wxWindow* parent sb_credentials_vert->Add( sb_credentials_tbl, 0, wxEXPAND|wxALL, 5 ); - m_remember = new wxCheckBox( sb_credentials->GetStaticBox(), wxID_ANY, _("&Remember my credentials"), wxDefaultPosition, wxDefaultSize, 0 ); - m_remember->SetHelpText( _("Check if you would like to save the credentials to Windows Credential Manager") ); + m_prompt = new wxCheckBox( sb_credentials->GetStaticBox(), wxID_ANY, _("&Prompt when connecting"), wxDefaultPosition, wxDefaultSize, 0 ); + m_prompt->SetHelpText( _("Check if you would like to enter credentials on every connection") ); - sb_credentials_vert->Add( m_remember, 0, wxALL|wxEXPAND, 5 ); + sb_credentials_vert->Add( m_prompt, 0, wxALL|wxEXPAND, 5 ); sb_credentials_horiz->Add( sb_credentials_vert, 1, wxEXPAND, 5 ); @@ -192,6 +128,6 @@ wxPasswordCredentialsPanelBase::wxPasswordCredentialsPanelBase( wxWindow* parent this->Layout(); } -wxPasswordCredentialsPanelBase::~wxPasswordCredentialsPanelBase() +wxPasswordConfigCredentialsPanelBase::~wxPasswordConfigCredentialsPanelBase() { } diff --git a/EAPMethods/res/wxEAP_UI.fbp b/EAPMethods/res/wxEAP_UI.fbp index 41e790d..ca57e0d 100644 --- a/EAPMethods/res/wxEAP_UI.fbp +++ b/EAPMethods/res/wxEAP_UI.fbp @@ -387,7 +387,7 @@ 0 1 - m_product_name + m_title 1 @@ -446,7 +446,7 @@ wxID_ANY - wxCredentialsConfigPanelBase + wxPasswordConfigCredentialsPanelBase 500,-1 @@ -486,530 +486,7 @@ wxID_ANY - Client Credentials - - sb_credentials - wxVERTICAL - none - - - 5 - wxEXPAND - 1 - - - sb_credentials_horiz - wxHORIZONTAL - none - - 5 - wxALL - 0 - - 1 - 1 - 1 - 1 - - - - - - - Load From Icon Resource; ; [32; 32] - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - 0 - - 1 - m_credentials_icon - 1 - - - protected - 1 - - Resizable - 1 - - - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxEXPAND - 1 - - - sb_credentials_vert - wxVERTICAL - none - - 5 - wxALL|wxEXPAND - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - Manage your credentials to identify you during the connection attempt. - - 0 - - - 0 - - 1 - m_credentials_label - 1 - - - protected - 1 - - Resizable - 1 - - - - 0 - - - - - 446 - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALL - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 0 - 1 - Check if you would like to allow saving credentials to Windows Credential Manager - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - Allow credentials to be &remembered in Credential Manager - - 0 - - - 0 - - 1 - m_allow_save - 1 - - - protected - 1 - - Resizable - 1 - - - - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - OnAllowSave - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxALIGN_RIGHT|wxALL - 0 - - - sb_cred_store_btn - wxHORIZONTAL - none - - 5 - wxRIGHT|wxLEFT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - &Set Credentials... - - 0 - - - 0 - - 1 - m_cred_store_set - 1 - - - protected - 1 - - Resizable - 1 - - - - 0 - Adds a new certificate authority from the file to the list - - wxFILTER_NONE - wxDefaultValidator - - - - - OnCredentialsSet - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - wxLEFT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - &Clear Credentials - - 0 - - - 0 - - 1 - m_cred_store_clear - 1 - - - protected - 1 - - Resizable - 1 - - - - 0 - Removes selected certificate authorities from the list - - wxFILTER_NONE - wxDefaultValidator - - - - - OnCredentialsClear - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - wxAUI_MGR_DEFAULT - - - 1 - 1 - impl_virtual - - - 0 - wxID_ANY - - - wxPasswordCredentialsPanelBase - - 500,-1 - - - - - wxTAB_TRAVERSAL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - wxID_ANY - Session Credentials + Client Certificate sb_credentials wxVERTICAL @@ -1579,7 +1056,7 @@ 0 0 1 - Check if you would like to save the credentials to Windows Credential Manager + Check if you would like to enter credentials on every connection 1 0 Dock @@ -1592,7 +1069,7 @@ 0 0 wxID_ANY - &Remember my credentials + &Prompt when connecting 0 @@ -1600,7 +1077,7 @@ 0 1 - m_remember + m_prompt 1 diff --git a/EAPMethods/res/wxEAP_UI.h b/EAPMethods/res/wxEAP_UI.h index b26b12f..5d885ed 100644 --- a/EAPMethods/res/wxEAP_UI.h +++ b/EAPMethods/res/wxEAP_UI.h @@ -27,9 +27,9 @@ class wxEAPBannerPanel; #include #include #include +#include #include #include -#include /////////////////////////////////////////////////////////////////////////// @@ -62,7 +62,7 @@ class wxEAPBannerPanelBase : public wxPanel private: protected: - wxStaticText* m_product_name; + wxStaticText* m_title; public: @@ -72,36 +72,9 @@ class wxEAPBannerPanelBase : public wxPanel }; /////////////////////////////////////////////////////////////////////////////// -/// Class wxCredentialsConfigPanelBase +/// Class wxPasswordConfigCredentialsPanelBase /////////////////////////////////////////////////////////////////////////////// -class wxCredentialsConfigPanelBase : public wxPanel -{ - private: - - protected: - wxStaticBitmap* m_credentials_icon; - wxStaticText* m_credentials_label; - wxCheckBox* m_allow_save; - wxButton* m_cred_store_set; - wxButton* m_cred_store_clear; - - // Virtual event handlers, overide them in your derived class - virtual void OnAllowSave( wxCommandEvent& event ) { event.Skip(); } - virtual void OnCredentialsSet( wxCommandEvent& event ) { event.Skip(); } - virtual void OnCredentialsClear( wxCommandEvent& event ) { event.Skip(); } - - - public: - - wxCredentialsConfigPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxCredentialsConfigPanelBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxPasswordCredentialsPanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxPasswordCredentialsPanelBase : public wxPanel +class wxPasswordConfigCredentialsPanelBase : public wxPanel { private: @@ -112,12 +85,12 @@ class wxPasswordCredentialsPanelBase : public wxPanel wxTextCtrl* m_identity; wxStaticText* m_password_label; wxTextCtrl* m_password; - wxCheckBox* m_remember; + wxCheckBox* m_prompt; public: - wxPasswordCredentialsPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxPasswordCredentialsPanelBase(); + wxPasswordConfigCredentialsPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); + ~wxPasswordConfigCredentialsPanelBase(); }; diff --git a/EAPMethods/res/wxTLS_UI.cpp b/EAPMethods/res/wxTLS_UI.cpp index e4aeb5e..c9f7ca7 100644 --- a/EAPMethods/res/wxTLS_UI.cpp +++ b/EAPMethods/res/wxTLS_UI.cpp @@ -113,3 +113,78 @@ wxEAPTLSConfigPanelBase::~wxEAPTLSConfigPanelBase() m_root_ca_remove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPTLSConfigPanelBase::OnRootCARemove ), NULL, this ); } + +wxTLSConfigCredentialsPanelBase::wxTLSConfigCredentialsPanelBase( 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, _("Client Credentials") ), wxVERTICAL ); + + wxBoxSizer* sb_credentials_horiz; + sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL ); + + m_credentials_icon = new wxStaticBitmap( sb_credentials->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); + sb_credentials_horiz->Add( m_credentials_icon, 0, wxALL, 5 ); + + wxBoxSizer* sb_credentials_vert; + sb_credentials_vert = new wxBoxSizer( wxVERTICAL ); + + m_credentials_label = new wxStaticText( sb_credentials->GetStaticBox(), wxID_ANY, _("Please select your client certificate to use for authentication."), wxDefaultPosition, wxDefaultSize, 0 ); + m_credentials_label->Wrap( 446 ); + sb_credentials_vert->Add( m_credentials_label, 0, wxALL|wxEXPAND, 5 ); + + wxBoxSizer* sb_cert_radio; + sb_cert_radio = new wxBoxSizer( wxVERTICAL ); + + m_cert_none = new wxRadioButton( sb_credentials->GetStaticBox(), wxID_ANY, _("Co&nnect without providing a client certificate"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); + m_cert_none->SetToolTip( _("Select if your server does not require you to provide a client certificate") ); + + sb_cert_radio->Add( m_cert_none, 1, wxEXPAND, 5 ); + + wxBoxSizer* sb_cert_select; + sb_cert_select = new wxBoxSizer( wxHORIZONTAL ); + + m_cert_select = new wxRadioButton( sb_credentials->GetStaticBox(), wxID_ANY, _("Use the following &certificate:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_cert_select->SetToolTip( _("Select if you need to provide a client certificate when connecting") ); + + sb_cert_select->Add( m_cert_select, 0, wxEXPAND, 5 ); + + wxArrayString m_cert_select_valChoices; + m_cert_select_val = new wxChoice( sb_credentials->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cert_select_valChoices, wxCB_SORT ); + m_cert_select_val->SetSelection( 0 ); + m_cert_select_val->SetToolTip( _("Client certificate to use for authentication") ); + + sb_cert_select->Add( m_cert_select_val, 1, wxEXPAND, 5 ); + + + sb_cert_radio->Add( sb_cert_select, 1, wxEXPAND, 5 ); + + + sb_credentials_vert->Add( sb_cert_radio, 0, wxEXPAND|wxALL, 5 ); + + m_prompt = new wxCheckBox( sb_credentials->GetStaticBox(), wxID_ANY, _("&Prompt when connecting"), wxDefaultPosition, wxDefaultSize, 0 ); + m_prompt->SetHelpText( _("Check if you would like to select certificate on every connection") ); + + sb_credentials_vert->Add( m_prompt, 0, wxALL|wxEXPAND, 5 ); + + + sb_credentials_horiz->Add( sb_credentials_vert, 1, wxEXPAND, 5 ); + + + sb_credentials->Add( sb_credentials_horiz, 0, wxEXPAND, 5 ); + + + this->SetSizer( sb_credentials ); + this->Layout(); + + // Connect Events + m_cert_select->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( wxTLSConfigCredentialsPanelBase::OnCertSelect ), NULL, this ); + m_prompt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( wxTLSConfigCredentialsPanelBase::OnPrompt ), NULL, this ); +} + +wxTLSConfigCredentialsPanelBase::~wxTLSConfigCredentialsPanelBase() +{ + // Disconnect Events + m_cert_select->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( wxTLSConfigCredentialsPanelBase::OnCertSelect ), NULL, this ); + m_prompt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( wxTLSConfigCredentialsPanelBase::OnPrompt ), NULL, this ); + +} diff --git a/EAPMethods/res/wxTLS_UI.fbp b/EAPMethods/res/wxTLS_UI.fbp index 62c1635..fb7dc35 100644 --- a/EAPMethods/res/wxTLS_UI.fbp +++ b/EAPMethods/res/wxTLS_UI.fbp @@ -15,7 +15,7 @@ 1000 none 1 - TLS_UI + wxTLS_UI . #include <StdAfx.h> @@ -999,5 +999,627 @@ + + 0 + wxAUI_MGR_DEFAULT + + + 1 + 1 + impl_virtual + + + 0 + wxID_ANY + + + wxTLSConfigCredentialsPanelBase + + 500,-1 + + + + + wxTAB_TRAVERSAL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + wxID_ANY + Client Credentials + + sb_credentials + wxVERTICAL + none + + + 5 + wxEXPAND + 0 + + + sb_credentials_horiz + wxHORIZONTAL + none + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + Load From Icon Resource; ; [32; 32] + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_credentials_icon + 1 + + + protected + 1 + + Resizable + 1 + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxEXPAND + 1 + + + sb_credentials_vert + wxVERTICAL + none + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Please select your client certificate to use for authentication. + + 0 + + + 0 + + 1 + m_credentials_label + 1 + + + protected + 1 + + Resizable + 1 + + + + 0 + + + + + 446 + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxEXPAND|wxALL + 0 + + + sb_cert_radio + wxVERTICAL + none + + 5 + wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Co&nnect without providing a client certificate + + 0 + + + 0 + + 1 + m_cert_none + 1 + + + protected + 1 + + Resizable + 1 + + wxRB_GROUP + + 0 + Select if your server does not require you to provide a client certificate + + wxFILTER_NONE + wxDefaultValidator + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxEXPAND + 1 + + + sb_cert_select + wxHORIZONTAL + none + + 5 + wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Use the following &certificate: + + 0 + + + 0 + + 1 + m_cert_select + 1 + + + protected + 1 + + Resizable + 1 + + + + 0 + Select if you need to provide a client certificate when connecting + + wxFILTER_NONE + wxDefaultValidator + + 0 + + + + + + + + + + + + + + + + + + + + + OnCertSelect + + + + + + + + + + 5 + wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + m_cert_select_val + 1 + + + protected + 1 + + Resizable + 0 + 1 + + wxCB_SORT + ; + 0 + Client certificate to use for authentication + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxALL|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 0 + 1 + Check if you would like to select certificate on every connection + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + &Prompt when connecting + + 0 + + + 0 + + 1 + m_prompt + 1 + + + protected + 1 + + Resizable + 1 + + + + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + OnPrompt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EAPMethods/res/wxTLS_UI.h b/EAPMethods/res/wxTLS_UI.h index da2ed89..e46c8d5 100644 --- a/EAPMethods/res/wxTLS_UI.h +++ b/EAPMethods/res/wxTLS_UI.h @@ -27,6 +27,9 @@ #include #include #include +#include +#include +#include /////////////////////////////////////////////////////////////////////////// @@ -64,4 +67,31 @@ class wxEAPTLSConfigPanelBase : public wxPanel }; +/////////////////////////////////////////////////////////////////////////////// +/// Class wxTLSConfigCredentialsPanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxTLSConfigCredentialsPanelBase : public wxPanel +{ + private: + + protected: + wxStaticBitmap* m_credentials_icon; + wxStaticText* m_credentials_label; + wxRadioButton* m_cert_none; + wxRadioButton* m_cert_select; + wxChoice* m_cert_select_val; + wxCheckBox* m_prompt; + + // Virtual event handlers, overide them in your derived class + virtual void OnCertSelect( wxCommandEvent& event ) { event.Skip(); } + virtual void OnPrompt( wxCommandEvent& event ) { event.Skip(); } + + + public: + + wxTLSConfigCredentialsPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); + ~wxTLSConfigCredentialsPanelBase(); + +}; + #endif //__WXTLS_UI_H__ diff --git a/EAPMethods/res/wxTTLS_UI.fbp b/EAPMethods/res/wxTTLS_UI.fbp index d654a3d..1d26854 100644 --- a/EAPMethods/res/wxTTLS_UI.fbp +++ b/EAPMethods/res/wxTTLS_UI.fbp @@ -15,7 +15,7 @@ 1000 none 1 - TTLS_UI + wxTTLS_UI . #include <StdAfx.h> diff --git a/EAPMethods/src/EAP_UI.cpp b/EAPMethods/src/EAP_UI.cpp index c9ef17e..67c0080 100644 Binary files a/EAPMethods/src/EAP_UI.cpp and b/EAPMethods/src/EAP_UI.cpp differ diff --git a/EAPMethods/src/TLS_UI.cpp b/EAPMethods/src/TLS_UI.cpp index 58dcc0b..e5444e1 100644 Binary files a/EAPMethods/src/TLS_UI.cpp and b/EAPMethods/src/TLS_UI.cpp differ diff --git a/EAPMethods/src/TTLS_UI.cpp b/EAPMethods/src/TTLS_UI.cpp index d33b30a..392bc39 100644 Binary files a/EAPMethods/src/TTLS_UI.cpp and b/EAPMethods/src/TTLS_UI.cpp differ diff --git a/lib/WinStd b/lib/WinStd index 1022a2c..dfe7a56 160000 --- a/lib/WinStd +++ b/lib/WinStd @@ -1 +1 @@ -Subproject commit 1022a2cc0d64db189b5bd44ce36e5c32e599ecb3 +Subproject commit dfe7a56b5f491e0675cb28be44fef4e29ff122e6