summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/include
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-09 12:32:35 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-09 13:28:28 +0100
commit88f43e115383c89fb83714e5dd6fbd2f9df16047 (patch)
tree865b76d3e02ac77b69b80eeac321f0105e1ff3a4 /openpgp-ffi/include
parentfe8093bc1aef8c6a79fd1dc76f5cc857eae05d50 (diff)
openpgp: Return result from Cert::alive, remove Cert::expired.
- See #371.
Diffstat (limited to 'openpgp-ffi/include')
-rw-r--r--openpgp-ffi/include/sequoia/openpgp.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h
index b93ebb05..a5e4b603 100644
--- a/openpgp-ffi/include/sequoia/openpgp.h
+++ b/openpgp-ffi/include/sequoia/openpgp.h
@@ -894,18 +894,11 @@ pgp_cert_t pgp_cert_revoke_in_place (pgp_error_t *errp,
const char *reason);
/*/
-/// Returns whether the Cert has expired.
-///
-/// If `when` is 0, then the current time is used.
-/*/
-int pgp_cert_expired(pgp_cert_t cert, time_t at);
-
-/*/
/// Returns whether the Cert is alive at the specified time.
///
/// If `when` is 0, then the current time is used.
/*/
-int pgp_cert_alive(pgp_cert_t cert, time_t when);
+pgp_status_t pgp_cert_alive(pgp_error_t *errp, pgp_cert_t cert, time_t when);
/*/
/// Changes the Cert's expiration.