config_method_with_cred::make_credentials() method moved to parent class config_method for seamless EAPMsg method support

This commit is contained in:
2016-10-10 13:20:08 +02:00
parent 864105186b
commit c660e2b3e6
5 changed files with 24 additions and 16 deletions

View File

@@ -199,6 +199,9 @@ namespace eap
};
class credentials;
class config_method : public config
{
public:
@@ -319,6 +322,11 @@ namespace eap
///
virtual const wchar_t* get_method_str() const = 0;
///
/// Creates a blank set of credentials suitable for this method
///
virtual credentials* make_credentials() const = 0;
public:
const unsigned int m_level; ///< Config level (0=outer, 1=inner, 2=inner-inner...)
bool m_allow_save; ///< Are credentials allowed to be saved to Windows Credential Manager?
@@ -327,9 +335,6 @@ namespace eap
};
class credentials;
class config_method_with_cred : public config_method
{
public:
@@ -419,11 +424,6 @@ namespace eap
/// @}
///
/// Creates a blank set of credentials suitable for this method
///
virtual credentials* make_credentials() const = 0;
public:
bool m_use_cred; ///< Use configured credentials
std::unique_ptr<credentials> m_cred; ///< Configured credentials