Commit graph

230 commits

Author SHA1 Message Date
Robert Love
2f71e13495 2006-02-02 Robert Love <rml@novell.com>
* src/NetworkManagerAP.c: Add 'broadcast' property to the NMAccessPoint
	  structure, which denotes whether or not the AP is hidden.  This is a
	  superset of 'artificial' -- we need 'broadcast' because a hidden AP
	  can show up in the scan list.  Add nm_ap_get_broadcast() and
	  nm_ap_set_broadcast() accessor interfaces.
	* src/NetworkManagerAP.h: Add prototypes for nm_ap_get_broadcast() and
	  nm_ap_set_broadcast().
	* src/nm-dbus-net.c: Add new argument, boolean broadcast, to the
	  "getProperties" method, which denotes whether or not the given
	  network is hidden.
	* src/nm-device-802-11-wireless.c: Set broadcast to FALSE when creating
	  an artificial network.  Set broadcast to TRUE when scanning returns
	  an ESSID and FALSE when not.
	* gnome/applet/applet-dbus-devices.c: Retrieve 'broadcast' argument
	  from "getProperties" method on a network.  Possible TODO is to
	  somehow display this.
	* test/nm-tool.c: Display "Hidden" if the AP does not broadcast.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1429 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-02 18:05:19 +00:00
Robert Love
a78d9f57cf Mark label-driver as selectable (so user's can copy it) like the other labels.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1422 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-01 17:28:20 +00:00
Robert Love
569693ce2d 2006-01-30 Robert Love <rml@novell.com>
* gnome/applet/nm-gconf-wso-wpa-psk.c, gnome/applet/nm-gconf-wso.c,
	  gnome/applet/wireless-security-option.c, include/NetworkManager.h,
	  libnm-util/cipher-wpa-psk-hex.c, src/nm-ap-security-wpa-psk.c,
	  libnm-util/cipher-wpa-psk-passphrase.c, src/nm-ap-security.c: Add
	  support for "Automatic" pairwise and group cipher configuration by
	  letting wpa_supplicant handle the details.  Add UI elements, new
	  cipher type NM_AUTH_CIPHER_AUTO, and backend support.  Works like a
	  charm.  Note this does more than add a nice feature, it fixes a bug.
	  Apparently, some people have AP's where the pairwise cipher does not
	  match the group cipher.  Insane, but true.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1407 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 19:40:10 +00:00
Dan Williams
4c4eed19fc 2006-01-30 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-devices.c
		- (nmwa_dbus_device_get_driver_cb, nmwa_dbus_device_get_driver): new
			functions, grab device driver name from NetworkManager
		- (nmwa_dbus_device_properties_cb): call functions to get driver

	* gnome/applet/applet.c
		- (nmwa_update_info): show driver name in Connection Information
			dialog

	* gnome/applet/nm-device.[ch]
		- (network_device_get_driver, network_device_set_driver): add
			accessors for driver name

	* gnome/applet/wireless-applet.glade
		- Add line for driver name to Connection Information dialog

	* src/nm-dbus-device.c
		- (nm_dbus_device_get_driver): new function to return driver name
		- (nm_dbus_device_methods): hook up driver name function to dbus

	* test/nm-tool.c
		- (get_driver_name): new function
		- (detail_device): grab and show driver name


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1406 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 18:45:17 +00:00
Robert Love
b92d952a4d 2006-01-30 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Apparently gtk_message_dialog_new_with_markup
	  does not parse the markup if it is not part of the format.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1405 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 17:31:05 +00:00
Robert Love
1ca336c741 2006-01-27 Robert Love <rml@novell.com>
* gnome/applet/passphrase-dialog.c: If wsm_set_capabilities() returns
	  FALSE, we have no security options for this dialog, so we throw up
	  an error dialog instead of a broken passphrase dialog.  Fixes
	  Novell #138404.
	* gnome/applet/wireless-security-manager.c,
	  gnome/applet/wireless-security-manager.h: If wsm_set_capabilities()
	  does not add any security options, not even none, print a warning
	  and return FALSE.  This let's functions constructed a dialog bail
	  out if the device's capabilities and the network's requirements have
	  zero overlap.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1404 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 17:28:22 +00:00
Robert Love
b60c770dab 2006-01-26 Robert Love <rml@novell.com>
* configure.in: Change '-Wno-unused' to '-Wno-unused-parameter'
	* gnome/applet/applet-compat.c, gnome/applet/applet-dbus-devices.c,
	  gnome/applet/applet-dbus-info.c, gnome/applet/applet-dbus.c,
	  gnome/applet/applet.c, gnome/applet/applet.h, src/nm-dbus-device.c,
	  gnome/applet/nm-gconf-wso-wep.c, gnome/applet/nm-gconf-wso-wpa-psk.c,
	  gnome/applet/nm-gconf-wso.c, gnome/applet/nm-gconf-wso.h,
	  gnome/applet/other-network-dialog.c, src/nm-device.c, test/nm-tool.c,
	  gnome/applet/passphrase-dialog.c, src/nm-device-802-11-wireless.c,
	  gnome/applet/wireless-security-manager.c, src/nm-ip4-config.c,
	  gnome/applet/wireless-security-option.c, src/nm-ap-security.c,
	  gnome/applet/wso-wep-ascii.c, gnome/applet/wso-wep-hex.c,
	  gnome/applet/wso-wep-passphrase.c, gnome/applet/wso-wpa-psk.c,
	  libnm-util/dbus-helpers.c, src/NetworkManagerAP.c, src/nm-dbus-nmi.c,
	  src/NetworkManagerSystem.c, src/nm-ap-security-wep.c,
	  src/nm-device-802-11-wireless.h, test/libnm-util/test-ciphers.c,
	  src/named-manager/nm-named-manager.c, test/test-common/test-common.c:
	  Kill unused variables, labels, and static functions.  Don't pass
	  string literals as the format string for printf-like functions.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1391 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-26 21:08:44 +00:00
Dan Williams
907c305159 2006-01-25 Dan Williams <dcbw@redhat.com>
* gnome/applet/wireless-applet.glade
		- Remove WPA2 Checkbox

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): split up sections for wpa and wpa2.
			This means the Wireless Security menu now has two WPA options,
			one for "WPA Personal" and one for "WPA2 Personal"

	* gnome/applet/wso-wpa-psk.[ch]
		- (wso_wpa_psk_new): remove stuff for WPA2 checkbox, and use
			'wpa2' argument to determine WPA version to use
		- (append_dbus_params_func): pass stored WPA version to cipher
			rather than using the (removed) checkbox


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1388 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-25 15:33:22 +00:00
Robert Love
478d843ef4 gnome/applet/applet.c: revert - whoops - sorry
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1380 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-23 20:38:43 +00:00
Robert Love
d51874eca6 2006-01-23 Robert Love <rml@novell.com>
* Makefile.am, nm-applet.desktop: Add autostart .desktop file, now that
	  gnome-session does autostart.  TODO: We need to install this to
	  $prefix/share/autostart/.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1379 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-23 20:33:45 +00:00
