diff --git a/lib/TTLS/include/Credentials.h b/lib/TTLS/include/Credentials.h index 732564f..c37ae67 100644 --- a/lib/TTLS/include/Credentials.h +++ b/lib/TTLS/include/Credentials.h @@ -176,6 +176,11 @@ namespace eap /// virtual bool retrieve(_In_ LPCTSTR pszTargetName, _Out_ EAP_ERROR **ppEapError); + /// + /// Return target suffix for Windows Credential Manager credential name + /// + virtual LPCTSTR target_suffix() const; + /// /// Returns credential identity. /// diff --git a/lib/TTLS/src/Credentials.cpp b/lib/TTLS/src/Credentials.cpp index 5428d60..78f7601 100644 --- a/lib/TTLS/src/Credentials.cpp +++ b/lib/TTLS/src/Credentials.cpp @@ -232,6 +232,13 @@ bool eap::credentials_ttls::retrieve(_In_ LPCTSTR pszTargetName, _Out_ EAP_ERROR } +LPCTSTR eap::credentials_ttls::target_suffix() const +{ + assert(0); // Not that we would ever store inner&outer credentials to Windows Credential Manager joined, but for completness sake... Here we go: + return _T("TTLS"); +} + + std::wstring eap::credentials_ttls::get_identity() const { // Outer identity has the right-of-way.