* libnm-util/cipher-wep-passphrase.c: Don't need those forward

declarations.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1612 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love 2006-03-15 20:49:49 +00:00
parent 7d8af87f15
commit 71a1e7fccf

View file

@ -33,10 +33,6 @@
#endif
static char * cipher_wep128_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input);
static char * cipher_wep64_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input);
static char * cipher_wep_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const char *input, int req_keylen)
{
char md5_data[65];
@ -66,6 +62,13 @@ static char * cipher_wep_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const
return (cipher_bin2hexstr ((const char *) &digest, 16, req_keylen));
}
static char * cipher_wep128_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input)
{
g_return_val_if_fail (cipher != NULL, NULL);
g_return_val_if_fail (input != NULL, NULL);
return cipher_wep_passphrase_hash_func (cipher, input, 26);
}
IEEE_802_11_Cipher * cipher_wep128_passphrase_new (void)
{
@ -81,12 +84,12 @@ IEEE_802_11_Cipher * cipher_wep128_passphrase_new (void)
return cipher;
}
static char * cipher_wep128_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input)
static char * cipher_wep64_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input)
{
g_return_val_if_fail (cipher != NULL, NULL);
g_return_val_if_fail (input != NULL, NULL);
return cipher_wep_passphrase_hash_func (cipher, input, 26);
return cipher_wep_passphrase_hash_func (cipher, input, 10);
}
IEEE_802_11_Cipher * cipher_wep64_passphrase_new (void)
@ -103,11 +106,3 @@ IEEE_802_11_Cipher * cipher_wep64_passphrase_new (void)
return cipher;
}
static char * cipher_wep64_passphrase_hash_func (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input)
{
g_return_val_if_fail (cipher != NULL, NULL);
g_return_val_if_fail (input != NULL, NULL);
return cipher_wep_passphrase_hash_func (cipher, input, 10);
}