Identity selection revised to support cases where TLS certificate is present but contains no usable username
This commit is contained in:
@@ -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.
|
||||
if (!credentials_tls::empty())
|
||||
return credentials_tls::get_identity();
|
||||
wstring identity(credentials_tls::get_identity());
|
||||
if (!identity.empty())
|
||||
return identity;
|
||||
|
||||
// Inner identity.
|
||||
if (m_inner)
|
||||
|
Reference in New Issue
Block a user