mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
eapol: snonce not needed in create_ptk_4_of_4
This commit is contained in:
parent
9c65772551
commit
bf42e3e7a3
@ -399,9 +399,11 @@ struct eapol_key *eapol_create_ptk_2_of_4(
|
|||||||
struct eapol_key *eapol_create_ptk_4_of_4(
|
struct eapol_key *eapol_create_ptk_4_of_4(
|
||||||
enum eapol_protocol_version protocol,
|
enum eapol_protocol_version protocol,
|
||||||
enum eapol_key_descriptor_version version,
|
enum eapol_key_descriptor_version version,
|
||||||
uint64_t key_replay_counter,
|
uint64_t key_replay_counter)
|
||||||
const uint8_t snonce[])
|
|
||||||
{
|
{
|
||||||
|
uint8_t snonce[32];
|
||||||
|
|
||||||
|
memset(snonce, 0, sizeof(snonce));
|
||||||
return eapol_create_common(protocol, version, true, key_replay_counter,
|
return eapol_create_common(protocol, version, true, key_replay_counter,
|
||||||
snonce, 0, NULL);
|
snonce, 0, NULL);
|
||||||
}
|
}
|
||||||
|
@ -118,5 +118,4 @@ struct eapol_key *eapol_create_ptk_2_of_4(
|
|||||||
struct eapol_key *eapol_create_ptk_4_of_4(
|
struct eapol_key *eapol_create_ptk_4_of_4(
|
||||||
enum eapol_protocol_version protocol,
|
enum eapol_protocol_version protocol,
|
||||||
enum eapol_key_descriptor_version version,
|
enum eapol_key_descriptor_version version,
|
||||||
uint64_t key_replay_counter,
|
uint64_t key_replay_counter);
|
||||||
const uint8_t snonce[]);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user