openpgp-card: attestation_key_generation_time() only needs &self

This commit is contained in:
Heiko Schaefer 2023-09-03 23:12:03 +02:00
parent 4d5d9e7ee1
commit 8ee389ca7a
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -250,7 +250,7 @@ impl ApplicationRelatedData {
} }
/// Get Attestation key generation time. /// Get Attestation key generation time.
pub fn attestation_key_generation_time(&mut self) -> Result<Option<KeyGenerationTime>, Error> { pub fn attestation_key_generation_time(&self) -> Result<Option<KeyGenerationTime>, Error> {
match self.0.find(Tags::GenerationTimeAttestation) { match self.0.find(Tags::GenerationTimeAttestation) {
None => Ok(None), None => Ok(None),
Some(data) => { Some(data) => {