diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-06-16 08:53:19 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-06-28 12:39:32 +0200 |
commit | 3a90e96a608a9ce5e8f018d7ff9716b700a50cc2 (patch) | |
tree | d04b03f8344604eeadf18305b57614478eda6806 /openpgp/examples | |
parent | 1845f0f1d7b3300c064c06f12372faf772662ea0 (diff) |
openpgp: Fix example.
Diffstat (limited to 'openpgp/examples')
-rw-r--r-- | openpgp/examples/sign-detached.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/examples/sign-detached.rs b/openpgp/examples/sign-detached.rs index e0642f41..dfc46ab5 100644 --- a/openpgp/examples/sign-detached.rs +++ b/openpgp/examples/sign-detached.rs @@ -61,7 +61,9 @@ fn main() -> openpgp::Result<()> { // Stream an OpenPGP message. let message = Message::new(&mut sink); - let message = Armorer::new(message).build()?; + let message = Armorer::new(message) + .kind(openpgp::armor::Kind::Signature) + .build()?; // Now, create a signer that emits the detached signature(s). let mut signer = |