summaryrefslogtreecommitdiffstats
path: root/g10/keydb.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-08-06 14:59:37 +0200
committerWerner Koch <wk@gnupg.org>2019-08-06 15:01:21 +0200
commit1f980d23af8b818ed8246ec6bf13b9c61b963ec0 (patch)
treecc6d66cf92be79457c63a7fb5734a4802e2457da /g10/keydb.c
parenttools: New option --keyboxd for gpg-connect-agent. (diff)
downloadgnupg2-1f980d23af8b818ed8246ec6bf13b9c61b963ec0.tar.xz
gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'g10/keydb.c')
-rw-r--r--g10/keydb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keydb.c b/g10/keydb.c
index a7691bbe2..d3a2709bc 100644
--- a/g10/keydb.c
+++ b/g10/keydb.c
@@ -448,7 +448,7 @@ maybe_create_keyring_or_box (char *filename, int is_box, int force_create)
rc = gpg_error_from_syserror ();
else
{
- rc = _keybox_write_header_blob (fp, 1);
+ rc = _keybox_write_header_blob (fp, NULL, 1);
fclose (fp);
}
if (rc)