commit cc37018426683330d3069ee9df651cbaddeee6c0
parent a3cc68e61e12d43fbe8d1267790953e365a9aadb
Author: Denis Kenzior <denkenz@gmail.com>
Date: Mon, 24 Sep 2018 11:56:12 -0500
eap-wsc: Drop 8 digit PIN check
EAP-WSC handles 4 digit, 8 digit and out-of-band Device passwords. The
latter in particular can be anything, so drop the mandatory minimum
password length check here.
This also has the effect of enabling 4-digit PINs to actually work as
they are intended.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/eap-wsc.c b/src/eap-wsc.c
@@ -1277,9 +1277,6 @@ static bool eap_wsc_load_settings(struct eap_state *eap,
goto err;
}
- if (i < 8)
- goto err;
-
wsc->device_password = strdup(device_password);
/*
* WSC 2.0.5: Section 7.4: