credentials_ttls::get_identity() introduced
This commit is contained in:
parent
35034789d2
commit
cc43b44d91
@ -176,6 +176,11 @@ namespace eap
|
|||||||
///
|
///
|
||||||
virtual bool retrieve(_In_ LPCTSTR pszTargetName, _Out_ EAP_ERROR **ppEapError);
|
virtual bool retrieve(_In_ LPCTSTR pszTargetName, _Out_ EAP_ERROR **ppEapError);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Returns credential identity.
|
||||||
|
///
|
||||||
|
virtual std::wstring get_identity() const;
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -230,3 +230,17 @@ bool eap::credentials_ttls::retrieve(_In_ LPCTSTR pszTargetName, _Out_ EAP_ERROR
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
std::wstring eap::credentials_ttls::get_identity() const
|
||||||
|
{
|
||||||
|
// Outer identity has the right-of-way.
|
||||||
|
if (!credentials_tls::empty())
|
||||||
|
return credentials_tls::get_identity();
|
||||||
|
|
||||||
|
// Inner identity.
|
||||||
|
if (m_inner)
|
||||||
|
return m_inner->get_identity();
|
||||||
|
|
||||||
|
return L"";
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user