From 465847ea793f2b2193b585c5dde5784d8c665004 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Tue, 5 Sep 2023 13:07:37 +0200 Subject: [PATCH] openpgp-card: ExtendedCapabilities, make v2 command length getters private. Command length negotiation is handled in this library, this information should never be useful to callers. --- openpgp-card/src/card_do/extended_cap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpgp-card/src/card_do/extended_cap.rs b/openpgp-card/src/card_do/extended_cap.rs index 7a1a813..d5a4c9a 100644 --- a/openpgp-card/src/card_do/extended_cap.rs +++ b/openpgp-card/src/card_do/extended_cap.rs @@ -21,7 +21,7 @@ impl ExtendedCapabilities { /// /// (For OpenPGP card version 3.x, see /// [`crate::card_do::ExtendedLengthInfo`]) - pub fn max_cmd_len(&self) -> Option { + pub(crate) fn max_cmd_len(&self) -> Option { self.max_cmd_len } @@ -29,7 +29,7 @@ impl ExtendedCapabilities { /// /// (For OpenPGP card version 3.x, see /// [`crate::card_do::ExtendedLengthInfo`]) - pub fn max_resp_len(&self) -> Option { + pub(crate) fn max_resp_len(&self) -> Option { self.max_resp_len } }