From e4107d8b4d57476721d4d383208fa785f6306a1f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 28 Apr 2017 21:26:03 +0100 Subject: sasl: Merge two bytes instead of concatenating them at runtime. --- slixmpp/util/sasl/mechanisms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slixmpp/util/sasl/mechanisms.py b/slixmpp/util/sasl/mechanisms.py index b74d09c9..36b2795c 100644 --- a/slixmpp/util/sasl/mechanisms.py +++ b/slixmpp/util/sasl/mechanisms.py @@ -291,8 +291,7 @@ class SCRAM(Mech): cbind_input = self.gs2_header + cbind_data channel_binding = b'c=' + b64encode(cbind_input).replace(b'\n', b'') - client_final_message_without_proof = channel_binding + b',' + \ - b'r=' + nonce + client_final_message_without_proof = channel_binding + b',r=' + nonce salted_password = self.Hi(self.credentials['password'], salt, -- cgit v1.2.3