summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/amalgamation.rs')
-rw-r--r--openpgp/src/cert/amalgamation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs
index a7bb5334..48177d28 100644
--- a/openpgp/src/cert/amalgamation.rs
+++ b/openpgp/src/cert/amalgamation.rs
@@ -344,8 +344,8 @@ pub trait Amalgamation<'a> {
/// 5.2.3.3 of RFC 4880].
///
/// [Section 5.2.3.3 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-5.2.3.3
- fn key_expiration_time(&self) -> Option<std::time::Duration> {
- self.map(|s| s.key_expiration_time())
+ fn key_validity_period(&self) -> Option<std::time::Duration> {
+ self.map(|s| s.key_validity_period())
}
/// Returns the value of the Revocation Key subpacket, which