X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=armor.h;h=7245589f988b5ca81aac606b565aae31a8143649;hb=refs%2Fheads%2Fmain;hp=0006bf5a82a3f545b9916b6a5e2bc778b76ac657;hpb=d38e1f468376f8b19b208f2da4d20cb2919875dd;p=onak.git diff --git a/armor.h b/armor.h index 0006bf5..7245589 100644 --- a/armor.h +++ b/armor.h @@ -14,8 +14,7 @@ * more details. * * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * this program. If not, see . */ #ifndef __ARMOR_H__ @@ -32,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); @@ -47,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);