diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-07-25 11:22:19 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-07-25 11:49:30 +0200 |
commit | fde533a1add6781a77f8a9d923f75f01e5d39158 (patch) | |
tree | 3ecbce992a75b7b45854e3bfb973e9980f35e917 /ffi | |
parent | c14956de44e61761761cad0b3e454e132f5d5ff4 (diff) |
ffi: Fix prototype and example.
Diffstat (limited to 'ffi')
-rw-r--r-- | ffi/examples/encrypt-for.c | 2 | ||||
-rw-r--r-- | ffi/include/sequoia/openpgp.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ffi/examples/encrypt-for.c b/ffi/examples/encrypt-for.c index 637585d4..b12ef458 100644 --- a/ffi/examples/encrypt-for.c +++ b/ffi/examples/encrypt-for.c @@ -60,7 +60,7 @@ main (int argc, char **argv) sink = sq_writer_alloc (&cipher, &cipher_bytes); if (use_armor) - sink = sq_armor_writer_new (sink, SQ_ARMOR_KIND_MESSAGE); + sink = sq_armor_writer_new (ctx, sink, SQ_ARMOR_KIND_MESSAGE); writer = sq_writer_stack_wrap (sink); writer = sq_encryptor_new (ctx, diff --git a/ffi/include/sequoia/openpgp.h b/ffi/include/sequoia/openpgp.h index 815e8f91..d7ab70b9 100644 --- a/ffi/include/sequoia/openpgp.h +++ b/ffi/include/sequoia/openpgp.h @@ -167,7 +167,8 @@ sq_reader_t sq_armor_reader_new (sq_reader_t inner, sq_armor_kind_t kind); /// /// A filter that applies ASCII Armor to the data written to it. /*/ -sq_writer_t sq_armor_writer_new (sq_writer_t inner, sq_armor_kind_t kind); +sq_writer_t sq_armor_writer_new (sq_context_t ctx, sq_writer_t inner, + sq_armor_kind_t kind); /* openpgp::PacketPile. */ |