3
0
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:
Tim Kourt 2018-11-16 14:15:32 -08:00 committed by Denis Kenzior
parent 87c411f816
commit bdcff2cdde
2 changed files with 14 additions and 1 deletions

View File

@ -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);

View File

@ -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,