diff options
| author | 2019-02-06 22:00:23 +0000 | |
|---|---|---|
| committer | 2019-02-06 22:00:23 +0000 | |
| commit | 4e3e78251926e511d9681db043525c5ac1585e7e (patch) | |
| tree | e8f8c6394e35db5085edb25e7b4f3894161c2b54 | |
| parent | Move parsing username, password and algorithm to the only place that uses it and (diff) | |
| signature | ||
Remove pointless local auth_message variable (sasl.scram)
| -rw-r--r-- | modules/sasl/scram.py | 6 |
1 files 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)) |
