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:
@@ -58,12 +58,12 @@ IEEE_802_11_Cipher * cipher_wep128_ascii_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_ASCII_INPUT_SIZE;
|
||||
cipher->input_max = WEP128_ASCII_INPUT_SIZE;
|
||||
cipher->cipher_hash_func = cipher_wep128_ascii_hash_func;
|
||||
cipher->cipher_input_validate_func = cipher_default_validate_func;
|
||||
ieee_802_11_cipher_ref (cipher);
|
||||
|
||||
return cipher;
|
||||
}
|
||||
@@ -82,12 +82,12 @@ IEEE_802_11_Cipher * cipher_wep64_ascii_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_ASCII_INPUT_SIZE;
|
||||
cipher->input_max = WEP64_ASCII_INPUT_SIZE;
|
||||
cipher->cipher_hash_func = cipher_wep64_ascii_hash_func;
|
||||
cipher->cipher_input_validate_func = cipher_default_validate_func;
|
||||
ieee_802_11_cipher_ref (cipher);
|
||||
|
||||
return cipher;
|
||||
}
|
||||
|
Reference in New Issue
Block a user