Commit Graph

13873 Commits

Author SHA1 Message Date
Dan Williams
bb8bde197e 2007-12-01 Dan Williams <dcbw@redhat.com>
* system-settings/src/main.c
		- (load_connections, add_connection_to_settings): actually export
			plugin-provided connections over D-Bus so NM can get them



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3120 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-01 17:24:13 +00:00
Dan Williams
98df3d3558 2007-12-01 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg/parser.c
	  system-settings/plugins/ifcfg/parser.h
	  system-settings/plugins/ifcfg/plugin.c
		- Hook up more inotify bits (untested)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3119 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-01 16:00:17 +00:00
Dan Williams
084196ff43 Warning cleanups
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3118 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-29 14:51:01 +00:00
Dan Williams
89a39c7328 2007-11-29 Dan Williams <dcbw@redhat.com>
* system-settings/src/nm-system-config-interface.h
	  system-settings/src/nm-system-config-interface.c
		- (nm_system_config_interface_init,
		   nm_system_config_interface_get_connections): add

	* system-settings/src/main.c
		- (load_plugins, load_connections, main): use a GSList for plugins
			to ensure priority ordering

	* system-settings/plugins/ifcfg/parser.c
		- (ifcfg_error_quark): move to plugin.c, and rename

	* system-settings/plugins/ifcfg/plugin.h
	  system-settings/plugins/ifcfg/plugin.c
		- (ifcfg_plugin_error_quark): move here from parser.c
		- rework connection loading and initialization
		- Add preliminary inotify support for network profile config file



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3117 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-29 14:40:24 +00:00
Tambet Ingo
db5a10dc4d 2007-11-28 Tambet Ingo <tambet@gmail.com>
Merge the beginnings of the new GSM card support.

        * src/ppp-manager/nm-ppp-manager.c (nm_ppp_manager_stop): Remove
        * the
        ppp watch source before killing pppd - If this happens from
g_object_unref()
        then the ppp manager is already destroyed by the time the watch
callback runs.

        * src/nm-hal-manager.c: Add a device_type_name string to the
        * device
        creators, so that we can print a nice human readable string when
a
        device is added.

        * src/nm-umts-device.c (automatic_registration_get_network):
        * Query
        for the activated network, not much is done with the result
thought.

        * src/nm-serial-device.c (nm_serial_device_get_reply):
        * Implement.
        (ppp_ip4_config): Change the device state to activated here for
now.
        (real_check_connection): Make sure the connection includes ppp
setting.

        * libnm-glib/nm-client.c (get_device): Handle umts devices.

        * libnm-glib/Makefile.am: Add the new files to build.

        * libnm-glib/nm-umts-device.c: 
        * libnm-glib/nm-umts-device.h: Implement.

2007-11-26  Tambet Ingo  <tambet@gmail.com>

        * src/nm-umts-device.c (automatic_registration_get_network): For
        * now, dial
        immediately, nm_serial_device_get_reply() isn't implemented
correctly yet.

        * src/nm-serial-device.c (wait_for_reply_info_destroy): Don't
        * try to remove
        the timeout source - this function is only called when the
timeout source has
        been removed.
        (nm_serial_device_wait_for_reply): Allocate the duplicate
responses array
        to be big enough to contain the terminating zero element as
well.
        The timeout argument is meant to be in seconds now.
        (real_deactivate_quickly): Implement.

        * src/NetworkManager.conf: Allow root to own 
        "org.freedesktop.NetworkManager.PPP", deny it for everybody
else.

        * libnm-util/nm-setting-umts.c: Network type and band properties
        * are ints,
        (not unsigned ints).

        * libnm-util/nm-setting-serial.c (nm_setting_serial_class_init):
        * Fix a 
        small issue with parity bounds - capital letters have lower
ascii codes
        than lower case letters.

        * libnm-util/nm-connection.c (register_default_settings):
        * Register serial
        and umts settings.

2007-11-22  Tambet Ingo  <tambet@gmail.com>

        Remove the "index" property from devices as not all device types
