summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/include
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-04-28 09:11:58 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-04-28 09:26:50 +0200
commitcd05b15f1cd0517fa9ad4129fdaed3e0a3f21169 (patch)
treef8fe34c46768e527144407ecdc101e5ba10d8adc /openpgp-ffi/include
parent22a777c7c5db1d35642bfb9d2ab44b4833937956 (diff)
openpgp: Rework Cert::revoke_in_place.
- Rename `Cert::revoke_in_place` to `Cert::revoke`. - Return the revocation certificate; don't merge it. - Fixes #485.
Diffstat (limited to 'openpgp-ffi/include')
-rw-r--r--openpgp-ffi/include/sequoia/openpgp.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h
index 42591a4a..d6a7b219 100644
--- a/openpgp-ffi/include/sequoia/openpgp.h
+++ b/openpgp-ffi/include/sequoia/openpgp.h
@@ -958,22 +958,11 @@ pgp_revocation_status_t pgp_cert_revocation_status (pgp_cert_t cert,
pgp_policy_t policy, time_t when);
/*/
-/// Writes a revocation certificate to the writer.
+/// Returns a new revocation certificate for the Cert.
///
-/// This function consumes the writer. It does *not* consume cert.
+/// This function does *not* consume `cert`.
/*/
pgp_signature_t pgp_cert_revoke (pgp_error_t *errp,
- pgp_cert_t cert,
- pgp_signer_t primary_signer,
- pgp_reason_for_revocation_t code,
- const char *reason);
-
-/*/
-/// Adds a revocation certificate to the cert.
-///
-/// This function consumes the 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,