Robert Love
8eb99d62fc 2006-01-16 Robert Love <rml@novell.com>
* gnome/applet/eggtrayicon.c, src/nm-device.c, src/nm-ap-security.c,
	  gnome/applet/nm-gconf-wso-wep.c, gnome/applet/nm-gconf-wso-wpa-psk.c,
	  gnome/applet/nm-gconf-wso.c, src/nm-device-802-3-ethernet.c,
	  gnome/vpn-properties/nm-vpn-properties.c, src/nm-ap-security-wep.c,
	  src/nm-ap-security-wpa-psk.c, src/nm-device-802-11-wireless.c,
	  src/nm-netlink-monitor.c: Don't miss any initializers on structure
	  declarations, ever.
	* gnome/applet/applet.c: Remove useless check (NMState is unsigned and
	  NM_STATE_DISCONNECTED is zero).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1351 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-17 18:22:56 +00:00
Dan Williams
1f868bbd02 Add Tim Niemueller
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1342 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 21:01:25 +00:00
Dan Williams
3cb4470af5 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nmwa_add_networks_helper): don't indicate an active network
			if NM is disconnected or asleep


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1341 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 19:11:11 +00:00
Dan Williams
a6d596b796 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/wso-wpa-psk-hex.[ch]
		- Renamed -> wso-wpa-psk.[ch]

	* gnome/applet/wso-wpa-psk.[ch]
		- New files

	* gnome/applet/wso-wpa-psk-passphrase.[ch]
		- Removed, rolled into wso-wpa-psk.[ch]

	* gnome/applet/Makefile.am
		- Updated for above changes

	* gnome/applet/wireless-applet.glade
		- Consolidate WPA-PSK options into one notebook
			widget, and make dialogs invisible by default
			to fix screen oddities

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): create the new wpa-psk widget rather
			than both the old hex & passphrase ones


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1339 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:34:13 +00:00
Dan Williams
dc74d1bd2d 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/other-network-dialog.c
		- (nmwa_ond_init): Change text to refer to "name" rather than "ESSID"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1338 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:21:08 +00:00
