X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=armor.h;h=7b8cd3421393249f3feda779f1cde181e1fcf1e8;hb=704ff4af8e4f8171c0ff29e4c173ac6ed00ce81e;hp=63f919859222c9b9f0bbf5b5849b7553d982bcf9;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/armor.h b/armor.h index 63f9198..7b8cd34 100644 --- a/armor.h +++ b/armor.h @@ -4,6 +4,8 @@ * Jonathan McDowell * * Copyright 2002 Project Purple + * + * $Id: armor.h,v 1.4 2003/06/04 20:57:07 noodles Exp $ */ #ifndef __ARMOR_H__ @@ -20,7 +22,8 @@ * This function ASCII armors a list of OpenPGP packets and outputs it * using putchar_func. */ -int armor_openpgp_stream(int (*putchar_func)(void *ctx, unsigned char c), +int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count, + unsigned char *c), void *ctx, struct openpgp_packet_list *packets); @@ -34,7 +37,8 @@ int armor_openpgp_stream(int (*putchar_func)(void *ctx, unsigned char c), * armored OpenPGP stream and outputs the data as a linked list of * packets. */ -int dearmor_openpgp_stream(int (*getchar_func)(void *ctx, unsigned char *c), +int dearmor_openpgp_stream(int (*getchar_func)(void *ctx, size_t count, + unsigned char *c), void *ctx, struct openpgp_packet_list **packets);