Fixes to the nonce code
authorFrank Osterfeld <frank@kdab.net>
Wed, 21 Oct 2009 17:21:37 +0000 (20:21 +0300)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 1 Dec 2009 07:43:41 +0000 (08:43 +0100)
commitfbd21dd0977b9edd6114d56190fe0bb5ffa3a82f
tree1581632f41d3e9196839757393a99a2068959594
parent5012769a3f9142c18303c2d2fda61b4406548403
Fixes to the nonce code

On Unix, we create a 700 subdir in /tmp only readable by the user, on
Windows we use the user-specific tmpdir and create the noncefile
directly.

Add NonceFile to abstract this behaviour and to delete the noncefile
and possibly tmpdir on shutdown.

Cherry-picked from commit 885f16b90c4f769ae29f432d0ed2a63bb2e4dab8 in
the dbus4win repository. Fixed to apply and correct whitespace issues
by tml@iki.fi.
dbus/dbus-nonce.c
dbus/dbus-nonce.h
dbus/dbus-server-socket.c
dbus/dbus-server-socket.h