openpgp-card-sequoia: add key_information()
This commit is contained in:
parent
1f7aa97df5
commit
d2ac526523
1 changed files with 4 additions and 5 deletions
|
@ -11,8 +11,8 @@ use sequoia_openpgp::types::{HashAlgorithm, SymmetricAlgorithm};
|
||||||
use openpgp_card::algorithm::{Algo, AlgoInfo, AlgoSimple};
|
use openpgp_card::algorithm::{Algo, AlgoInfo, AlgoSimple};
|
||||||
use openpgp_card::card_do::{
|
use openpgp_card::card_do::{
|
||||||
ApplicationIdentifier, ApplicationRelatedData, CardholderRelatedData, ExtendedCapabilities,
|
ApplicationIdentifier, ApplicationRelatedData, CardholderRelatedData, ExtendedCapabilities,
|
||||||
ExtendedLengthInfo, Fingerprint, HistoricalBytes, KeyGenerationTime, Lang, PWStatusBytes,
|
ExtendedLengthInfo, Fingerprint, HistoricalBytes, KeyGenerationTime, KeyInformation, Lang,
|
||||||
SecuritySupportTemplate, Sex, TouchPolicy, UIF,
|
PWStatusBytes, SecuritySupportTemplate, Sex, TouchPolicy, UIF,
|
||||||
};
|
};
|
||||||
use openpgp_card::crypto_data::PublicKeyMaterial;
|
use openpgp_card::crypto_data::PublicKeyMaterial;
|
||||||
use openpgp_card::{CardBackend, Error, KeySet, KeyType, OpenPgp, OpenPgpTransaction};
|
use openpgp_card::{CardBackend, Error, KeySet, KeyType, OpenPgp, OpenPgpTransaction};
|
||||||
|
@ -249,9 +249,8 @@ impl<'a> Open<'a> {
|
||||||
self.ard.key_generation_times()
|
self.ard.key_generation_times()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
pub fn key_information(&self) -> Result<Option<KeyInformation>, Error> {
|
||||||
fn key_information() {
|
self.ard.key_information()
|
||||||
unimplemented!()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn uif_signing(&self) -> Result<Option<UIF>, Error> {
|
pub fn uif_signing(&self) -> Result<Option<UIF>, Error> {
|
||||||
|
|
Loading…
Reference in a new issue