diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-02-26 14:13:19 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-02-26 14:24:32 +0100 |
commit | ffb15aa4567af3152633d07a4598444659a8fbd8 (patch) | |
tree | 290b3393716ead89edeb54d6f6e0bb2e992b4cd4 /tool/src/commands | |
parent | 7196abb880a84c97116fd08ee0d036d2c1792021 (diff) |
openpgp: Add a prelude file to import things related to certificates
- Add `openpgp/src/cert/prelude.rs` to import most types and traits
related to certificates.
- Use it instead of using the types and traits individually.
Diffstat (limited to 'tool/src/commands')
-rw-r--r-- | tool/src/commands/inspect.rs | 2 | ||||
-rw-r--r-- | tool/src/commands/key.rs | 2 | ||||
-rw-r--r-- | tool/src/commands/mod.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 6d423239..e7372f11 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -4,7 +4,7 @@ use clap; extern crate sequoia_openpgp as openpgp; use crate::openpgp::{Packet, Result}; -use crate::openpgp::cert::components::{Amalgamation, ValidAmalgamation}; +use crate::openpgp::cert::prelude::*; use openpgp::packet::key::PublicParts; use crate::openpgp::parse::{Parse, PacketParserResult}; use crate::openpgp::policy::Policy; diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index afca59f1..b463214e 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -5,7 +5,7 @@ use itertools::Itertools; use std::time::{SystemTime, Duration}; use crate::openpgp::Packet; -use crate::openpgp::cert::{CertBuilder, CipherSuite}; +use crate::openpgp::cert::prelude::*; use crate::openpgp::types::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 dfb1dfdd..a925d362 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -11,9 +11,9 @@ use sequoia_core::Context; use crate::openpgp::types::{ CompressionAlgorithm, }; +use crate::openpgp::cert::prelude::*; use crate::openpgp::crypto; use crate::openpgp::{Cert, KeyID, Result}; -use crate::openpgp::cert::components::Amalgamation; use crate::openpgp::packet::prelude::*; use crate::openpgp::parse::{ Parse, |