aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-08-06 12:59:37 +0000
committerWerner Koch <[email protected]>2019-08-06 13:01:21 +0000
commit1f980d23af8b818ed8246ec6bf13b9c61b963ec0 (patch)
treecc6d66cf92be79457c63a7fb5734a4802e2457da /kbx/keybox.h
parenttools: New option --keyboxd for gpg-connect-agent. (diff)
downloadgnupg-1f980d23af8b818ed8246ec6bf13b9c61b963ec0.tar.gz
gnupg-1f980d23af8b818ed8246ec6bf13b9c61b963ec0.zip
kbx: Allow writing using a estream.
* kbx/keybox-file.c (_keybox_write_header_blob): New optional arg stream. Change callers. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'kbx/keybox.h')
-rw-r--r--kbx/keybox.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kbx/keybox.h b/kbx/keybox.h
index 4d941571e..d614c32d1 100644
--- a/kbx/keybox.h
+++ b/kbx/keybox.h
@@ -81,7 +81,8 @@ gpg_error_t keybox_lock (KEYBOX_HANDLE hd, int yes, long timeout);
/*-- keybox-file.c --*/
/* Fixme: This function does not belong here: Provide a better
interface to create a new keybox file. */
-int _keybox_write_header_blob (FILE *fp, int openpgp_flag);
+gpg_error_t _keybox_write_header_blob (FILE *fp, estream_t stream,
+ int openpgp_flag);
/*-- keybox-search.c --*/
gpg_error_t keybox_get_keyblock (KEYBOX_HANDLE hd, iobuf_t *r_iobuf,