summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-20 17:15:08 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-20 18:44:00 +0200
commitbc4e1564ea816a66d1191fc310ac6d2b02d1a92f (patch)
tree4ee0e4ee0706fa9cedab061fef8cffbc549b0d62 /openpgp/examples
parent15723e28cc6e18b0ca7a51212bbcd72fb0e40c72 (diff)
openpgp: Add armor::Writer::with_headers.
- Add a new constructor that takes headers. This allows us to make the header argument polymorphic.
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/encrypt-for.rs2
-rw-r--r--openpgp/examples/notarize.rs2
-rw-r--r--openpgp/examples/pad.rs2
-rw-r--r--openpgp/examples/sign-detached.rs2
-rw-r--r--openpgp/examples/sign.rs2
-rw-r--r--openpgp/examples/wrap-literal.rs2
6 files changed, 6 insertions, 6 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs
index d8c3affd..505c34fe 100644
--- a/openpgp/examples/encrypt-for.rs
+++ b/openpgp/examples/encrypt-for.rs
@@ -50,7 +50,7 @@ fn main() {
// Compose a writer stack corresponding to the output format and
// packet structure we want. First, we want the output to be
// ASCII armored.
- let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message, &[])
+ let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message)
.expect("Failed to create an armored writer");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/notarize.rs b/openpgp/examples/notarize.rs
index f7a9842a..d4243f2c 100644
--- a/openpgp/examples/notarize.rs
+++ b/openpgp/examples/notarize.rs
@@ -58,7 +58,7 @@ fn main() {
// Compose a writer stack corresponding to the output format and
// packet structure we want. First, we want the output to be
// ASCII armored.
- let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message, &[])
+ let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message)
.expect("Failed to create an armored writer.");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/pad.rs b/openpgp/examples/pad.rs
index 8e5915a8..e34c354d 100644
--- a/openpgp/examples/pad.rs
+++ b/openpgp/examples/pad.rs
@@ -50,7 +50,7 @@ fn main() {
// Compose a writer stack corresponding to the output format and
// packet structure we want. First, we want the output to be
// ASCII armored.
- let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message, &[])
+ let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message)
.expect("Failed to create an armored writer");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/sign-detached.rs b/openpgp/examples/sign-detached.rs
index a185cef9..30da708b 100644
--- a/openpgp/examples/sign-detached.rs
+++ b/openpgp/examples/sign-detached.rs
@@ -54,7 +54,7 @@ fn main() {
// Compose a writer stack corresponding to the output format and
// packet structure we want. First, we want the output to be
// ASCII armored.
- let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Signature, &[])
+ let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Signature)
.expect("Failed to create armored writer.");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/sign.rs b/openpgp/examples/sign.rs
index bfef64de..cb50a0bf 100644
--- a/openpgp/examples/sign.rs
+++ b/openpgp/examples/sign.rs
@@ -53,7 +53,7 @@ fn main() {
// Compose a writer stack corresponding to the output format and
// packet structure we want. First, we want the output to be
// ASCII armored.
- let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message, &[])
+ let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message)
.expect("Failed to create an armored writer.");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/wrap-literal.rs b/openpgp/examples/wrap-literal.rs
index 07cad384..7f86e164 100644
--- a/openpgp/examples/wrap-literal.rs
+++ b/openpgp/examples/wrap-literal.rs
@@ -20,7 +20,7 @@ fn main() {
// Compose a writer stack corresponding to the output format and
// packet structure we want. First, we want the output to be
// ASCII armored.
- let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message, &[])
+ let mut sink = armor::Writer::new(io::stdout(), armor::Kind::Message)
.expect("Failed to create armored writer.");
// Stream an OpenPGP message.