eap::peer<> and eap::session<> redundant template argument removed
This commit is contained in:
parent
91dcc0bbbc
commit
437f5f91b8
@ -32,7 +32,7 @@ namespace eap
|
||||
///
|
||||
/// A group of methods all EAP peers must or should implement.
|
||||
///
|
||||
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres> class peer;
|
||||
template <class _Tcred, class _Tint, class _Tintres> class peer;
|
||||
}
|
||||
|
||||
#pragma once
|
||||
@ -652,15 +652,10 @@ namespace eap
|
||||
};
|
||||
|
||||
|
||||
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres>
|
||||
template <class _Tcred, class _Tint, class _Tintres>
|
||||
class peer : public module
|
||||
{
|
||||
public:
|
||||
///
|
||||
/// Method configuration data type
|
||||
///
|
||||
typedef _Tmeth config_method_type;
|
||||
|
||||
///
|
||||
/// Credentials data type
|
||||
///
|
||||
|
@ -23,7 +23,7 @@ namespace eap
|
||||
///
|
||||
/// EAP session
|
||||
///
|
||||
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres> class session;
|
||||
template <class _Tcred, class _Tint, class _Tintres> class session;
|
||||
}
|
||||
|
||||
#pragma once
|
||||
@ -42,15 +42,10 @@ extern "C" {
|
||||
|
||||
namespace eap
|
||||
{
|
||||
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres>
|
||||
template <class _Tcred, class _Tint, class _Tintres>
|
||||
class session
|
||||
{
|
||||
public:
|
||||
///
|
||||
/// Method configuration data type
|
||||
///
|
||||
typedef _Tmeth config_method_type;
|
||||
|
||||
///
|
||||
/// Credentials data type
|
||||
///
|
||||
|
@ -25,7 +25,7 @@ namespace eap
|
||||
///
|
||||
/// A group of methods all EAP UI peers must or should implement.
|
||||
///
|
||||
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres> class peer_ui;
|
||||
template <class _Tcred, class _Tint, class _Tintres> class peer_ui;
|
||||
}
|
||||
|
||||
#pragma once
|
||||
@ -35,15 +35,10 @@ namespace eap
|
||||
|
||||
namespace eap
|
||||
{
|
||||
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres>
|
||||
template <class _Tcred, class _Tint, class _Tintres>
|
||||
class peer_ui : public module
|
||||
{
|
||||
public:
|
||||
///
|
||||
/// Method configuration data type
|
||||
///
|
||||
typedef _Tmeth config_method_type;
|
||||
|
||||
///
|
||||
/// Credentials data type
|
||||
///
|
||||
|
@ -60,7 +60,7 @@ namespace eap
|
||||
};
|
||||
|
||||
|
||||
class session_tls : public session<config_method_tls, credentials_tls, bool, bool>
|
||||
class session_tls : public session<credentials_tls, bool, bool>
|
||||
{
|
||||
public:
|
||||
///
|
||||
|
@ -30,7 +30,7 @@ using namespace winstd;
|
||||
|
||||
eap::session_tls::session_tls(_In_ module *mod) :
|
||||
m_phase(phase_handshake_start),
|
||||
session<config_method_tls, credentials_tls, bool, bool>(mod)
|
||||
session<credentials_tls, bool, bool>(mod)
|
||||
{
|
||||
m_packet_req.m_code = (EapCode)0;
|
||||
m_packet_req.m_id = 0;
|
||||
@ -48,7 +48,7 @@ eap::session_tls::session_tls(_In_ module *mod) :
|
||||
eap::session_tls::session_tls(_In_ const session_tls &other) :
|
||||
m_phase(other.m_phase),
|
||||
m_session_id(other.m_session_id),
|
||||
session<config_method_tls, credentials_tls, bool, bool>(other)
|
||||
session<credentials_tls, bool, bool>(other)
|
||||
{
|
||||
m_packet_req.m_code = other.m_packet_req.m_code ;
|
||||
m_packet_req.m_id = other.m_packet_req.m_id ;
|
||||
@ -68,7 +68,7 @@ eap::session_tls::session_tls(_In_ const session_tls &other) :
|
||||
eap::session_tls::session_tls(_Inout_ session_tls &&other) :
|
||||
m_phase(std::move(other.m_phase)),
|
||||
m_session_id(std::move(other.m_session_id)),
|
||||
session<config_method_tls, credentials_tls, bool, bool>(std::move(other))
|
||||
session<credentials_tls, bool, bool>(std::move(other))
|
||||
{
|
||||
m_packet_req.m_code = std::move(other.m_packet_req.m_code );
|
||||
m_packet_req.m_id = std::move(other.m_packet_req.m_id );
|
||||
@ -95,7 +95,7 @@ eap::session_tls::~session_tls()
|
||||
eap::session_tls& eap::session_tls::operator=(_In_ const session_tls &other)
|
||||
{
|
||||
if (this != &other) {
|
||||
(session<config_method_tls, credentials_tls, bool, bool>&)*this = other;
|
||||
(session<credentials_tls, bool, bool>&)*this = other;
|
||||
m_phase = other.m_phase;
|
||||
|
||||
m_packet_req.m_code = other.m_packet_req.m_code ;
|
||||
@ -121,7 +121,7 @@ eap::session_tls& eap::session_tls::operator=(_In_ const session_tls &other)
|
||||
eap::session_tls& eap::session_tls::operator=(_Inout_ session_tls &&other)
|
||||
{
|
||||
if (this != &other) {
|
||||
(session<config_method_tls, credentials_tls, bool, bool>&)*this = std::move(other);
|
||||
(session<credentials_tls, bool, bool>&)*this = std::move(other);
|
||||
m_phase = std::move(other.m_phase);
|
||||
|
||||
m_packet_req.m_code = std::move(other.m_packet_req.m_code );
|
||||
@ -156,7 +156,7 @@ bool eap::session_tls::begin(
|
||||
return false;
|
||||
}
|
||||
|
||||
return session<config_method_tls, credentials_tls, bool, bool>::begin(dwFlags, pAttributeArray, hTokenImpersonateUser, dwMaxSendPacketSize, ppEapError);
|
||||
return session<credentials_tls, bool, bool>::begin(dwFlags, pAttributeArray, hTokenImpersonateUser, dwMaxSendPacketSize, ppEapError);
|
||||
}
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace eap
|
||||
|
||||
namespace eap
|
||||
{
|
||||
class peer_ttls : public peer<config_method_ttls, credentials_ttls, bool, bool>
|
||||
class peer_ttls : public peer<credentials_ttls, bool, bool>
|
||||
{
|
||||
public:
|
||||
///
|
||||
|
@ -49,7 +49,7 @@ namespace eap
|
||||
};
|
||||
|
||||
|
||||
class session_ttls : public session<config_method_ttls, credentials_ttls, bool, bool>
|
||||
class session_ttls : public session<credentials_ttls, bool, bool>
|
||||
{
|
||||
public:
|
||||
///
|
||||
|
@ -28,7 +28,7 @@ using namespace winstd;
|
||||
// eap::peer_ttls
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
eap::peer_ttls::peer_ttls() : peer<config_method_ttls, credentials_ttls, bool, bool>(eap_type_ttls)
|
||||
eap::peer_ttls::peer_ttls() : peer<credentials_ttls, bool, bool>(eap_type_ttls)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -30,21 +30,21 @@ using namespace winstd;
|
||||
|
||||
eap::session_ttls::session_ttls(_In_ module *mod) :
|
||||
m_version(version_0),
|
||||
session<config_method_ttls, credentials_ttls, bool, bool>(mod)
|
||||
session<credentials_ttls, bool, bool>(mod)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
eap::session_ttls::session_ttls(_In_ const session_ttls &other) :
|
||||
m_version(other.m_version),
|
||||
session<config_method_ttls, credentials_ttls, bool, bool>(other)
|
||||
session<credentials_ttls, bool, bool>(other)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
eap::session_ttls::session_ttls(_Inout_ session_ttls &&other) :
|
||||
m_version(std::move(other.m_version)),
|
||||
session<config_method_ttls, credentials_ttls, bool, bool>(std::move(other))
|
||||
session<credentials_ttls, bool, bool>(std::move(other))
|
||||
{
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ eap::session_ttls::session_ttls(_Inout_ session_ttls &&other) :
|
||||
eap::session_ttls& eap::session_ttls::operator=(_In_ const session_ttls &other)
|
||||
{
|
||||
if (this != &other) {
|
||||
(session<config_method_ttls, credentials_ttls, bool, bool>&)*this = other;
|
||||
(session<credentials_ttls, bool, bool>&)*this = other;
|
||||
m_version = other.m_version;
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ eap::session_ttls& eap::session_ttls::operator=(_In_ const session_ttls &other)
|
||||
eap::session_ttls& eap::session_ttls::operator=(_Inout_ session_ttls &&other)
|
||||
{
|
||||
if (this != &other) {
|
||||
(session<config_method_ttls, credentials_ttls, bool, bool>&)*this = std::move(other);
|
||||
(session<credentials_ttls, bool, bool>&)*this = std::move(other);
|
||||
m_version = std::move(other.m_version);
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace eap
|
||||
|
||||
namespace eap
|
||||
{
|
||||
class peer_ttls_ui : public peer_ui<eap::config_method_ttls, eap::credentials_ttls, bool, bool>
|
||||
class peer_ttls_ui : public peer_ui<credentials_ttls, bool, bool>
|
||||
{
|
||||
public:
|
||||
///
|
||||
|
@ -25,7 +25,7 @@
|
||||
// eap::peer_ttls_ui
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
eap::peer_ttls_ui::peer_ttls_ui() : peer_ui<eap::config_method_ttls, eap::credentials_ttls, bool, bool>(winstd::eap_type_ttls)
|
||||
eap::peer_ttls_ui::peer_ttls_ui() : peer_ui<eap::credentials_ttls, bool, bool>(winstd::eap_type_ttls)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user