projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cscvs to tla changeset 43
[onak.git]
/
parsekey.h
diff --git
a/parsekey.h
b/parsekey.h
index 113f14ae0c55fd5fb778860a62068c34e19889f7..8b6f1cdc8b6ab930bb5dcfcb4e2861cb67334c0b 100644
(file)
--- a/
parsekey.h
+++ b/
parsekey.h
@@
-30,6
+30,8
@@
int add_key(struct openpgp_publickey *key);
*
* This function takes an list of OpenPGP packets and attempts to parse it
* into a list of public keys with signatures and subkeys.
*
* This function takes an list of OpenPGP packets and attempts to parse it
* into a list of public keys with signatures and subkeys.
+ *
+ * Returns a count of how many keys we parsed.
*/
int parse_keys(struct openpgp_packet_list *packets,
struct openpgp_publickey **keys);
*/
int parse_keys(struct openpgp_packet_list *packets,
struct openpgp_publickey **keys);
@@
-68,7
+70,8
@@
int read_openpgp_stream(int (*getchar_func)(void *ctx, size_t count,
* This function uses putchar_func to write characters to an OpenPGP
* packet stream from a linked list of packets.
*/
* This function uses putchar_func to write characters to an OpenPGP
* packet stream from a linked list of packets.
*/
-int write_openpgp_stream(int (*putchar_func)(void *ctx, unsigned char c),
+int write_openpgp_stream(int (*putchar_func)(void *ctx, size_t count,
+ unsigned char *c),
void *ctx,
struct openpgp_packet_list *packets);
void *ctx,
struct openpgp_packet_list *packets);