eiwd

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

commit c682847249ebb04fa93955155a08cd5a38a70e3b
parent 8954c62bcfcdd39a3a746c644b9e72d8278cc40e
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Tue, 19 Mar 2019 01:25:27 +0100

eap-md5: Memzero copies of secrets

Diffstat:
Msrc/eap-md5.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/eap-md5.c b/src/eap-md5.c @@ -41,6 +41,9 @@ static void eap_md5_free(struct eap_state *eap) eap_set_data(eap, NULL); + if (md5->secret) + explicit_bzero(md5->secret, strlen(md5->secret)); + l_free(md5->secret); l_free(md5); } @@ -126,6 +129,7 @@ static int eap_md5_check_settings(struct l_settings *settings, password = l_settings_get_string(settings, "Security", password_key_old); if (password) { + explicit_bzero(password, strlen(password)); l_warn("Setting '%s' is deprecated, use '%s' instead", password_key_old, password_key); return 0; @@ -139,7 +143,8 @@ static int eap_md5_check_settings(struct l_settings *settings, eap_append_secret(out_missing, EAP_SECRET_REMOTE_PASSWORD, password_key, NULL, identity, EAP_CACHE_TEMPORARY); - } + } else + explicit_bzero(password, strlen(password)); return 0; }