From a6660fd5c500c78606af20131ef2f92a75a827f1 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 3 Jun 2016 17:43:46 +0300 Subject: [PATCH] gpg: handle BYE command --- trezor_agent/gpg/agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trezor_agent/gpg/agent.py b/trezor_agent/gpg/agent.py index 2f19f37..0085b4d 100644 --- a/trezor_agent/gpg/agent.py +++ b/trezor_agent/gpg/agent.py @@ -132,6 +132,8 @@ def handle_connection(conn): elif command == 'PKDECRYPT': sec = pkdecrypt(keygrip, conn) keyring.sendline(conn, b'D ' + sec) + elif command == 'BYE': + return else: log.error('unknown request: %r', line) return