summaryrefslogtreecommitdiffstats
path: root/ffi/examples
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-01-23 12:34:53 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-01-23 12:38:16 +0100
commit0de59ff963a97014d47a2652e7216e135a39014e (patch)
treeb104df2527e402dcc99808fda60271f1d701d1ef /ffi/examples
parentf94ec71325f400e19560a3199aa48b6e60d2e686 (diff)
openpgp-ffi: Remove pgp_tpk_dump.
- This function was used early on to demonstrate the FFI layer. It can now be expressed using pgp_tpk_debug().
Diffstat (limited to 'ffi/examples')
-rw-r--r--ffi/examples/keyserver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ffi/examples/keyserver.c b/ffi/examples/keyserver.c
index 25c72696..204e52ae 100644
--- a/ffi/examples/keyserver.c
+++ b/ffi/examples/keyserver.c
@@ -2,6 +2,7 @@
#include <error.h>
#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
#include <sequoia.h>
@@ -34,7 +35,10 @@ main (int argc, char **argv)
error (1, 0, "Failed to retrieve key: %s", pgp_error_string (err));
}
- pgp_tpk_dump (tpk);
+ char *debug = pgp_tpk_debug (tpk);
+ printf ("%s", debug);
+ free (debug);
+
pgp_tpk_free (tpk);
pgp_keyid_free (id);
sq_keyserver_free (ks);