diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-11-13 17:15:12 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-11-14 12:34:57 +0100 |
commit | 1b7cfabbce8e0c69b534b83fb2c15eea4c686dc8 (patch) | |
tree | 42a82ae83471532896d467a7476e0d6e9055ddac /openpgp/src | |
parent | fb84b5223bf94941d4bd2decb105f8f03d7468a7 (diff) |
openpgp: Improve tracing.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/parse.rs | 6 |
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 } |