summaryrefslogtreecommitdiffstats
path: root/src/modules/AuthBackendFile
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/AuthBackendFile')
-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: