mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 09:04:55 +00:00
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:
parent
1507022785
commit
ef08d804ad
|
@ -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
|
||||
|
|
|
@ -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))) {
|
||||
|
|
Loading…
Reference in a new issue