diff options
author | Werner Koch <[email protected]> | 2007-06-21 18:44:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-06-21 18:44:48 +0000 |
commit | 0b66f30d66fadbfd1a949edbe765043b06c5931b (patch) | |
tree | e2e33a51151de2deac0d4e43cd7bc38429fe2965 /common/membuf.h | |
parent | [w32] gpg-agent is now started automagically by gpgsm. (diff) | |
download | gnupg-0b66f30d66fadbfd1a949edbe765043b06c5931b.tar.gz gnupg-0b66f30d66fadbfd1a949edbe765043b06c5931b.zip |
Implemented the --gen-key command as we can't use the gpgsm-gencert.sh under Windows.
Diffstat (limited to 'common/membuf.h')
-rw-r--r-- | common/membuf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/membuf.h b/common/membuf.h index f9c08a400..906ae156c 100644 --- a/common/membuf.h +++ b/common/membuf.h @@ -34,10 +34,13 @@ struct private_membuf_s typedef struct private_membuf_s membuf_t; +/* Return the current length of the membuf. */ +#define get_membuf_len(a) ((a)->len) void init_membuf (membuf_t *mb, int initiallen); void init_membuf_secure (membuf_t *mb, int initiallen); 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); |