summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-02-26 14:13:19 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-02-26 14:24:32 +0100
commitffb15aa4567af3152633d07a4598444659a8fbd8 (patch)
tree290b3393716ead89edeb54d6f6e0bb2e992b4cd4 /openpgp-ffi/src
parent7196abb880a84c97116fd08ee0d036d2c1792021 (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 'openpgp-ffi/src')
-rw-r--r--openpgp-ffi/src/cert.rs14
-rw-r--r--openpgp-ffi/src/parse/stream.rs5
2 files changed, 2 insertions, 17 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs
index 988e958f..6624d0dc 100644
--- a/openpgp-ffi/src/cert.rs
+++ b/openpgp-ffi/src/cert.rs
@@ -17,19 +17,7 @@ use self::openpgp::{
PacketParserResult,
Parse,
},
- cert::{
- CipherSuite,
- CertBuilder,
- CertParser,
- CertRevocationBuilder,
- components::{
- KeyIter,
- UserIDBundle,
- UserIDBundleIter,
- ValidAmalgamation,
- ValidKeyIter,
- },
- },
+ cert::prelude::*,
};
use crate::error::Status;
diff --git a/openpgp-ffi/src/parse/stream.rs b/openpgp-ffi/src/parse/stream.rs
index 419c5c5d..3c35f435 100644
--- a/openpgp-ffi/src/parse/stream.rs
+++ b/openpgp-ffi/src/parse/stream.rs
@@ -16,10 +16,7 @@ use libc::{c_int, c_void, time_t};
extern crate sequoia_openpgp as openpgp;
use self::openpgp::{
- cert::components::{
- Amalgamation,
- ValidAmalgamation,
- },
+ cert::prelude::*,
crypto::SessionKey,
types::SymmetricAlgorithm,
packet::{