From 84a5ceeb7db03d75425d72e8a23a0bb0f267bc01 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 24 Aug 2009 03:06:32 +0200 Subject: =?UTF-8?q?Hash-Klasse=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/AuthBackendFile/AuthBackendFile.cpp | 4 ++-- src/modules/AuthBackendFile/AuthBackendFile.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') 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 AuthBackendFile::authenticate(const std::string &method, const std::string &user, - const std::vector &challenge, std::vector& /*response*/, + const std::vector &data, std::vector& /*response*/, boost::shared_ptr context) throw(Core::Exception) { if(method != "Password") throw(Core::Exception(Core::Exception::INVALID_INPUT)); @@ -86,7 +86,7 @@ boost::shared_ptr 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::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 authenticate(const std::string &method, const std::string &user, - const std::vector &challenge, std::vector &response, + const std::vector &data, std::vector &response, boost::shared_ptr context) throw(Core::Exception); public: -- cgit v1.2.3