sm: Add a couple of debug calls to the keydb module.
authorWerner Koch <wk@gnupg.org>
Tue, 14 May 2019 18:03:44 +0000 (20:03 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 15 May 2019 06:52:21 +0000 (08:52 +0200)
commit6e041b7b356c3adba714e98f4ecf0dd007375390
treeed03847363a22280a31c67d60887be6466ef29ac
parent62c29af63203400947569c5965a8cf05a22fcd4c
sm: Add a couple of debug calls to the keydb module.

* sm/gpgsm.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
(DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
* sm/gpgsm.c: new debug flags "lookup" and "clock"
* sm/keydb.c: Add log_clock calls to most functions.
(keydb_search_desc_dump): New.
(keydb_search) [DBG_LOOKUP]: Print descrh decription.
* sm/keylist.c (list_cert_std): Flush FP in debug mode to better
syncronize the output with the debug output
--

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