From 275cc2789d154005ca4899e593e2c6f79a5375a5 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Tue, 12 Sep 2017 02:45:42 +0200 Subject: [PATCH] eapol: Make eapol_find_rsne non-static EAPoL server can reuse this function. --- src/eapol.c | 4 ++-- src/eapol.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/eapol.c b/src/eapol.c index fe68b669..6ca89fbb 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -1005,8 +1005,8 @@ error_unspecified: handshake_failed(sm, MMPDU_REASON_CODE_UNSPECIFIED); } -static const uint8_t *eapol_find_rsne(const uint8_t *data, size_t data_len, - const uint8_t **optional) +const uint8_t *eapol_find_rsne(const uint8_t *data, size_t data_len, + const uint8_t **optional) { struct ie_tlv_iter iter; const uint8_t *first = NULL; diff --git a/src/eapol.h b/src/eapol.h index d90aede8..8564b4e9 100644 --- a/src/eapol.h +++ b/src/eapol.h @@ -169,6 +169,9 @@ struct eapol_key *eapol_create_gtk_2_of_2( uint64_t key_replay_counter, bool is_wpa, uint8_t wpa_key_id); +const uint8_t *eapol_find_rsne(const uint8_t *data, size_t data_len, + const uint8_t **optional); + void __eapol_rx_packet(uint32_t ifindex, const uint8_t *aa, uint16_t proto, const uint8_t *frame, size_t len); void __eapol_set_tx_packet_func(eapol_tx_packet_func_t func);