summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
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-ffi
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-ffi')
-rw-r--r--openpgp-ffi/src/armor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/armor.rs b/openpgp-ffi/src/armor.rs
index dd79c9e3..094d4dc7 100644
--- a/openpgp-ffi/src/armor.rs
+++ b/openpgp-ffi/src/armor.rs
@@ -389,7 +389,7 @@ pub extern "C" fn pgp_armor_writer_new
let header: Vec<(&str, &str)> =
header_.iter().map(|h| (h.0.as_ref(), h.1.as_ref())).collect();
- armor::Writer::new(inner, kind, &header)
+ armor::Writer::with_headers(inner, kind, header)
.map(|w| WriterKind::Armored(w))
.map_err(|e| ::anyhow::Error::from(e))
.move_into_raw(errp)