client: implement PassphraseStateRequest handling

This commit is contained in:
Pavol Rusnak 2018-02-28 23:12:55 +01:00
parent ce9da28a3d
commit 7841bbefbe
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 6 additions and 0 deletions

View File

@ -301,6 +301,9 @@ class TextUIMixin(object):
log("Passphrase did not match! ")
exit()
def callback_PassphraseStateRequest(self, msg):
return proto.PassphraseStateAck()
def callback_WordRequest(self, msg):
if msg.type in (proto.WordRequestType.Matrix9,
proto.WordRequestType.Matrix6):
@ -445,6 +448,9 @@ class DebugLinkMixin(object):
log("Provided passphrase: '%s'" % self.passphrase)
return proto.PassphraseAck(passphrase=self.passphrase)
def callback_PassphraseStateRequest(self, msg):
return proto.PassphraseStateAck()
def callback_WordRequest(self, msg):
(word, pos) = self.debug.read_recovery_word()
if word != '':