mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* server.c (option_handler): Allow to use -2 for "send all certs
except the root cert". * sign.c (add_certificate_list): Implement it here. * certpath.c (gpgsm_is_root_cert): New.
This commit is contained in:
parent
2a2d713359
commit
04f49d973b
9 changed files with 69 additions and 6 deletions
|
@ -73,7 +73,7 @@ option_handler (ASSUAN_CONTEXT ctx, const char *key, const char *value)
|
|||
if (!strcmp (key, "include-certs"))
|
||||
{
|
||||
int i = *value? atoi (value) : -1;
|
||||
if (ctrl->include_certs < -1)
|
||||
if (ctrl->include_certs < -2)
|
||||
return ASSUAN_Parameter_Error;
|
||||
ctrl->include_certs = i;
|
||||
}
|
||||
|
@ -369,6 +369,10 @@ cmd_message (ASSUAN_CONTEXT ctx, char *line)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* Note that the line contains a space separated list of pappern where
|
||||
each pappern is percent escaped and spacesmay be replaced by
|
||||
'+'. */
|
||||
static int
|
||||
cmd_listkeys (ASSUAN_CONTEXT ctx, char *line)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue