aboutsummaryrefslogtreecommitdiffstats
path: root/src/credentials/credentials_manager.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-27 15:39:11 +0000
committerlloyd <[email protected]>2012-01-27 15:39:11 +0000
commit681a587b4766f660c758539110b6b8adb73a62a6 (patch)
tree5196ab3071396e4727d98f71406baf8155b8c842 /src/credentials/credentials_manager.cpp
parent2d31f3fc1b1c88739e5babbd6a9e8cb3b80263de (diff)
Credentials hooks for PSK
Diffstat (limited to 'src/credentials/credentials_manager.cpp')
-rw-r--r--src/credentials/credentials_manager.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/credentials/credentials_manager.cpp b/src/credentials/credentials_manager.cpp
index 2e46a314e..fee849e47 100644
--- a/src/credentials/credentials_manager.cpp
+++ b/src/credentials/credentials_manager.cpp
@@ -9,6 +9,20 @@
namespace Botan {
+std::string Credentials_Manager::psk_identity_hint(const std::string&,
+ const std::string&)
+ {
+ return "";
+ }
+
+std::pair<std::string, SymmetricKey>
+Credentials_Manager::psk(const std::string&,
+ const std::string&,
+ const std::string& identity_hint)
+ {
+ throw Internal_Error("No PSK set for " + identity_hint);
+ }
+
std::string Credentials_Manager::srp_identifier(const std::string&,
const std::string&)
{