Template arguments and type names unified
This commit is contained in:
parent
2a19b4624a
commit
43751ed908
@ -236,8 +236,8 @@ DWORD APIENTRY EapPeerGetIdentity(
|
|||||||
else if (!ppwszIdentity)
|
else if (!ppwszIdentity)
|
||||||
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" ppwszIdentity is NULL.")));
|
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" ppwszIdentity is NULL.")));
|
||||||
else {
|
else {
|
||||||
_EAPMETHOD_PEER::config_type cfg(g_peer);
|
_EAPMETHOD_PEER::config_providers_type cfg(g_peer);
|
||||||
_EAPMETHOD_PEER::identity_type usr(g_peer);
|
_EAPMETHOD_PEER::credentials_type usr(g_peer);
|
||||||
if (!g_peer.unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError) ||
|
if (!g_peer.unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError) ||
|
||||||
!g_peer.unpack(usr, pUserData, dwUserDataSize, ppEapError) ||
|
!g_peer.unpack(usr, pUserData, dwUserDataSize, ppEapError) ||
|
||||||
!g_peer.get_identity(dwFlags, cfg, usr, hTokenImpersonateUser, pfInvokeUI, ppwszIdentity, ppEapError) ||
|
!g_peer.get_identity(dwFlags, cfg, usr, hTokenImpersonateUser, pfInvokeUI, ppwszIdentity, ppEapError) ||
|
||||||
@ -302,7 +302,7 @@ DWORD APIENTRY EapPeerBeginSession(
|
|||||||
|
|
||||||
// Begin the session.
|
// Begin the session.
|
||||||
if (!g_peer.unpack(session->m_cfg, pConnectionData, dwConnectionDataSize, ppEapError) ||
|
if (!g_peer.unpack(session->m_cfg, pConnectionData, dwConnectionDataSize, ppEapError) ||
|
||||||
!g_peer.unpack(session->m_id, pUserData, dwUserDataSize, ppEapError) ||
|
!g_peer.unpack(session->m_cred, pUserData, dwUserDataSize, ppEapError) ||
|
||||||
!session->begin(dwFlags, pAttributeArray, hTokenImpersonateUser, dwMaxSendPacketSize, ppEapError))
|
!session->begin(dwFlags, pAttributeArray, hTokenImpersonateUser, dwMaxSendPacketSize, ppEapError))
|
||||||
{
|
{
|
||||||
if (*ppEapError) {
|
if (*ppEapError) {
|
||||||
@ -684,8 +684,8 @@ DWORD WINAPI EapPeerGetMethodProperties(
|
|||||||
else if (!pMethodPropertyArray)
|
else if (!pMethodPropertyArray)
|
||||||
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" pMethodPropertyArray is NULL.")));
|
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" pMethodPropertyArray is NULL.")));
|
||||||
else {
|
else {
|
||||||
_EAPMETHOD_PEER::config_type cfg(g_peer);
|
_EAPMETHOD_PEER::config_providers_type cfg(g_peer);
|
||||||
_EAPMETHOD_PEER::identity_type usr(g_peer);
|
_EAPMETHOD_PEER::credentials_type usr(g_peer);
|
||||||
if (!g_peer.unpack(cfg, pEapConnData, dwEapConnDataSize, ppEapError) ||
|
if (!g_peer.unpack(cfg, pEapConnData, dwEapConnDataSize, ppEapError) ||
|
||||||
!g_peer.unpack(usr, pUserData, dwUserDataSize, ppEapError) ||
|
!g_peer.unpack(usr, pUserData, dwUserDataSize, ppEapError) ||
|
||||||
!g_peer.get_method_properties(
|
!g_peer.get_method_properties(
|
||||||
@ -762,7 +762,7 @@ DWORD WINAPI EapPeerCredentialsXml2Blob(
|
|||||||
|
|
||||||
// Load credentials.
|
// Load credentials.
|
||||||
pCredentialsDoc->setProperty(bstr(L"SelectionNamespaces"), variant(L"xmlns:eap-metadata=\"urn:ietf:params:xml:ns:yang:ietf-eap-metadata\""));
|
pCredentialsDoc->setProperty(bstr(L"SelectionNamespaces"), variant(L"xmlns:eap-metadata=\"urn:ietf:params:xml:ns:yang:ietf-eap-metadata\""));
|
||||||
_EAPMETHOD_PEER::identity_type usr(g_peer);
|
_EAPMETHOD_PEER::credentials_type usr(g_peer);
|
||||||
if (!usr.load(pXmlElCredentials, ppEapError) ||
|
if (!usr.load(pXmlElCredentials, ppEapError) ||
|
||||||
!g_peer.pack(usr, ppCredentialsOut, pdwCredentialsOutSize, ppEapError))
|
!g_peer.pack(usr, ppCredentialsOut, pdwCredentialsOutSize, ppEapError))
|
||||||
{
|
{
|
||||||
|
@ -142,7 +142,7 @@ DWORD WINAPI EapPeerConfigXml2Blob(
|
|||||||
|
|
||||||
// Load configuration.
|
// Load configuration.
|
||||||
pConfigDoc->setProperty(bstr(L"SelectionNamespaces"), variant(L"xmlns:eap-metadata=\"urn:ietf:params:xml:ns:yang:ietf-eap-metadata\""));
|
pConfigDoc->setProperty(bstr(L"SelectionNamespaces"), variant(L"xmlns:eap-metadata=\"urn:ietf:params:xml:ns:yang:ietf-eap-metadata\""));
|
||||||
_EAPMETHOD_PEER_UI::config_type cfg(g_peer);
|
_EAPMETHOD_PEER_UI::config_providers_type cfg(g_peer);
|
||||||
if (!cfg.load(pXmlElConfig, ppEapError) ||
|
if (!cfg.load(pXmlElConfig, ppEapError) ||
|
||||||
!g_peer.pack(cfg, ppConfigOut, pdwConfigOutSize, ppEapError))
|
!g_peer.pack(cfg, ppConfigOut, pdwConfigOutSize, ppEapError))
|
||||||
{
|
{
|
||||||
@ -198,7 +198,7 @@ DWORD WINAPI EapPeerConfigBlob2Xml(
|
|||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
// Unpack configuration.
|
// Unpack configuration.
|
||||||
_EAPMETHOD_PEER_UI::config_type cfg(g_peer);
|
_EAPMETHOD_PEER_UI::config_providers_type cfg(g_peer);
|
||||||
if (!g_peer.unpack(cfg, pConfigIn, dwConfigInSize, ppEapError)) {
|
if (!g_peer.unpack(cfg, pConfigIn, dwConfigInSize, ppEapError)) {
|
||||||
if (*ppEapError) {
|
if (*ppEapError) {
|
||||||
g_peer.log_error(*ppEapError);
|
g_peer.log_error(*ppEapError);
|
||||||
@ -294,7 +294,7 @@ DWORD WINAPI EapPeerInvokeConfigUI(
|
|||||||
else if (!ppConnectionDataOut)
|
else if (!ppConnectionDataOut)
|
||||||
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" ppConnectionDataOut is NULL.")));
|
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" ppConnectionDataOut is NULL.")));
|
||||||
else {
|
else {
|
||||||
_EAPMETHOD_PEER_UI::config_type cfg(g_peer);
|
_EAPMETHOD_PEER_UI::config_providers_type cfg(g_peer);
|
||||||
if (!g_peer.unpack(cfg, pConnectionDataIn, dwConnectionDataInSize, ppEapError) ||
|
if (!g_peer.unpack(cfg, pConnectionDataIn, dwConnectionDataInSize, ppEapError) ||
|
||||||
!g_peer.invoke_config_ui(hwndParent, cfg, ppEapError) ||
|
!g_peer.invoke_config_ui(hwndParent, cfg, ppEapError) ||
|
||||||
!g_peer.pack(cfg, ppConnectionDataOut, pdwConnectionDataOutSize, ppEapError))
|
!g_peer.pack(cfg, ppConnectionDataOut, pdwConnectionDataOutSize, ppEapError))
|
||||||
@ -359,8 +359,8 @@ DWORD WINAPI EapPeerInvokeIdentityUI(
|
|||||||
else if (!ppwszIdentity)
|
else if (!ppwszIdentity)
|
||||||
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" ppwszIdentity is NULL.")));
|
g_peer.log_error(*ppEapError = g_peer.make_error(dwResult = ERROR_INVALID_PARAMETER, _T(__FUNCTION__) _T(" ppwszIdentity is NULL.")));
|
||||||
else {
|
else {
|
||||||
_EAPMETHOD_PEER_UI::config_type cfg(g_peer);
|
_EAPMETHOD_PEER_UI::config_providers_type cfg(g_peer);
|
||||||
_EAPMETHOD_PEER_UI::identity_type usr(g_peer);
|
_EAPMETHOD_PEER_UI::credentials_type usr(g_peer);
|
||||||
if (!g_peer.unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError) ||
|
if (!g_peer.unpack(cfg, pConnectionData, dwConnectionDataSize, ppEapError) ||
|
||||||
!g_peer.unpack(usr, pUserData, dwUserDataSize, ppEapError) ||
|
!g_peer.unpack(usr, pUserData, dwUserDataSize, ppEapError) ||
|
||||||
!g_peer.invoke_identity_ui(hwndParent, dwFlags, cfg, usr, ppwszIdentity, ppEapError) ||
|
!g_peer.invoke_identity_ui(hwndParent, dwFlags, cfg, usr, ppwszIdentity, ppEapError) ||
|
||||||
|
@ -32,14 +32,14 @@ namespace eap
|
|||||||
///
|
///
|
||||||
/// A group of methods all EAP peers must or should implement.
|
/// A group of methods all EAP peers must or should implement.
|
||||||
///
|
///
|
||||||
template <class _Tcfg, class _Tid, class _Tint, class _Tintres> class peer_base;
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres> class peer_base;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// EAP peer base class
|
/// EAP peer base class
|
||||||
///
|
///
|
||||||
/// A group of methods all EAP peers must or should implement.
|
/// A group of methods all EAP peers must or should implement.
|
||||||
///
|
///
|
||||||
template <class _Tcfg, class _Tid, class _Tint, class _Tintres> class peer;
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres> class peer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -654,24 +654,29 @@ namespace eap
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
template <class _Tcfg, class _Tid, class _Tint, class _Tintres>
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres>
|
||||||
class peer_base : public module
|
class peer_base : public module
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
///
|
||||||
|
/// Method configuration data type
|
||||||
|
///
|
||||||
|
typedef _Tmeth config_method_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Provider configuration data type
|
/// Provider configuration data type
|
||||||
///
|
///
|
||||||
typedef config_provider<_Tcfg> provider_config_type;
|
typedef config_provider<config_method_type> config_provider_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Configuration data type
|
/// Configuration data type
|
||||||
///
|
///
|
||||||
typedef config_providers<provider_config_type> config_type;
|
typedef config_providers<config_provider_type> config_providers_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Identity data type
|
/// Credentials data type
|
||||||
///
|
///
|
||||||
typedef _Tid identity_type;
|
typedef _Tcred credentials_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Interactive request data type
|
/// Interactive request data type
|
||||||
@ -691,14 +696,14 @@ namespace eap
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
template <class _Tcfg, class _Tid, class _Tint, class _Tintres>
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres>
|
||||||
class peer : public peer_base<_Tcfg, _Tid, _Tint, _Tintres>
|
class peer : public peer_base<_Tmeth, _Tcred, _Tint, _Tintres>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
/// Constructs a EAP peer module for the given EAP type
|
/// Constructs a EAP peer module for the given EAP type
|
||||||
///
|
///
|
||||||
peer(_In_ type_t eap_method) : peer_base<_Tcfg, _Tid, _Tint, _Tintres>(eap_method) {}
|
peer(_In_ type_t eap_method) : peer_base<_Tmeth, _Tcred, _Tint, _Tintres>(eap_method) {}
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Initializes an EAP peer method for EAPHost.
|
/// Initializes an EAP peer method for EAPHost.
|
||||||
@ -733,8 +738,8 @@ namespace eap
|
|||||||
///
|
///
|
||||||
virtual bool get_identity(
|
virtual bool get_identity(
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_In_ const config_type &cfg,
|
_In_ const config_providers_type &cfg,
|
||||||
_Inout_ identity_type &usr,
|
_Inout_ credentials_type &usr,
|
||||||
_In_ HANDLE hTokenImpersonateUser,
|
_In_ HANDLE hTokenImpersonateUser,
|
||||||
_Out_ BOOL *pfInvokeUI,
|
_Out_ BOOL *pfInvokeUI,
|
||||||
_Out_ WCHAR **ppwszIdentity,
|
_Out_ WCHAR **ppwszIdentity,
|
||||||
@ -753,8 +758,8 @@ namespace eap
|
|||||||
_In_ DWORD dwVersion,
|
_In_ DWORD dwVersion,
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_In_ HANDLE hUserImpersonationToken,
|
_In_ HANDLE hUserImpersonationToken,
|
||||||
_In_ const config_type &cfg,
|
_In_ const config_providers_type &cfg,
|
||||||
_In_ const identity_type &usr,
|
_In_ const credentials_type &usr,
|
||||||
_Out_ EAP_METHOD_PROPERTY_ARRAY *pMethodPropertyArray,
|
_Out_ EAP_METHOD_PROPERTY_ARRAY *pMethodPropertyArray,
|
||||||
_Out_ EAP_ERROR **ppEapError) const = 0;
|
_Out_ EAP_ERROR **ppEapError) const = 0;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ namespace eap
|
|||||||
///
|
///
|
||||||
/// EAP session
|
/// EAP session
|
||||||
///
|
///
|
||||||
template <class _Tcfg, class _Tid, class _Tint, class _Tintres> class session;
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres> class session;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -40,24 +40,29 @@ extern "C" {
|
|||||||
|
|
||||||
namespace eap
|
namespace eap
|
||||||
{
|
{
|
||||||
template <class _Tcfg, class _Tid, class _Tint, class _Tintres>
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres>
|
||||||
class session
|
class session
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
///
|
||||||
|
/// Method configuration data type
|
||||||
|
///
|
||||||
|
typedef _Tmeth config_method_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Provider configuration data type
|
/// Provider configuration data type
|
||||||
///
|
///
|
||||||
typedef config_provider<_Tcfg> provider_config_type;
|
typedef config_provider<config_method_type> config_provider_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Configuration data type
|
/// Configuration data type
|
||||||
///
|
///
|
||||||
typedef config_providers<provider_config_type> config_type;
|
typedef config_providers<config_provider_type> config_providers_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Identity data type
|
/// Credentials data type
|
||||||
///
|
///
|
||||||
typedef _Tid identity_type;
|
typedef _Tcred credentials_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Interactive request data type
|
/// Interactive request data type
|
||||||
@ -78,7 +83,7 @@ namespace eap
|
|||||||
session(_In_ module &mod) :
|
session(_In_ module &mod) :
|
||||||
m_module(mod),
|
m_module(mod),
|
||||||
m_cfg(mod),
|
m_cfg(mod),
|
||||||
m_id(mod)
|
m_cred(mod)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,7 +96,7 @@ namespace eap
|
|||||||
session(_In_ const session &other) :
|
session(_In_ const session &other) :
|
||||||
m_module(other.m_module),
|
m_module(other.m_module),
|
||||||
m_cfg(other.m_cfg),
|
m_cfg(other.m_cfg),
|
||||||
m_id(other.m_id)
|
m_cred(other.m_cred)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +109,7 @@ namespace eap
|
|||||||
session(_Inout_ session &&other) :
|
session(_Inout_ session &&other) :
|
||||||
m_module(other.m_module),
|
m_module(other.m_module),
|
||||||
m_cfg(std::move(other.m_cfg)),
|
m_cfg(std::move(other.m_cfg)),
|
||||||
m_id(std::move(other.m_id))
|
m_cred(std::move(other.m_cred))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +126,7 @@ namespace eap
|
|||||||
if (this != std::addressof(other)) {
|
if (this != std::addressof(other)) {
|
||||||
assert(std::addressof(m_module) ==std::addressof(other.m_module)); // Copy session within same module only!
|
assert(std::addressof(m_module) ==std::addressof(other.m_module)); // Copy session within same module only!
|
||||||
m_cfg = other.m_cfg;
|
m_cfg = other.m_cfg;
|
||||||
m_id = other.m_id;
|
m_cred = other.m_cred;
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
@ -139,7 +144,7 @@ namespace eap
|
|||||||
if (this != std::addressof(other)) {
|
if (this != std::addressof(other)) {
|
||||||
assert(std::addressof(m_module) ==std::addressof(other.m_module)); // Move session within same module only!
|
assert(std::addressof(m_module) ==std::addressof(other.m_module)); // Move session within same module only!
|
||||||
m_cfg = std::move(other.m_cfg);
|
m_cfg = std::move(other.m_cfg);
|
||||||
m_id = std::move(other.m_id);
|
m_cred = std::move(other.m_cred);
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
@ -361,7 +366,7 @@ namespace eap
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
module &m_module; ///< Reference of the EAP module
|
module &m_module; ///< Reference of the EAP module
|
||||||
config_type m_cfg; ///< Session configuration
|
config_providers_type m_cfg; ///< Session configuration
|
||||||
identity_type m_id; ///< User identity
|
credentials_type m_cred; ///< User credentials
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// Configuration data type
|
/// Configuration data type
|
||||||
///
|
///
|
||||||
typedef eap::config_providers<_Tprov> config_type;
|
typedef eap::config_providers<_Tprov> config_providers_type;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// This data type
|
/// This data type
|
||||||
@ -107,7 +107,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// Constructs a configuration dialog
|
/// Constructs a configuration dialog
|
||||||
///
|
///
|
||||||
wxEAPConfigDialog(config_type &cfg, wxWindow* parent) :
|
wxEAPConfigDialog(config_providers_type &cfg, wxWindow* parent) :
|
||||||
m_cfg(cfg),
|
m_cfg(cfg),
|
||||||
wxEAPConfigDialogBase(parent)
|
wxEAPConfigDialogBase(parent)
|
||||||
{
|
{
|
||||||
@ -150,7 +150,7 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
config_type &m_cfg; ///< EAP providers configuration
|
config_providers_type &m_cfg; ///< EAP providers configuration
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ namespace eap
|
|||||||
///
|
///
|
||||||
/// A group of methods all EAP UI peers must or should implement.
|
/// A group of methods all EAP UI peers must or should implement.
|
||||||
///
|
///
|
||||||
template <class _Tmeth, class _Tid, class _Tint, class _Tintres> class peer_ui;
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres> class peer_ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -35,14 +35,14 @@ namespace eap
|
|||||||
|
|
||||||
namespace eap
|
namespace eap
|
||||||
{
|
{
|
||||||
template <class _Tcfg, class _Tid, class _Tint, class _Tintres>
|
template <class _Tmeth, class _Tcred, class _Tint, class _Tintres>
|
||||||
class peer_ui : public peer_base<_Tcfg, _Tid, _Tint, _Tintres>
|
class peer_ui : public peer_base<_Tmeth, _Tcred, _Tint, _Tintres>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
/// Constructs a EAP UI peer module for the given EAP type
|
/// Constructs a EAP UI peer module for the given EAP type
|
||||||
///
|
///
|
||||||
peer_ui(_In_ type_t eap_method) : peer_base<_Tcfg, _Tid, _Tint, _Tintres>(eap_method) {}
|
peer_ui(_In_ type_t eap_method) : peer_base<_Tmeth, _Tcred, _Tint, _Tintres>(eap_method) {}
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Raises the EAP method's specific connection configuration user interface dialog on the client.
|
/// Raises the EAP method's specific connection configuration user interface dialog on the client.
|
||||||
@ -59,7 +59,7 @@ namespace eap
|
|||||||
///
|
///
|
||||||
virtual bool invoke_config_ui(
|
virtual bool invoke_config_ui(
|
||||||
_In_ HWND hwndParent,
|
_In_ HWND hwndParent,
|
||||||
_Inout_ config_type &cfg,
|
_Inout_ config_providers_type &cfg,
|
||||||
_Out_ EAP_ERROR **ppEapError) = 0;
|
_Out_ EAP_ERROR **ppEapError) = 0;
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -81,8 +81,8 @@ namespace eap
|
|||||||
virtual bool invoke_identity_ui(
|
virtual bool invoke_identity_ui(
|
||||||
_In_ HWND hwndParent,
|
_In_ HWND hwndParent,
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_Inout_ config_type &cfg,
|
_Inout_ config_providers_type &cfg,
|
||||||
_Inout_ identity_type &usr,
|
_Inout_ credentials_type &usr,
|
||||||
_Out_ LPWSTR *ppwszIdentity,
|
_Out_ LPWSTR *ppwszIdentity,
|
||||||
_Out_ EAP_ERROR **ppEapError) = 0;
|
_Out_ EAP_ERROR **ppEapError) = 0;
|
||||||
|
|
||||||
|
@ -76,8 +76,8 @@ namespace eap
|
|||||||
///
|
///
|
||||||
virtual bool get_identity(
|
virtual bool get_identity(
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_In_ const config_type &cfg,
|
_In_ const config_providers_type &cfg,
|
||||||
_Inout_ identity_type &usr,
|
_Inout_ credentials_type &usr,
|
||||||
_In_ HANDLE hTokenImpersonateUser,
|
_In_ HANDLE hTokenImpersonateUser,
|
||||||
_Out_ BOOL *pfInvokeUI,
|
_Out_ BOOL *pfInvokeUI,
|
||||||
_Out_ WCHAR **ppwszIdentity,
|
_Out_ WCHAR **ppwszIdentity,
|
||||||
@ -96,8 +96,8 @@ namespace eap
|
|||||||
_In_ DWORD dwVersion,
|
_In_ DWORD dwVersion,
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_In_ HANDLE hUserImpersonationToken,
|
_In_ HANDLE hUserImpersonationToken,
|
||||||
_In_ const config_type &cfg,
|
_In_ const config_providers_type &cfg,
|
||||||
_In_ const identity_type &usr,
|
_In_ const credentials_type &usr,
|
||||||
_Out_ EAP_METHOD_PROPERTY_ARRAY *pMethodPropertyArray,
|
_Out_ EAP_METHOD_PROPERTY_ARRAY *pMethodPropertyArray,
|
||||||
_Out_ EAP_ERROR **ppEapError) const;
|
_Out_ EAP_ERROR **ppEapError) const;
|
||||||
};
|
};
|
||||||
|
@ -60,8 +60,8 @@ bool eap::peer_ttls::shutdown(_Out_ EAP_ERROR **ppEapError)
|
|||||||
|
|
||||||
bool eap::peer_ttls::get_identity(
|
bool eap::peer_ttls::get_identity(
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_In_ const config_type &cfg,
|
_In_ const config_providers_type &cfg,
|
||||||
_Inout_ identity_type &usr,
|
_Inout_ credentials_type &usr,
|
||||||
_In_ HANDLE hTokenImpersonateUser,
|
_In_ HANDLE hTokenImpersonateUser,
|
||||||
_Out_ BOOL *pfInvokeUI,
|
_Out_ BOOL *pfInvokeUI,
|
||||||
_Out_ WCHAR **ppwszIdentity,
|
_Out_ WCHAR **ppwszIdentity,
|
||||||
@ -84,8 +84,8 @@ bool eap::peer_ttls::get_method_properties(
|
|||||||
_In_ DWORD dwVersion,
|
_In_ DWORD dwVersion,
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_In_ HANDLE hUserImpersonationToken,
|
_In_ HANDLE hUserImpersonationToken,
|
||||||
_In_ const config_type &cfg,
|
_In_ const config_providers_type &cfg,
|
||||||
_In_ const identity_type &usr,
|
_In_ const credentials_type &usr,
|
||||||
_Out_ EAP_METHOD_PROPERTY_ARRAY *pMethodPropertyArray,
|
_Out_ EAP_METHOD_PROPERTY_ARRAY *pMethodPropertyArray,
|
||||||
_Out_ EAP_ERROR **ppEapError) const
|
_Out_ EAP_ERROR **ppEapError) const
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ namespace eap
|
|||||||
///
|
///
|
||||||
virtual bool invoke_config_ui(
|
virtual bool invoke_config_ui(
|
||||||
_In_ HWND hwndParent,
|
_In_ HWND hwndParent,
|
||||||
_Inout_ config_type &cfg,
|
_Inout_ config_providers_type &cfg,
|
||||||
_Out_ EAP_ERROR **ppEapError);
|
_Out_ EAP_ERROR **ppEapError);
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -80,8 +80,8 @@ namespace eap
|
|||||||
virtual bool invoke_identity_ui(
|
virtual bool invoke_identity_ui(
|
||||||
_In_ HWND hwndParent,
|
_In_ HWND hwndParent,
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_Inout_ config_type &cfg,
|
_Inout_ config_providers_type &cfg,
|
||||||
_Inout_ identity_type &usr,
|
_Inout_ credentials_type &usr,
|
||||||
_Out_ LPWSTR *ppwszIdentity,
|
_Out_ LPWSTR *ppwszIdentity,
|
||||||
_Out_ EAP_ERROR **ppEapError);
|
_Out_ EAP_ERROR **ppEapError);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ eap::peer_ttls_ui::peer_ttls_ui() : peer_ui<eap::config_method_ttls, eap::creden
|
|||||||
|
|
||||||
bool eap::peer_ttls_ui::invoke_config_ui(
|
bool eap::peer_ttls_ui::invoke_config_ui(
|
||||||
_In_ HWND hwndParent,
|
_In_ HWND hwndParent,
|
||||||
_Inout_ config_type &cfg,
|
_Inout_ config_providers_type &cfg,
|
||||||
_Out_ EAP_ERROR **ppEapError)
|
_Out_ EAP_ERROR **ppEapError)
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(ppEapError);
|
UNREFERENCED_PARAMETER(ppEapError);
|
||||||
@ -50,7 +50,7 @@ bool eap::peer_ttls_ui::invoke_config_ui(
|
|||||||
wxTopLevelWindows.Append(&parent);
|
wxTopLevelWindows.Append(&parent);
|
||||||
|
|
||||||
// Create and launch configuration dialog.
|
// Create and launch configuration dialog.
|
||||||
wxEAPConfigDialog<config_method_ttls, wxTTLSConfigWindow<provider_config_type> > dlg(cfg, &parent);
|
wxEAPConfigDialog<config_method_ttls, wxTTLSConfigWindow<config_provider_type> > dlg(cfg, &parent);
|
||||||
result = dlg.ShowModal();
|
result = dlg.ShowModal();
|
||||||
|
|
||||||
wxTopLevelWindows.DeleteObject(&parent);
|
wxTopLevelWindows.DeleteObject(&parent);
|
||||||
@ -71,8 +71,8 @@ bool eap::peer_ttls_ui::invoke_config_ui(
|
|||||||
bool eap::peer_ttls_ui::invoke_identity_ui(
|
bool eap::peer_ttls_ui::invoke_identity_ui(
|
||||||
_In_ HWND hwndParent,
|
_In_ HWND hwndParent,
|
||||||
_In_ DWORD dwFlags,
|
_In_ DWORD dwFlags,
|
||||||
_Inout_ config_type &cfg,
|
_Inout_ config_providers_type &cfg,
|
||||||
_Inout_ identity_type &usr,
|
_Inout_ credentials_type &usr,
|
||||||
_Out_ LPWSTR *ppwszIdentity,
|
_Out_ LPWSTR *ppwszIdentity,
|
||||||
_Out_ EAP_ERROR **ppEapError)
|
_Out_ EAP_ERROR **ppEapError)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user