Backport EAPSup code changes
This introduces some PEAP/EAP-TTLS split code, but helps maintain shared code base. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
class wxTLSTunnelConfigWindow;
|
||||
class wxPEAPConfigWindow;
|
||||
class wxTTLSConfigWindow;
|
||||
|
||||
#pragma once
|
||||
@@ -26,6 +27,12 @@ class wxTTLSConfigWindow;
|
||||
#include "../../TLS_UI/include/TLS_UI.h"
|
||||
|
||||
#include "../../TTLS/include/Config.h"
|
||||
|
||||
#include "../../EapHost_UI/include/EapHost_UI.h"
|
||||
#include "../../PAP_UI/include/PAP_UI.h"
|
||||
#include "../../MSCHAPv2_UI/include/MSCHAPv2_UI.h"
|
||||
#include "../../GTC_UI/include/GTC_UI.h"
|
||||
|
||||
#include "../../EapHost/include/Config.h"
|
||||
#include "../../PAP/include/Config.h"
|
||||
#include "../../MSCHAPv2/include/Config.h"
|
||||
@@ -80,9 +87,41 @@ protected:
|
||||
|
||||
|
||||
///
|
||||
/// TTLS configuration scrollable window
|
||||
/// PEAP configuration scrollable window
|
||||
///
|
||||
class wxTTLSConfigWindow : public wxTLSTunnelConfigWindow
|
||||
class wxPEAPConfigWindow : public wxTLSTunnelConfigWindow
|
||||
{
|
||||
public:
|
||||
///
|
||||
/// Constructs a configuration window
|
||||
///
|
||||
/// \param[in] prov Provider configuration data
|
||||
/// \param[inout] cfg Method configuration data
|
||||
/// \param[in] parent Parent window
|
||||
///
|
||||
wxPEAPConfigWindow(eap::config_provider &prov, eap::config_method &cfg, wxWindow* parent);
|
||||
|
||||
protected:
|
||||
/// \cond internal
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow();
|
||||
/// \endcond
|
||||
|
||||
protected:
|
||||
eap::config_method_eapmschapv2 m_cfg_eapmschapv2; ///< EAP-MSCHAPv2 configuration to hold data until applied
|
||||
wxMSCHAPv2ConfigPanel *m_panel_eapmschapv2; ///< EAP-MSCHAPv2 config panel
|
||||
eap::config_method_eapgtc m_cfg_eapgtc; ///< EAP-GTC configuration to hold data until applied
|
||||
wxGTCConfigPanel *m_panel_eapgtc; ///< EAP-GTC config panel
|
||||
#if EAP_INNER_EAPHOST
|
||||
eap::config_method_eaphost m_cfg_eaphost; ///< Inner EAP configuration to hold data until applied
|
||||
wxEapHostConfigPanel *m_panel_eaphost; ///< Inner EAP config panel
|
||||
#endif
|
||||
};
|
||||
|
||||
///
|
||||
/// EAP-TTLS configuration scrollable window
|
||||
///
|
||||
class wxTTLSConfigWindow : public wxPEAPConfigWindow
|
||||
{
|
||||
public:
|
||||
///
|
||||
@@ -101,14 +140,10 @@ protected:
|
||||
/// \endcond
|
||||
|
||||
protected:
|
||||
// Temporary inner method configurations to hold data until applied
|
||||
eap::config_method_pap m_cfg_pap; ///< PAP configuration
|
||||
eap::config_method_mschapv2 m_cfg_mschapv2; ///< MSCHAPv2 configuration
|
||||
eap::config_method_eapmschapv2 m_cfg_eapmschapv2; ///< EAP-MSCHAPv2 configuration
|
||||
eap::config_method_eapgtc m_cfg_eapgtc; ///< EAP-GTC configuration
|
||||
#if EAP_INNER_EAPHOST
|
||||
eap::config_method_eaphost m_cfg_eaphost; ///< Inner EAP configuration
|
||||
#endif
|
||||
eap::config_method_pap m_cfg_pap; ///< PAP configuration to hold data until applied
|
||||
wxPAPConfigPanel *m_panel_pap; ///< PAP config panel
|
||||
eap::config_method_mschapv2 m_cfg_mschapv2; ///< MSCHAPv2 configuration to hold data until applied
|
||||
wxMSCHAPv2ConfigPanel *m_panel_mschapv2; ///< MSCHAPv2 config panel
|
||||
};
|
||||
|
||||
/// @}
|
||||
|
Reference in New Issue
Block a user