summaryrefslogtreecommitdiffstats
path: root/kbx/keybox-file.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-12-04 10:53:10 +0100
committerWerner Koch <wk@gnupg.org>2014-12-04 10:53:10 +0100
commit63e7891f0f9f0228d93c6cd979fbf2797da2b67d (patch)
tree1c3421cceb8031e985e2cc5ff7affb64c023a914 /kbx/keybox-file.c
parentindentation: Update g10/import.c (diff)
downloadgnupg2-63e7891f0f9f0228d93c6cd979fbf2797da2b67d.tar.xz
gnupg2-63e7891f0f9f0228d93c6cd979fbf2797da2b67d.zip
gpg: Allow import of large keys.
* g10/import.c (import): Skip too large keys. * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 2MB to 5MB. -- The key which triggered the problem was 0x57930DAB0B86B067. With this patch it can be imported. Keys larger than the now increased limit of 5MB will are skipped and the already existing not_imported counter is bumped up. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'kbx/keybox-file.c')
-rw-r--r--kbx/keybox-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbx/keybox-file.c b/kbx/keybox-file.c
index 98808ed4f..21d603854 100644
--- a/kbx/keybox-file.c
+++ b/kbx/keybox-file.c
@@ -27,7 +27,7 @@
#include "keybox-defs.h"
-#define IMAGELEN_LIMIT (2*1024*1024)
+#define IMAGELEN_LIMIT (5*1024*1024)
#if !defined(HAVE_FTELLO) && !defined(ftello)