Virtual method implementations moved to .cpp files

get_method_id() now const
This commit is contained in:
2016-06-15 11:26:51 +02:00
parent 9cf80108b5
commit df2fee4cef
13 changed files with 67 additions and 14 deletions

View File

@@ -118,7 +118,7 @@ namespace eap {
///
/// \returns Pointer to cloned configuration
///
virtual config* clone() const { return new config_ttls(*this); }
virtual config* clone() const;
/// \name XML configuration management
/// @{
@@ -155,7 +155,7 @@ namespace eap {
///
/// \returns `eap::type_ttls`
///
virtual eap::type_t get_method_id() { return eap::type_ttls; }
virtual eap::type_t get_method_id() const;
public:
config_method *m_inner; ///< Inner authentication configuration

View File

@@ -80,7 +80,7 @@ namespace eap
///
/// \returns Pointer to cloned credentials
///
virtual config* clone() const { return new credentials_ttls(*this); }
virtual config* clone() const;
///
/// Resets credentials

View File

@@ -82,6 +82,12 @@ eap::config_ttls& eap::config_ttls::operator=(_Inout_ config_ttls &&other)
}
eap::config* eap::config_ttls::clone() const
{
return new config_ttls(*this);
}
DWORD eap::config_ttls::save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **ppEapError) const
{
const bstr bstrNamespace(L"urn:ietf:params:xml:ns:yang:ietf-eap-metadata");
@@ -147,3 +153,9 @@ DWORD eap::config_ttls::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **pp
return config_tls::load(pConfigRoot, ppEapError);
}
eap::type_t eap::config_ttls::get_method_id() const
{
return eap::type_ttls;
}

View File

@@ -75,6 +75,11 @@ eap::credentials_ttls& eap::credentials_ttls::operator=(_Inout_ credentials_ttls
}
eap::config* eap::credentials_ttls::clone() const
{
return new credentials_ttls(*this);
}
void eap::credentials_ttls::clear()
{
@@ -90,7 +95,6 @@ bool eap::credentials_ttls::empty() const
}
DWORD eap::credentials_ttls::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **ppEapError)
{
assert(pConfigRoot);