3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-20 19:12:33 +01:00

eapol: snonce not needed in create_ptk_4_of_4

This commit is contained in:
Denis Kenzior 2015-02-24 10:52:12 -06:00
parent 9c65772551
commit bf42e3e7a3
2 changed files with 5 additions and 4 deletions

View File

@ -399,9 +399,11 @@ struct eapol_key *eapol_create_ptk_2_of_4(
struct eapol_key *eapol_create_ptk_4_of_4(
enum eapol_protocol_version protocol,
enum eapol_key_descriptor_version version,
uint64_t key_replay_counter,
const uint8_t snonce[])
uint64_t key_replay_counter)
{
uint8_t snonce[32];
memset(snonce, 0, sizeof(snonce));
return eapol_create_common(protocol, version, true, key_replay_counter,
snonce, 0, NULL);
}

View File

@ -118,5 +118,4 @@ struct eapol_key *eapol_create_ptk_2_of_4(
struct eapol_key *eapol_create_ptk_4_of_4(
enum eapol_protocol_version protocol,
enum eapol_key_descriptor_version version,
uint64_t key_replay_counter,
const uint8_t snonce[]);
uint64_t key_replay_counter);