eiwd

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

commit 27ae3ce14da1dce8ef7929d1d0488896d80a0ee0
parent 42e083cf9b73942817bd9625d642a50a9c286535
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 18 Sep 2019 09:02:58 -0700

network: validate passphrase on _set_passphrase

Diffstat:
Msrc/network.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/network.c b/src/network.c @@ -275,6 +275,9 @@ bool network_set_passphrase(struct network *network, const char *passphrase) if (network_get_security(network) != SECURITY_PSK) return false; + if (!crypto_passphrase_is_valid(passphrase)) + return false; + if (!network_settings_load(network)) network->settings = l_settings_new();