eiwd

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

commit aa7abb44c552063ee7934f858e7c5abe3d1ccb22
parent 5306e372791ac012a0275175e35b2e053048d07b
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Tue, 19 Mar 2019 01:25:24 +0100

eap-gtc: Memzero copies of secrets

The single-use password is apparently sent in plaintext over the network
but at least try to prevent it from staying in the memory until we know
it's been used.

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

diff --git a/src/eap-gtc.c b/src/eap-gtc.c @@ -41,6 +41,9 @@ static void eap_gtc_free(struct eap_state *eap) eap_set_data(eap, NULL); + if (gtc->password) + explicit_bzero(gtc->password, strlen(gtc->password)); + l_free(gtc->password); l_free(gtc); } @@ -110,6 +113,7 @@ static int eap_gtc_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; @@ -123,7 +127,8 @@ static int eap_gtc_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; }