diff options
| author | Remko Tronçon <git@el-tramo.be> | 2012-11-12 20:05:12 (GMT) |
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2012-11-12 20:18:11 (GMT) |
| commit | 9b83adf9eb38d10f8cd1108d4c608117a1f8459d (patch) | |
| tree | 60924e1cf6137e78ef26366a1f088bf851852ffc | |
| parent | a64db9d0cbe8b838bd3d5277a2de1f9672b4b843 (diff) | |
| download | swift-9b83adf9eb38d10f8cd1108d4c608117a1f8459d.zip swift-9b83adf9eb38d10f8cd1108d4c608117a1f8459d.tar.bz2 | |
Removing unused variable.
Change-Id: I0338404e1437cdcf1947cd73d90455cde75c7e56
| -rw-r--r-- | Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp index 7842b4f..98460b1 100644 --- a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp +++ b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.cpp @@ -85,29 +85,24 @@ bool SCRAMSHA1ClientAuthenticator::setChallenge(const boost::optional<ByteArray> // Extract the number of iterations int iterations = 0; try { iterations = boost::lexical_cast<int>(keys['i']); } catch (const boost::bad_lexical_cast&) { return false; } if (iterations <= 0) { return false; } - ByteArray channelBindData; - if (useChannelBinding && tlsChannelBindingData) { - channelBindData = *tlsChannelBindingData; - } - // Compute all the values needed for the server signature try { saltedPassword = PBKDF2::encode<HMAC_SHA1>(StringPrep::getPrepared(getPassword(), StringPrep::SASLPrep), salt, iterations); } catch (const std::exception&) { } authMessage = concat(getInitialBareClientMessage(), createByteArray(","), initialServerMessage, createByteArray(","), getFinalMessageWithoutProof()); ByteArray serverKey = HMAC_SHA1()(saltedPassword, createByteArray("Server Key")); serverSignature = HMAC_SHA1()(serverKey, authMessage); step = Proof; return true; |
Swift