diff options
author | Werner Koch <[email protected]> | 2023-09-11 09:24:00 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-09-11 09:31:32 +0000 |
commit | 936954a18a2df54be7999ffafe3ff422b7f8632a (patch) | |
tree | 63a30ad8e6724ce1166815ffe1e56f5b0dfb5c23 | |
parent | speedo,w32: Adjustments for the new Unicode NSIS plugins. (diff) | |
download | gnupg-936954a18a2df54be7999ffafe3ff422b7f8632a.tar.gz gnupg-936954a18a2df54be7999ffafe3ff422b7f8632a.zip |
dirmngr: Relax the detection of the "none" keyserver.
* dirmngr/server.c (cmd_keyserver): Ignore also hkps://none.
(ensure_keyserver): Better ignore also "none" with a hkp or hpks
scheme.
--
GnuPG-bug-id: 6708
-rw-r--r-- | dirmngr/server.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dirmngr/server.c b/dirmngr/server.c index e7c123b0f..bf4e891f3 100644 --- a/dirmngr/server.c +++ b/dirmngr/server.c @@ -2192,7 +2192,11 @@ ensure_keyserver (ctrl_t ctrl) for (sl = opt.keyserver; sl; sl = sl->next) { - if (!strcmp (sl->d, "none")) + /* Frontends like Kleopatra may prefix option values without a + * scheme with "hkps://". Thus we need to check that too. + * Nobody will be mad enough to call a machine "none". */ + if (!strcmp (sl->d, "none") || !strcmp (sl->d, "hkp://none") + || !strcmp (sl->d, "hkps://none")) { none_seen = 1; continue; @@ -2354,7 +2358,8 @@ cmd_keyserver (assuan_context_t ctx, char *line) if (add_flag) { - if (!strcmp (line, "none") || !strcmp (line, "hkp://none")) + if (!strcmp (line, "none") || !strcmp (line, "hkp://none") + || !strcmp (line, "hkps://none")) err = 0; else err = make_keyserver_item (line, &item); |