• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/

Lines Matching defs:noncefile

134 _dbus_accept_with_noncefile (int listen_fd, const DBusNonceFile *noncefile)
139 _dbus_assert (noncefile != NULL);
143 if (_dbus_read_nonce (_dbus_noncefile_get_path(noncefile), &nonce, NULL) != TRUE)
189 * @param noncefile the noncefile location to read the nonce from
195 _dbus_send_nonce (int fd, const DBusString *noncefile, DBusError *error)
203 if (_dbus_string_get_length (noncefile) == 0)
212 read_result = _dbus_read_nonce (noncefile, &nonce, error);
238 do_noncefile_create (DBusNonceFile *noncefile,
246 _dbus_assert (noncefile);
260 if (!_dbus_string_init (&noncefile->dir)
261 || !_dbus_string_append (&noncefile->dir, _dbus_get_tmpdir()))
268 if (!_dbus_string_append (&noncefile->dir, "/dbus_nonce-")
269 || !_dbus_string_append (&noncefile->dir, _dbus_string_get_const_data (&randomStr)) )
274 if (!_dbus_string_init (&noncefile->path)
275 || !_dbus_string_copy (&noncefile->dir, 0, &noncefile->path, 0)
276 || !_dbus_string_append (&noncefile->path, "/nonce"))
281 if (!_dbus_create_directory (&noncefile->dir, error))
291 if (!_dbus_string_init (&noncefile->path)
292 || !_dbus_string_copy (&noncefile->dir, 0, &noncefile->path, 0)
293 || !_dbus_string_append (&noncefile->path, "/dbus_nonce-")
294 || !_dbus_string_append (&noncefile->path, _dbus_string_get_const_data (&randomStr)))
302 if (!generate_and_write_nonce (&noncefile->path, error))
306 _dbus_delete_directory (&noncefile->dir, NULL); //we ignore possible errors deleting the dir and return the write error instead
316 _dbus_delete_directory (&noncefile->dir, NULL);
317 _dbus_string_free (&noncefile->dir);
318 _dbus_string_free (&noncefile->path);
327 * @param noncefile returns the nonce file location
332 _dbus_noncefile_create (DBusNonceFile *noncefile,
335 return do_noncefile_create (noncefile, error, /*use_subdir=*/FALSE);
339 * deletes the noncefile and frees the DBusNonceFile object.
341 * @param noncefile the nonce file to delete. Contents will be freed.
346 _dbus_noncefile_delete (DBusNonceFile *noncefile,
351 _dbus_delete_file (&noncefile->path, error);
352 _dbus_string_free (&noncefile->dir);
353 _dbus_string_free (&noncefile->path);
360 * Initializes the noncefile object.
362 * @param noncefile returns the nonce file location
367 _dbus_noncefile_create (DBusNonceFile *noncefile,
370 return do_noncefile_create (noncefile, error, /*use_subdir=*/TRUE);
374 * deletes the noncefile and frees the DBusNonceFile object.
376 * @param noncefile the nonce file to delete. Contents will be freed.
381 _dbus_noncefile_delete (DBusNonceFile *noncefile,
386 _dbus_delete_directory (&noncefile->dir, error);
387 _dbus_string_free (&noncefile->dir);
388 _dbus_string_free (&noncefile->path);
397 * @param noncefile an initialized noncefile object
401 _dbus_noncefile_get_path (const DBusNonceFile *noncefile)
403 _dbus_assert (noncefile);
404 return &noncefile->path;
409 * the data in the given noncefile.
412 * @param noncefile the nonce file to check the received data against
419 const DBusNonceFile *noncefile,
422 return do_check_nonce (fd, _dbus_noncefile_get_path (noncefile), error);