diff options
author | Neal H. Walfield <neal@pep.foundation> | 2018-11-22 10:04:55 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2018-11-22 10:06:14 +0100 |
commit | bbcd118f255cf5cb7d49a89e332d20592792605e (patch) | |
tree | f4309aad7e8dba527505a9b76d7ca481b85ac93b /ffi/include | |
parent | b11b12bdcf61a3d74da3fadbbb8b6b8ae9040e08 (diff) |
ffi: Wrap some of Signature's methods.
Diffstat (limited to 'ffi/include')
-rw-r--r-- | ffi/include/sequoia/openpgp.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ffi/include/sequoia/openpgp.h b/ffi/include/sequoia/openpgp.h index 0331a2ad..f18bbeb8 100644 --- a/ffi/include/sequoia/openpgp.h +++ b/ffi/include/sequoia/openpgp.h @@ -496,6 +496,24 @@ sq_status_t sq_packet_pile_serialize (sq_context_t ctx, const sq_packet_pile_t message, sq_writer_t writer); +/*/ +/// Returns the value of the `Signature` packet's Issuer subpacket. +/// +/// If there is no Issuer subpacket, this returns NULL. Note: if +/// there is no Issuer subpacket, but there is an IssuerFingerprint +/// subpacket, this still returns NULL. +/*/ +sq_keyid_t sq_signature_issuer(sq_signature_t sig); + +/*/ +/// Returns the value of the `Signature` packet's IssuerFingerprint subpacket. +/// +/// If there is no IssuerFingerprint subpacket, this returns NULL. +/// Note: if there is no IssuerFingerprint subpacket, but there is an +/// Issuer subpacket, this still returns NULL. +/*/ +sq_fingerprint_t sq_signature_issuer_fingerprint(sq_signature_t sig); + /* openpgp::tpk. */ |