summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-15 13:43:50 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-15 15:48:23 +0200
commitea8100e60c19a6be793d3c88fb54b832b65031e5 (patch)
tree36dd2c3174f407e30c3169c9c3bf3086bad930f4 /openpgp-ffi
parentcab27418a20ecb42a0084073051b405648cb100b (diff)
openpgp: Drop Cert::alive.
- See #484.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r--openpgp-ffi/src/cert.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs
index 21f082a6..562f863c 100644
--- a/openpgp-ffi/src/cert.rs
+++ b/openpgp-ffi/src/cert.rs
@@ -327,7 +327,9 @@ fn pgp_cert_alive(errp: Option<&mut *mut crate::error::Error>,
{
let policy = &**policy.ref_raw();
ffi_make_fry_from_errp!(errp);
- ffi_try_status!(cert.ref_raw().alive(policy, maybe_time(when)))
+ let valid_cert = ffi_try_or_status!(
+ cert.ref_raw().with_policy(policy, maybe_time(when)));
+ ffi_try_status!(valid_cert.alive())
}
/// Sets the key to expire at the given time.