mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
0611f548bc
commit
1f980d23af
5 changed files with 19 additions and 10 deletions
|
@ -224,7 +224,7 @@ maybe_create_keybox (char *filename, int force, int *r_created)
|
|||
/* Make sure that at least one record is in a new keybox file, so
|
||||
that the detection magic for OpenPGP keyboxes works the next time
|
||||
it is used. */
|
||||
rc = _keybox_write_header_blob (fp, 0);
|
||||
rc = _keybox_write_header_blob (fp, NULL, 0);
|
||||
if (rc)
|
||||
{
|
||||
fclose (fp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue