]> the.earth.li Git - onak.git/blobdiff - armor.h
Switch charfuncs to returning number of read/written characters
[onak.git] / armor.h
diff --git a/armor.h b/armor.h
index bb660a17ed1453d7c1cfe86d106926d3eca9574d..7245589f988b5ca81aac606b565aae31a8143649 100644 (file)
--- a/armor.h
+++ b/armor.h
@@ -31,7 +31,7 @@
  * This function ASCII armors a list of OpenPGP packets and outputs it
  * using putchar_func.
  */
-int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count,
+int armor_openpgp_stream(size_t (*putchar_func)(void *ctx, size_t count,
                                                void *c),
                                void *ctx,
                                struct openpgp_packet_list *packets);
@@ -46,7 +46,7 @@ int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count,
  * armored OpenPGP stream and outputs the data as a linked list of
  * packets.
  */
-int dearmor_openpgp_stream(int (*getchar_func)(void *ctx, size_t count,
+int dearmor_openpgp_stream(size_t (*getchar_func)(void *ctx, size_t count,
                                        void *c),
                                void *ctx,
                                struct openpgp_packet_list **packets);