hostap/wpa_supplicant/dbus
Dan Williams 6aeeb6fa21 dbus: clean up new D-Bus interface getters and setters
A number of fixes/improvements here:

1) Remove casting of getter/setter function types which allows
us to change the prototypes in the future and not have hard-to-find
runtime segfaults

2) Instead of having the getters create a fake reply message which
then gets its arguments copied into the real reply message, and is
then disposed, just pass message iters around and have them add
their arguments to the message itself

3) For setters, just pass in the message iter positioned at the
start of the argument list, instead of each setter having to skip
over the standard interface+property name

4) Convert error handling to use DBusError and return the error
back down through the call stacks to the function that will
actually send the error back to the caller, instead of having a
fake DBusMessage of type DBUS_MESSAGE_TYPE_ERROR that then
needs to have the error extracted from it.

But most of all, this fixes various segfaults (like rh #725517
and #678625) which were caused by some functions deep down in the
getter callpaths wanting a source DBusMessage* when the getters were
used for two things: signals (which don't have a source DBusMessage)
and methods (which will have a source DBusMessage that's being
replied to).  This duality made the code fragile when handling
errors like invalid IEs over the air.

Signed-off-by: Dan Williams <dcbw@redhat.com>
2011-07-29 21:25:39 +03:00
..
.gitignore dbus: Clean dbus build files on wpa_supplicant 'make clean' 2009-12-20 20:29:09 +02:00
dbus-wpa_supplicant.conf Move D-Bus related files into their own subdirectory 2009-12-20 20:11:14 +02:00
dbus_common.c dbus: Fix init-failure-detection 2010-01-01 21:30:58 +02:00
dbus_common.h dbus: Share common initialization code for both old and new interface 2009-12-31 00:15:56 +02:00
dbus_common_i.h dbus: Do not deinitialize new D-Bus API if it is not initialized 2009-12-31 21:50:12 +02:00
dbus_dict_helpers.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_dict_helpers.h dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new.h Add dbus signal for information about server certification 2011-07-05 12:22:32 +03:00
dbus_new_handlers.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_handlers.h dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_handlers_p2p.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_handlers_p2p.h dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_handlers_wps.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_helpers.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_helpers.h dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_introspect.c DBus: Increase introspection buffer sizes 2011-02-02 17:01:29 +02:00
dbus_old.c Add dbus signal for information about server certification 2011-07-05 12:22:32 +03:00
dbus_old.h Fix non D-Bus builds by removing 'void void' in return value 2011-07-12 15:39:33 +03:00
dbus_old_handlers.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_old_handlers.h dbus: Add D-Bus methods to flush the BSS cache 2011-03-20 12:02:33 +02:00
dbus_old_handlers_wps.c P2P: Set Device Password ID in WPS M1/M2 per new rules 2010-09-09 07:17:19 -07:00
fi.epitest.hostap.WPASupplicant.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
fi.w1.wpa_supplicant1.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
Makefile wpa_supplicant: Respect PKG_CONFIG variable if set in the environment 2011-07-04 20:35:38 +03:00