Dan Williams
43d36bc3c4 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nmwa_show_vpn_login_banner_dialog, nmwa_show_vpn_failure_dialog,
		   nmwa_driver_notify, show_warning_dialog): fix up focus-stealing
			prevention to realize window before trying to get server
			time

	* gnome/applet/other-network-dialog.c
		- (nmwa_other_network_dialog_run): fix up focus-stealing
			prevention to realize window before trying to get server
			time

	* gnome/applet/passphrase-dialog.c
		- (nmi_passphrase_dialog_new): fix up focus-stealing
			prevention to realize window before trying to get server
			time


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1337 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:20:27 +00:00
Dan Williams
7d82157fc5 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/wireless-security-option.c
		- (wso_wpa_create_key_type_model): clarify AES-CCMP algorithm name


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1335 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 17:17:25 +00:00
Robert Love
eedee2afac add FIXME
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1328 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-13 20:01:13 +00:00
Robert Love
77c10f94b6 2006-01-11 Robert Love <rml@novell.com>
* gnome/applet/wireless-security-manager.c: Fix crash by not asserting
	  that wso_foo_new() returned non-NULL.  Instead, only append the new
	  wso to wsm->options if the wso is non-NULL.  The crux is that we
	  assume that the relevant key types are implied by WEP and WPA as
	  appropriate.  To be sure, they should be, but we should not expect
	  drivers to not be oozing piles of wolf fecal matter.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1319 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 21:48:39 +00:00
Robert Love
46efeb868a 2006-01-11 Robert Love <rml@novell.com>
* configure.in: Add the gcc flags '-Wshadow' and '-Wfloat-equal'.
	* gnome/applet/applet.c, gnome/vpn-properties/nm-vpn-properties.c,
	  src/NetworkManagerAPList.c, src/NetworkManagerDbus.c,
	  src/NetworkManagerPolicy.c, src/NetworkManagerSystem.c,
	  src/nm-dbus-device.c, src/nm-device-802-3-ethernet.c,
	  src/nm-ip4-config.c, src/vpn-manager/nm-vpn-manager.c,
	  test/nmtestdevices.c: Fix shadowed variable usage as appropriate.
	* src/nm-device-802-11-wireless.c: Fix floating point comparison by
	  comparing values within DBL_EPSILON.  Also fix shadowed variable
	  usage.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1318 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 21:07:29 +00:00
Dan Williams
f2c3f74a13 2006-01-11 Dan Williams <dcbw@redhat.com>
Add options for WPA2 and WPA1+CCMP (AES).

	* gnome/applet/wireless-applet.glade
		- Add UI bits for WPA+CCMP

	* gnome/applet/other-network-dialog.c
		- (nmwa_ond_init): pass capabilities into the WirelessSecurityManager,
			and don't allow creation of WPA2 Ad-Hoc networks since
			wpa_supplicant doesn't support them

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): Add WPA2 options, and pass capability
			on to the specific wireless security option being created

	* gnome/applet/wireless-security-option.[ch]
		- (wso_wpa_create_key_type_model): new utility function to create
			the model required for WPA Key Type combo box

	* gnome/applet/wso-private.h
	  gnome/applet/wireless-security-option.h
		- Move private function prototypes into wso-private.h

	* gnome/applet/wso-wpa-psk-hex.[ch]
	  gnome/applet/wso-wpa-psk-passphrase.[ch]
		- (append_dbus_params_func): get WPA version from checkbox and pass
			it to the dbus serialization helper
		- (key_type_combo_changed_cb): Set the cipher's WE Cipher when the
			key type combo changes
		- (wso_wpa_psk_hex_new): set up the key type combo with the correct
			model and options

	* libnm-util/cipher-wpa-psk-hex.c
	  libnm-util/cipher-wpa-psk-passphrase.c
		- (cipher_wpa_psk_hex_set_we_cipher, cipher_wpa_psk_passphrase_set_we_cipher):
			new function; allow the cipher to be changed after object creation

	* src/nm-ap-security-wpa-psk.c
		- (set_description): Do WPA2 descriptions too

	* src/nm-ap-security.c
		- (nm_ap_security_new_from_ap): allow CCMP with WPA1 too


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1317 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 20:46:26 +00:00
Robert Love
913ee23313 2006-01-11 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet-dbus.c,
	  gnome/applet/applet.c, gnome/applet/applet.h: Consolidating
	  assignments to applet->nm_state into a new nmwa_set_state() function
	  for both cleanliness and to help debugging.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1314 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 17:08:38 +00:00
