diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-15 13:43:50 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-15 15:48:23 +0200 |
commit | ea8100e60c19a6be793d3c88fb54b832b65031e5 (patch) | |
tree | 36dd2c3174f407e30c3169c9c3bf3086bad930f4 /openpgp-ffi/src/cert.rs | |
parent | cab27418a20ecb42a0084073051b405648cb100b (diff) |
openpgp: Drop Cert::alive.
- See #484.
Diffstat (limited to 'openpgp-ffi/src/cert.rs')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 4 |
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. |