diff options
author | David Shaw <[email protected]> | 2002-07-22 19:07:21 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-07-22 19:07:21 +0000 |
commit | 002f085c232a3c2a9f3624c93a7f25569b28e088 (patch) | |
tree | 456b87ab4456b1941bd880db6e21f974eba5cde1 /g10/keyserver.c | |
parent | * revoke.c (gen_desig_revoke): Lots more comments about including (diff) | |
download | gnupg-002f085c232a3c2a9f3624c93a7f25569b28e088.tar.gz gnupg-002f085c232a3c2a9f3624c93a7f25569b28e088.zip |
* options.h, main.h, export.c (parse_export_options, do_export_stream),
g10.c (main): add new --export-options option. Current flags are
"include-non-rfc", "include-local-sigs", "include-attributes", and
"include-sensitive-revkeys".
* options.h, hkp.c (hkp_export), keyserver.c (parse_keyserver_options,
keyserver_spawn): try passing unknown keyserver options to export options,
and if successful, use them when doing a keyserver --send-key.
* build-packet.c (build_sig_subpkt): We do not generate
SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
Diffstat (limited to 'g10/keyserver.c')
-rw-r--r-- | g10/keyserver.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c index e2477c61d..eddd2cf7c 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -110,7 +110,8 @@ parse_keyserver_options(char *options) else if(ascii_strcasecmp(tok,"no-use-temp-files")==0) opt.keyserver_options.use_temp_files=0; #endif - else if(strlen(tok)>0) + else if(!parse_export_options(tok, + &opt.keyserver_options.export_options)) add_to_strlist(&opt.keyserver_options.other,tok); } } @@ -451,10 +452,6 @@ keyserver_spawn(int action,STRLIST list, { armor_filter_context_t afx; IOBUF buffer=iobuf_temp(); - int attribs=EXPORT_FLAG_ONLYRFC; - - if(!opt.keyserver_options.include_attributes) - attribs|=EXPORT_FLAG_SKIPATTRIBS; temp=NULL; add_to_strlist(&temp,key->d); @@ -463,7 +460,8 @@ keyserver_spawn(int action,STRLIST list, afx.what=1; iobuf_push_filter(buffer,armor_filter,&afx); - if(export_pubkeys_stream(buffer,temp,attribs)==-1) + if(export_pubkeys_stream(buffer,temp, + opt.keyserver_options.export_options)==-1) iobuf_close(buffer); else { |