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:
parent
0daa0579fe
commit
1c295360fc
@ -192,6 +192,7 @@ namespace eap
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
module &m_module; ///< Module for global services
|
module &m_module; ///< Module for global services
|
||||||
|
method *m_outer; ///< Outer method
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,8 @@ using namespace winstd;
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
eap::method::method(_In_ module &mod) :
|
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),
|
m_inner(inner),
|
||||||
method(mod)
|
method(mod)
|
||||||
{
|
{
|
||||||
|
assert(m_inner);
|
||||||
|
m_inner->m_outer = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user