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 /openpgp-ffi/src/cert.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 'openpgp-ffi/src/cert.rs')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 7aa75956..f98478fa 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -346,7 +346,7 @@ fn pgp_cert_alive(errp: Option<&mut *mut crate::error::Error>, /// /// This function consumes `cert` and returns a new `Cert`. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" -fn pgp_cert_set_expiration_time(errp: Option<&mut *mut crate::error::Error>, +fn pgp_cert_set_validity_period(errp: Option<&mut *mut crate::error::Error>, cert: *mut Cert, policy: *const Policy, primary_signer: *mut Box<dyn crypto::Signer>, @@ -357,7 +357,7 @@ fn pgp_cert_set_expiration_time(errp: Option<&mut *mut crate::error::Error>, let cert = cert.move_from_raw(); let signer = ffi_param_ref_mut!(primary_signer); - cert.set_expiration_time(policy, signer.as_mut(), + cert.set_validity_period(policy, signer.as_mut(), Some(std::time::Duration::new(expiry as u64, 0))) .move_into_raw(errp) } |