1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-02 12:01:32 +01:00

tkd: Add RESTART command.

It will be useful, when TKDaemon will maintain a context for a
connection.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-03-20 10:13:24 +09:00
parent 2c9e9e9294
commit e57c072ea6
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -230,6 +230,25 @@ cmd_getinfo (assuan_context_t ctx, char *line)
}
static const char hlp_restart[] =
"RESTART\n"
"\n"
"Restart the current connection.\n"
"\n"
"This is used by gpg-agent to reuse a primary pipe connection.";
/*
* TKDeamon does not have a context for a connection (for now).
* So, this command does nothing.
*/
static gpg_error_t
cmd_restart (assuan_context_t ctx, char *line)
{
(void)line;
(void)ctx;
return 0;
}
/* SLOTLIST command
* A command to (re)scan for available keys, something like SERIALNO
* command of scdaemon.
@ -451,6 +470,7 @@ register_commands (assuan_context_t ctx)
{ "KILLTKD", cmd_killtkd, hlp_killtkd },
{ "KEYINFO", cmd_keyinfo, hlp_keyinfo },
{ "GETINFO", cmd_getinfo, hlp_getinfo },
{ "RESTART", cmd_restart, hlp_restart },
{ NULL }
};
int i, rc;