From 06ad7772a6a87876e7d677a47a2d6be07717c1d9 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Wed, 16 Feb 2022 18:21:49 +0100 Subject: [PATCH] Remove remnants of card_app. --- openpgp-card/src/card_app.rs | 15 --------------- openpgp-card/src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 openpgp-card/src/card_app.rs diff --git a/openpgp-card/src/card_app.rs b/openpgp-card/src/card_app.rs deleted file mode 100644 index d527668..0000000 --- a/openpgp-card/src/card_app.rs +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Heiko Schaefer -// SPDX-License-Identifier: MIT OR Apache-2.0 - -//! CardApp exposes functionality of the "OpenPGP card" application. - -/// Low-level access to OpenPGP card functionality. -/// -/// Not many checks are performed here (e.g. for valid data lengths). -/// Such checks should be performed on a higher layer, if needed. -/// -/// Also, no caching of data is done here. If necessary, caching should -/// be done on a higher layer. -pub struct CardApp {} - -impl CardApp {} diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index c85371e..737b06c 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -27,7 +27,6 @@ pub mod algorithm; pub(crate) mod apdu; -mod card_app; pub mod card_do; pub mod crypto_data; mod errors; @@ -35,7 +34,6 @@ pub(crate) mod keys; mod tlv; pub use crate::apdu::response::Response; -pub use crate::card_app::CardApp; pub use crate::errors::{Error, SmartcardError, StatusBytes}; use anyhow::{anyhow, Result}; @@ -60,6 +58,8 @@ use crate::tlv::Tlv; /// The CardClient trait defines communication with an OpenPGP card via a /// backend implementation (e.g. the pcsc backend in the crate /// [openpgp-card-pcsc](https://crates.io/crates/openpgp-card-pcsc)). +/// +/// CardClient exposes low-level access to OpenPGP card functionality. pub trait CardClient { /// Transmit the command data in `cmd` to the card. ///