agent: Improve error message for the KEYTOCARD command.
authorWerner Koch <wk@gnupg.org>
Thu, 2 Mar 2017 11:29:31 +0000 (12:29 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 2 Mar 2017 11:29:31 +0000 (12:29 +0100)
commitd6f0f368763006abf08818bfefcd32ecedb5c20a
tree6a20172f8abc9943de13a8f10dc9b2292f97ae0d
parent62d21a4ab4029b32ea129f1cf3a0e1f22e2fb7b0
agent: Improve error message for the KEYTOCARD command.

* agent/command.c (cmd_keytocard): Always use leave_cmd.  Simplify
timestamp checking and do an early test with an appropriate error
message.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/command.c