From 874c28b7ffe5d18899604a2f71667fc3713d0d89 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Tue, 16 Nov 2021 19:18:10 +0100 Subject: [PATCH] Add get_pub_key() --- openpgp-card-sequoia/src/card.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openpgp-card-sequoia/src/card.rs b/openpgp-card-sequoia/src/card.rs index 7b3af0a..9ea38d6 100644 --- a/openpgp-card-sequoia/src/card.rs +++ b/openpgp-card-sequoia/src/card.rs @@ -269,6 +269,15 @@ impl<'a> Open<'a> { // ---------- + pub fn get_pub_key( + &mut self, + key_type: KeyType, + ) -> Result { + self.card_app.get_pub_key(key_type).map_err(|e| e.into()) + } + + // ---------- + /// Delete all state on this OpenPGP card pub fn factory_reset(&mut self) -> Result<()> { self.card_app.factory_reset()