3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-10 14:09:22 +01:00

eapol: Add __eapol_set_protocol_version

This commit is contained in:
Denis Kenzior 2015-02-24 11:11:40 -06:00
parent 87dc9543b2
commit 2ee8b8e56e
2 changed files with 6 additions and 0 deletions

View File

@ -493,6 +493,11 @@ void __eapol_set_get_nonce_func(eapol_get_nonce_func_t func)
get_nonce = func; get_nonce = func;
} }
void __eapol_set_protocol_version(enum eapol_protocol_version version)
{
protocol_version = version;
}
bool eapol_init() bool eapol_init()
{ {
state_machines = l_hashmap_new(); state_machines = l_hashmap_new();

View File

@ -129,6 +129,7 @@ struct eapol_key *eapol_create_ptk_4_of_4(
void __eapol_set_tx_packet_func(eapol_tx_packet_func_t func); void __eapol_set_tx_packet_func(eapol_tx_packet_func_t func);
void __eapol_set_get_nonce_func(eapol_get_nonce_func_t func); void __eapol_set_get_nonce_func(eapol_get_nonce_func_t func);
void __eapol_set_protocol_version(enum eapol_protocol_version version);
struct eapol_sm *eapol_sm_new(); struct eapol_sm *eapol_sm_new();
void eapol_sm_free(struct eapol_sm *sm); void eapol_sm_free(struct eapol_sm *sm);