have this.

        * include/NetworkManager.h (NM_DBUS_PATH_DEVICE): Remove.

        * src/nm-hal-manager.c (nm_get_device_index_from_hal): Remove.
        (wired_device_creator): Get the device interface from hal to
create the device.
        (wireless_device_creator): Ditto.

        * src/nm-device.c (nm_device_init): Remove the index member.
        (constructor): Remove the checks for index property, make
interface property
        a require constructor property.
        Use the HAL udi for DBus path for devices.
        (nm_device_get_index): Remove.
        (set_property): Remove index handling.
        (get_property): Ditto.
        (nm_device_get_dbus_path): Remove.

        * src/nm-device-interface.c (nm_device_interface_init): Remove
        * the index
        property.

        * src/nm-device-802-3-ethernet.c
        * (nm_device_802_3_ethernet_link_activated):
        Access the device index through it's interface.
        (nm_device_802_3_ethernet_link_deactivated): Ditto.
        (nm_device_802_3_ethernet_new): Remove the useless argument
test_dev. Remove
        index argument. Add interface argument.

        * src/nm-device-802-11-wireless.c
        * (nm_device_802_11_wireless_new): Remove
        the useless test_dev argument. Remove index argument. Add
interface arugment.

        * src/NetworkManagerSystem.c
        * (nm_system_device_set_from_ip4_config): Get the
        device index through interface.
        (nm_system_set_mtu): Ditto.

        * introspection/nm-device.xml: Remove the "Index" property.

2007-11-21  Tambet Ingo  <tambet@gmail.com>

        * src/nm-serial-device.c: 
        * src/nm-serial-device.c: 
        * src/nm-umts-device.c:
        * src/nm-umts-device.h: Implement.

        * src/nm-hal-manager.c (nm_get_device_driver_name):
        * libhal_free_string the string 
        allocated by libhal.
        (modem_device_creator): Implement.
        (register_built_in_creators): Register the modem creator.

        * src/nm-device-802-11-wireless.c
        * (nm_device_802_11_wireless_new): 
        Remove the unused test_dev argument.

        * src/nm-device-802-3-ethernet.c (nm_device_802_3_ethernet_new):
        * Ditto.

        * src/Makefile.am: Add new files to build.
        Link in ppp-manager.

        * libnm-util/nm-setting-umts.c: 
        * libnm-util/nm-setting-umts.h: 
        * libnm-util/nm-setting-serial.c: 
        * libnm-util/nm-setting-serial.h: Implement.

        * libnm-util/Makefile.am: Add new files to build.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3116 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-29 14:38:07 +00:00
Dan Williams
f5fb016271 2007-11-28 Dan Williams <dcbw@redhat.com>
Patch from Zdeněk Jurka <zdenek.jurka@jware.cz>

	Support DHCP-provided static routes.

	* src/nm-ip4-config.h
	  src/nm-ip4-config.c
		- Add get/set functions for static routes

	* src/dhcp-manager/nm-dhcp-manager.c
		- (nm_dhcp_manager_get_ip4_config): extract static routes from the
			DHCP response

	* src/NetworkManagerSystem.c
		- (nm_system_device_set_from_ip4_config): set any static routes on the
			interface when applying the IP4Config



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3115 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-28 22:38:33 +00:00
Dan Williams
9695c380fd 2007-11-28 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (real_act_stage1_prepare): mark APs created for hidden networks
			as non-broadcasting



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3114 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-28 20:25:31 +00:00
Dan Williams
f68d9309e2 2007-11-27 Dan Williams <dcbw@redhat.com>
* system-settings/src/nm-system-config-interface.h
		- Note how to store secrets on NMSetting objects

	* system-settings/src/dbus-settings.c
		- (connection_settings_get_secrets): implement



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3113 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-27 22:20:19 +00:00
Dan Williams
9e53dc83b0 2007-11-27 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg/Makefile.am
	  system-settings/plugins/ifcfg/parser.c
	  system-settings/plugins/ifcfg/parser.h
	  system-settings/plugins/ifcfg/plugin.c
		- Parse wireless connections too

	* system-settings/src/dbus-settings.c
	  system-settings/src/dbus-settings.h
	  system-settings/src/main.c
		- Handle connection update/removal if the plugin supports it



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3112 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-27 19:25:46 +00:00
Dan Williams
7f21476233 2007-11-27 Dan Williams <dcbw@redhat.com>
* src/nm-dbus-manager.h
	  src/nm-hal-manager.c
		- Include the correct headers now that NetworkManagerDbusUtils.h doesn't
			do it for them

	* src/Makefile.am
	  src/NetworkManagerDbusUtils.c
	  src/NetworkManagerDbusUtils.h
		- Remove these two source files; they are unused



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3111 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-27 17:18:41 +00:00
Dan Williams
bfb5fc0dc9 2007-11-27 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-manager.c
		- (impl_vpn_manager_connect): fix system settings check (found by
			James M. Leddy)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3110 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-27 16:27:20 +00:00
