summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/include
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-09-18 15:20:38 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-09-18 15:22:51 +0200
commite1270c0fbdb1faa209061330fe7d5850fec8e12d (patch)
tree9e4cf43948a97bd87381b75c4783455e47323d81 /openpgp-ffi/include
parent212202e5bec054cc3b2b83edffdd8b83db5bf011 (diff)
openpgp: Combine TPK::alive and its _at variant.
- Combine TPK::alive and TPK::alive_at. - Use an Into<Option<time::Tm>> to distinguish the two previous cases: the current time (None), and a specific time (a time::Tm).
Diffstat (limited to 'openpgp-ffi/include')
-rw-r--r--openpgp-ffi/include/sequoia/openpgp.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h
index 84633002..bd495156 100644
--- a/openpgp-ffi/include/sequoia/openpgp.h
+++ b/openpgp-ffi/include/sequoia/openpgp.h
@@ -812,14 +812,11 @@ pgp_tpk_t pgp_tpk_revoke_in_place (pgp_error_t *errp,
int pgp_tpk_expired(pgp_tpk_t tpk, time_t at);
/*/
-/// Returns whether the TPK is alive.
-/*/
-int pgp_tpk_alive(pgp_tpk_t tpk);
-
-/*/
/// Returns whether the TPK is alive at the specified time.
+///
+/// If `when` is 0, then the current time is used.
/*/
-int pgp_tpk_alive_at(pgp_tpk_t tpk, time_t at);
+int pgp_tpk_alive(pgp_tpk_t tpk, time_t when);
/*/
/// Changes the TPK's expiration.