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:
Robert Love 2006-03-21 15:22:55 +00:00 committed by Robert Love
parent 461adafd7a
commit f842f234c5
2 changed files with 22 additions and 5 deletions

View file

@ -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>
* src/backends/NetworkManagerSuSE.c: Do "rcypbind reload" to send the

View file

@ -545,8 +545,11 @@ found:
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);
hash = ieee_802_11_cipher_hash (cipher, buf, key);
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
nm_ap_set_security (ap, NM_AP_SECURITY (security));
if (hash)
{
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
nm_ap_set_security (ap, NM_AP_SECURITY (security));
}
ieee_802_11_cipher_unref (cipher);
g_object_unref (G_OBJECT (security));
@ -594,14 +597,23 @@ found:
}
else
{
char **keyv;
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);
}
hash = ieee_802_11_cipher_hash (cipher, buf, real_key);
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
nm_ap_set_security (ap, NM_AP_SECURITY (security));
if (hash)
{
nm_ap_security_set_key (NM_AP_SECURITY (security), hash, strlen (hash));
nm_ap_set_security (ap, NM_AP_SECURITY (security));
}
ieee_802_11_cipher_unref (cipher);
g_object_unref (G_OBJECT (security));