Robert Love
a8b7e75e7a 2006-01-10 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-info.c: Remove FIXME, we do not have to free
	  the attr fields according to the example in the email available at
	  mail.gnome.org/archives/desktop-devel-list/2004-May/msg00230.html.
	  Conversely, we do have to free 'name', so we do so, fixing a leak.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1311 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 21:53:21 +00:00
Robert Love
5f10fc0638 2006-01-10 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet-dbus.h,
	  gnome/applet/applet.c, gnome/applet/applet.h: Add 'Enable Networking'
	  option to give users ability to globally disconnect and put NM to
	  sleep.  This is useful as a 'lockdown mode' for flying, security, and
	  clean disconnect.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1308 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-10 20:28:26 +00:00
Dan Williams
e3c8b17d71 2006-01-09 Dan Williams <dcbw@redhat.com>
Apply Robert's 'tray icon redo' patch with fixes

	* gnome/applet/applet.c
	  gnome/applet/applet.h
		- Instead of using a menu bar + menu item, simulate menu
			behavior using a popup menu.  Highlight the area around
			the icon more like a menu too, by playing with the applet's
			size requisition


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1303 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-09 16:50:45 +00:00
Dan Williams
9b602d8151 2006-01-08 Dan Williams <dcbw@redhat.com>
* gnome/applet/nm-gconf-wso-wpa-psk.c
		- (nm_gconf_wso_wpa_psk_new_deserialize_dbus): feed
			correct arguments to nmu_security_deserialize_wpa_psk()

	* src/nm-ap-security-wpa-psk.c
		- (nm_ap_security_wpa_psk_new_deserialize): feed correct
			arguments to nmu_security_deserialize_wpa_psk()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1295 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 21:34:38 +00:00
Dan Williams
46d05f9ab7 2006-01-08 Dan Williams <dcbw@redhat.com>
* gnome/applet/wso-wpa-psk-hex.c
	  gnome/applet/wso-wpa-psk-passphrase.c
		- Hook up the append_dbus_params_func() function


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1294 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 21:10:47 +00:00
Dan Williams
65b6ba0b88 2006-01-08 Dan Williams <dcbw@redhat.com>
* gnome/applet/Makefile.am
	  gnome/applet/wso-wpa-psk-hex.c
	  gnome/applet/wso-wpa-psk-hex.h
		- New files, implement WPA-PSK Hex key input

	* gnome/applet/wireless-applet.glade
		- Change existing wpa-psk stuff to wpa-psk-hex
		- Add new widgets for wpa-psk-passphrase

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): enable WPA options

	* gnome/applet/wso-wpa-psk-passphrase.c
		- (wso_wpa_psk_passphrase_new): use correct glade widgets
			for WPA-PSK passphrase


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1291 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 19:03:58 +00:00
Dan Williams
2fa716d42d 2006-01-08 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
		- Add NMI_DBUS_USER_KEY_CANCELED_ERROR as a constant for
			applet/info-daemons

	* gnome/applet/passphrase-dialog.c
		- Use the constant.  Fixes a bug where the arguments to
			dbus_message_new_error() were incorrect

	* src/nm-dbus-nmi.c
		- Use the constant


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1289 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-08 16:55:03 +00:00
Robert Love
22e8b28790 2006-01-06 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c,
	  gnome/applet/other-network-dialog.c, gnome/applet/wso-none.c,
	  libnm-util/dbus-helpers.c, libnm-util/dbus-helpers.h,
	  src/nm-dbus-nm.c: Fix several issues.  'Connect to Other' and 'Create
	  New Network' both failed in the non-encrypted case because we were
	  not appending the security options to the DBUS message.  And
	  'Connect to Other' was also failing in the encrypted case because
	  we were not incrementing to the next DBUS parameter.  All fixed.
	  Thanks to dcdw for some debugging help.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1276 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 20:12:31 +00:00
