trezor: simplify client API

This commit is contained in:
Roman Zeyde
2015-08-19 17:40:16 +03:00
parent 5d510c4a60
commit e4a7d9aa06
3 changed files with 5 additions and 7 deletions

View File

@@ -88,7 +88,7 @@ def trezor_agent():
if command:
command = ['git'] + command
identity = client.get_identity(label=label, protocol='ssh')
identity = client.get_identity(label=label)
public_key = client.get_public_key(identity=identity)
use_shell = False
@@ -105,7 +105,7 @@ def trezor_agent():
return
def signer(label, blob):
identity = client.get_identity(label=label, protocol='ssh')
identity = client.get_identity(label=label)
return client.sign_ssh_challenge(identity=identity, blob=blob)
try: