agent: Extend cmd KEYINFO to return data from sshcontrol.
authorWerner Koch <wk@gnupg.org>
Thu, 8 Aug 2013 19:22:38 +0000 (21:22 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 8 Aug 2013 19:44:52 +0000 (21:44 +0200)
commit88914a9e24a8a116508d5b7d52b76b947e4d21a6
treebb1ae58751f8c4040544313cd9c8c90c6a7a5d07
parent110b52fffa77b339e6d59eba939408f7e87e7138
agent: Extend cmd KEYINFO to return data from sshcontrol.

* agent/command-ssh.c (struct control_file_s): Rename to
ssh_control_file_s.
(ssh_open_control_file, ssh_close_control_file)
(ssh_read_control_file, ssh_search_control_file): New.
(control_file_t):  Rename and move to ...
* agent/agent.h (ssh_control_file_t): here.
* agent/command.c (do_one_keyinfo): Add args is_ssh, ttl, disabled,
and confirm. Rename unknown keytype indicator from '-' to 'X'.  Extend
output.
(cmd_keyinfo): Add options --ssh-list and --with-ssh.
--

This extension allows the development of frontends to manage the
sshcontrol file.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 50c98c7ed6b542857ee2f902eca36cda37407737)

Conflicts in agent/command.c (due to less information printed by
keyinfo) solved.
agent/agent.h
agent/command-ssh.c
agent/command.c