X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=armor.h;fp=armor.h;h=7245589f988b5ca81aac606b565aae31a8143649;hp=bb660a17ed1453d7c1cfe86d106926d3eca9574d;hb=35e886f23fde338387c8e2a3a74c9251f7735c3b;hpb=db700de99a954f1d88d15b28b386bc5b5e694df7 diff --git a/armor.h b/armor.h index bb660a1..7245589 100644 --- 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);