diff options
Diffstat (limited to 'openpgp/src/cert/mod.rs')
-rw-r--r-- | openpgp/src/cert/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs index f1a5519f..f2bff65d 100644 --- a/openpgp/src/cert/mod.rs +++ b/openpgp/src/cert/mod.rs @@ -46,7 +46,6 @@ pub mod amalgamation; mod builder; mod bindings; pub mod bundle; -mod keyiter; pub mod key_amalgamation; mod parser; mod revoke; @@ -683,9 +682,9 @@ impl Cert { /// /// That is, this returns an iterator over the primary key and any /// subkeys. - pub fn keys(&self) -> KeyIter<key::PublicParts, key::UnspecifiedRole> + pub fn keys(&self) -> KeyAmalgamationIter<key::PublicParts, key::UnspecifiedRole> { - KeyIter::new(self) + KeyAmalgamationIter::new(self) } /// Returns the Cert found in the packet stream. @@ -1465,7 +1464,7 @@ impl<'a> ValidCert<'a> { /// /// That is, this returns an iterator over the primary key and any /// subkeys. - pub fn keys(&self) -> ValidKeyIter<key::PublicParts, key::UnspecifiedRole> { + pub fn keys(&self) -> ValidKeyAmalgamationIter<key::PublicParts, key::UnspecifiedRole> { self.cert.keys().with_policy(self.policy, self.time) } |