2006-03-21 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Strip hypens from hex key in configuration file. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1625 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2006-03-21 Robert Love <rml@novell.com>
|
||||||
|
|
||||||
|
* src/backends/NetworkManagerSuSE.c: Strip hypens from hex key in
|
||||||
|
configuration file.
|
||||||
|
|
||||||
2006-03-17 Robert Love <rml@novell.com>
|
2006-03-17 Robert Love <rml@novell.com>
|
||||||
|
|
||||||
* src/backends/NetworkManagerSuSE.c: Do "rcypbind reload" to send the
|
* src/backends/NetworkManagerSuSE.c: Do "rcypbind reload" to send the
|
||||||
|
@@ -545,8 +545,11 @@ found:
|
|||||||
nm_ap_set_capabilities (ap, NM_802_11_CAP_PROTO_WPA);
|
nm_ap_set_capabilities (ap, NM_802_11_CAP_PROTO_WPA);
|
||||||
security = nm_ap_security_wpa_psk_new_from_ap (ap, NM_AUTH_TYPE_WPA_PSK_AUTO);
|
security = nm_ap_security_wpa_psk_new_from_ap (ap, NM_AUTH_TYPE_WPA_PSK_AUTO);
|
||||||
hash = ieee_802_11_cipher_hash (cipher, buf, key);
|
hash = ieee_802_11_cipher_hash (cipher, buf, key);
|
||||||
|
if (hash)
|
||||||
|
{
|
||||||
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
|
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
|
||||||
nm_ap_set_security (ap, NM_AP_SECURITY (security));
|
nm_ap_set_security (ap, NM_AP_SECURITY (security));
|
||||||
|
}
|
||||||
|
|
||||||
ieee_802_11_cipher_unref (cipher);
|
ieee_802_11_cipher_unref (cipher);
|
||||||
g_object_unref (G_OBJECT (security));
|
g_object_unref (G_OBJECT (security));
|
||||||
@@ -594,14 +597,23 @@ found:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
char **keyv;
|
||||||
|
|
||||||
cipher = cipher_wep128_hex_new ();
|
cipher = cipher_wep128_hex_new ();
|
||||||
real_key = key;
|
|
||||||
|
keyv = g_strsplit (key, "-", 0);
|
||||||
|
real_key = g_strjoinv (NULL, keyv);
|
||||||
|
g_strfreev (keyv);
|
||||||
|
free (key);
|
||||||
}
|
}
|
||||||
security = nm_ap_security_wep_new_from_ap (ap, IW_AUTH_CIPHER_WEP104);
|
security = nm_ap_security_wep_new_from_ap (ap, IW_AUTH_CIPHER_WEP104);
|
||||||
}
|
}
|
||||||
hash = ieee_802_11_cipher_hash (cipher, buf, real_key);
|
hash = ieee_802_11_cipher_hash (cipher, buf, real_key);
|
||||||
|
if (hash)
|
||||||
|
{
|
||||||
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
|
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
|
||||||
nm_ap_set_security (ap, NM_AP_SECURITY (security));
|
nm_ap_set_security (ap, NM_AP_SECURITY (security));
|
||||||
|
}
|
||||||
|
|
||||||
ieee_802_11_cipher_unref (cipher);
|
ieee_802_11_cipher_unref (cipher);
|
||||||
g_object_unref (G_OBJECT (security));
|
g_object_unref (G_OBJECT (security));
|
||||||
|
Reference in New Issue
Block a user