mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 12:20:00 +01:00
Allow restrict keys size in LuksOpen (thanks to Stefan Assmann)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@86 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
@@ -291,6 +291,7 @@ static int action_luksOpen(int arg)
|
||||
.name = action_argv[1],
|
||||
.device = action_argv[0],
|
||||
.key_file = opt_key_file,
|
||||
.key_size = opt_key_file ? (opt_key_size / 8) : 0, /* limit bytes read from keyfile */
|
||||
.timeout = opt_timeout,
|
||||
.tries = opt_tries,
|
||||
.icb = &cmd_icb,
|
||||
|
||||
Reference in New Issue
Block a user