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.
This commit is contained in:
Heiko Schaefer 2023-09-05 13:07:37 +02:00
parent 724be38e4f
commit 465847ea79
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -21,7 +21,7 @@ impl ExtendedCapabilities {
/// ///
/// (For OpenPGP card version 3.x, see /// (For OpenPGP card version 3.x, see
/// [`crate::card_do::ExtendedLengthInfo`]) /// [`crate::card_do::ExtendedLengthInfo`])
pub fn max_cmd_len(&self) -> Option<u16> { pub(crate) fn max_cmd_len(&self) -> Option<u16> {
self.max_cmd_len self.max_cmd_len
} }
@ -29,7 +29,7 @@ impl ExtendedCapabilities {
/// ///
/// (For OpenPGP card version 3.x, see /// (For OpenPGP card version 3.x, see
/// [`crate::card_do::ExtendedLengthInfo`]) /// [`crate::card_do::ExtendedLengthInfo`])
pub fn max_resp_len(&self) -> Option<u16> { pub(crate) fn max_resp_len(&self) -> Option<u16> {
self.max_resp_len self.max_resp_len
} }
} }