From be2aa37dbf0da2c953143c328a1aed4bf210cc87 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sat, 21 May 2005 14:04:32 +0000 Subject: * cardglue.c (send_status_info): Make CTRL optional. (agent_scd_writekey, inq_writekey_parms): New. (agent_openpgp_storekey): Removed. * cardglue.h: Add a few more error code mappings. * keygen.c (copy_mpi): Removed. (save_unprotected_key_to_card): Changed to use agent_scd_writekey. * app-common.h, app-openpgp.c, tlv.c, tlv.h: Updated from newer version in gnupg 1.9 CVS. --- include/util.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h index 97943afa9..b32d771af 100644 --- a/include/util.h +++ b/include/util.h @@ -222,6 +222,24 @@ int strncasecmp (const char *, const char *b, size_t n); #define memmove(d, s, n) bcopy((s), (d), (n)) #endif +/*-- membuf.c --*/ +/* The definition of the structure is private, we only need it here, + so it can be allocated on the stack. */ +struct private_membuf_s { + size_t len; + size_t size; + char *buf; + int out_of_core; +}; + +typedef struct private_membuf_s membuf_t; + +void init_membuf (membuf_t *mb, int initiallen); +void put_membuf (membuf_t *mb, const void *buf, size_t len); +void *get_membuf (membuf_t *mb, size_t *len); + + + #if defined (_WIN32) /*-- w32reg.c --*/ char *read_w32_registry_string( const char *root, @@ -232,7 +250,8 @@ int write_w32_registry_string(const char *root, const char *dir, /*-- strgutil.c --*/ int vasprintf (char **result, const char *format, va_list args); int asprintf (char **buf, const char *fmt, ...); -#endif +#endif /*_WIN32*/ + /**** other missing stuff ****/ #ifndef HAVE_ATEXIT /* For SunOS */ -- cgit v1.2.3