summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/examples
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/examples
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/examples')
-rw-r--r--openpgp-ffi/examples/decrypt-with.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/examples/decrypt-with.c b/openpgp-ffi/examples/decrypt-with.c
index 0f2662ab..8343f34d 100644
--- a/openpgp-ffi/examples/decrypt-with.c
+++ b/openpgp-ffi/examples/decrypt-with.c
@@ -210,7 +210,7 @@ main (int argc, char **argv)
};
plaintext = pgp_decryptor_new (&err, source,
get_public_keys_cb, decrypt_cb,
- check_cb, &cookie, 0);
+ check_cb, NULL, &cookie, 0);
if (! plaintext)
error (1, 0, "pgp_decryptor_new: %s", pgp_error_to_string (err));