aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyserver.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-04-11 07:43:33 +0000
committerWerner Koch <[email protected]>2019-04-11 08:05:05 +0000
commite9fcb0361ab4ef1f6fb0ea235f1b15667932aba2 (patch)
tree71e011718ad04ccb59385ba381f6a26df025cdf2 /g10/keyserver.c
parentscd: Add dummy option --application-priority. (diff)
downloadgnupg-e9fcb0361ab4ef1f6fb0ea235f1b15667932aba2.tar.gz
gnupg-e9fcb0361ab4ef1f6fb0ea235f1b15667932aba2.zip
gpg: Set a limit of 5 to the number of keys imported from the WKD.
* g10/import.c (import): Limit the number of considered keys to 5. (import_one): Return the first fingerprint in case of WKD. -- The Web Key Directory should carry only one key. However, some providers like to put old or expired keys also into the WKD. I don't thunk that this is a good idea but I heard claims that this is needed for them to migrate existing key data bases. This patch puts a limit on 5 on it (we had none right now) and also fixes the issue that gpg could not work immediately with the requested key because the code uses the fingerprint of the key to use the imported key. Now the first key is used. On a second try (w/o accessing the WKD) the regular key selection mechanism would be in effect. I think this is the most conservative approach. Let's see whether it helps. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions