diff options
author | Werner Koch <wk@gnupg.org> | 2019-08-06 14:59:37 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-08-06 15:01:21 +0200 |
commit | 1f980d23af8b818ed8246ec6bf13b9c61b963ec0 (patch) | |
tree | cc6d66cf92be79457c63a7fb5734a4802e2457da /kbx/keybox-update.c | |
parent | tools: New option --keyboxd for gpg-connect-agent. (diff) | |
download | gnupg2-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 'kbx/keybox-update.c')
-rw-r--r-- | kbx/keybox-update.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kbx/keybox-update.c b/kbx/keybox-update.c index e09fefc41..d22da1bf8 100644 --- a/kbx/keybox-update.c +++ b/kbx/keybox-update.c @@ -182,7 +182,7 @@ blob_filecopy (int mode, const char *fname, KEYBOXBLOB blob, if (!newfp ) return gpg_error_from_syserror (); - rc = _keybox_write_header_blob (newfp, for_openpgp); + rc = _keybox_write_header_blob (newfp, NULL, for_openpgp); if (rc) { fclose (newfp); @@ -730,7 +730,7 @@ keybox_compress (KEYBOX_HANDLE hd) } /* The header blob is missing. Insert it. */ - rc = _keybox_write_header_blob (newfp, hd->for_openpgp); + rc = _keybox_write_header_blob (newfp, NULL, hd->for_openpgp); if (rc) break; any_changes = 1; |