1. 02 Dec, 2003 1 commit
  2. 27 Nov, 2003 1 commit
  3. 07 Sep, 2003 1 commit
  4. 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
  5. 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
      	* 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
    • 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
  6. 17 Apr, 2003 1 commit
  7. 02 Apr, 2003 1 commit
  8. 01 Apr, 2003 1 commit
  9. 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
  10. 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
      	* 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
  11. 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
      	* 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
      	* 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_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
  12. 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
      	* 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.
  13. 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/dbus-md5.c: (_dbus_md5_compute):
      	* dbus/dbus-sha.c: (_dbus_sha_compute):
      	Plug memory leaks.
  14. 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
      	* 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
  15. 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
  16. 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
  17. 20 Feb, 2003 1 commit
    • Havoc Pennington's avatar
      2003-02-19 Havoc Pennington <hp@pobox.com> · 6b40feaf
      Havoc Pennington authored
      	* Doxyfile.in (PREDEFINED): put DOXYGEN_SHOULD_SKIP_THIS in
      	Doxyfile.in, not Doxyfile
      	* dbus/dbus-keyring.c: do some hacking on this
      	* dbus/dbus-sysdeps.c (_dbus_delete_file): new
      	* dbus/dbus-errors.c (dbus_set_error_const): do not call
      	(dbus_set_error): remove dbus_error_init, check for message ==
      	NULL *before* we sprintf into it, and add @todo about including
      	system headers in this file
      	* dbus/dbus-sysdeps.c (_dbus_create_file_exclusively): new
      	* dbus/dbus-errors.h (DBUS_ERROR_FAILED): add
      	* dbus/dbus-sysdeps.c (get_user_info): break this function out to
      	get various bits of user information based on either username
      	or user ID
      	(_dbus_homedir_from_username): new function
  18. 19 Feb, 2003 2 commits
    • Havoc Pennington's avatar
      2003-02-19 Havoc Pennington <hp@pobox.com> · c21511c0
      Havoc Pennington authored
      	Throughout: mop up all the Doxygen warnings and undocumented
      	* dbus/dbus-sysdeps.c (do_exec): do not use execvp, we don't want
      	to search any paths.
      	* dbus/dbus-threads.c: move global mutex initializers to
      	dbus-internals.h, multiple prototypes was confusing doxygen
      	besides being kind of ugly
      	* Doxyfile (PREDEFINED): have Doxygen define
      	DOXYGEN_SHOULD_SKIP_THIS so we can exclude things from
      	docs with #ifndef DOXYGEN_SHOULD_SKIP_THIS
      	(do not abuse the feature! it's for stuff like the autogenerated
      	macros in dbus-md5.c, not just for things you don't feel like
    • Havoc Pennington's avatar
      2003-02-18 Havoc Pennington <hp@pobox.com> · 78e16e99
      Havoc Pennington authored
      	* dbus/dbus-string.c (_dbus_string_zero): new function
      	* dbus/dbus-md5.c: include MD5 implementation by L. Peter Deutsch,
      	wrap it in some dbus-friendly API
      	* dbus/dbus-types.h: add 16-bit types
  19. 05 Feb, 2003 1 commit
    • Havoc Pennington's avatar
      2003-02-02 Havoc Pennington <hp@pobox.com> · a07bc460
      Havoc Pennington authored
      	* dbus/dbus-keyring.c, dbus/dbus-keyring.h: template files
      	for code to manage cookies in your home directory
      	* dbus/dbus-sysdeps.c (_dbus_generate_random_bytes): new function
      	* dbus/dbus-auth.c (get_state): impose a maximum number of tries
      	to authenticate, then disconnect the client.