diff options
author | Frank Osterfeld <frank@kdab.net> | 2009-10-21 20:21:37 +0300 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2009-12-01 08:43:41 +0100 |
commit | fbd21dd0977b9edd6114d56190fe0bb5ffa3a82f (patch) | |
tree | 1581632f41d3e9196839757393a99a2068959594 /dbus/dbus-server-socket.h | |
parent | 5012769a3f9142c18303c2d2fda61b4406548403 (diff) | |
download | dbus-fbd21dd0977b9edd6114d56190fe0bb5ffa3a82f.tar.gz |
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.
Diffstat (limited to 'dbus/dbus-server-socket.h')
-rw-r--r-- | dbus/dbus-server-socket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-server-socket.h b/dbus/dbus-server-socket.h index 891f56fe..0a7c7891 100644 --- a/dbus/dbus-server-socket.h +++ b/dbus/dbus-server-socket.h @@ -25,13 +25,14 @@ #include <dbus/dbus-internals.h> #include <dbus/dbus-server-protected.h> +#include <dbus/dbus-nonce.h> DBUS_BEGIN_DECLS DBusServer* _dbus_server_new_for_socket (int *fds, int n_fds, const DBusString *address, - const DBusString *noncefile); + DBusNonceFile *noncefile); DBusServer* _dbus_server_new_for_tcp_socket (const char *host, const char *bind, const char *port, |