diff options
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index f8b77b28..79b4c7e8 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -817,7 +817,7 @@ impl<'a, H: VerificationHelper> Verifier<'a, H> { // less misleading) error message than // `VerificationResult::MissingKey`. if let VerificationResult::MissingKey { .. } = err { - if let Some(key) = self.certs.iter() + if let Some(ka) = self.certs.iter() .flat_map(|cert| { cert.keys().key_handles(issuers.iter()) }) @@ -829,7 +829,7 @@ impl<'a, H: VerificationHelper> Verifier<'a, H> { format!( "Signing key ({}) not valid \ when signature was created", - key.fingerprint())) + ka.key().fingerprint())) .into(), } } @@ -1769,7 +1769,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> { // less misleading) error message than // `VerificationResult::MissingKey`. if let VerificationResult::MissingKey { .. } = err { - if let Some(key) = self.certs.iter() + if let Some(ka) = self.certs.iter() .flat_map(|cert| { cert.keys().key_handles(issuers.iter()) }) @@ -1781,7 +1781,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> { format!( "Signing key ({}) not valid \ when signature was created", - key.fingerprint())) + ka.key().fingerprint())) .into(), } } |