diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-12-28 16:23:47 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-12-28 16:26:14 +0100 |
commit | 9d87c1b3d440a16214ee4562f086ec372fd5da7b (patch) | |
tree | 73109bf14650915d117b1f6a29168e33dc0dd186 /ffi/include | |
parent | c8915ed3247eea0633713c1678274b32082286b0 (diff) |
ffi: Add sq_tpk_merge_packets.
Diffstat (limited to 'ffi/include')
-rw-r--r-- | ffi/include/sequoia/openpgp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ffi/include/sequoia/openpgp.h b/ffi/include/sequoia/openpgp.h index dbdaa872..01aa1aab 100644 --- a/ffi/include/sequoia/openpgp.h +++ b/ffi/include/sequoia/openpgp.h @@ -835,6 +835,19 @@ sq_tpk_t sq_tpk_merge (sq_context_t ctx, sq_tpk_t other); /*/ +/// Adds packets to the TPK. +/// +/// This recanonicalizes the TPK. If the packets are invalid, they +/// are dropped. +/// +/// Consumes `tpk` and the packets in `packets`. The buffer, however, +/// must be freed by the caller. +/*/ +sq_tpk_t sq_tpk_merge_packets (sq_context_t ctx, + sq_tpk_t tpk, + sq_packet_t *packets, + size_t packets_len); +/*/ /// Dumps the TPK. /*/ void sq_tpk_dump (const sq_tpk_t tpk); |