From 2ee8b8e56e7ad67f042983db3162d42774177a56 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 24 Feb 2015 11:11:40 -0600 Subject: [PATCH] eapol: Add __eapol_set_protocol_version --- src/eapol.c | 5 +++++ src/eapol.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/eapol.c b/src/eapol.c index b9f4732f..2e0e80cd 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -493,6 +493,11 @@ void __eapol_set_get_nonce_func(eapol_get_nonce_func_t func) get_nonce = func; } +void __eapol_set_protocol_version(enum eapol_protocol_version version) +{ + protocol_version = version; +} + bool eapol_init() { state_machines = l_hashmap_new(); diff --git a/src/eapol.h b/src/eapol.h index a7cbf3c0..606488ee 100644 --- a/src/eapol.h +++ b/src/eapol.h @@ -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_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(); void eapol_sm_free(struct eapol_sm *sm);