From 1687fa2e4fda73791d53134cb5541fa0a9412268 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Wed, 15 May 2019 22:34:34 +0200 Subject: 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. --- openpgp-ffi/include/sequoia/openpgp/types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openpgp-ffi/include/sequoia/openpgp/types.h') 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 -- cgit v1.2.3