diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-07 12:34:55 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-07 16:09:13 +0100 |
commit | 188a545d2ab09302baaae6a7e28bc07dc404464d (patch) | |
tree | 55f84090cb7012595962c5ba631a6b99b5d0f4a9 /openpgp-ffi/src/cert.rs | |
parent | 07299eff8d7c1a23940e7ab2bb76df24a8e27164 (diff) |
openpgp: Rename Cert::set_expiry to set_expiration_time.
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 b0ca0275..7aa75956 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_expiry(errp: Option<&mut *mut crate::error::Error>, +fn pgp_cert_set_expiration_time(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_expiry(errp: Option<&mut *mut crate::error::Error>, let cert = cert.move_from_raw(); let signer = ffi_param_ref_mut!(primary_signer); - cert.set_expiry(policy, signer.as_mut(), + cert.set_expiration_time(policy, signer.as_mut(), Some(std::time::Duration::new(expiry as u64, 0))) .move_into_raw(errp) } |