summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/SASL/DIGESTMD5ClientAuthenticator.h')
-rw-r--r--Swiften/SASL/DIGESTMD5ClientAuthenticator.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/Swiften/SASL/DIGESTMD5ClientAuthenticator.h b/Swiften/SASL/DIGESTMD5ClientAuthenticator.h
index 6209e40..4a857d3 100644
--- a/Swiften/SASL/DIGESTMD5ClientAuthenticator.h
+++ b/Swiften/SASL/DIGESTMD5ClientAuthenticator.h
@@ -16,24 +16,24 @@
#include <Swiften/SASL/DIGESTMD5Properties.h>
namespace Swift {
- class CryptoProvider;
+ class CryptoProvider;
- class SWIFTEN_API DIGESTMD5ClientAuthenticator : public ClientAuthenticator {
- public:
- DIGESTMD5ClientAuthenticator(const std::string& host, const std::string& nonce, CryptoProvider*);
-
- virtual boost::optional<SafeByteArray> getResponse() const;
- virtual bool setChallenge(const boost::optional<std::vector<unsigned char> >&);
+ class SWIFTEN_API DIGESTMD5ClientAuthenticator : public ClientAuthenticator {
+ public:
+ DIGESTMD5ClientAuthenticator(const std::string& host, const std::string& nonce, CryptoProvider*);
- private:
- enum Step {
- Initial,
- Response,
- Final
- } step;
- std::string host;
- std::string cnonce;
- CryptoProvider* crypto;
- DIGESTMD5Properties challenge;
- };
+ virtual boost::optional<SafeByteArray> getResponse() const;
+ virtual bool setChallenge(const boost::optional<std::vector<unsigned char> >&);
+
+ private:
+ enum Step {
+ Initial,
+ Response,
+ Final
+ } step;
+ std::string host;
+ std::string cnonce;
+ CryptoProvider* crypto;
+ DIGESTMD5Properties challenge;
+ };
}