int curoctet;
int count;
long crc24;
- int (*putchar_func)(void *ctx, size_t count, unsigned char *c);
+ int (*putchar_func)(void *ctx, size_t count, void *c);
void *ctx;
};
}
-static int armor_putchar(void *ctx, size_t count, unsigned char *c)
+static int armor_putchar(void *ctx, size_t count, void *c)
{
int i;
log_assert(c != NULL);
for (i = 0; i < count; i++) {
- armor_putchar_int(ctx, c[i]);
+ armor_putchar_int(ctx, ((char *) c)[i]);
}
return 0;
int curoctet;
int count;
long crc24;
- int (*getchar_func)(void *ctx, size_t count, unsigned char *c);
+ int (*getchar_func)(void *ctx, size_t count, void *c);
void *ctx;
};
return (tmpc == 64);
}
-static int dearmor_getchar_c(void *ctx, size_t count, unsigned char *c)
+static int dearmor_getchar_c(void *ctx, size_t count, void *c)
{
int i, rc = 0;
for (i = 0; i < count && rc == 0; i++) {
- rc = dearmor_getchar(ctx, &c[i]);
+ rc = dearmor_getchar(ctx, &((unsigned char *) c)[i]);
}
return rc;
* using putchar_func.
*/
int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count,
- unsigned char *c),
+ void *c),
void *ctx,
struct openpgp_packet_list *packets)
{
* packets.
*/
int dearmor_openpgp_stream(int (*getchar_func)(void *ctx, size_t count,
- unsigned char *c),
+ void *c),
void *ctx,
struct openpgp_packet_list **packets)
{