mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
498b9a95dc
commit
50c98c7ed6
3 changed files with 231 additions and 40 deletions
|
@ -157,6 +157,10 @@ struct
|
|||
/* Forward reference for local definitions in command.c. */
|
||||
struct server_local_s;
|
||||
|
||||
/* Declaration of objects from command-ssh.c. */
|
||||
struct ssh_control_file_s;
|
||||
typedef struct ssh_control_file_s *ssh_control_file_t;
|
||||
|
||||
/* Forward reference for local definitions in call-scd.c. */
|
||||
struct scd_local_s;
|
||||
|
||||
|
@ -290,6 +294,16 @@ gpg_error_t pinentry_loopback(ctrl_t, const char *keyword,
|
|||
size_t max_length);
|
||||
|
||||
/*-- command-ssh.c --*/
|
||||
ssh_control_file_t ssh_open_control_file (void);
|
||||
void ssh_close_control_file (ssh_control_file_t cf);
|
||||
gpg_error_t ssh_read_control_file (ssh_control_file_t cf,
|
||||
char *r_hexgrip, int *r_disabled,
|
||||
int *r_ttl, int *r_confirm);
|
||||
gpg_error_t ssh_search_control_file (ssh_control_file_t cf,
|
||||
const char *hexgrip,
|
||||
int *r_disabled,
|
||||
int *r_ttl, int *r_confirm);
|
||||
|
||||
void start_command_handler_ssh (ctrl_t, gnupg_fd_t);
|
||||
|
||||
/*-- findkey.c --*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue