summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-10 17:17:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-10 17:17:16 (GMT)
commit4b65bb3fc0cfa55cf0533406877da20fb4da9e7b (patch)
tree3b8cc23d4e7c6397de179850bf006683bc40fa6c /Swiften/Client
parent08cc79dfe35b0735ef49108b82c52f94aab02e84 (diff)
downloadswift-4b65bb3fc0cfa55cf0533406877da20fb4da9e7b.zip
swift-4b65bb3fc0cfa55cf0533406877da20fb4da9e7b.tar.bz2
Added TLS channel binding support to SCRAMSHA1ClientAuthenticator.
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/ClientSession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Client/ClientSession.cpp b/Swiften/Client/ClientSession.cpp
index a7f39b6..0398012 100644
--- a/Swiften/Client/ClientSession.cpp
+++ b/Swiften/Client/ClientSession.cpp
@@ -192,10 +192,10 @@ void ClientSession::handleElement(boost::shared_ptr<Element> element) {
stream->writeElement(boost::shared_ptr<Element>(new AuthRequest("EXTERNAL", "")));
}
else if (streamFeatures->hasAuthenticationMechanism("SCRAM-SHA-1")) {
- // FIXME: Use a real nonce
std::ostringstream s;
s << boost::uuids::random_generator()();
- authenticator = new SCRAMSHA1ClientAuthenticator(s.str());
+ SCRAMSHA1ClientAuthenticator* scramAuthenticator = new SCRAMSHA1ClientAuthenticator(s.str(), false);
+ authenticator = scramAuthenticator;
state = WaitingForCredentials;
onNeedCredentials();
}