Identity selection revised to support cases where TLS certificate is present but contains no usable username
This commit is contained in:
parent
8ce7154a77
commit
d20aafb3ff
@ -216,11 +216,12 @@ LPCTSTR eap::credentials_ttls::target_suffix() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::wstring eap::credentials_ttls::get_identity() const
|
wstring eap::credentials_ttls::get_identity() const
|
||||||
{
|
{
|
||||||
// Outer identity has the right-of-way.
|
// Outer identity has the right-of-way.
|
||||||
if (!credentials_tls::empty())
|
wstring identity(credentials_tls::get_identity());
|
||||||
return credentials_tls::get_identity();
|
if (!identity.empty())
|
||||||
|
return identity;
|
||||||
|
|
||||||
// Inner identity.
|
// Inner identity.
|
||||||
if (m_inner)
|
if (m_inner)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user