summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse.rs')
-rw-r--r--openpgp/src/parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index b6289219..aab87ee4 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -2013,7 +2013,7 @@ impl OnePassSig3 {
// against when we get to the Signature packet.
let mut algos = Vec::new();
if hash_algo.is_supported() {
- algos.push(HashingMode::for_signature(hash_algo, typ));
+ algos.push(need_hash);
}
// We can't push the HashedReader on the BufferedReader stack: