summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-22 18:43:53 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-22 18:43:53 (GMT)
commit1e0c7d5c9d53ee6678a5f27d554710e6ae56d2da (patch)
tree5bcc524e6b45c34d8fbba6394102ca28cd1899c0 /Swiften/SASL/SCRAMSHA1ClientAuthenticator.h
parent2c4ea892d1da498e486ce48d80de0eee547375f2 (diff)
downloadswift-1e0c7d5c9d53ee6678a5f27d554710e6ae56d2da.zip
swift-1e0c7d5c9d53ee6678a5f27d554710e6ae56d2da.tar.bz2
Fix bug in SCRAM-SHA-1 authzid handling.
Diffstat (limited to 'Swiften/SASL/SCRAMSHA1ClientAuthenticator.h')
-rw-r--r--Swiften/SASL/SCRAMSHA1ClientAuthenticator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h
index b8aaa17..6636139 100644
--- a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h
+++ b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h
@@ -1,34 +1,35 @@
#pragma once
#include <map>
#include "Swiften/Base/String.h"
#include "Swiften/Base/ByteArray.h"
#include "Swiften/SASL/ClientAuthenticator.h"
namespace Swift {
class SCRAMSHA1ClientAuthenticator : public ClientAuthenticator {
public:
SCRAMSHA1ClientAuthenticator(const String& nonce);
virtual ByteArray getResponse() const;
virtual bool setChallenge(const ByteArray&);
private:
ByteArray getInitialBareClientMessage() const;
- static std::map<char, String> parseMap(const String&);
ByteArray getGS2Header() const;
+ static std::map<char, String> parseMap(const String&);
+
private:
enum Step {
Initial,
Proof
} step;
String clientnonce;
ByteArray initialServerMessage;
ByteArray serverNonce;
ByteArray authMessage;
ByteArray saltedPassword;
ByteArray serverSignature;
};
}