diff options
author | Werner Koch <[email protected]> | 2011-01-18 11:50:02 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-01-18 11:50:02 +0000 |
commit | c2c5d30db8c0411afaaaeb1653096498894a38a8 (patch) | |
tree | 88ff681139f7d72967cf3d41793264e6b86869f5 /common/membuf.h | |
parent | Fix es_fopenmem and es_mopen bug. (diff) | |
download | gnupg-c2c5d30db8c0411afaaaeb1653096498894a38a8.tar.gz gnupg-c2c5d30db8c0411afaaaeb1653096498894a38a8.zip |
estream support for iobuf and new memuf functions.
Diffstat (limited to 'common/membuf.h')
-rw-r--r-- | common/membuf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/membuf.h b/common/membuf.h index 75b506d5d..9f1a7a33b 100644 --- a/common/membuf.h +++ b/common/membuf.h @@ -39,9 +39,10 @@ typedef struct private_membuf_s membuf_t; void init_membuf (membuf_t *mb, int initiallen); void init_membuf_secure (membuf_t *mb, int initiallen); +void clear_membuf (membuf_t *mb, size_t amount); void put_membuf (membuf_t *mb, const void *buf, size_t len); void put_membuf_str (membuf_t *mb, const char *string); void *get_membuf (membuf_t *mb, size_t *len); - +const void *peek_membuf (membuf_t *mb, size_t *len); #endif /*GNUPG_COMMON_MEMBUF_H*/ |