summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-11-13 17:15:12 +0100
committerJustus Winter <justus@sequoia-pgp.org>2023-11-14 12:34:57 +0100
commit1b7cfabbce8e0c69b534b83fb2c15eea4c686dc8 (patch)
tree42a82ae83471532896d467a7476e0d6e9055ddac
parentfb84b5223bf94941d4bd2decb105f8f03d7468a7 (diff)
openpgp: Improve tracing.
-rw-r--r--openpgp/src/parse.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index af38d8a8..4e18acee 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -1333,6 +1333,10 @@ impl Signature {
}
let need_hash = HashingMode::for_signature(hash_algo, typ);
+ t!("Need a {:?}", need_hash);
+ if TRACE {
+ pp.reader.dump(&mut std::io::stderr())?;
+ }
// Locate the corresponding HashedReader and extract the
// computed hash.
@@ -1353,6 +1357,8 @@ impl Signature {
// 'recursion_depth - 1'.
if cookie.level.is_none()
|| cookie.level.unwrap() < recursion_depth - 1 {
+ t!("Abandoning search for suitable \
+ hashed reader at {:?}.", cookie.level);
break
}