From a8c53056f0f9a27cde934ad162e10acb7e2f8153 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Sat, 21 Aug 2021 17:44:25 +0200 Subject: [PATCH] Limit visibility of KeyType methods --- openpgp-card/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index 572dcd2..3e9931a 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -123,7 +123,7 @@ pub enum KeyType { impl KeyType { /// Get C1/C2/C3/DA values for this KeyTypes, to use as Tag - pub fn get_algorithm_tag(&self) -> u8 { + fn get_algorithm_tag(&self) -> u8 { use KeyType::*; match self { @@ -138,7 +138,7 @@ impl KeyType { /// /// (NOTE: these Tags are only used for "PUT DO", but GETting /// fingerprint information from the card uses the combined Tag C5) - pub fn get_fingerprint_put_tag(&self) -> u8 { + fn get_fingerprint_put_tag(&self) -> u8 { use KeyType::*; match self { @@ -153,7 +153,7 @@ impl KeyType { /// /// (NOTE: these Tags are only used for "PUT DO", but GETting /// timestamp information from the card uses the combined Tag CD) - pub fn get_timestamp_put_tag(&self) -> u8 { + fn get_timestamp_put_tag(&self) -> u8 { use KeyType::*; match self {