Double link inner-outer methods

This allows inner methods to access method_defrag to get negotiated
EAP-TTLS/PEAP protocol version.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-01-22 10:38:21 +01:00
parent 0daa0579fe
commit 1c295360fc
2 changed files with 5 additions and 1 deletions

View File

@ -192,6 +192,7 @@ namespace eap
public:
module &m_module; ///< Module for global services
method *m_outer; ///< Outer method
};

View File

@ -29,7 +29,8 @@ using namespace winstd;
//////////////////////////////////////////////////////////////////////
eap::method::method(_In_ module &mod) :
m_module(mod)
m_module(mod),
m_outer(nullptr)
{
}
@ -107,6 +108,8 @@ eap::method_tunnel::method_tunnel(_In_ module &mod, _In_ method *inner) :
m_inner(inner),
method(mod)
{
assert(m_inner);
m_inner->m_outer = this;
}