summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/armor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ffi/src/armor.rs')
-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)