diff options
author | Werner Koch <[email protected]> | 2021-04-26 13:32:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-04-26 13:32:51 +0000 |
commit | 4fcfac6feb2a6c2b14883ba406afc917e8d4be42 (patch) | |
tree | ec4d6b9397db49f89da6a8f4d8af14857794852c /g10/test-stubs.c | |
parent | gpg: Do not use import-clean for LDAP keyserver imports. (diff) | |
download | gnupg-4fcfac6feb2a6c2b14883ba406afc917e8d4be42.tar.gz gnupg-4fcfac6feb2a6c2b14883ba406afc917e8d4be42.zip |
gpg: Fix mailbox based search via AKL keyserver method.
* g10/keyserver.c (keyserver_import_name): Rename to ...
(keyserver_import_mbox): this. And use mail search mode.
* g10/getkey.c (get_pubkey_byname): Change the two callers.
--
In contrast to a search via keyserver_import_ntds the older
keyserver_import_name used a full match of the provided name despite
that it is only called with an addr-spec (mbox). Due to the mode the
pattern send to dirmngr was prefixed with a '=' and thus dirmngr used
an exact search;. This did only work for provided user ids like
"[email protected]" but not for "<[email protected]>" or
"Foo <[email protected]>". The old code dates back to 2010.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/test-stubs.c')
-rw-r--r-- | g10/test-stubs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/test-stubs.c b/g10/test-stubs.c index 3d3c73716..07dd19d26 100644 --- a/g10/test-stubs.c +++ b/g10/test-stubs.c @@ -231,7 +231,7 @@ keyserver_import_wkd (ctrl_t ctrl, const char *name, unsigned int flags, } int -keyserver_import_name (const char *name,struct keyserver_spec *spec) +keyserver_import_mbox (const char *name,struct keyserver_spec *spec) { (void)name; (void)spec; |