summaryrefslogtreecommitdiffstats
path: root/tool/src/commands
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-09-11 15:14:13 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-09-11 15:30:04 +0200
commit4e0618c932b6b63d6663de212581e559cd680a90 (patch)
tree02a0c4bf1ea90bd98295210805d67a150f4bfcac /tool/src/commands
parent16616b00f499022402f693aace99d12bfef5659a (diff)
openpgp: Move packet::KeyFlags to constants.
Diffstat (limited to 'tool/src/commands')
-rw-r--r--tool/src/commands/inspect.rs2
-rw-r--r--tool/src/commands/key.rs2
-rw-r--r--tool/src/commands/mod.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs
index f1b9f625..bb8ed112 100644
--- a/tool/src/commands/inspect.rs
+++ b/tool/src/commands/inspect.rs
@@ -227,7 +227,7 @@ fn inspect_revocation(output: &mut io::Write,
Ok(())
}
-fn inspect_key_flags(flags: openpgp::packet::KeyFlags) -> Option<String> {
+fn inspect_key_flags(flags: openpgp::constants::KeyFlags) -> Option<String> {
let mut capabilities = Vec::new();
if flags.can_certify() {
capabilities.push("certification")
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs
index 8c765bca..5b048e4a 100644
--- a/tool/src/commands/key.rs
+++ b/tool/src/commands/key.rs
@@ -5,7 +5,7 @@ use itertools::Itertools;
use crate::openpgp::Packet;
use crate::openpgp::tpk::{TPKBuilder, CipherSuite};
-use crate::openpgp::packet::KeyFlags;
+use crate::openpgp::constants::KeyFlags;
use crate::openpgp::armor::{Writer, Kind};
use crate::openpgp::serialize::Serialize;
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs
index f07b5445..f9cbb776 100644
--- a/tool/src/commands/mod.rs
+++ b/tool/src/commands/mod.rs
@@ -88,7 +88,7 @@ pub fn encrypt(store: &mut store::Store,
input: &mut io::Read, output: &mut io::Write,
npasswords: usize, recipients: Vec<&str>,
mut tpks: Vec<openpgp::TPK>, signers: Vec<openpgp::TPK>,
- mode: KeyFlags,
+ mode: openpgp::constants::KeyFlags,
compression: &str)
-> Result<()> {
for r in recipients {