openpgp-card-sequoia: add getters for uif_*

This commit is contained in:
Heiko Schaefer 2022-10-24 16:49:53 +02:00
parent 5fbe9186cb
commit 5dae8e5758
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -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) ---