diff options
author | Werner Koch <[email protected]> | 2016-01-08 05:33:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-01-08 05:33:27 +0000 |
commit | 833ba5faa1340aff80a205acbb701d4ae1d594d0 (patch) | |
tree | aca806cf5e2c3a262f3d295f313243c7f1c10f0d /common/membuf.h | |
parent | gpg: Return an error code from keygrip_from_pk. (diff) | |
download | gnupg-833ba5faa1340aff80a205acbb701d4ae1d594d0.tar.gz gnupg-833ba5faa1340aff80a205acbb701d4ae1d594d0.zip |
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 <[email protected]>
Diffstat (limited to 'common/membuf.h')
-rw-r--r-- | common/membuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/membuf.h b/common/membuf.h index eb7d5650a..a1610b6c8 100644 --- a/common/membuf.h +++ b/common/membuf.h @@ -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); |