From 98f20668c3d96c68eccaaeda0074a2dba2f6b2e5 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 21 Jul 2016 14:11:59 +0200 Subject: [PATCH] credentials_ttls::target_suffix() implemented --- lib/TTLS/include/Credentials.h | 5 +++++ lib/TTLS/src/Credentials.cpp | 7 +++++++ 2 files changed, 12 insertions(+) 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.