Robert Love
019a9ab116 remove unused variable, bitches
An unused variable is a lot like an unused car in that  it sits in the drive and
just begs to be driven, but it also begs a larger question of why you own a car
that just sits in your driveway when so many other people, people with large
pension plans and pet racoons, do not own a car at all!


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1274 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 16:19:32 +00:00
Robert Love
9dd733b3b5 2006-01-06 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet.c,
	  gnome/applet/applet-dbus-devices.h, src/nm-dbus-nm.c: Remove global
	  hangup code and add per-device hangup.  Tie last commit into the
	  GNOME applet.  TODO:  Save, understand, and respond to the state of
	  each dialup device.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1273 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-06 15:52:40 +00:00
Robert Love
bcbbde17ce 2006-01-04 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c,
	  gnome/applet/applet-dbus-devices.h, gnome/applet/applet.c,
	  src/nm-dbus-nm.c: Expose a menu item for hanging up active dialup
	  connections.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1269 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-05 18:56:09 +00:00
Robert Love
0dcbec9372 make a vague attempt at checking write(2)'s error code.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1262 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-04 17:54:42 +00:00
Robert Love
219ef597c2 add nm-gconf-wso-private.h to source
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1260 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-04 17:40:33 +00:00
Dan Williams
c9a7797a60 Don't segfault if the active iter is invalid for some reason
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1257 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-03 19:06:37 +00:00
Dan Williams
c957948a82 2005-12-29 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-devices.c
		- Replace 'enc' parameter with 'capabilities' for wireless networks
			in dbus calls to NM
		- Set capabilities on WirelessNetwork objects
		- Receive and save type-specific device capabilities too

	* gnome/applet/applet-dbus-info.c
	  gnome/applet/applet-dbus.c
		- Passphrase dialog no longer a singleton; new instance gets created
			on each request.  Updates to deal with that.

	* gnome/applet/applet.c
		- (nmwa_has_encrypted_networks_helper): use AP capabilities rather
			than single 'encrypted' flag
		- (nmwa_menu_add_vpn_menu): if NM isn't connected, disable any VPN
			menu items
		- Passphrase dialog updates per above

	* gnome/applet/menu-items.c
		- (network_menu_item_update): use AP capabilities to determine
			encryption

	* gnome/applet/nm-device.[ch]
		- Add accessors for type-specific device capabilities

	* gnome/applet/other-network-dialog.c
		- Rework to respect device capabilities.  i.e., if the device doesn't
			support WPA, remove that option from the security dropdown

	* gnome/applet/passphrase-dialog.c
		- Massive rework so that a new instance is created each time
			it's used, to support wireless network capabilities

	* gnome/applet/wireless-network.[ch]
		- Add accessors and members for wireless network capabilities

	* gnome/applet/wireless-security-manager.[ch]
		- (wsm_set_capabilities): called after creation to set which
			security options get shown to the user


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1238 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-29 16:54:34 +00:00
Dan Williams
2cc6237c02 Fix bug saving unencrypted AP security information
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1237 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-29 16:36:22 +00:00
Dan Williams
020309a6eb 2005-12-23 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-info.c
		- (nmi_dbus_get_key_for_network): if there's no entry in
			GConf for a network, assume we want a new key
		- (nmi_save_network_info): serialize wireless security info
			into GConf so its saved

	* src/nm-dbus-nm.c
		- Fix warning as we may not be passed security info when
			connecting to a wireless network


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1231 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-23 09:59:26 +00:00
Dan Williams
5c35a1372c 2005-12-23 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-compat.c
		- Fix bugs in GConf entry conversion

	* gnome/applet/applet-dbus-info.c
		- (nmi_dbus_get_network_properties): handle case of the BSSID
			list being zero-length

	* libnm-util/cipher-*
	  libnm-util/dbus-helpers.c
		- All ciphers must now return hashed keys as UTF-8 valid
			hexadecimal strings, ie "8f3dae4023".  They are pushed
			through dbus as strings too.
		- Consolidate various functions that do bin->hex and hex->bin
			conversion into cipher.c

	* src/nm-ap-security-wep.c
	  src/nm-ap-security-wpa-psk.c
		- Handle NULL keys since we may not know keys right away

	* src/nm-dbus-nmi.c
		- (nm_dbus_get_network_data_cb): actually advance to the start
			of the wireless security info before we try to deserialize it

	* libnm-util/test-ciphers.c
		- Update cipher tests for the change to UTF-8 hexadecimal strings


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1230 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-23 08:20:12 +00:00
Dan Williams
3d423f41e6 2005-12-22 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-compat.[ch]
		- Convert old-format GConf and keyring entries
			when the applet starts up.

	* gnome/applet/applet.c
		- (nmwa_get_instance): Call the conversion function
			on startup before dbus is initialized


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-23 01:26:17 +00:00
Dan Williams
3a95cff109 Fix misplaced free
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1227 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-22 20:29:22 +00:00
Dan Williams
eedb5aeaee 2005-12-22 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-info.c
		- Remove nmi_dbus_create_error_message() in favor of
			nmu_create_dbus_error_message()
		- (nmi_dbus_get_network_properties): Error message cleanups
		- (nmi_dbus_get_network_properties): BSSIDs are now in the 'bssids'
			gconf key rather than 'addresses', since they really are BSSIDs
		- (nmi_dbus_get_network_properties): Dispose of the security
			object when we're done with it


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1226 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-22 19:58:26 +00:00
Dan Williams
7e5951b4fb Random code format changes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1225 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-22 19:54:25 +00:00
Dan Williams
036e35a5ca 2005-12-21 Dan Williams <dcbw@redhat.com>
* Consolidate the info-daemon's "updateNetworkInfo" and
		"addNetworkAddress" calls into just "updateNetworkInfo"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1224 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-22 00:24:11 +00:00
