diff options
author | lloyd <[email protected]> | 2012-01-27 15:47:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-27 15:47:33 +0000 |
commit | b96fde715dddbb3fe1eb6a9077bb92182dfa1635 (patch) | |
tree | c0ff39002fbe7bff1a72a296140827388ccef468 /src/credentials/credentials_manager.cpp | |
parent | 681a587b4766f660c758539110b6b8adb73a62a6 (diff) |
Split up the psk function as the server also wants to be able to look
up a PSK from an identity.
Diffstat (limited to 'src/credentials/credentials_manager.cpp')
-rw-r--r-- | src/credentials/credentials_manager.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/credentials/credentials_manager.cpp b/src/credentials/credentials_manager.cpp index fee849e47..7ca6ac657 100644 --- a/src/credentials/credentials_manager.cpp +++ b/src/credentials/credentials_manager.cpp @@ -15,12 +15,18 @@ std::string Credentials_Manager::psk_identity_hint(const std::string&, return ""; } -std::pair<std::string, SymmetricKey> -Credentials_Manager::psk(const std::string&, - const std::string&, - const std::string& identity_hint) +std::string Credentials_Manager::psk_identity(const std::string&, + const std::string&, + const std::string&) + { + return ""; + } + +SymmetricKey Credentials_Manager::psk(const std::string&, + const std::string&, + const std::string& identity) { - throw Internal_Error("No PSK set for " + identity_hint); + throw Internal_Error("No PSK set for identity " + identity); } std::string Credentials_Manager::srp_identifier(const std::string&, |