Identity selection revised to support cases where TLS certificate is present but contains no usable username

This commit is contained in:
Simon Rozman 2016-08-28 16:38:13 +02:00
parent 8ce7154a77
commit d20aafb3ff

View File

@ -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)