1. 19 Mar, 2010 1 commit
  2. 14 Jul, 2009 1 commit
  3. 10 Jul, 2009 1 commit
  4. 06 May, 2009 1 commit
  5. 21 Apr, 2009 1 commit
  6. 11 Oct, 2007 1 commit
  7. 14 Jul, 2007 1 commit
  8. 14 Jun, 2007 3 commits
  9. 09 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-09 Havoc Pennington <hp@redhat.com> · 23832672
      Havoc Pennington authored
      	* bus/dispatch.c (check_get_connection_unix_process_id): adapt
      	since sysdeps-unix.h stuff isn't included anymore
      
      	* bus/bus.c (bus_context_new): use more abstract functions to
      	change user, so they can be no-ops on Windows
      
      	* dbus/dbus-credentials.c, dbus/dbus-credentials.h,
      	dbus/dbus-credentials-util.c: new files containing a fully opaque
      	DBusCredentials data type to replace the old not opaque one.
      
      	* configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on
      	windows
      
      	* dbus/dbus-userdb.h: prohibit on Windows, next step is to clean
      	up the uses of it in bus/*.c and factor out the parts of
      	cookie auth that depend on it
      23832672
  10. 11 Sep, 2006 1 commit
  11. 06 Sep, 2006 1 commit
  12. 30 Nov, 2005 1 commit
    • John Palmieri's avatar
      * dbus/dbus-auth.c, dbus/dbus-connection.c, dbus/dbus-keyring.c, · 0ca96ec5
      John Palmieri authored
        dbus/dbus-server-debug-pipe.c, glib/dbus-binding-tool-glib.c
        glib/dbus-glib-tool.c, glib/dbus-gparser.c, glib/dbus-gproxy.c
        test/test-segfault.c, test/test-utils.c,
        test/glib/test-dbus-glib.c, tools/dbus-cleanup-sockets.c
        tools/dbus-launch.c, tools/dbus-tree-view.c, tools/dbus-viewer.c:
        Various cleanup of dead code and compiler warnings (patch from
        Kjartan Maraas <kmaraas at gnome.org>)
      0ca96ec5
  13. 11 Sep, 2005 1 commit
    • Mark McLoughlin's avatar
      2005-09-11 Mark McLoughlin <mark@skynet.ie> · 5e8110d7
      Mark McLoughlin authored
      	* test/data/auth/fallback.auth-script: we don't
      	retry the EXTERNAL method when we know its going
      	to fail anymore.
      
      2005-09-11  Mark McLoughlin  <mark@skynet.ie>
      
      	* dbus/dbus-connection-internal.h: rename
      	(add|remove|toggle)_(watch|timeout) to unlocked()
      
      	* dbus/dbus-connection.c: ditto.
      
      	* dbus/dbus-timeout.c, dbus/dbus-transport-unix.c:
      	Update some callers for the renaming.
      
      2005-09-10  Mark McLoughlin  <mark@skynet.ie>
      
      	* dbus/dbus-auth.c: (record_mechanisms): don't
      	retry the first auth mechanism because we know
      	we're just going to get rejected again.
      
      	* dbus/dbus-keyring.c: (_dbus_keyring_reload):
      	Fix thinko ... and what a nasty little bugger to
      	track down you were ...
      
      	* dbus/dbus-connection.c:
      	(_dbus_connection_add_watch),
      	(_dbus_connection_remove_watch): add note about
      	these needing the connection to be locked.
      	(_dbus_connection_get_dispatch_status_unlocked):
      	set status to DATA_REMAINS when we queue the
      	disconnected message.
      
      	* bus/dispatch.c:
      	(bus_dispatch): fix warning.
      	(check_existent_service_no_auto_start):
      	Expect ChildSignaled error too.
      	(check_existent_hello_from_self): fix another
      	couple of warnings.
      5e8110d7
  14. 06 Sep, 2005 1 commit
    • John Palmieri's avatar
      * Released 0.50 · bc564a69
      John Palmieri authored
      * Patch from Steve Grubb:
      - bus/activation.c (bus_activation_service_reload_test): clean up
      some indentation
      - dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional
      - dbus/dbus-message-factory.c (generate_special): fix a couple of
      buffer overflows in the test suite.  This is non critical because
      it can not be exploited and this code is only run when doing a
      make check.
      
      * Patch from Yaakov Selkowitz: Build fixes for Cygwin
      - configure.in: Don't check and link against kdecore, only qt headers
      - dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS
      - gcj/org/freedesktop/dbus/Makefile.am:
      add libdbus_gcj_1_la_LDFLAGS = -no-undefined
      - glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS
      and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD
      - qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS
      - tools/Makefile.am: Add platform extentions to binaries
      (i.e. .exe on windows)
      
      * configure.in:
      - Make it so if no suitable version of python is found we only
      disable building python instead of exiting the configure script
      - Require version 2.4 of glib for glib bindings
      - Up version to 0.50
      
      * python/__init__.py: Sync version with libdbus to (0,50,0)
      bc564a69
  15. 15 Jun, 2005 1 commit
    • John Palmieri's avatar
      * dbus/dbus-message.c: · a93f9c04
      John Palmieri authored
              (dbus_message_has_path): New method
              (dbus_message_has_interface): New method
              (dbus_message_has_member): New method
      
              * dbus/dbus/dbus-sysdeps.c (_dbus_check_dir_is_private_to_user):
              New method
      
              * dbus/dbus-keyring.c (_dbus_keyring_reload): Check to see that
              the keyring directory is private to the user
      
              * doc/TODO:
               - The convenience functions in dbus-bus.h should perhaps have
               the signatures that they would have if they were autogenerated
               stubs. e.g. the acquire service function. We should also evaluate
               which of these functions to include, in light of the fact that
               GLib/Qt native stubs will probably also exist.: Punted
      
               - add dbus_message_has_path(), maybe has_member/interface:
               fixed in this patch
      
               - in dbus-keyring.c, enforce that the keyring dir is not
               world readable/writable: Fixed in this patch
      a93f9c04
  16. 28 Jan, 2005 1 commit
    • Havoc Pennington's avatar
      2005-01-27 Havoc Pennington <hp@redhat.com> · 3ed9db54
      Havoc Pennington authored
      	* dbus/dbus-arch-deps.h.in: add 16/32-bit types
      
      	* configure.in: find the right type for 16 and 32 bit ints as well
      	as 64
      
      	* dbus/dbus-protocol.h (DBUS_TYPE_INT16, DBUS_TYPE_UINT16): add
      	the 16-bit types so people don't have to stuff them in 32-bit or
      	byte arrays.
      3ed9db54
  17. 26 Nov, 2004 1 commit
    • Havoc Pennington's avatar
      2004-11-25 Havoc Pennington <hp@redhat.com> · dbdea921
      Havoc Pennington authored
              The primary change here is to always write() once before adding
      	the write watch, which gives us about a 10% performance increase.
      
      	* dbus/dbus-transport-unix.c: a number of modifications to cope
      	with removing messages_pending
      	(check_write_watch): properly handle
      	DBUS_AUTH_STATE_WAITING_FOR_MEMORY; adapt to removal of
      	messages_pending stuff
      	(check_read_watch): properly handle WAITING_FOR_MEMORY and
      	AUTHENTICATED cases
      	(unix_handle_watch): after writing, see if the write watch can be
      	removed
      	(unix_do_iteration): assert that write_watch/read_watch are
      	non-NULL rather than testing that they aren't, since they
      	aren't allowed to be NULL. check_write_watch() at the end so
      	we add the watch if we did not finish writing (e.g. got EAGAIN)
      
      	* dbus/dbus-transport-protected.h: remove messages_pending call,
      	since it resulted in too much inefficient watch adding/removing;
      	instead we now require that the transport user does an iteration
      	after queueing outgoing messages, and after trying the first
      	write() we add a write watch if we got EAGAIN or exceeded our
      	max bytes to write per iteration setting
      
      	* dbus/dbus-string.c (_dbus_string_validate_signature): add this
      	function
      
      	* dbus/dbus-server-unix.c (unix_finalize): the socket name was
      	freed and then accessed, valgrind flagged this bug, fix it
      
      	* dbus/dbus-message.c: fix several bugs where HEADER_FIELD_LAST was taken
      	as the last valid field plus 1, where really it is equal to the
      	last valid field. Corrects some message corruption issues.
      
      	* dbus/dbus-mainloop.c: verbosity changes
      
      	* dbus/dbus-keyring.c (_dbus_keyring_new_homedir): handle OOM
      	instead of aborting in one of the test codepaths
      
      	* dbus/dbus-internals.c (_dbus_verbose_real): fix a bug that
      	caused not printing the pid ever again if a verbose was missing
      	the newline at the end
      	(_dbus_header_field_to_string): add HEADER_FIELD_SIGNATURE
      
      	* dbus/dbus-connection.c: verbosity changes;
      	(dbus_connection_has_messages_to_send): new function
      	(_dbus_connection_message_sent): no longer call transport->messages_pending
      	(_dbus_connection_send_preallocated_unlocked): do one iteration to
      	try to write() immediately, so we can avoid the write watch. This
      	is the core purpose of this patchset
      	(_dbus_connection_get_dispatch_status_unlocked): if disconnected,
      	dump the outgoing message queue, so nobody will get confused
      	trying to send them or thinking stuff is pending to be sent
      
      	* bus/test.c: verbosity changes
      
      	* bus/driver.c: verbosity/assertion changes
      
      	* bus/dispatch.c: a bunch of little tweaks to get it working again
      	because this patchset changes when/where you need to block.
      dbdea921
  18. 10 Aug, 2004 2 commits
  19. 20 Jun, 2004 1 commit
    • Havoc Pennington's avatar
      2004-06-20 Havoc Pennington <hp@redhat.com> · 961e6ca4
      Havoc Pennington authored
              * dbus/dbus-glib-error-enum.h: autogenerate the GError enum
      	codes from the dbus error names
      
              * glib/dbus-glib.h: move to subdir dbus/ since it's included
      	as dbus/dbus-glib.h and that breakage is now visible due to
      	including dbus/dbus-glib.h in dbus-glib-lowlevel.h
      
      	* glib/dbus-glib.h: s/gproxy/g_proxy/
      
      	* dbus/dbus-shared.h: new header to hold stuff shared with
      	binding APIs
      
      	* dbus/dbus-protocol.h (DBUS_ERROR_*): move errors here rather
      	than dbus-errors.h
      
      	* glib/dbus-glib.h (dbus_set_g_error): move to
      	dbus-glib-lowlevel.h
      
      	* glib/dbus-glib.h: remove dbus/dbus.h from here; change a bunch
      	of stuff to enable this
      
      	* dbus/dbus-glib-lowlevel.h: put dbus/dbus.h here
      
      	* a bunch of other changes with the same basic "separate glib
      	bindings from dbus.h" theme
      961e6ca4
  20. 17 May, 2004 1 commit
    • Kristian Høgsberg's avatar
      2004-05-17 Kristian Høgsberg <krh@redhat.com> · d86fc407
      Kristian Høgsberg authored
      	Remove base64 encoding, replace with hex encoding. Original patch
      	from trow@ximian.com, added error handling.
      
      	* dbus/dbus-string.c (_dbus_string_base64_encode)
      	(_dbus_string_base64_decode): Remove.
      	(_dbus_string_hex_decode): Add end_return argument so we can
      	distinguish between OOM and invalid hex encoding.
      	(_dbus_string_test): Remove base64 tests and add test case for
      	invalid hex.
      
      	* dbus/dbus-keyring.c, dbus/dbus-auth-script.c, dbus/dbus-auth.c:
      	Replace base64 with hex.
      
      	* test/data/auth/invalid-hex-encoding.auth-script: New test case
      	for invalid hex encoded data in auth protocol.
      d86fc407
  21. 02 Dec, 2003 1 commit
  22. 27 Nov, 2003 1 commit
  23. 07 Sep, 2003 1 commit
  24. 05 May, 2003 1 commit
    • Havoc Pennington's avatar
      2003-05-04 Havoc Pennington <hp@pobox.com> · d1c7eefb
      Havoc Pennington authored
      	* dbus/dbus-message-handler.c (_dbus_message_handler_test): add
      	unit test
      
      	* dbus/dbus-marshal.c (_dbus_demarshal_string_array): fix this
      	function, which assumed length was in # of strings, not bytes
      
      	* dbus/dbus-message.c (_dbus_message_test): add tests for some
      	missing coverage
      
      	* dbus/dbus-connection.c
      	(_dbus_connection_queue_received_message): disable function for
      	now, we are only using it in test mode
      
      	* dbus/dbus-message.c (_dbus_message_loader_queue_messages):
      	remove a mistaken FIXME
      d1c7eefb
  25. 18 Apr, 2003 2 commits
    • Havoc Pennington's avatar
      2003-04-18 Havoc Pennington <hp@pobox.com> · d3fb6f35
      Havoc Pennington authored
      	* dbus/dbus-auth.c (record_mechanisms): memleak fixes
      
      	* dbus/dbus-sysdeps.c (_dbus_string_save_to_file): fix some
      	memleaks
      
      	* dbus/dbus-keyring.c (add_new_key): fix a memleak, and
      	on realloc be sure to update the pointer in the keyring
      
      	* dbus/dbus-string.c (_dbus_string_zero): compensate for align
      	offset to avoid writing to unallocated memory
      
      	* dbus/dbus-auth.c (process_rejected): return FALSE if we fail to
      	try the next mechanism, so we properly handle OOM
      
      	* dbus/dbus-keyring.c (_dbus_keyring_new_homedir): fix double-free
      	on OOM.
      	(_dbus_keyring_new): fix OOM bug
      	(_dbus_keyring_new_homedir): always set error; impose a maximum
      	number of keys we'll load from the file, mostly to speed up the
      	test suite and make its OOM checks more useful, but also for
      	general sanity.
      
      	* dbus/dbus-auth.c (process_error_server): reject authentication
      	if we get an error from the client
      	(process_cancel): on cancel, send REJECTED, per the spec
      	(process_error_client): send CANCEL if we get an error from the
      	server.
      d3fb6f35
    • Havoc Pennington's avatar
      2003-04-18 Havoc Pennington <hp@pobox.com> · e0b284c7
      Havoc Pennington authored
      	* dbus/dbus-mainloop.c (_dbus_loop_iterate): fix UMR in verbose
      	debug spew
      
      	* dbus/dbus-auth.c (handle_client_data_cookie_sha1_mech): fix OOM
      	handling problem
      
      	* dbus/dbus-keyring.c (_dbus_keyring_new_homedir): only whine
      	about DBUS_TEST_HOMEDIR once
      
      	* bus/Makefile.am (TESTS_ENVIRONMENT): put DBUS_TEST_HOMEDIR in
      	the environment
      
      	* bus/dispatch.c (bus_dispatch_sha1_test): actually load sha1
      	config file so we test the right thing
      
      	Throughout: assorted docs improvements
      e0b284c7
  26. 17 Apr, 2003 1 commit
  27. 02 Apr, 2003 1 commit
  28. 01 Apr, 2003 1 commit
  29. 31 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-31 Havoc Pennington <hp@redhat.com> · fa05de92
      Havoc Pennington authored
              Fix some annoying DBusString API and fix all affected code.
      
      	* dbus/dbus-string.c (_dbus_string_init): get rid of annoying
      	max_length argument
      	(_dbus_string_get_data): change to return string instead of using
      	an out param
      	(_dbus_string_get_const_data): ditto
      	(_dbus_string_get_data_len): ditto
      	(_dbus_string_get_const_data_len): ditto
      fa05de92
  30. 25 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-24 Havoc Pennington <hp@redhat.com> · ce4fd314
      Havoc Pennington authored
      	* dbus/dbus-sysdeps.c (_dbus_set_fd_nonblocking): move to this
      	file
      
      	* dbus/dbus-errors.c (dbus_set_error, dbus_set_error_const): allow
      	NULL argument for "message" if the error is a well-known one,
      	fill in a generic message in this case.
      
      	* dbus/dbus-errors.h (DBusResultCode): Kill DBusResultCode in
      	favor of DBusError
      
      	* bus/test.c (bus_test_flush_bus): add
      
      	* bus/policy.c (bus_policy_test): test code stub
      ce4fd314
  31. 13 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-12 Havoc Pennington <hp@redhat.com> · 29560adc
      Havoc Pennington authored
              Mega-patch that gets the message bus daemon initially handling
      	out-of-memory. Work still needed. Also lots of random
      	moving stuff to DBusError instead of ResultCode.
      
      	* dbus/dbus-list.c (_dbus_list_length_is_one): new function
      
      	* dbus/dbus-connection.c
      	(dbus_connection_send_with_reply_and_block): use DBusError
      
      	* dbus/dbus-bus.c: adapt to API changes, make it use DBusError not
      	DBusResultCode
      
      	* dbus/dbus-connection.c (dbus_connection_send): drop the result
      	code here, as the only failure possible is OOM.
      
      	* bus/connection.c (bus_connection_disconnect):
      	rename bus_connection_disconnected as it's a notification only
      
      	* bus/driver.c (bus_driver_handle_acquire_service): don't free
      	"name" on get_args failure, should be done by get_args;
      	don't disconnect client for bad args, just return an error.
      	(bus_driver_handle_service_exists): ditto
      
      	* bus/services.c (bus_services_list): NULL-terminate returned array
      
      	* bus/driver.c (bus_driver_send_service_lost)
      	(bus_driver_send_service_acquired): send messages from driver to a
      	specific client to the client's unique name, not to the broadcast
      	service.
      
      	* dbus/dbus-message.c (decode_header_data): reject messages that
      	contain no name field
      	(_dbus_message_get_client_serial): rename to
      	dbus_message_get_serial and make public
      	(_dbus_message_set_serial): rename from set_client_serial
      	(_dbus_message_set_reply_serial): make public
      	(_dbus_message_get_reply_serial): make public
      
      	* bus/connection.c (bus_connection_foreach): allow stopping
      	iteration by returning FALSE from foreach function.
      
      	* dbus/dbus-connection.c (dbus_connection_send_preallocated)
      	(dbus_connection_free_preallocated_send)
      	(dbus_connection_preallocate_send): new API for sending a message
      	without possibility of malloc failure.
      	(dbus_connection_send_message): rename to just
      	dbus_connection_send (and same for whole function family)
      
      	* dbus/dbus-errors.c (dbus_error_free): make this reinit the error
      
      	* dbus/dbus-sysdeps.c (_dbus_exit): new function
      
      	* bus/activation.c: handle/return errors
      
      	* dbus/dbus-errors.h: add more DBUS_ERROR #define
      
      	* dbus/dbus-sysdeps.c (_dbus_directory_open) (_dbus_file_get_contents)
      	(_dbus_directory_get_next_file): use DBusError instead of DBusResultCode
      	(_dbus_result_from_errno): move to this file
      29560adc
  32. 05 Mar, 2003 1 commit
    • Havoc Pennington's avatar
      2003-03-04 Havoc Pennington <hp@pobox.com> · 7e050c88
      Havoc Pennington authored
      	* test/data/auth/*: adapt to changes
      
      	* dbus/dbus-auth-script.c (_dbus_auth_script_run): add
      	USERID_BASE64 and change USERNAME_BASE64 to put in username not
      	userid
      
      	* dbus/dbus-keyring.c (_dbus_keyring_validate_context): prevent
      	more stuff from being in a context name, to make the protocol
      	simpler to deal with
      
      	* dbus/dbus-errors.c (dbus_error_has_name): new function
      	(dbus_error_is_set): new function
      
      	* dbus/dbus-auth.c: replace DBUS_STUPID_TEST_MECH auth
      	with DBUS_COOKIE_SHA1, implement DBUS_COOKIE_SHA1
      
      	* dbus/dbus-connection.c (dbus_connection_flush): also read
      	messages during a flush operation
      
      	* dbus/Makefile.am: remove dbus-md5 since it isn't currently used.
      7e050c88
  33. 04 Mar, 2003 1 commit
    • Anders Carlsson's avatar
      2003-03-05 Anders Carlsson <andersca@codefactory.se> · 25d00e5b
      Anders Carlsson authored
      	* dbus/dbus-auth.c: (send_rejected), (process_test_subdir):
      	* dbus/dbus-keyring.c: (_dbus_keyring_new_homedir),
      	(_dbus_keyring_test):
      	* dbus/dbus-md5.c: (_dbus_md5_compute):
      	* dbus/dbus-sha.c: (_dbus_sha_compute):
      	Plug memory leaks.
      25d00e5b
  34. 26 Feb, 2003 1 commit
    • Havoc Pennington's avatar
      2003-02-26 Havoc Pennington <hp@pobox.com> · 72654234
      Havoc Pennington authored
      	* dbus/dbus-connection.c
      	(dbus_connection_send_message_with_reply_and_block): fix crash
      	where we ref'd the outgoing message instead of the returned reply
      
      	* dbus/dbus-transport-unix.c (do_authentication): check read watch
      	at the end of this function, so if we didn't need to read for
      	authentication, we reinstall it for receiving messages
      
      	* dbus/dbus-message.c (dbus_message_new_reply): allow replies to
      	a NULL sender for peer-to-peer case
      
      	* dbus/dbus-transport-unix.c (check_read_watch): handle
      	!authenticated case correctly
      
      	* glib/dbus-gmain.c: add support for DBusServer
      
      	* dbus/dbus-server.c: add data slot support
      
      	* glib/dbus-gmain.c (dbus_connection_setup_with_g_main): check
      	return values and handle errors
      
      	* dbus/dbus-dataslot.c: factor out the data slot stuff from
      	DBusConnection
      
      	* Doxyfile.in (INPUT): add glib subdir
      
      	* glib/dbus-gmain.c (dbus_connection_setup_with_g_main): rename
      	setup_with_g_main instead of hookup_with_g_main; write docs
      72654234
  35. 24 Feb, 2003 1 commit
    • Havoc Pennington's avatar
      2003-02-23 Havoc Pennington <hp@pobox.com> · 2f38c959
      Havoc Pennington authored
      	* dbus/dbus-keyring.c: finish most of this implementation and
      	simple unit test
      
      	* dbus/dbus-errors.c (dbus_set_error_const, dbus_set_error): make
      	these barf if the error isn't cleared to NULL
      
      	* dbus/dbus-sysdeps.c (_dbus_delete_file): set error on failure
      	(_dbus_create_directory): new function
      
      	* dbus/dbus-errors.c (dbus_set_error): fix warning
      
      	* dbus/dbus-string.c (_dbus_string_hex_encode): new function
      	(_dbus_string_hex_decode): new function
      	(test_hex_roundtrip): test code
      
      	* dbus/dbus-sha.c (_dbus_sha_compute): use dbus_string_hex_encode
      
      	* dbus/dbus-md5.c (_dbus_md5_compute): use dbus_string_hex_encode
      
      	* dbus/dbus-sysdeps.c (_dbus_string_save_to_file): make this use
      	the save-to-temp/rename trick to atomically write the new file
      	(_dbus_string_parse_uint): new function
      2f38c959
  36. 22 Feb, 2003 1 commit
    • Havoc Pennington's avatar
      2003-02-22 Havoc Pennington <hp@pobox.com> · 6c07098c
      Havoc Pennington authored
      	* dbus/dbus-message.c (dbus_message_iter_get_string_array):
      	(dbus_message_iter_get_byte_array): Fix up doxygen warnings
      
      	* dbus/dbus-sha.c: add implementation of SHA-1 algorithm
      
      	* dbus/test/data/sha-1: add US government test suite for SHA-1
      6c07098c