Add get_pub_key()

This commit is contained in:
Heiko Schaefer 2021-11-16 19:18:10 +01:00
parent 13c8769ea3
commit 874c28b7ff
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -269,6 +269,15 @@ impl<'a> Open<'a> {
// ---------- // ----------
pub fn get_pub_key(
&mut self,
key_type: KeyType,
) -> Result<PublicKeyMaterial> {
self.card_app.get_pub_key(key_type).map_err(|e| e.into())
}
// ----------
/// Delete all state on this OpenPGP card /// Delete all state on this OpenPGP card
pub fn factory_reset(&mut self) -> Result<()> { pub fn factory_reset(&mut self) -> Result<()> {
self.card_app.factory_reset() self.card_app.factory_reset()