lualoader: Drop password length restrictions

This seems to have been arbitrary; bootlock_password and password don't seem
to have any documented length restrictions, and loader(8) probably shouldn't
care about whatever GELI passphrase length restrictions might exist.

Reported by:	Kalle Carlbark <kalle.carlbark+freebsd@kcbark.net>
This commit is contained in:
Kyle Evans 2018-02-21 20:17:08 +00:00
parent 1f6c6d86e0
commit a5e2e5c724
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329748

View File

@ -37,7 +37,7 @@ function password.read()
local str = ""
local n = 0
repeat
while true do
ch = io.getchar()
if ch == core.KEY_ENTER then
break
@ -55,7 +55,7 @@ function password.read()
str = str .. string.char(ch)
n = n + 1
end
until n == 16
end
return str
end