eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0682ddad375d69f7d3b4e7fd06b9ad89b050a329
parent dc49401fc0bb1388d56d1288952cb603452dbd87
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Mon,  1 Oct 2018 14:55:42 -0700

ttls: change signature of the inner reset funcs

Diffstat:
Msrc/eap-ttls.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/eap-ttls.c b/src/eap-ttls.c @@ -301,7 +301,7 @@ struct phase2_method { uint32_t vendor_id, const uint8_t *data, size_t len); void (*destroy)(void *state); - bool (*reset)(struct eap_state *eap); + bool (*reset)(void *state); }; struct eap_ttls_state { @@ -351,7 +351,7 @@ static bool eap_ttls_reset_state(struct eap_state *eap) struct eap_ttls_state *ttls = eap_get_data(eap); if (ttls->phase2->reset) - ttls->phase2->reset(eap); + ttls->phase2->reset(ttls->phase2->state); __eap_ttls_reset_state(ttls); @@ -638,14 +638,12 @@ static void eap_ttls_phase2_eap_destroy(void *state) eap_free(state); } -static bool eap_ttls_phase2_eap_reset(struct eap_state *eap) +static bool eap_ttls_phase2_eap_reset(void *state) { - struct eap_ttls_state *ttls = eap_get_data(eap); - - if (!ttls->phase2->state) + if (!state) return false; - return eap_reset(ttls->phase2->state); + return eap_reset(state); } static struct phase2_method phase2_eap = {