Dan Williams
b3684dfc1b Add plugin.h to makefile
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3109 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-26 17:12:15 +00:00
Dan Williams
6076621fd0 2007-11-26 Dan Williams <dcbw@redhat.com>
* Fix warnings so everything compiles with --enable-more-warnings



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3108 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-26 16:59:47 +00:00
Dan Williams
9bcfe25991 Fix default Gentoo MDNS provider
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3107 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-26 15:56:03 +00:00
Dan Williams
e18d04cf0f 2007-11-25 Dan Williams <dcbw@redhat.com>
* system-settings/*
		- Rework structure and code to use GModule-loaded plugins and a plugin
			interface that plugins export to the system settings service



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3106 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-26 03:47:30 +00:00
Tim Niemueller
7552cbbdb1 2007-11-23 Tim Niemueller <tim@niemueller.de>
* configure.in: raise version number to 0.7.0 to reflect the
        dependency on the new NM and to separate it from the 0.6 branch.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3105 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-23 11:41:38 +00:00
Dan Williams
ac5206aa9c 2007-11-21 Dan Williams <dcbw@redhat.com>
* system-settings/*
		- Add Soren's system settings service.  Needs work for distros other
			than Fedora; the backends from NM should mostly migrate to here
			and be converted to GObjects



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3104 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-21 06:24:15 +00:00
Dan Williams
36650e4a24 Print out ap-scan value for easier debugging
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3103 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-21 05:57:54 +00:00
Dan Williams
f2b002c3de 2007-11-21 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-vpn-properties.c
		- (set_property): must deep-copy the given settings hash, otherwise
			double-free errors occur when the setting is disposed of



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3102 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-21 05:46:50 +00:00
Dan Williams
a2c202ed8d 2007-11-21 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-act-request.h
	  src/vpn-manager/nm-vpn-act-request.c
		- Remove; unused



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3101 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-21 05:23:44 +00:00
Dan Williams
af4dd78d6a 2007-11-20 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-utils.c
		- (nm_utils_convert_strv_to_string, nm_utils_convert_uint_array_to_string,
		   nm_utils_convert_ip4_addr_struct_array_to_string,
		   nm_utils_register_value_transformations): print out the readable
			values of more types of properties of NMSettings subclasses



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3100 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-20 22:15:15 +00:00
Dan Williams
d99a3945a9 Fix valgrind warning
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3099 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-20 22:13:09 +00:00
Dan Williams
cb2af424de 2007-11-20 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-ip4-config.c
		- (ip4_addresses_from_gvalue, ip4_addresses_to_gvalue,
		   nm_setting_ip4_config_class_init): apparently dbus-glib can't
			marshal GValueArrays inside collections, so switch to types that it
			can actually marshal/demarshal



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3098 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-20 20:48:18 +00:00
Yannig Marchegay
ae55c1df8f Updated Occitan translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3097 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-20 17:26:50 +00:00
Dan Williams
954b5569a8 2007-11-16 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-wireless-security.c
		- (verify_tls, verify_ttls, verify_identity, verify_nai): do some
			minimal verification of EAP methods too
		- (verify): verify phase1 eap methods too



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3096 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-19 18:13:48 +00:00
Dan Williams
75db31664e Warning fixups
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3095 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 21:45:04 +00:00
Dan Williams
f7ebfe5640 2007-11-15 Dan Williams <dcbw@redhat.com>
* properties/nm-vpnc.c
		- Fixup for NMSettingConnection 'name' -> 'id' changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3094 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 21:31:22 +00:00
Dan Williams
3408252251 2007-11-15 Dan Williams <dcbw@redhat.com>
* properties/nm-vpnc.c
		- Fixup for NMSettingConnection 'name' -> 'id' changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3093 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 21:29:54 +00:00
Dan Williams
441a7ad8fc 2007-11-15 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device.h
	  libnm-glib/nm-device.c
		- (nm_device_get_product, nm_device_get_vendor): should be returning
			const char *



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3092 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 21:24:50 +00:00
Dan Williams
da6ef40b95 2007-11-15 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device.c
		- (get_product_and_vendor): don't try to free things that should be
			freed



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3091 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 21:13:14 +00:00
Dan Williams
13e564174d 2007-11-15 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c
		- (nm_ethernet_address_is_valid): unbreak previous fix



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3090 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 20:33:08 +00:00
Dan Williams
18240ce65d Cleanup; don't need to initialize it here
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3089 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 20:32:42 +00:00
Dan Williams
fa68b119c0 2007-11-15 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-config.c
		- (nm_supplicant_config_add_setting_wireless_security): handle PEAP
			options



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3088 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 20:25:19 +00:00
Dan Williams
a2a2fa44fe Fix valgrind reported errors reading past the end of the buffer
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3087 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 20:20:23 +00:00
Dan Williams
da4f9c0df2 2007-11-15 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c
		- (nm_ethernet_address_is_valid): fix style, clarify
		- (nm_ethernet_addresses_are_equal): don't try to memcmp NULLs

	* src/nm-device-802-11-wireless.c
		- (get_active_ap): handle failure from nm_device_802_11_wireless_get_bssid()
		- (nm_device_802_11_wireless_get_ssid,
		   nm_device_802_11_wireless_get_bssid,
		   nm_device_802_11_wireless_get_bitrate): zero the wreq structure
		   	before calling the ioctl; fixes valgrind-reported jump depends on
			uninitialized value errors



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3086 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 18:33:17 +00:00
Dan Williams
53f271805f 2007-11-15 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (nm_setting_to_hash, one_property_cb): revert previous commit, it's
			unecessary to serialize 'name'

	* src/nm-activation-request.c
		- (get_secrets_cb): fix cases where a full NMSetting is returned from
			the GetSecrets call



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3085 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 16:57:33 +00:00
Dan Williams
dcc6b2a9c0 2007-11-15 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-connection.h
	  libnm-util/nm-setting-connection.c
		- Rename the 'name' property to 'id', because it conflicted with the
			NMSetting superclass' 'name' property.

	* libnm-util/nm-setting.c
		- (nm_setting_to_hash): serialize the 'name' property
		- (one_property_cb): ignore 'name' on deserialization of a connection

	* src/nm-device-802-11-wireless.c
	  src/vpn-manager/nm-vpn-connection.c
	  src/NetworkManagerPolicy.c
		- Fix up for NMSettingConnection 'name'->'id' changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3084 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-15 15:52:42 +00:00
Dan Williams
29c735dca4 Warning fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3083 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-13 21:03:37 +00:00
Dan Williams
a2b0d04517 2007-11-13 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device-802-11-wireless.h
	  libnm-glib/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_get_hw_address): return should be const

	* test/nm-tool.c
	  libnm-glib/libnm-glib-test.c
		- Fixes for above change



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3082 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-13 20:03:31 +00:00
Dan Williams
bc17ea6d0a 2007-11-12 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-settings-verify.c
		- Allow fragment_size option

	* src/supplicant-manager/nm-supplicant-settings-verify.c
		- (nm_supplicant_config_add_setting_wireless_security): use a lower
			EAP fragment size than the default to help some TLS connections



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3081 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-13 04:04:47 +00:00
Dan Williams
40360167c6 2007-11-12 Dan Williams <dcbw@redhat.com>
Make certs actually work.  The private key is now a secret, and should be
	decrypted when requested by NM.  The private key and phase2 private key
	passwords are no longer interesting to NM because they should be used by
	the settings service to decrypt the private key itself before passing it
	to NM, and hence have been removed as fields.

	* libnm-util/nm-setting-wireless-security.h
	  libnm-util/nm-setting-wireless-security.c
		- Remove private-key-passwd and phase2-private-key-passwd from
			properties
		- (need_secrets_password, need_secrets_eappsk, need_secrets_sim,
		   need_secrets): use property #defines instead strings to keep things
			consistent
		- (need_secrets_tls): if a client certificate is present but no
			private key, request the private key
		- (set_property, get_property, nm_setting_wireless_security_class_init):
			remove private key password stuff, mark private keys as secret

	* src/supplicant-manager/nm-supplicant-settings-verify.c
		- Remove private_key_passwd and private_key2_passwd from opt_table



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3080 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-13 02:16:00 +00:00
Saleem Abdulrasool
499b11e9c2 fix compilation for Gentoo backend
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3079 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-12 02:54:18 +00:00
Dan Williams
5523faaeb8 2007-11-09 Dan Williams <dcbw@redhat.com>
Fix vpn-properties setting update_secrets call for new NMSetting stuff.
	Since the vpn-properties are managed and known by the VPN daemons themselves,
	libnm-util doesn't know what's secret and what's in the setting's 'data'
	member.

	* libnm-util/nm-setting.h
	  libnm-util/nm-setting.c
		- Add the ability for subclasses to override update_one_secret

	* libnm-util/nm-setting-vpn-properties.c
		- Override update_one_secret and just copy the values into the
			internal table



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3078 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-09 19:41:20 +00:00
Dan Williams
65b9233068 2007-11-09 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-settings.h
	  libnm-glib/nm-settings.c
		- (nm_settings_new_error): remove
		- (nm_settings_error_quark): add; instead of nm_settings_new_error,
			clients should use g_set_error() with NM_SETTINGS_ERROR



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3077 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-09 16:24:39 +00:00
Dan Williams
0b21c3c8c2 2007-11-09 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-config.c
		- (nm_supplicant_config_add_setting_wireless_security): private key
			passwords are never sent to wpa_supplicant, because the supplicant
			should never be reading random files from the disk.  Clients like
			the applet are required to decrypt the private keys and send NM
			the decrypted blobs.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3076 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-09 16:23:39 +00:00
Dan Williams
ef8c94683d Group phase2 private key with phase1 private key
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3075 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-09 16:21:24 +00:00
Dan Williams
de6ab3b7c7 Group phase2 private key with phase1 private key; handle pre-decrypted private keys
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3074 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-09 16:18:19 +00:00
Dan Williams
46cac7cfaf 2007-11-08 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-wireless-security.h
	  libnm-util/nm-setting-wireless-security.c
		- Add 'private-key-decrypted' and 'phase2-private-key-decrypted'
			members to 802-11-wireless-security structure.  This should be used
			to indicate that the values in private-key and phase2-private-key
			are already decrypted by the user agent, and that no
			private-key-passwd or phase2-private-key-passwd should be expected.
			It is not meant to be a stored configuration value, but meant to
			be set when the conneciton is sent to NM over dbus.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3073 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-08 19:27:28 +00:00
Dan Williams
a247281168 2007-11-08 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-connection.h
	  libnm-util/nm-connection.c
		- (nm_connection_need_secrets): add argument to return hints

	* src/nm-device-802-11-wireless.c
		- (link_timeout_cb, supplicant_connection_timeout_cb,
		   real_act_stage2_config, real_act_stage4_ip_config_timeout): handle
			nm_connection_need_secrets() change



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3072 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-08 19:25:00 +00:00
Dan Williams
df921e74c5 2007-11-07 Dan Williams <dcbw@redhat.com>
* auth-dialog/main.c
	  properties/nm-vpnc.c
	  src/nm-vpnc-service.c
		- Fix for new NMSetting API changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3071 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-07 18:22:04 +00:00