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

@@ -145,6 +145,11 @@ namespace eap
///
virtual const wchar_t* get_method_str() const;
///
/// Creates a blank set of credentials suitable for this method
///
virtual credentials* make_credentials() const;
public:
EAP_METHOD_TYPE m_type; ///< EapHost method type: (EAP type, vendor ID, vendor type, author ID) tuple
sanitizing_blob m_cfg_blob; ///< Method configuration BLOB

View File

@@ -169,3 +169,9 @@ const wchar_t* eap::config_method_eapmsg::get_method_str() const
// TODO: Query registry for EAP method name (PeerFriendlyName using RegLoadMUIString()).
return L"EAPMsg";
}
eap::credentials* eap::config_method_eapmsg::make_credentials() const
{
return new credentials_eapmsg(m_module);
}