diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-04-26 17:36:51 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-04-26 17:43:36 +0200 |
commit | f4e5d2a2bd131f667c1bb532d7b35cea349c11d5 (patch) | |
tree | 62a7f7906ae6bebecd3b63133db1e71b0866cd4e /openpgp-ffi | |
parent | 79bd0050384927a38a152fb90d16df6de12611a0 (diff) |
openpgp: Add a reference time to Cert::set_expiration_time.
- Don't assume that the current binding signature should be used;
include a reference time.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 31872d90..d51d29ad 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -347,7 +347,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_expiration_time(policy, None, signer.as_mut(), maybe_time(expiry)) .move_into_raw(errp) } |