diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-09-11 15:14:13 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-09-11 15:30:04 +0200 |
commit | 4e0618c932b6b63d6663de212581e559cd680a90 (patch) | |
tree | 02a0c4bf1ea90bd98295210805d67a150f4bfcac /openpgp/examples | |
parent | 16616b00f499022402f693aace99d12bfef5659a (diff) |
openpgp: Move packet::KeyFlags to constants.
Diffstat (limited to 'openpgp/examples')
-rw-r--r-- | openpgp/examples/encrypt-for.rs | 2 | ||||
-rw-r--r-- | openpgp/examples/generate-encrypt-decrypt.rs | 3 | ||||
-rw-r--r-- | openpgp/examples/pad.rs | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs index 47fb703d..7b1f48e7 100644 --- a/openpgp/examples/encrypt-for.rs +++ b/openpgp/examples/encrypt-for.rs @@ -6,7 +6,7 @@ use std::io; extern crate sequoia_openpgp as openpgp; use crate::openpgp::armor; -use crate::openpgp::packet::KeyFlags; +use crate::openpgp::constants::KeyFlags; use crate::openpgp::parse::Parse; use crate::openpgp::serialize::stream::{ Message, LiteralWriter, Encryptor, diff --git a/openpgp/examples/generate-encrypt-decrypt.rs b/openpgp/examples/generate-encrypt-decrypt.rs index 6157019f..90640ba3 100644 --- a/openpgp/examples/generate-encrypt-decrypt.rs +++ b/openpgp/examples/generate-encrypt-decrypt.rs @@ -4,9 +4,8 @@ use std::io::{self, Write}; extern crate sequoia_openpgp as openpgp; use crate::openpgp::crypto::SessionKey; -use crate::openpgp::constants::SymmetricAlgorithm; +use crate::openpgp::constants::{KeyFlags, SymmetricAlgorithm}; use crate::openpgp::serialize::stream::*; -use crate::openpgp::packet::KeyFlags; use crate::openpgp::parse::stream::*; const MESSAGE: &'static str = "дружба"; diff --git a/openpgp/examples/pad.rs b/openpgp/examples/pad.rs index 681bfe53..eaaaeba8 100644 --- a/openpgp/examples/pad.rs +++ b/openpgp/examples/pad.rs @@ -7,7 +7,7 @@ use std::io; extern crate sequoia_openpgp as openpgp; use crate::openpgp::armor; use crate::openpgp::KeyID; -use crate::openpgp::packet::KeyFlags; +use crate::openpgp::constants::KeyFlags; use crate::openpgp::parse::Parse; use crate::openpgp::serialize::stream::{ Message, LiteralWriter, Encryptor, Recipient, |