diff options
author | Kai Michaelis <kai@sequoia-pgp.org> | 2018-11-06 20:44:48 +0100 |
---|---|---|
committer | Kai Michaelis <kai@sequoia-pgp.org> | 2018-11-07 12:54:01 +0100 |
commit | 81774c4c1645b612ada1ecaa7cf88036f1784622 (patch) | |
tree | 253fb78a34d472b03e2b90d1a55608b8eab074b3 /ffi | |
parent | 31eec3fdccd0188f8c81e3a8fe9b7c1ba911cda6 (diff) |
ffi: fix examples
The FFI API changed.
Diffstat (limited to 'ffi')
-rw-r--r-- | ffi/examples/encrypt-for.c | 2 | ||||
-rw-r--r-- | ffi/examples/parser.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ffi/examples/encrypt-for.c b/ffi/examples/encrypt-for.c index 3bb0b308..15ff3ef6 100644 --- a/ffi/examples/encrypt-for.c +++ b/ffi/examples/encrypt-for.c @@ -63,7 +63,7 @@ main (int argc, char **argv) sink = sq_armor_writer_new (ctx, sink, SQ_ARMOR_KIND_MESSAGE, NULL, 0); - writer = sq_writer_stack_wrap (sink); + writer = sq_writer_stack_message (sink); writer = sq_encryptor_new (ctx, writer, NULL, 0, /* no passwords */ diff --git a/ffi/examples/parser.c b/ffi/examples/parser.c index 3cceea26..e26dd646 100644 --- a/ffi/examples/parser.c +++ b/ffi/examples/parser.c @@ -64,7 +64,7 @@ main (int argc, char **argv) // Finish parsing the current packet (returned in p), and read // the header of the next packet (returned in ppr). - rc = sq_packet_parser_next (ctx, pp, &p, NULL, &ppr, NULL); + rc = sq_packet_parser_next (ctx, pp, &p, &ppr); if (rc) { err = sq_context_last_error (ctx); |