From cc37018426683330d3069ee9df651cbaddeee6c0 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 24 Sep 2018 11:56:12 -0500 Subject: [PATCH] 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. --- src/eap-wsc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/eap-wsc.c b/src/eap-wsc.c index 4642fb36..8027fa35 100644 --- 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: