aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-01-14 15:50:15 +0000
committerWerner Koch <[email protected]>2016-01-14 15:50:24 +0000
commit8241ed59d05e06252647b26477ed5c2f84895a26 (patch)
tree915ecd413d70c3896bb2d8dc1979aa6825b664c8 /kbx/keybox.h
parentkbx: Add function keybox_tmp_names to avoid code duplication. (diff)
downloadgnupg-8241ed59d05e06252647b26477ed5c2f84895a26.tar.gz
gnupg-8241ed59d05e06252647b26477ed5c2f84895a26.zip
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 <[email protected]>
Diffstat (limited to 'kbx/keybox.h')
-rw-r--r--kbx/keybox.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kbx/keybox.h b/kbx/keybox.h
index 4d556c571..bfc358620 100644
--- a/kbx/keybox.h
+++ b/kbx/keybox.h
@@ -134,6 +134,7 @@ void keybox_set_malloc_hooks ( void *(*new_alloc_func)(size_t n),
gpg_error_t keybox_tmp_names (const char *filename, int for_keyring,
char **r_bakname, char **r_tmpname);
+gpg_error_t keybox_file_rename (const char *oldname, const char *newname);
#ifdef __cplusplus