gpg: Do not print the validity after key generation.
authorWerner Koch <wk@gnupg.org>
Thu, 23 Jun 2016 17:22:13 +0000 (19:22 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 23 Jun 2016 18:01:15 +0000 (20:01 +0200)
commit09c6f7135150efbbeb459d4ae0189a81e9d180f8
treeed52ffe7eaf2879c65b21d7960a4560b80f22cb6
parentc229ba4d8b9b16052ee0b9573bed7905be602cdf
gpg: Do not print the validity after key generation.

* g10/keylist.c (struct keylist_context): Add field NO_VALIDITY.
(list_keyblock_print): Take care of it.
(list_keyblock_direct): Add arg NO_VALIDITY.
* g10/keygen.c (do_generate_keypair): Merge keyblock and print w/o
validity.
--

It will always be ultimate and by not printing it we avoid a lot of
garbage output due to the trustdb re-calculation.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keygen.c
g10/keylist.c
g10/main.h