Fix ecdsa nameerror introduced in previous commit.

This commit is contained in:
Valentin Lorentz 2017-01-10 23:27:50 +01:00
parent e87ad5b5a3
commit 9be4db01f8
1 changed files with 1 additions and 1 deletions

View File

@ -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',