mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Let --debug clock time sign and verify.
* configure.ac (ENABLE_LOG_CLOCK): New ac_define and option. * common/logging.c (log_clock): Use ENABLE_LOG_CLOCK to enable timestamp printing. * g10/call-agent.c (agent_pksign): Time signing. * g10/sig-check.c (check_signature_end_simple): Time verification. -- Timing for verification is limited to data signatures because this is the most common thing to evaluate. We should consider to change log_clock to printf style so that we could print the signature class and other info. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
cd2d758f3f
commit
6aa4478c78
4 changed files with 31 additions and 6 deletions
|
@ -510,7 +510,11 @@ check_signature_end_simple (PKT_public_key *pk, PKT_signature *sig,
|
|||
return GPG_ERR_GENERAL;
|
||||
|
||||
/* Verify the signature. */
|
||||
if (DBG_CLOCK && sig->sig_class <= 0x01)
|
||||
log_clock ("enter pk_verify");
|
||||
rc = pk_verify( pk->pubkey_algo, result, sig->data, pk->pkey );
|
||||
if (DBG_CLOCK && sig->sig_class <= 0x01)
|
||||
log_clock ("leave pk_verify");
|
||||
gcry_mpi_release (result);
|
||||
|
||||
if( !rc && sig->flags.unknown_critical )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue