config_method_ttls is now descendant of config_method_tls

This commit is contained in:
2016-08-13 08:48:01 +02:00
parent 09924ea3d2
commit 1306c958fc
5 changed files with 26 additions and 37 deletions

View File

@@ -30,6 +30,8 @@ namespace eap
#pragma once
#include "Credentials.h"
#include "../../TLS/include/Config.h"
#include "../../PAP/include/Config.h"
@@ -40,7 +42,7 @@ namespace eap
namespace eap {
class config_method_ttls : public config_method
class config_method_ttls : public config_method_tls
{
public:
///
@@ -143,10 +145,9 @@ namespace eap {
///
/// Generates public identity using current configuration and given credentials
///
std::wstring get_public_identity(const credentials &cred) const;
std::wstring get_public_identity(const credentials_ttls &cred) const;
public:
config_method_tls m_outer; ///< Outer authentication configuration
std::unique_ptr<config> m_inner; ///< Inner authentication configuration
std::wstring m_anonymous_identity; ///< Anonymous identity
};