From 1b7cfabbce8e0c69b534b83fb2c15eea4c686dc8 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 13 Nov 2023 17:15:12 +0100 Subject: openpgp: Improve tracing. --- openpgp/src/parse.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openpgp') 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 } -- cgit v1.2.3