aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-08-16 19:57:50 +0300
committerJouni Malinen <j@w1.fi>2009-08-16 19:57:50 +0300
commit8ef168311557982dd6b88cfcf26453aeb4dad6ac (patch)
treeb5503aea776a9dcafcb1cdc6f08e4140662a1125 /src/eapol_supp
parent1d5ed36e7c321c008528ae31f867bbe06044dfa2 (diff)
downloadexternal_wpa_supplicant_8_ti-8ef168311557982dd6b88cfcf26453aeb4dad6ac.zip
external_wpa_supplicant_8_ti-8ef168311557982dd6b88cfcf26453aeb4dad6ac.tar.gz
external_wpa_supplicant_8_ti-8ef168311557982dd6b88cfcf26453aeb4dad6ac.tar.bz2
Remove rc4() wrapper
This is not really of that much use since rc4_skip() can be used as easily. In addition, rc4 has caused some symbol conflicts in the past, so it is easier to live without that as an exported symbol.
Diffstat (limited to 'src/eapol_supp')
-rw-r--r--src/eapol_supp/eapol_supp_sm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c
index e4c0700..58e6221 100644
--- a/src/eapol_supp/eapol_supp_sm.c
+++ b/src/eapol_supp/eapol_supp_sm.c
@@ -750,8 +750,8 @@ static void eapol_sm_processKey(struct eapol_sm *sm)
os_memcpy(ekey + IEEE8021X_KEY_IV_LEN, keydata.encr_key,
encr_key_len);
os_memcpy(datakey, key + 1, key_len);
- rc4(datakey, key_len, ekey,
- IEEE8021X_KEY_IV_LEN + encr_key_len);
+ rc4_skip(ekey, IEEE8021X_KEY_IV_LEN + encr_key_len, 0,
+ datakey, key_len);
wpa_hexdump_key(MSG_DEBUG, "EAPOL: Decrypted(RC4) key",
datakey, key_len);
} else if (key_len == 0) {