mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
irclib.py: fix an encoding error with Python 3 and SASL ECDSA-NIST256P-CHALLENGE
Closes ProgVal#1028.
This commit is contained in:
parent
b2f245d8a8
commit
561085cbd1
@ -1009,7 +1009,7 @@ class Irc(IrcCommandDispatcher):
|
||||
private_key = SigningKey.from_pem(open(self.sasl_ecdsa_key).
|
||||
read())
|
||||
authstring = base64.b64encode(
|
||||
private_key.sign(base64.b64decode(msg.args[0]))).decode('utf-8')
|
||||
private_key.sign(base64.b64decode(msg.args[0].encode()))).decode('utf-8')
|
||||
except (BadDigestError, OSError, ValueError) as e:
|
||||
authstring = "*"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user