From 4e3e78251926e511d9681db043525c5ac1585e7e Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 6 Feb 2019 22:00:23 +0000 Subject: [PATCH] Remove pointless local auth_message variable (sasl.scram) --- modules/sasl/scram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/sasl/scram.py b/modules/sasl/scram.py index f73f39a4..9756d7cf 100644 --- a/modules/sasl/scram.py +++ b/modules/sasl/scram.py @@ -64,10 +64,10 @@ class SCRAM(object): channel = base64.b64encode(b"n,,") auth_noproof = b"c=%s,r=%s" % (channel, nonce) - auth_message = b"%s,%s,%s" % (self._client_first, data, auth_noproof) - self._auth_message = auth_message + self._auth_message = b"%s,%s,%s" % ( + self._client_first, data, auth_noproof) - client_signature = self._hmac(stored_key, auth_message) + client_signature = self._hmac(stored_key, self._auth_message) client_proof = base64.b64encode( _scram_xor(client_key, client_signature))