gnupg/sm
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: 9f586700ec
2021-06-16 12:03:13 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am build: Fix build problems on macOS for gpgsm tests and gpg-card. 2021-04-19 20:17:39 +02:00
call-agent.c Use only one copy of the warn_server_mismatch function. 2020-09-01 20:43:57 +02:00
call-dirmngr.c gpg,sm: Simplify keyserver spec parsing. 2021-06-16 12:03:13 +02:00
certchain.c sm: Fix finding of issuer in use-keyboxd mode. 2021-06-11 20:15:32 +02:00
certcheck.c sm: Avoid memory leaks and double double-free 2021-05-20 13:51:47 +02:00
certdump.c Require Libgcrypt 1.9 2021-01-19 10:33:03 +01:00
certlist.c sm: Implement initial support for keyboxd. 2020-09-10 13:05:17 +02:00
certreqgen-ui.c gpgsm: Replace all assert calls by log_assert. 2020-07-08 14:40:34 +02:00
certreqgen.c gpgsm: Replace all assert calls by log_assert. 2020-07-08 14:40:34 +02:00
decrypt.c sm: Support AES-GCM decryption. 2021-06-02 11:03:55 +02:00
delete.c sm: Implement delete key in keyboxd mode 2020-09-21 09:20:40 +02:00
encrypt.c sm: Avoid memory leaks and double double-free 2021-05-20 13:51:47 +02:00
export.c sm: Ask for the password for password based decryption (pwri) 2021-05-17 15:42:27 +02:00
fingerprint.c gpgsm: Replace all assert calls by log_assert. 2020-07-08 14:40:34 +02:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c gpg,sm: Simplify keyserver spec parsing. 2021-06-16 12:03:13 +02:00
gpgsm.h gpg,sm: Simplify keyserver spec parsing. 2021-06-16 12:03:13 +02:00
import.c sm: Fix finding of issuer in use-keyboxd mode. 2021-06-11 20:15:32 +02:00
keydb.c sm: Fix finding of issuer in use-keyboxd mode. 2021-06-11 20:15:32 +02:00
keydb.h sm: Implement initial support for keyboxd. 2020-09-10 13:05:17 +02:00
keylist.c sm: Let --dump-cert --show-cert also print an OpenPGP fingerprint. 2021-05-20 19:09:38 +02:00
minip12.c sm: Do not print certain issuer not found diags in quiet mode. 2021-02-25 09:16:18 +01:00
minip12.h sm: Silence some output on --quiet 2021-02-24 08:40:06 +01:00
misc.c sm: Exclude rsaPSS from de-vs compliance mode. 2020-07-03 16:15:29 +02:00
passphrase.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
passphrase.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
qualified.c Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
server.c sm: Avoid memory leaks and double double-free 2021-05-20 13:51:47 +02:00
sign.c sm: Implement initial support for keyboxd. 2020-09-10 13:05:17 +02:00
t-minip12.c sm: Add support to export ECC private keys. 2020-04-27 19:54:39 +02:00
verify.c Include the library version in the compliance checks. 2021-01-28 15:48:08 +01:00