summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-24 03:06:32 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-24 03:06:32 +0200
commit84a5ceeb7db03d75425d72e8a23a0bb0f267bc01 (patch)
tree7a7702429a7cdbc06144b2141eb80ee2aa462d39 /src/modules
parent415cd36477e152c12f91a10ad61bb719373cd9d1 (diff)
downloadmad-84a5ceeb7db03d75425d72e8a23a0bb0f267bc01.tar
mad-84a5ceeb7db03d75425d72e8a23a0bb0f267bc01.zip
Hash-Klasse hinzugefügt
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/AuthBackendFile/AuthBackendFile.cpp4
-rw-r--r--src/modules/AuthBackendFile/AuthBackendFile.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/AuthBackendFile/AuthBackendFile.cpp b/src/modules/AuthBackendFile/AuthBackendFile.cpp
index 8374101..ac7a1db 100644
--- a/src/modules/AuthBackendFile/AuthBackendFile.cpp
+++ b/src/modules/AuthBackendFile/AuthBackendFile.cpp
@@ -75,7 +75,7 @@ bool AuthBackendFile::handleConfigEntry(const Core::ConfigEntry &entry, bool /*h
}
boost::shared_ptr<Common::AuthContext> AuthBackendFile::authenticate(const std::string &method, const std::string &user,
- const std::vector<boost::uint8_t> &challenge, std::vector<boost::uint8_t>& /*response*/,
+ const std::vector<boost::uint8_t> &data, std::vector<boost::uint8_t>& /*response*/,
boost::shared_ptr<Common::AuthContext> context) throw(Core::Exception) {
if(method != "Password")
throw(Core::Exception(Core::Exception::INVALID_INPUT));
@@ -86,7 +86,7 @@ boost::shared_ptr<Common::AuthContext> AuthBackendFile::authenticate(const std::
if(context.get() == 0)
context.reset(new AuthContextFile);
- std::string password(challenge.begin(), challenge.end());
+ std::string password(data.begin(), data.end());
std::map<std::string, std::string>::iterator userIt = userMap.find(user);
if(userIt == userMap.end() || password != userIt->second)
diff --git a/src/modules/AuthBackendFile/AuthBackendFile.h b/src/modules/AuthBackendFile/AuthBackendFile.h
index 81e7d12..90f572c 100644
--- a/src/modules/AuthBackendFile/AuthBackendFile.h
+++ b/src/modules/AuthBackendFile/AuthBackendFile.h
@@ -58,7 +58,7 @@ class MAD_MODULE_EXPORT AuthBackendFile : public Common::AuthBackend, private Co
}
virtual boost::shared_ptr<Common::AuthContext> authenticate(const std::string &method, const std::string &user,
- const std::vector<boost::uint8_t> &challenge, std::vector<boost::uint8_t> &response,
+ const std::vector<boost::uint8_t> &data, std::vector<boost::uint8_t> &response,
boost::shared_ptr<Common::AuthContext> context) throw(Core::Exception);
public: