mirror of
https://github.com/romanz/amodem.git
synced 2026-04-17 19:55:58 +08:00
sshagent: add a few fixes and assertions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user