Commit Graph

3749 Commits

Author SHA1 Message Date
Dan Williams
43c782ac7d 2008-11-17 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg-fedora/reader.c
		- (read_mac_address): clean up
		- (make_wireless_setting): pass NULL array to read_mac_address() like it
			expects

	* system-settings/plugins/ifcfg-fedora/plugin.c
		- (read_one_connection): don't segfault on NULL errors



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4294 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-17 18:39:20 +00:00
Dan Williams
87452f1183 Fix undefined variable error on BE arches
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4293 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 23:04:06 +00:00
Dan Williams
8ec6748452 Tag 0.7.0-rc2
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4291 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 20:47:24 +00:00
Dan Williams
3f0d6cd233 2008-11-14 Dan Williams <dcbw@redhat.com>
Handle gateways on different subnets

	* src/NetworkManagerSystem.c
		- (add_ip4_route_to_gateway): gateway route should be link scope and
			a host route
		- (replace_default_ip4_route): use a destination address too; gateway
			address should be /0; don't leak the gateway route object



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4290 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 20:42:38 +00:00
Dan Williams
0efa714d50 2008-11-14 Dan Williams <dcbw@redhat.com>
* libnm-glib/libnm_glib.ver
	  libnm-glib/nm-dbus-settings-system.c
	  libnm-glib/nm-dbus-settings-system.h
		- Add libnm-glib bits for CanModify



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4289 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 19:54:10 +00:00
Jorge Gonzalez
afe017c772 Updated Spanish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4288 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 19:36:28 +00:00
Jorge Gonzalez
c0da26e08e Updated Spanish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4287 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 19:35:53 +00:00
Dan Williams
c531e1cd9e 2008-11-14 Dan Williams <dcbw@redhat.com>
* introspection/nm-settings-system.xml
	  system-settings/src/dbus-settings.c
	  system-settings/src/dbus-settings.h
		- Add a "CanModify" property to indicate if any plugins support
			connection modification



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4286 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 18:24:38 +00:00
Dan Williams
7118676968 2008-11-14 Dan Williams <dcbw@redhat.com>
Relicense libnm-glib to LGPLv2+ with agreement from contributors



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4285 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 17:41:16 +00:00
Dan Williams
c37695009f 2008-11-14 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
	  properties/nm-vpnc.c
		- Switch default NAT Traversal mode back to Cisco UDP until the plugin
			natively supports more vendors (bgo #512675)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4284 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 17:04:29 +00:00
Dan Williams
a4d0b07484 2008-11-14 Dan Williams <dcbw@redhat.com>
Add password types to better support OTP/token use-cases, and for people
	who want to be asked every time for one or both passwords (bgo #346547).
	Heavily based on a patch from Mathieu Trudel-Lapierre <mathieu.tl@gmail.com>

	* common-gnome/keyring-helpers.c
	  common-gnome/keyring-helpers.h
		- (keyring_helpers_get_one_secret): accessor to get just one secret

	* auth-dialog/gnome-two-password-dialog.c
	  auth-dialog/gnome-two-password-dialog.h
		- (gnome_two_password_dialog_focus_password,
		   gnome_two_password_dialog_focus_password_secondary): add functions to
			focus specific password entries

	* auth-dialog/Makefile.am
	  auth-dialog/main.c
		- Retrieve password types from GConf, and handle them correctly when
			asking the user for passwords

	* properties/nm-vpnc-dialog.glade
	  properties/nm-vpnc.c
		- Add combo boxes for both passwords with options for saving, asking,
			or not requiring the password
		- (fill_vpn_passwords): handle passwords individually
		- (pw_type_changed_helper): disable the password entry when the user
			picks "Not Required" or "Always Ask"
		- (init_one_pw_combo, init_plugin_ui): set up password combos
		- (handle_one_pw_type, update_connection): save password type
		- (save_one_password): handle saving/clearing passwords based on what
			each password's type is

	* src/nm-vpnc-service.c
	  src/nm-vpnc-service.h
		- (validate_one_property): ignore password type properties
		- (nm_vpnc_config_write, write_one_property): don't write secrets if
			they aren't used
		- (real_need_secrets): only ask for secrets when needed



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4283 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 16:55:59 +00:00
Dan Williams
a2967685db 2008-11-14 Dan Williams <dcbw@redhat.com>
* vpn-manager/nm-vpn-connection.c
		- (plugin_state_changed): clear VPN secrets on error to ensure they
			are always requested from the settings service (rh #429287)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4282 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-14 15:23:08 +00:00
Dan Williams
543d9b995c 2008-11-13 Dan Williams <dcbw@redhat.com>
* libnm-util/crypto.c
		- (crypto_get_private_key_data): fix bad initial arg type checking
			from pkcs#12 patch



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4281 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-13 21:47:52 +00:00
Dan Williams
e2f65ce12a 2008-11-13 Dan Williams <dcbw@redhat.com>
Add support for PKCS#12 private keys (bgo #558982)

	* libnm-util/crypto.c
	  libnm-util/crypto.h
		- (parse_old_openssl_key_file): rename from parse_key_file(); adapt to
			take a GByteArray instead of a filename
		- (file_to_g_byte_array): handle private key files too
		- (decrypt_key): take a GByteArray rather than data + len
		- (crypto_get_private_key_data): refactor crypto_get_private_key() into
			one function that takes a filename, and one that takes raw data;
			detect pkcs#12 files as well
		- (crypto_load_and_verify_certificate): detect file type
		- (crypto_is_pkcs12_data, crypto_is_pkcs12_file): add pkcs#12 detection
			functions

	* libnm-util/crypto_gnutls.c
		- (crypto_decrypt): take GByteArray rather than data + len; fix a bug
			whereby tail padding was incorrectly handled, leading to erroneous
			successes when trying to decrypt the data
		- (crypto_verify_cert): rework somewhat
		- (crypto_verify_pkcs12): validate pkcs#12 keys

	* libnm-util/crypto_nss.c
		- (crypto_init): enable various pkcs#12 ciphers
		- (crypto_decrypt): take a GByteArray rather than data + len
		- (crypto_verify_cert): clean up
		- (crypto_verify_pkcs12): validate pkcs#12 keys

	* libnm-util/test-crypto.c
		- Handle pkcs#12 keys

	* libnm-util/nm-setting-8021x.c
	  libnm-util/nm-setting-8021x.h
	  libnm-util/libnm-util.ver
		- Add two new properties, 'private-key-password' and
			'phase2-private-key-password', to be used in conjunction with
			pkcs#12 keys
		- (nm_setting_802_1x_set_ca_cert_from_file,
		   nm_setting_802_1x_set_client_cert_from_file,
		   nm_setting_802_1x_set_phase2_ca_cert_from_file,
		   nm_setting_802_1x_set_phase2_client_from_file): return certificate
			type
		- (nm_setting_802_1x_get_private_key_password,
		   nm_setting_802_1x_get_phase2_private_key_password): return private
			key passwords
		- (nm_setting_802_1x_set_private_key_from_file,
		   nm_setting_802_1x_set_phase2_private_key_from_file): set the private
			key from a file, and update the private key password at the same time
		- (nm_setting_802_1x_get_private_key_type,
		   nm_setting_802_1x_get_phase2_private_key_type): return the private
			key type

	* src/supplicant-manager/nm-supplicant-settings-verify.c
		- Whitelist private key passwords

	* src/supplicant-manager/nm-supplicant-config.c
		- (nm_supplicant_config_add_setting_8021x): for pkcs#12 private keys,
			add the private key password to the supplicant config, but do not
			add the client certificate (as required by wpa_supplicant)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4280 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-13 21:19:08 +00:00
Tambet Ingo
e4ae149b37 2008-11-12 Tambet Ingo <tambet@gmail.com>
* system-settings/plugins/keyfile/nm-keyfile-connection.c (copy_one_secret)
	(add_secrets): Don't add empty secrets to the secrets hash table.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4279 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-12 13:20:06 +00:00
Dan Williams
26573a3599 2008-11-07 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-wireless.c
		- (nm_setting_wireless_get_seen_bssid): fix bug from accessor conversion
			that cased this function to return garbage, breaking hidden AP
			detection



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4278 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-07 15:55:08 +00:00
Dan Williams
214114fb2d 2008-11-07 Dan Williams <dcbw@redhat.com>
Fix deletion of VPN gateway route on DHCP renew (bgo #558133)

	* src/NetworkManagerSystem.c
	  src/NetworkManagerSystem.h
		- (nm_system_device_set_ip4_route): return the route that was added
		- (nm_system_add_ip4_vpn_gateway_route): make add_vpn_gateway_route()
			public, clean up, and return the route that was added
		- (nm_system_apply_ip4_config): remove VPN related stuff to simplify,
			since nm_system_add_ip4_vpn_gateway_route() is now available; add
			flags to allow only certain attributes of the NMIP4Config to be
			applied

	* src/nm-device.c
		- (handle_dhcp_lease_change): don't touch the DHCP4 config on failure
		- (nm_device_set_ip4_config): use nm_ip4_config_diff() to only apply
			what's really changed between the old and new configs; don't export
			the new IP4 config on failure; always send the DNS info to the
			named manager

	* src/vpn-manager/nm-vpn-connection.c
		- (device_ip4_config_changed, nm_vpn_connection_new, dispose): track the
			parent device's IP4Config and re-add the VPN gateway route when it
			changes
		- (nm_vpn_connection_ip4_config_get): add the VPN gateway route (since
			nm_system_apply_ip4_config() no longer does) and cache it for later
		- (connection_state_changed): move cleanup code to its own function
		- (vpn_cleanup): delete any previously added VPN gateway route; and
			re-apply the parent device's addresses and routes using
			nm_system_apply_ip4_config(), not nm_device_set_ip4_config()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4277 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-07 13:57:39 +00:00
Og B. Maciel
5fdb74935c Updated Brazilian Portuguese translation.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4276 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-07 13:55:29 +00:00
Dan Williams
9340a4122f 2008-11-07 Dan Williams <dcbw@redhat.com>
* src/nm-ip4-config.c
	  src/nm-ip4-config.h
		- (nm_ip4_config_diff): new function; return the difference between two
			IP4 configs
		- (nm_ip4_config_compare): change into nm_ip4_config_diff



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4275 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-07 13:43:15 +00:00
Dan Williams
40ea311602 Remove old shared stuff that isn't implemented
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4274 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-07 03:05:56 +00:00
Dan Williams
d001936125 Doc updates
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4273 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-06 16:04:49 +00:00
Dan Williams
db77f88bfb D-Bus API doc fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4272 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-06 15:56:59 +00:00
Dan Williams
3c8494753d 2008-11-05 Dan Williams <dcbw@redhat.com>
* nm-ip4-config.c
	  nm-ip4-config.h
		- (nm_ip4_config_compare): compare two IP4 configs



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4271 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-06 04:04:51 +00:00
Dan Williams
bc971b799b Alphabetize route and address functions; whitelist nm_ip4_address_compare and nm_ip4_route_compare
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4270 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-06 04:00:52 +00:00
Dan Williams
1259398b68 Address (if it exists) was previously validated
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4269 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-05 19:06:06 +00:00
Dan Williams
0f4c227c1f 2008-11-05 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (update_etc_hosts): only add newline if not the last line of the file
			(Jonathan Miner)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4268 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-05 17:43:45 +00:00
Dan Williams
1b075023fa 2008-11-05 Dan Williams <dcbw@redhat.com>
* src/dhcp-manager/nm-dhcp-dhclient.c
		- (get_leasefile_for_iface): move lease files back to where dhclient
			puts them



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4267 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-05 17:18:13 +00:00
Michael Biebl
a3bce59091 Do also not hard code the pid file location.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4266 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-05 16:50:30 +00:00
Michael Biebl
3a2eb0bbcb Do not hard code the path to the NetworkManager binary
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4265 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-05 16:42:54 +00:00
Michael Biebl
bfccc6273b 2008-11-05 Michael Biebl <mbiebl@gmail.com>
* initscripts/Debian/NetworkManager
		- Update to what Debian is actually using



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4264 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-05 16:08:52 +00:00
Tambet Ingo
98028869cb 2008-11-05 Tambet Ingo <tambet@gmail.com>
* libnm-util/nm-setting-8021x.c: Verify PEAP settings as well.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4263 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-05 07:09:55 +00:00
Dan Williams
621feb75b0 Update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4262 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 22:57:45 +00:00
Dan Williams
5ce71eb111 Update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4261 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 22:55:32 +00:00
Dan Williams
ea6edd8b8e Update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4260 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 22:36:51 +00:00
Dan Williams
5128849d79 Update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4259 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 22:32:57 +00:00
Dan Williams
a505d425d5 Update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4258 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 22:31:10 +00:00
Dan Williams
525171d0d0 update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4257 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 22:30:08 +00:00
Dan Williams
43e7228cad Make which config is which clearer
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4256 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 22:26:49 +00:00
Dan Williams
581e32452d 2008-11-04 Dan Williams <dcbw@redhat.com>
Fix bgo #559152

	* src/nm-pptp-pppd-plugin.c
		- (nm_ip_up): remote peer's address is the PTP address, not the external
			gateway address

	* src/nm-pptp-service.c
		- (construct_pppd_args): allow easier PPP debugging
		- (service_ip4_config_cb): insert the VPN gateway's public IP address
			into the IP4 config
		- (real_connect, real_disconnect, state_changed_cb, dispose): cache
			the connection so that the VPN gateway's public IP address can be
			retrieved from it when the IP4 config comes back from pppd



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4255 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-04 19:06:55 +00:00
Dan Williams
201fd4ed8e 2008-11-03 Dan Williams <dcbw@redhat.com>
* system-settings/src/main.c
		- (add_default_dhcp_connection): make the fallback connection read-only

	* libnm-glib/nm-settings.c
	  libnm-glib/nm-settings.h
		- Add detailed errors
		- (impl_exported_connection_update, impl_exported_connection_delete):
			return an error if the connection is read-only

	* system-settings/plugins/ifupdown/nm-ifupdown-connection.c
	  system-settings/plugins/keyfile/nm-keyfile-connection.c
	  system-settings/src/main.c
		- Use more detailed errors

	* system-settings/src/nm-system-config-error.c
	  system-settings/src/nm-system-config-error.h
	  system-settings/src/dbus-settings.c
		- Remove NM_SYSCONFIG_SETTINGS_ERROR_INVALID_CONNECTION, replaced by
			NM_SETTINGS_ERROR_INVALID_CONNECTION



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4254 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 22:32:49 +00:00
Dan Williams
d576e409d4 Ignore case
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4253 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 19:36:40 +00:00
Dan Williams
8d3f93055f 2008-11-03 Dan Williams <dcbw@redhat.com>
Patch from Carlos Martín Nieto <carlos@cmartin.tk> (and me) (bgo #547582)

	* properties/nm-vpnc.c
		- (import, fill_vpn_passwords): import passwords too
		- (decrypt_cisco_key, child_stdout_data_cb, decrypt_child_finished_cb):
			call out to cisco-decrypt if present to de-obfuscate the group
			password



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4252 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 18:53:27 +00:00
Dan Williams
e07a6743e8 Update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4251 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 16:08:13 +00:00
Dan Williams
19305e2556 Update license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4250 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 16:05:11 +00:00
Dan Williams
7a0a9809dc Normalize license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4249 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 04:45:50 +00:00
Dan Williams
dd6c440c44 Normalize license headers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4248 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 04:22:46 +00:00
Dan Williams
24e50f7f6f 2008-11-02 Dan Williams <dcbw@redhat.com>
* Add license headers to everything in src/



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4247 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-03 04:13:42 +00:00
Dan Williams
10ab020b29 2008-11-02 Dan Williams <dcbw@redhat.com>
* Tag 0.7.0-rc1



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4245 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-02 22:56:46 +00:00
Dan Williams
c509752fde 2008-11-02 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c
		- (nm_ap_new_fake_from_connection): treat only lack of a wireless security
			setting as unencrypted; fixes a bug where NM wouldn't ask for new
			secrets when connecting to an encrypted network failed



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4244 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-02 22:56:10 +00:00
Dan Williams
4fa7c20784 2008-11-01 Dan Williams <dcbw@redhat.com>
* de.po: Updated German translation (Hauke Mehrtens, bgo #557458)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4243 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-01 04:19:19 +00:00