1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch bebc71d229
gpg,sm: Simplify keyserver spec parsing.
* common/keyserver.h: Remove.
* sm/gpgsm.h (struct keyserver_spec): Remove.
(opt): Change keyserver to a strlist_t.
* sm/gpgsm.c (keyserver_list_free): Remove.
(parse_keyserver_line): Remove.
(main): Store keyserver in an strlist.
* sm/call-dirmngr.c (prepare_dirmngr): Adjust for the strlist.  Avoid
an ambiguity in dirmngr by adding a prefix if needed.

* g10/options.h (struct keyserver_spec): Move definition from
keyserver.h to here.  Remove most fields.
* g10/keyserver.c (free_keyserver_spec): Adjust.
(cmp_keyserver_spec): Adjust.
(parse_keyserver_uri): Simplify.
(keyidlist): Remove fakev3 arg which does not make any sense because
we don't even support v3 keys.
--

We now rely on the dirmngr to parse the keyserver specs.  Thus a bad
specification will not be caught immediately.  However, even before
that dirmngr had stricter tests.

Signed-off-by: Werner Koch <wk@gnupg.org>
Ported-from: 9f586700ec4ceac97fd47cd799878a8847342ffa
2021-06-16 12:03:13 +02:00
..
2020-09-24 10:37:41 +02:00
2018-10-25 16:53:05 -04:00
2015-10-28 10:20:17 +01:00
2021-01-11 14:19:06 +01:00
2020-02-18 18:07:46 -05:00
2015-11-17 12:50:22 +01:00
2017-04-28 10:06:33 +09:00
2021-03-10 12:33:08 +01:00
2017-02-21 13:11:46 -05:00
2018-10-25 16:53:05 -04:00
2018-10-25 16:53:05 -04:00
2019-04-16 13:24:10 +09:00
2021-05-20 14:31:23 +02:00
2019-07-12 12:11:26 +09:00
2020-02-18 18:07:46 -05:00
2016-03-02 14:27:30 +01:00
2021-04-13 14:57:51 +09:00
2018-10-25 16:53:05 -04:00
2018-10-24 15:56:18 -04:00
2020-11-05 11:19:15 -08:00
2021-03-26 14:30:58 +01:00
2021-02-10 08:32:57 +01:00
2021-01-11 14:19:06 +01:00
2019-10-01 10:32:31 +02:00
2018-10-24 15:56:18 -04:00
2020-02-18 18:07:46 -05:00
2020-02-18 18:07:46 -05:00
2020-02-18 18:07:46 -05:00
2020-09-11 15:23:22 +02:00
2020-04-24 15:37:48 +02:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.