diff options
author | Werner Koch <[email protected]> | 2015-10-05 15:52:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-10-05 15:52:28 +0000 |
commit | ae471fa978589fb61ecb0f89bbfe4d43cf2d5eac (patch) | |
tree | 3113249c540466a59232f8299ca77461f5ce5c7e /tools/gpgconf-comp.c | |
parent | dirmngr: Add option --keyserver. (diff) | |
download | gnupg-ae471fa978589fb61ecb0f89bbfe4d43cf2d5eac.tar.gz gnupg-ae471fa978589fb61ecb0f89bbfe4d43cf2d5eac.zip |
gpg: Deprecate the --keyserver option.
* g10/keyserver.c (keyserver_refresh): Change return type to
gpg_error_t. Use gpg_dirmngr_ks_list to print the name of the
keyserver to use.
(keyserver_search): Do not print the "no keyserver" error
message. The same error is anyway returned from dirmngr.
* g10/call-dirmngr.c (ks_status_parm_s): Add field "keyword".
(ks_status_cb): Handle other status keywords.
(gpg_dirmngr_ks_list): New.
* tools/gpgconf-comp.c (gc_options_gpg): Deprecate "keyserver".
(gc_options_dirmngr): Add "Keyserver" group and "keyserver".
--
Along with the corresponding dirmngr change this option allows to
configure the keyserver only in dirmngr.conf. Existing
configurations will continue to work. However, GUIs using gpgconf
now the keyserver option under the dirmngr (aka Key Acquirer) tab
unless they are in export mode in which the keyserver option is also
show for gpg.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r-- | tools/gpgconf-comp.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 464b89b78..e736162c0 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -724,8 +724,8 @@ static gc_option_t gc_options_gpg[] = { "Keyserver", GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC, "gnupg", N_("Configuration for Keyservers") }, - { "keyserver", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC, - "gnupg", N_("|URL|use keyserver at URL"), + { "keyserver", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT, + "gnupg", N_("|URL|use keyserver at URL"), /* Deprecated - use dirmngr */ GC_ARG_TYPE_STRING, GC_BACKEND_GPG }, { "allow-pka-lookup", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC, "gnupg", N_("allow PKA lookups (DNS requests)"), @@ -735,8 +735,6 @@ static gc_option_t gc_options_gpg[] = GC_ARG_TYPE_STRING, GC_BACKEND_GPG }, - - GC_OPTION_NULL }; #endif /*BUILD_WITH_GPG*/ @@ -915,6 +913,13 @@ static gc_option_t gc_options_dirmngr[] = "dirmngr", "route all network traffic via TOR", GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR }, + { "Keyserver", + GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC, + "gnupg", N_("Configuration for Keyservers") }, + { "keyserver", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC, + "gnupg", N_("|URL|use keyserver at URL"), + GC_ARG_TYPE_STRING, GC_BACKEND_DIRMNGR }, + { "HTTP", GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED, "gnupg", N_("Configuration for HTTP servers") }, |