mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 02:54:05 +01:00
Merge pull request #1029 from GLolol/ecdsa-fixes
irclib.py: fix an encoding error with Python 3 and SASL ECDSA-NIST256P-CHALLENGE
This commit is contained in:
commit
35d267b498
@ -1009,7 +1009,7 @@ class Irc(IrcCommandDispatcher):
|
|||||||
private_key = SigningKey.from_pem(open(self.sasl_ecdsa_key).
|
private_key = SigningKey.from_pem(open(self.sasl_ecdsa_key).
|
||||||
read())
|
read())
|
||||||
authstring = base64.b64encode(
|
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:
|
except (BadDigestError, OSError, ValueError) as e:
|
||||||
authstring = "*"
|
authstring = "*"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user