diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-03-20 22:57:10 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-03-23 20:57:07 +0100 |
commit | 10b5ed603a298c43c80423d70bb6f61d2f3d3b68 (patch) | |
tree | 013fdf121e72217e60ee36470a68b22273cde840 /openpgp-ffi/include | |
parent | f37e461474581a8f9aefb3765fc1c90b8f547e8d (diff) |
openpgp-ffi: Add pgp_valid_key_amalgamation_with_policy.
- Expose ValidKeyAmalgamation::with_policy in the C FFI.
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 6b3e90c0..5f612720 100644 --- a/openpgp-ffi/include/sequoia/openpgp.h +++ b/openpgp-ffi/include/sequoia/openpgp.h @@ -1110,6 +1110,17 @@ pgp_status_t pgp_valid_key_amalgamation_set_expiration_time size_t *packet_count); /*/ +/// Changes the policy applied to the `ValidKeyAmalgamation`. +/// +/// This consumes the key amalgamation. +/*/ +pgp_valid_key_amalgamation_t pgp_valid_key_amalgamation_with_policy + (pgp_error_t *errp, + pgp_valid_key_amalgamation_t ka, + pgp_policy_t policy, + time_t time); + +/*/ /// Frees the Valid Key Amalgamation. /*/ void pgp_valid_key_amalgamation_free (pgp_valid_key_amalgamation_t ka); |