2008-05-20 Dan Williams <dcbw@redhat.com>

* system-settings/plugins/ifcfg-fedora/reader.c
		- (add_one_wep_key): handle ASCII WEP keys too



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3677 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-05-20 21:27:33 +00:00
parent 1507022785
commit ef08d804ad
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-05-20 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg-fedora/reader.c
- (add_one_wep_key): handle ASCII WEP keys too
2008-05-19 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg-fedora/reader.c

View file

@ -355,9 +355,10 @@ add_one_wep_key (shvarFile *ifcfg,
p++;
}
key = g_strdup (value);
} else if (strlen (value) == 5 || strlen (value) == 13) {
} else if ( strncmp (value, "s:", 2)
&& (strlen (value) == 7 || strlen (value) == 15)) {
/* ASCII passphrase */
char *p = value;
char *p = value + 2;
while (*p) {
if (!isascii ((int) (*p))) {