sshagent: add a few fixes and assertions

This commit is contained in:
Roman Zeyde
2015-07-03 16:35:21 +03:00
parent 3057a3d7a9
commit a77f9edb4e
4 changed files with 7 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ def _string_to_identity(s):
host, port = _rsplit(s, ':')
if not proto:
proto = 'ssh'
proto = 'ssh' # otherwise, Trezor will use SECP256K1 curve
result = [
('proto', proto), ('user', user), ('host', host),
@@ -148,4 +148,7 @@ def _parse_ssh_blob(data):
res['pubkey'] = util.read_frame(i)
log.debug('%s: user %r via %r (%r)',
res['conn'], res['user'], res['auth'], res['key_type'])
log.debug('nonce: %s', binascii.hexlify(res['nonce']))
pubkey = formats.parse_pubkey(res['pubkey'])
log.debug('fingerprint: %s', pubkey['fingerprint'])
return res