dirmngr: Silence debug diagnostics in OCSP

* dirmngr/ocsp.c (check_signature_core): Print them only in debug
mode.
This commit is contained in:
Werner Koch 2022-11-17 17:14:15 +01:00
parent 468b64dcaa
commit cce5ecece1
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 5 additions and 2 deletions

View File

@ -501,8 +501,11 @@ check_signature_core (ctrl_t ctrl, ksba_cert_t cert, gcry_sexp_t s_sig,
goto leave;
}
gcry_log_debugsxp ("sig ", s_sig);
gcry_log_debugsxp ("hash", s_hash);
if (DBG_CRYPTO)
{
gcry_log_debugsxp ("sig ", s_sig);
gcry_log_debugsxp ("hash", s_hash);
}
err = gcry_pk_verify (s_sig, s_hash, s_pkey);
if (err)