g10: Change TOFU code to respect --faked-system-time.
authorNeal H. Walfield <neal@g10code.com>
Wed, 7 Sep 2016 08:28:39 +0000 (10:28 +0200)
committerNeal H. Walfield <neal@g10code.com>
Wed, 7 Sep 2016 08:28:39 +0000 (10:28 +0200)
commit7b3e8572e3bb8a65d20577a48009251fdc7b1910
treea99a8cac71ebf1abf1500046c587550c5008b8fb
parent56c18408d4955713d9c4e634367c7912d6564651
g10: Change TOFU code to respect --faked-system-time.

* g10/tofu.c (record_binding): New parameter now.  Update callers.
Don't use SQLite's strftime('%s','now') to get the current time, use
NOW.
(ask_about_binding): Likewise.
(get_trust): New parameter now.  Update callers.
(show_statistics): Likewise.
(tofu_register_signature): Don't use SQLite's strftime('%s','now') to
get the current time, use gnupg_get_time().
(tofu_register_encryption): Likewise.

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