2005-12-21 Dan Williams <dcbw@redhat.com>

* test/libnm-util
		- Add some testcases for WEP ciphers


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1217 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2005-12-21 08:11:57 +00:00
parent c5ed5ba016
commit 29598dfdc0
14 changed files with 432 additions and 8 deletions

View File

@@ -120,12 +120,12 @@ IEEE_802_11_Cipher * cipher_wep128_hex_new (void)
{
IEEE_802_11_Cipher * cipher = g_malloc0 (sizeof (IEEE_802_11_Cipher));
cipher->refcount = 1;
cipher->we_cipher = IW_AUTH_CIPHER_WEP104;
cipher->input_min = WEP128_HEX_INPUT_SIZE;
cipher->input_max = WEP128_HEX_INPUT_SIZE;
cipher->cipher_hash_func = cipher_wep128_hex_hash_func;
cipher->cipher_input_validate_func = cipher_default_validate_func;
ieee_802_11_cipher_ref (cipher);
return cipher;
}
@@ -144,12 +144,12 @@ IEEE_802_11_Cipher * cipher_wep64_hex_new (void)
{
IEEE_802_11_Cipher * cipher = g_malloc0 (sizeof (IEEE_802_11_Cipher));
cipher->refcount = 1;
cipher->we_cipher = IW_AUTH_CIPHER_WEP40;
cipher->input_min = WEP64_HEX_INPUT_SIZE;
cipher->input_max = WEP64_HEX_INPUT_SIZE;
cipher->cipher_hash_func = cipher_wep64_hex_hash_func;
cipher->cipher_input_validate_func = cipher_default_validate_func;
ieee_802_11_cipher_ref (cipher);
return cipher;
}