diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-10 17:17:16 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-10 17:17:16 (GMT) |
commit | 4b65bb3fc0cfa55cf0533406877da20fb4da9e7b (patch) | |
tree | 3b8cc23d4e7c6397de179850bf006683bc40fa6c /Swiften/SASL/SCRAMSHA1ClientAuthenticator.h | |
parent | 08cc79dfe35b0735ef49108b82c52f94aab02e84 (diff) | |
download | swift-4b65bb3fc0cfa55cf0533406877da20fb4da9e7b.zip swift-4b65bb3fc0cfa55cf0533406877da20fb4da9e7b.tar.bz2 |
Added TLS channel binding support to SCRAMSHA1ClientAuthenticator.
Diffstat (limited to 'Swiften/SASL/SCRAMSHA1ClientAuthenticator.h')
-rw-r--r-- | Swiften/SASL/SCRAMSHA1ClientAuthenticator.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h index 396cc93..b44e6b7 100644 --- a/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h +++ b/Swiften/SASL/SCRAMSHA1ClientAuthenticator.h @@ -7,6 +7,7 @@ #pragma once #include <map> +#include <boost/optional.hpp> #include "Swiften/Base/String.h" #include "Swiften/Base/ByteArray.h" @@ -15,7 +16,9 @@ namespace Swift { class SCRAMSHA1ClientAuthenticator : public ClientAuthenticator { public: - SCRAMSHA1ClientAuthenticator(const String& nonce); + SCRAMSHA1ClientAuthenticator(const String& nonce, bool useChannelBinding = false); + + void setTLSChannelBindingData(const ByteArray& channelBindingData); virtual boost::optional<ByteArray> getResponse() const; virtual bool setChallenge(const boost::optional<ByteArray>&); @@ -38,5 +41,7 @@ namespace Swift { ByteArray authMessage; ByteArray saltedPassword; ByteArray serverSignature; + bool useChannelBinding; + boost::optional<ByteArray> tlsChannelBindingData; }; } |