diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-10 16:24:07 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-11 15:25:35 +0100 |
commit | 8ef8eafbd072d01755d137b60003bee7bfe9cbe9 (patch) | |
tree | 72dba12580449cc7d5e51fec1bab55a51ee5ff69 /tool/src/commands/inspect.rs | |
parent | 54b909ef2c75f9027b5959171d4d995015f159cb (diff) |
openpgp: Call 'expiration time' a 'validity period'.
- The former is a misnomer inherited from the RFC: It is a
duration, not a point in time. 'Validity period' makes that
clear, and also emphasizes that the key or signature is valid
during that period.
- See #429.
Diffstat (limited to 'tool/src/commands/inspect.rs')
-rw-r--r-- | tool/src/commands/inspect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 53bf80e8..87406bae 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -238,7 +238,7 @@ fn inspect_key(policy: &dyn Policy, writeln!(output, "{} Creation time: {}", indent, key.creation_time().convert())?; if let Some(vka) = vka { - if let Some(expires) = vka.key_expiration_time() { + if let Some(expires) = vka.key_validity_period() { let expiration_time = key.creation_time() + expires; writeln!(output, "{}Expiration time: {} (creation time + {})", indent, |