openpgp-card: move commands
out of the apdu
module
This commit is contained in:
parent
2b0111b923
commit
5440fdeb1e
4 changed files with 5 additions and 5 deletions
|
@ -5,15 +5,15 @@
|
|||
//! Commands and responses to commands
|
||||
|
||||
pub(crate) mod command;
|
||||
pub(crate) mod commands;
|
||||
pub mod response;
|
||||
|
||||
use std::convert::TryFrom;
|
||||
|
||||
use card_backend::{CardCaps, CardTransaction};
|
||||
|
||||
use crate::apdu::command::Expect;
|
||||
use crate::apdu::{command::Command, response::RawResponse};
|
||||
use crate::apdu::command::{Command, Expect};
|
||||
use crate::apdu::response::RawResponse;
|
||||
use crate::commands;
|
||||
use crate::{Error, StatusBytes};
|
||||
|
||||
/// "Maximum amount of bytes in a short APDU command or response" (from pcsc)
|
||||
|
|
|
@ -10,8 +10,8 @@ use crate::algorithm::{
|
|||
AlgorithmAttributes, AlgorithmInformation, Curve, EccAttributes, RsaAttributes,
|
||||
};
|
||||
use crate::apdu::command::Command;
|
||||
use crate::apdu::commands;
|
||||
use crate::card_do::{Fingerprint, KeyGenerationTime};
|
||||
use crate::commands;
|
||||
use crate::crypto_data::{
|
||||
CardUploadableKey, EccKey, EccPub, EccType, PrivateKeyMaterial, PublicKeyMaterial, RSAKey,
|
||||
RSAPub,
|
||||
|
|
|
@ -31,6 +31,7 @@ extern crate core;
|
|||
pub mod algorithm;
|
||||
pub(crate) mod apdu;
|
||||
pub mod card_do;
|
||||
mod commands;
|
||||
pub mod crypto_data;
|
||||
mod errors;
|
||||
pub(crate) mod keys;
|
||||
|
@ -45,7 +46,6 @@ use tags::{ShortTag, Tags};
|
|||
|
||||
use crate::algorithm::{AlgoSimple, AlgorithmAttributes, AlgorithmInformation};
|
||||
use crate::apdu::command::Command;
|
||||
use crate::apdu::commands;
|
||||
use crate::apdu::response::RawResponse;
|
||||
use crate::card_do::{
|
||||
ApplicationRelatedData, CardholderRelatedData, Fingerprint, KeyGenerationTime, Lang,
|
||||
|
|
Loading…
Reference in a new issue