diff options
author | Werner Koch <[email protected]> | 2005-05-21 14:04:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-05-21 14:04:32 +0000 |
commit | be2aa37dbf0da2c953143c328a1aed4bf210cc87 (patch) | |
tree | c4b207b7cd1bfca613d0e52a4ddd6c9b41d3c8e0 /include/util.h | |
parent | (ccid_transceive): Arghhh. The seqno is another (diff) | |
download | gnupg-be2aa37dbf0da2c953143c328a1aed4bf210cc87.tar.gz gnupg-be2aa37dbf0da2c953143c328a1aed4bf210cc87.zip |
* 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.
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 21 |
1 files changed, 20 insertions, 1 deletions
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 */ |