diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-06-17 08:53:19 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-06-17 08:55:38 +0200 |
commit | 64fce5061ad92a810013896ac581f2564593aa1d (patch) | |
tree | 971e414558af93ae3f91f2bed793d05786177499 /openpgp-ffi/include | |
parent | 06db1756bbb0ff0f3e8f9f7c4b8ca9d2e1b70d7c (diff) |
openpgp-ffi: Restore convenience function.
- Restore the function `pgp_cert_revoke_in_place`.
Diffstat (limited to 'openpgp-ffi/include')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h index 396cbf95..5d85b964 100644 --- a/openpgp-ffi/include/sequoia/openpgp.h +++ b/openpgp-ffi/include/sequoia/openpgp.h @@ -961,6 +961,17 @@ pgp_signature_t pgp_cert_revoke (pgp_error_t *errp, const char *reason); /*/ +/// Returns a new revocation certificate for the Cert. +/// +/// This function consumes `cert` and returns a new `Cert`. +/*/ +pgp_cert_t pgp_cert_revoke_in_place (pgp_error_t *errp, + pgp_cert_t cert, + pgp_signer_t primary_signer, + pgp_reason_for_revocation_t code, + const char *reason); + +/*/ /// Returns whether the Cert is alive at the specified time. /// /// If `when` is 0, then the current time is used. |