openpgp-card-sequoia: add getters for uif_*
This commit is contained in:
parent
5fbe9186cb
commit
5dae8e5758
1 changed files with 9 additions and 13 deletions
|
@ -12,7 +12,7 @@ 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, Lang, PWStatusBytes,
|
||||||
SecuritySupportTemplate, Sex, TouchPolicy,
|
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};
|
||||||
|
@ -255,24 +255,20 @@ impl<'a> Open<'a> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
pub fn uif_signing(&self) -> Result<Option<UIF>, Error> {
|
||||||
fn uif_pso_cds() {
|
self.ard.uif_pso_cds()
|
||||||
unimplemented!()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
pub fn uif_decryption(&self) -> Result<Option<UIF>, Error> {
|
||||||
fn uif_pso_dec() {
|
self.ard.uif_pso_dec()
|
||||||
unimplemented!()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
pub fn uif_authentication(&self) -> Result<Option<UIF>, Error> {
|
||||||
fn uif_pso_aut() {
|
self.ard.uif_pso_aut()
|
||||||
unimplemented!()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
pub fn uif_attestation(&self) -> Result<Option<UIF>, Error> {
|
||||||
fn uif_attestation() {
|
self.ard.uif_attestation()
|
||||||
unimplemented!()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- optional private DOs (0101 - 0104) ---
|
// --- optional private DOs (0101 - 0104) ---
|
||||||
|
|
Loading…
Reference in a new issue