kbx: New function keybox_file_rename to replace rename.
authorWerner Koch <wk@gnupg.org>
Thu, 14 Jan 2016 15:50:15 +0000 (16:50 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 14 Jan 2016 15:50:24 +0000 (16:50 +0100)
commit8241ed59d05e06252647b26477ed5c2f84895a26
tree915ecd413d70c3896bb2d8dc1979aa6825b664c8
parentf5cceef115f0307664956d01c48b1b397fdad4b3
kbx: New function keybox_file_rename to replace rename.

* kbx/keybox-util.c: Include windows.h.
(keybox_file_rename): New.
* kbx/keybox-update.c (rename_tmp_file): Replace remove+rename by
keybox_file_rename.
* g10/keyring.c (rename_tmp_file): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keyring.c
kbx/keybox-update.c
kbx/keybox-util.c
kbx/keybox.h