Dan Williams
b5c3269266 2005-12-21 Dan Williams <dcbw@redhat.com>
* gnome/applet/nm-gconf-wso*
		- Make the serialize functions return gboolean
			rather than int

	* gnome/applet/nm-gconf-wso.c
		- (nm_gconf_wso_dispose, nm_gconf_wso_finalize): fix up
			parent class handling so we don't segfault

	* src/NetworkManagerAP.[ch]
		- (nm_ap_get_capabilities): new function, return capabilities
			now that something can use them
		- (nm_ap_set_encrypted): assume that an access point supports
			both WEP104 and WEP40 if its set encrypted.  FIXME: can
			we even tell whether it just supports WEP40?

	* src/NetworkManagerDevice.c
		- (ap_need_key): resurrect and update for the New World Order
		- (nm_device_wireless_get_activation_ap): if we're not given
			security info to use, create some based on access point
			capabilities

	* src/nm-ap-security-wep.c
		- (nm_ap_security_wep_new_from_ap): create a new object
			based on a certain access point's capabilities

	* src/nm-ap-security.c
		- (nm_ap_security_new_from_ap): delegate creation of a new
			object based on access point capabilities to a subclass
		- (nm_ap_security_copy_properties): don't segfault if we
			don't have a key yet

	* src/nm-dbus-nm.c
		- (nm_dbus_nm_set_active_device): provide more informative
			output when errors occur.  Also construct security info
			for a given access point if we weren't given any


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1219 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-21 21:08:00 +00:00
Dan Williams
948a0a8529 Fix up message argument parsing in NM<->NMI network property retrieval
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1214 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-19 05:37:18 +00:00
Dan Williams
c32b0d108f Fix argument parsing
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1213 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-18 03:56:25 +00:00
Dan Williams
fad972d5a0 2005-12-17 Dan Williams <dcbw@redhat.com>
* Fix bugs


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1212 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-18 02:53:32 +00:00
Dan Williams
f003ba8ef7 2005-12-17 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h
		- Finally kill NMEncKeyType

	* gnome/applet/applet-dbus-info.c
		- (nmi_save_network_info): convert to NMGConfWSO

	* gnome/applet/nm-gconf-wso-*.c
		- Implement gconf serialization functions

	* src/NetworkManagerPolicy.c
		- (nm_policy_activation_finish): fix up meaning of
			automatic/user_requested


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1211 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-17 21:39:19 +00:00