diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-09-17 17:40:23 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-17 17:44:38 +0200 |
commit | c2c61f44ac35e16051b2b6a3f0569265abdf15c8 (patch) | |
tree | a84fd2951bd2829041f841e19d0222708405881e /openpgp-ffi/include/sequoia/openpgp.h | |
parent | 1324bc3db18dbf9e27db2903515ac6c8f5b30704 (diff) |
openpgp: Rename TPK::revocation_status to TPK::revoked.
- Combine TPK::revocation_status and TPK::revocation_status_at; only
keep the version with the optional time parameter.
- Rename TPK::revocation_status to TPK::revoked to match
KeyBinding::revoked, UserIDBinding::revoked, and
UserAttributeBinding::revoked.
- Do the same for the C API.
Diffstat (limited to 'openpgp-ffi/include/sequoia/openpgp.h')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h index 8662fef1..b7a4f6be 100644 --- a/openpgp-ffi/include/sequoia/openpgp.h +++ b/openpgp-ffi/include/sequoia/openpgp.h @@ -780,23 +780,16 @@ pgp_tsk_t pgp_tpk_as_tsk (pgp_tpk_t tpk); pgp_key_t pgp_tpk_primary_key (pgp_tpk_t tpk); /*/ -/// Returns the TPK's current revocation status. -/// -/// Note: this only returns whether the TPK has been revoked, and does -/// not reflect whether an individual user id, user attribute or -/// subkey has been revoked. -/*/ -pgp_revocation_status_t pgp_tpk_revocation_status (pgp_tpk_t tpk); - -/*/ /// Returns the TPK's revocation status at the specified time. /// /// Note: this only returns whether the TPK has been revoked, and does /// not reflect whether an individual user id, user attribute or /// subkey has been revoked. +/// +/// If `when` is 0, then returns the TPK's revocation status as of the +/// time of the call. /*/ -pgp_revocation_status_t pgp_tpk_revocation_status_at (pgp_tpk_t tpk, - time_t when); +pgp_revocation_status_t pgp_tpk_revoked (pgp_tpk_t tpk, time_t when); /*/ /// Writes a revocation certificate to the writer. |