From 9723ae40b6cd4a1efe495427fa03e08a33d868a6 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Mon, 24 Oct 2022 16:58:12 +0200 Subject: [PATCH] openpgp-card-sequoia: add re-exports --- openpgp-card-sequoia/src/lib.rs | 1 + openpgp-card-sequoia/src/types.rs | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 openpgp-card-sequoia/src/types.rs diff --git a/openpgp-card-sequoia/src/lib.rs b/openpgp-card-sequoia/src/lib.rs index adf37c3..2fb5f51 100644 --- a/openpgp-card-sequoia/src/lib.rs +++ b/openpgp-card-sequoia/src/lib.rs @@ -142,6 +142,7 @@ mod decryptor; mod privkey; mod signer; pub mod sq_util; +pub mod types; pub mod util; /// Shorthand for Sequoia public key data (a single public (sub)key) diff --git a/openpgp-card-sequoia/src/types.rs b/openpgp-card-sequoia/src/types.rs new file mode 100644 index 0000000..dfe0764 --- /dev/null +++ b/openpgp-card-sequoia/src/types.rs @@ -0,0 +1,9 @@ +// SPDX-FileCopyrightText: 2022 Heiko Schaefer +// SPDX-License-Identifier: MIT OR Apache-2.0 + +//! Re-exports of openpgp-card types to enable standalone-use of openpgp-card-sequoia. + +pub use openpgp_card::algorithm::{Algo, AlgoSimple, Curve}; +pub use openpgp_card::card_do::{Sex, TouchPolicy}; +pub use openpgp_card::crypto_data::{EccType, PublicKeyMaterial}; +pub use openpgp_card::{CardBackend, Error, KeyType, StatusBytes};