From ff76f17c0259c0a5158a0c9a4313e5fd3aef251f Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 13 Feb 2016 15:25:18 +0200 Subject: [PATCH] client: elaborate SSH blob parsing --- trezor_agent/trezor/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trezor_agent/trezor/client.py b/trezor_agent/trezor/client.py index a8834ec..cc656ee 100644 --- a/trezor_agent/trezor/client.py +++ b/trezor_agent/trezor/client.py @@ -125,11 +125,11 @@ def _parse_ssh_blob(data): res = {} i = io.BytesIO(data) res['nonce'] = util.read_frame(i) - i.read(1) # TBD + i.read(1) # SSH2_MSG_USERAUTH_REQUEST == 50 (from ssh2.h, line 108) res['user'] = util.read_frame(i) res['conn'] = util.read_frame(i) res['auth'] = util.read_frame(i) - i.read(1) # TBD + i.read(1) # have_sig == 1 (from sshconnect2.c, line 1056) res['key_type'] = util.read_frame(i) public_key = util.read_frame(i) res['public_key'] = formats.parse_pubkey(public_key)