summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-03 15:28:46 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-03 15:28:46 +0100
commitf40a772fa5d9aaf463b336ac70d84b12030198b3 (patch)
tree98ccb80a235801e285c1eba51f4569ca340a70de /openpgp/src/serialize/stream.rs
parent10f8d1c1a92f96b6d21c0dab45f8a471e281e46f (diff)
openpgp: Drop algorithm argument from signature::Builder::sign_hash.
- The hash context knows the algorithm.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 40b18984..3e7e6532 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -431,7 +431,7 @@ impl<'a> Signer<'a> {
}
// Compute the signature.
- let sig = sig.sign_hash(signer.as_mut(), self.hash.algo(), hash)?;
+ let sig = sig.sign_hash(signer.as_mut(), hash)?;
// And emit the packet.
Packet::Signature(sig).serialize(sink)?;