method_ttls: Reintroduce

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2020-02-04 16:04:53 +01:00
parent d400901c52
commit 5195b79eed
5 changed files with 125 additions and 41 deletions

View File

@@ -21,6 +21,7 @@
namespace eap
{
class method_eapmsg;
class method_ttls;
}
#pragma once
@@ -29,7 +30,7 @@ namespace eap
#include "Credentials.h"
#include "TTLS.h"
#include "../../EAPBase/include/Method.h"
#include "../../TLS/include/Method.h"
namespace eap
@@ -88,5 +89,27 @@ namespace eap
sanitizing_blob m_packet_res; ///< Response packet
};
///
/// EAP-TTLS method
///
class method_ttls : public method_tls
{
public:
///
/// Constructs an EAP-TTLS method
///
/// \param[in] mod EAP module to use for global services
/// \param[in] cfg Method configuration
/// \param[in] cred User credentials
/// \param[in] inner Inner method
///
method_ttls(_In_ module &mod, _In_ config_method_ttls &cfg, _In_ credentials_tls_tunnel &cred, _In_ method *inner);
protected:
virtual void push_keying_material();
virtual void get_keying_material(_Out_ sanitizing_blob_xf<32> &recv_key, _Out_ sanitizing_blob_xf<32> &send_key);
};
/// @}
}