g10: Only show the TOFU warning once per key.
authorNeal H. Walfield <neal@g10code.com>
Tue, 6 Sep 2016 20:10:57 +0000 (22:10 +0200)
committerNeal H. Walfield <neal@g10code.com>
Tue, 6 Sep 2016 20:10:57 +0000 (22:10 +0200)
commit67cef405cbfad2e53fc388dd6591ee4f7cb0d973
tree4042e9aad22e894d89fd62dde47232b9b196137a
parent875ac9216f1383851a82bd240cadb17c7112f6a8
g10: Only show the TOFU warning once per key.

* g10/tofu.c (show_statistics): Return whether to call show_warning.
Move the warning from here...
(show_warning): ... to this new function.
(tofu_get_validity): If show_statistics returns a non-zero value, call
show_warning.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
g10/tofu.c