mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: New put_membuf_cb to replace static membuf_data_cb.
* common/membuf.c (put_membuf_cb): New. * agent/call-scd.c (membuf_data_cb): Remove. Change callers to use put_membuf_cb. * common/get-passphrase.c (membuf_data_cb): Ditto. * g10/call-agent.c (membuf_data_cb): Ditto. * sm/call-agent.c (membuf_data_cb): Ditto. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
8fd406c317
commit
833ba5faa1
6 changed files with 41 additions and 73 deletions
|
@ -53,6 +53,7 @@ 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);
|
||||
gpg_error_t put_membuf_cb (void *opaque, const void *buf, size_t len);
|
||||
void put_membuf_str (membuf_t *mb, const char *string);
|
||||
void put_membuf_printf (membuf_t *mb, const char *format,
|
||||
...) GPGRT_ATTR_PRINTF(2,3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue