summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/sign.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-03-18 12:44:36 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-03-18 14:03:58 +0100
commit01db33b99244294702f0f58f06c6736becee28db (patch)
tree0cedce9f950866e1f355787be82a712bcf581ac4 /openpgp/examples/sign.rs
parentfc387f5c290774a39feff97cde31ea78300d2b23 (diff)
openpgp: Make hash algorithm configurable in streaming Signer.
- See #208.
Diffstat (limited to 'openpgp/examples/sign.rs')
-rw-r--r--openpgp/examples/sign.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/examples/sign.rs b/openpgp/examples/sign.rs
index 33e7625e..706b2a20 100644
--- a/openpgp/examples/sign.rs
+++ b/openpgp/examples/sign.rs
@@ -60,7 +60,8 @@ fn main() {
// Now, create a signer that emits a signature.
let signer = Signer::new(
message,
- keys.iter_mut().map(|s| -> &mut dyn crypto::Signer { s }).collect())
+ keys.iter_mut().map(|s| -> &mut dyn crypto::Signer { s }).collect(),
+ None)
.expect("Failed to create signer");
// Then, create a literal writer to wrap the data in a literal