*/
int debug_packet(struct openpgp_packet *packet)
{
- printf("\tNew format: %d, Tag: %u, Length: %d\n",
+ printf("\tNew format: %d, Tag: %u, Length: %zd\n",
packet->newformat,
packet->tag,
packet->length);
* ready for parsing as a public key or whatever.
*/
int read_openpgp_stream(int (*getchar_func)(void *ctx, size_t count,
- unsigned char *c),
+ void *c),
void *ctx,
struct openpgp_packet_list **packets,
int maxnum)
* packet stream from a linked list of packets.
*/
int write_openpgp_stream(int (*putchar_func)(void *ctx, size_t count,
- unsigned char *c),
+ void *c),
void *ctx,
struct openpgp_packet_list *packets)
{