• Home
  • Raw
  • Download

Lines Matching refs:noncefile

134 _dbus_accept_with_noncefile (int listen_fd, const DBusNonceFile *noncefile)  in _dbus_accept_with_noncefile()  argument
139 _dbus_assert (noncefile != NULL); in _dbus_accept_with_noncefile()
143 if (_dbus_read_nonce (_dbus_noncefile_get_path(noncefile), &nonce, NULL) != TRUE) in _dbus_accept_with_noncefile()
195 _dbus_send_nonce (int fd, const DBusString *noncefile, DBusError *error) in _dbus_send_nonce() argument
203 if (_dbus_string_get_length (noncefile) == 0) in _dbus_send_nonce()
212 read_result = _dbus_read_nonce (noncefile, &nonce, error); in _dbus_send_nonce()
238 do_noncefile_create (DBusNonceFile *noncefile, in do_noncefile_create() argument
246 _dbus_assert (noncefile); in do_noncefile_create()
260 if (!_dbus_string_init (&noncefile->dir) in do_noncefile_create()
261 || !_dbus_string_append (&noncefile->dir, _dbus_get_tmpdir())) in do_noncefile_create()
268 if (!_dbus_string_append (&noncefile->dir, "/dbus_nonce-") in do_noncefile_create()
269 || !_dbus_string_append (&noncefile->dir, _dbus_string_get_const_data (&randomStr)) ) in do_noncefile_create()
274 if (!_dbus_string_init (&noncefile->path) in do_noncefile_create()
275 || !_dbus_string_copy (&noncefile->dir, 0, &noncefile->path, 0) in do_noncefile_create()
276 || !_dbus_string_append (&noncefile->path, "/nonce")) in do_noncefile_create()
281 if (!_dbus_create_directory (&noncefile->dir, error)) in do_noncefile_create()
291 if (!_dbus_string_init (&noncefile->path) in do_noncefile_create()
292 || !_dbus_string_copy (&noncefile->dir, 0, &noncefile->path, 0) in do_noncefile_create()
293 || !_dbus_string_append (&noncefile->path, "/dbus_nonce-") in do_noncefile_create()
294 || !_dbus_string_append (&noncefile->path, _dbus_string_get_const_data (&randomStr))) in do_noncefile_create()
302 if (!generate_and_write_nonce (&noncefile->path, error)) in do_noncefile_create()
306 …_dbus_delete_directory (&noncefile->dir, NULL); //we ignore possible errors deleting the dir and r… in do_noncefile_create()
316 _dbus_delete_directory (&noncefile->dir, NULL); in do_noncefile_create()
317 _dbus_string_free (&noncefile->dir); in do_noncefile_create()
318 _dbus_string_free (&noncefile->path); in do_noncefile_create()
332 _dbus_noncefile_create (DBusNonceFile *noncefile, in _dbus_noncefile_create() argument
335 return do_noncefile_create (noncefile, error, /*use_subdir=*/FALSE); in _dbus_noncefile_create()
346 _dbus_noncefile_delete (DBusNonceFile *noncefile, in _dbus_noncefile_delete() argument
351 _dbus_delete_file (&noncefile->path, error); in _dbus_noncefile_delete()
352 _dbus_string_free (&noncefile->dir); in _dbus_noncefile_delete()
353 _dbus_string_free (&noncefile->path); in _dbus_noncefile_delete()
367 _dbus_noncefile_create (DBusNonceFile *noncefile, in _dbus_noncefile_create() argument
370 return do_noncefile_create (noncefile, error, /*use_subdir=*/TRUE); in _dbus_noncefile_create()
381 _dbus_noncefile_delete (DBusNonceFile *noncefile, in _dbus_noncefile_delete() argument
386 _dbus_delete_directory (&noncefile->dir, error); in _dbus_noncefile_delete()
387 _dbus_string_free (&noncefile->dir); in _dbus_noncefile_delete()
388 _dbus_string_free (&noncefile->path); in _dbus_noncefile_delete()
401 _dbus_noncefile_get_path (const DBusNonceFile *noncefile) in _dbus_noncefile_get_path() argument
403 _dbus_assert (noncefile); in _dbus_noncefile_get_path()
404 return &noncefile->path; in _dbus_noncefile_get_path()
419 const DBusNonceFile *noncefile, in _dbus_noncefile_check_nonce() argument
422 return do_check_nonce (fd, _dbus_noncefile_get_path (noncefile), error); in _dbus_noncefile_check_nonce()