Changeset View
Changeset View
Standalone View
Standalone View
g10/call-agent.c
Context not available. | |||||
confirmation. */ | confirmation. */ | ||||
gpg_error_t | gpg_error_t | ||||
agent_delete_key (ctrl_t ctrl, const char *hexkeygrip, const char *desc, | agent_delete_key (ctrl_t ctrl, const char *hexkeygrip, const char *desc, | ||||
int force) | int force, int stubs_only) | ||||
{ | { | ||||
gpg_error_t err; | gpg_error_t err; | ||||
char line[ASSUAN_LINELENGTH]; | char line[ASSUAN_LINELENGTH]; | ||||
Context not available. | |||||
return err; | return err; | ||||
} | } | ||||
snprintf (line, DIM(line), "DELETE_KEY%s %s", | snprintf (line, DIM(line), | ||||
force? " --force":"", hexkeygrip); | "DELETE_KEY%s%s %s", | ||||
force? " --force" : "", | |||||
stubs_only? " --stub-only" : "", | |||||
hexkeygrip); | |||||
err = assuan_transact (agent_ctx, line, NULL, NULL, | err = assuan_transact (agent_ctx, line, NULL, NULL, | ||||
default_inq_cb, &dfltparm, | default_inq_cb, &dfltparm, | ||||
NULL, NULL); | NULL, NULL); | ||||
Context not available. |