diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-05 11:40:33 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-05 11:44:31 +0100 |
commit | fded4de4b813cc6c3cef29374726413db46069e2 (patch) | |
tree | e032fd42dc0b8fe258240b3cd30f27554433143d /tool/src/commands/key.rs | |
parent | 4ea8a7ca6cb2cb78e36b9735428e248b3cd9c3bf (diff) |
sq: Fix handling of armored writers.
Diffstat (limited to 'tool/src/commands/key.rs')
-rw-r--r-- | tool/src/commands/key.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index a18ae25a..dc9807d7 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -220,6 +220,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { let w = create_or_stdout(Some(&key_path), force)?; let mut w = Writer::new(w, Kind::SecretKey, &headers)?; cert.as_tsk().serialize(&mut w)?; + w.finalize()?; } // write out rev cert @@ -232,6 +233,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { let w = create_or_stdout(Some(&rev_path), force)?; let mut w = Writer::new(w, Kind::Signature, &headers)?; Packet::Signature(rev).serialize(&mut w)?; + w.finalize()?; } } else { return Err( |