diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-14 22:55:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-14 22:55:05 +0000 |
commit | 192fd3d17f29a4ebcadc8cc3454d2510828543a7 (patch) | |
tree | b0e2a34c26a157a735cc88498463a69a51d29500 | |
parent | ea206efb69d1f64bf5ea0754108d551b8ff551a4 (diff) | |
download | pfsense-192fd3d17f29a4ebcadc8cc3454d2510828543a7.zip pfsense-192fd3d17f29a4ebcadc8cc3454d2510828543a7.tar.gz |
Document key lengths
-rwxr-xr-x | usr/local/www/interfaces_wlan.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc index 224e319..eede4d3 100755 --- a/usr/local/www/interfaces_wlan.inc +++ b/usr/local/www/interfaces_wlan.inc @@ -76,10 +76,12 @@ function wireless_config_post() { /* loop through keys and enforce size */ for ($i = 1; $i <= 4; $i++) { if ($_POST['key' . $i]) { + /* 64 bit */ if(strlen($_POST['key' . $i]) == 5) continue; if(strlen($_POST['key' . $i]) == 10) continue; + /* 128 bit */ if(strlen($_POST['key' . $i]) == 13) continue; if(strlen($_POST['key' . $i]) == 26) |