summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/include/sequoia/openpgp/types.h
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-05-15 22:34:34 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-05-15 22:37:57 +0200
commit1687fa2e4fda73791d53134cb5541fa0a9412268 (patch)
tree2f48863983e5fdb243ba1aacc4c3d3b107f8e4e8 /openpgp-ffi/include/sequoia/openpgp/types.h
parenta25ef6974e0ba3989f6205c19a1f9ccfc81db584 (diff)
openpgp-ffi: Expose the inspect callback in the C API
- DecryptionHelper has a default NULL implementation of the inspect callback. Allow C code to override it by exposing it in the pgp_decryptor_new API.
Diffstat (limited to 'openpgp-ffi/include/sequoia/openpgp/types.h')
-rw-r--r--openpgp-ffi/include/sequoia/openpgp/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp/types.h b/openpgp-ffi/include/sequoia/openpgp/types.h
index 42dfb727..b6003b1d 100644
--- a/openpgp-ffi/include/sequoia/openpgp/types.h
+++ b/openpgp-ffi/include/sequoia/openpgp/types.h
@@ -522,4 +522,7 @@ typedef pgp_status_t (*pgp_decryptor_decrypt_cb_t) (void *,
typedef pgp_status_t (*pgp_decryptor_check_cb_t) (void *,
pgp_message_structure_t);
+typedef pgp_status_t (*pgp_decryptor_inspect_cb_t) (void *,
+ pgp_packet_parser_t);
+
#endif