mirror of https://github.com/Mikaela/Limnoria.git
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:
|
try:
|
||||||
with open(self.sasl_ecdsa_key) as fd:
|
with open(self.sasl_ecdsa_key) as fd:
|
||||||
private_key = ecdsa.SigningKey.from_pem(fd.read())
|
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)
|
self.sendSaslString(authstring)
|
||||||
except (ecdsa.BadDigestError, OSError, ValueError):
|
except (ecdsa.BadDigestError, OSError, ValueError):
|
||||||
self.sendMsg(ircmsgs.IrcMsg(command='AUTHENTICATE',
|
self.sendMsg(ircmsgs.IrcMsg(command='AUTHENTICATE',
|
||||||
|
|
Loading…
Reference in New Issue