diff options
author | Werner Koch <[email protected]> | 2002-02-25 18:18:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-02-25 18:18:40 +0000 |
commit | 04f49d973b14790b4c46689c767f6e0630b9b979 (patch) | |
tree | 460bac0bb6c5e9b6f14336121231ae008f24bfd9 /sm/server.c | |
parent | * keybox-search.c (blob_cmp_mail): Use case-insensitive compare (diff) | |
download | gnupg-04f49d973b14790b4c46689c767f6e0630b9b979.tar.gz gnupg-04f49d973b14790b4c46689c767f6e0630b9b979.zip |
* 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.
Diffstat (limited to 'sm/server.c')
-rw-r--r-- | sm/server.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/server.c b/sm/server.c index be45060be..ebcb7f9ad 100644 --- a/sm/server.c +++ b/sm/server.c @@ -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) { |