eiwd

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

commit 2a7a756c9f0b89ec5d8971ed9bfa95b40eac95a9
parent e4f22f0a5d65886f93642688ac795388f02dd940
Author: James Prestwood <james.prestwood@linux.intel.com>
Date:   Fri, 25 Jan 2019 11:23:09 -0800

handshake: add flag and setter to disallow rekeying

Diffstat:
Msrc/handshake.c | 5+++++
Msrc/handshake.h | 2++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/handshake.c b/src/handshake.c @@ -258,6 +258,11 @@ void handshake_state_set_passphrase(struct handshake_state *s, s->passphrase = l_strdup(passphrase); } +void handshake_state_set_no_rekey(struct handshake_state *s, bool no_rekey) +{ + s->no_rekey = no_rekey; +} + void handshake_state_new_snonce(struct handshake_state *s) { get_nonce(s->snonce); diff --git a/src/handshake.h b/src/handshake.h @@ -106,6 +106,7 @@ struct handshake_state { bool have_pmkid : 1; bool authenticator : 1; bool wait_for_gtk : 1; + bool no_rekey : 1; uint8_t ssid[32]; size_t ssid_len; char *passphrase; @@ -157,6 +158,7 @@ void handshake_state_set_event_func(struct handshake_state *s, void *user_data); void handshake_state_set_passphrase(struct handshake_state *s, const char *passphrase); +void handshake_state_set_no_rekey(struct handshake_state *s, bool no_rekey); void handshake_state_new_snonce(struct handshake_state *s); void handshake_state_new_anonce(struct handshake_state *s);