mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
eap: Add accessors for the method name and type
This commit is contained in:
parent
87c411f816
commit
bdcff2cdde
@ -109,6 +109,9 @@ void eap_discard_success_and_failure(struct eap_state *eap, bool discard);
|
||||
void eap_set_data(struct eap_state *eap, void *data);
|
||||
void *eap_get_data(struct eap_state *eap);
|
||||
|
||||
enum eap_type eap_get_method_type(struct eap_state *eap);
|
||||
const char *eap_get_method_name(struct eap_state *eap);
|
||||
|
||||
void eap_send_response(struct eap_state *eap,
|
||||
enum eap_type request_type,
|
||||
uint8_t *buf, size_t len);
|
||||
|
12
src/eap.c
12
src/eap.c
@ -2,7 +2,7 @@
|
||||
*
|
||||
* Wireless daemon for Linux
|
||||
*
|
||||
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
|
||||
* Copyright (C) 2013-2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -590,6 +590,16 @@ void *eap_get_data(struct eap_state *eap)
|
||||
return eap->method_state;
|
||||
}
|
||||
|
||||
enum eap_type eap_get_method_type(struct eap_state *eap)
|
||||
{
|
||||
return eap->method->request_type;
|
||||
}
|
||||
|
||||
const char *eap_get_method_name(struct eap_state *eap)
|
||||
{
|
||||
return eap->method->name;
|
||||
}
|
||||
|
||||
void eap_set_key_material(struct eap_state *eap,
|
||||
const uint8_t *msk_data, size_t msk_len,
|
||||
const uint8_t *emsk_data, size_t emsk_len,
|
||||
|
Loading…
Reference in New Issue
Block a user