Home GnuPG
Diffusion GnuPG f1c0d9bb6506

gpg: Set a limit for a WKD import of 256 KiB.

Description

gpg: Set a limit for a WKD import of 256 KiB.

* g10/call-dirmngr.c (MAX_WKD_RESULT_LENGTH): New.
(gpg_dirmngr_wkd_get): Use it.

WKD should return only a single key with just one UID. For key
rollover 2 keys may be send. A total of 256 KiB seems to be a
generous limit here.

(cherry picked from commit e88f56f1937ac92f6a3b94e50b6db2649ec0be41)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 27 2018, 5:35 PM
Parents
rG8a98aa25bb4b: dirmngr: Validate SRV records in WKD queries.
Branches
Unknown
Tags
Unknown