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
This commit is contained in:
Dan Williams 2007-11-15 20:25:19 +00:00
parent a2a2fa44fe
commit fa68b119c0
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,9 @@
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
2007-11-15 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c

View file

@ -507,8 +507,29 @@ nm_supplicant_config_add_setting_wireless_security (NMSupplicantConfig * self,
if ( (strcmp (setting->key_mgmt, "ieee8021x") == 0)
|| (strcmp (setting->key_mgmt, "wpa-eap") == 0)) {
char *phase1 = NULL;
if (!nm_supplicant_config_add_option (self, "fragment_size", "1300", -1, FALSE))
return FALSE;
if (setting->phase1_peapver) {
if (phase1)
phase1 = g_strdup_printf ("%s peapver=%s", phase1, setting->phase1_peapver);
else
phase1 = g_strdup_printf ("peapver=%s", setting->phase1_peapver);
}
if (setting->phase1_peaplabel) {
if (phase1)
phase1 = g_strdup_printf ("%s peaplabel=%s", phase1, setting->phase1_peaplabel);
else
phase1 = g_strdup_printf ("peaplabel=%s", setting->phase1_peaplabel);
}
if (phase1) {
ADD_STRING_VAL (phase1, "phase1", FALSE, FALSE, FALSE);
g_free (phase1);
}
}
return TRUE;