mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fix ecdsa nameerror introduced in previous commit.
This commit is contained in:
parent
e87ad5b5a3
commit
9be4db01f8
@ -1142,7 +1142,7 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
||||
try:
|
||||
with open(self.sasl_ecdsa_key) as fd:
|
||||
private_key = ecdsa.SigningKey.from_pem(fd.read())
|
||||
authstring = private_key.sign(base64.b64decode(msg.args[0].encode()))
|
||||
authstring = private_key.sign(string)
|
||||
self.sendSaslString(authstring)
|
||||
except (ecdsa.BadDigestError, OSError, ValueError):
|
||||
self.sendMsg(ircmsgs.IrcMsg(command='AUTHENTICATE',
|
||||
|
Loading…
Reference in New Issue
Block a user