gpg: Skip overlong keys and a print a warning.
authorWerner Koch <wk@gnupg.org>
Thu, 9 Oct 2014 19:01:49 +0000 (21:01 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 9 Oct 2014 19:01:49 +0000 (21:01 +0200)
commit2ca90f78cee91c43b8d538d1cb92728f8e1452d5
tree2690fc51434a88b781e8efa836c72d51215fc42d
parent60e21d8b85888b8c9ea15c70268f98d780fdf5fb
gpg: Skip overlong keys and a print a warning.

* kbx/keybox-search.c (keybox_search): Add arg r_skipped and skip too
long blobs.
* sm/keydb.c (keydb_search): Call keybox_search with a dummy param.
* g10/keydb.c (struct keydb_handle): Add field skipped_long_blobs.
(keydb_search_reset): Reset that field.
(keydb_search): Update that field.
(keydb_get_skipped_counter): New.
* g10/keylist.c (list_all): Print count of skipped keys.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c
g10/keydb.h
g10/keylist.c
kbx/keybox-search.c
kbx/keybox.h
sm/keydb.c