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:22:38 +0000 (21:22 +0200)
commit50c98c7ed6b542857ee2f902eca36cda37407737
tree42659bb6299c4701252a44282c7265f64bafa432
parent498b9a95dc65c43240835d64cc92d8fb43014d53
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>
agent/agent.h
agent/command-ssh.c
agent/command.c