diff options
author | Werner Koch <wk@gnupg.org> | 2014-12-04 10:53:10 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-12-04 10:53:10 +0100 |
commit | 63e7891f0f9f0228d93c6cd979fbf2797da2b67d (patch) | |
tree | 1c3421cceb8031e985e2cc5ff7affb64c023a914 /kbx/keybox-file.c | |
parent | indentation: Update g10/import.c (diff) | |
download | gnupg2-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.c | 2 |
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) |