]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: pass selected mode to crypt_load() when doing LUKS 16111/head
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Jun 2020 12:21:32 +0000 (14:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Jun 2020 12:24:21 +0000 (14:24 +0200)
commit6930d069a37a3b770c4e825fa8d7c937ec608e50
treec3cef29022854ff0fe0182ef4640eff1615eb75f
parent5af39ac850844511f673ce573efa0cf84b6589a7
cryptsetup: pass selected mode to crypt_load() when doing LUKS

This doesn't fix anything IRL, but is a bit cleaner, since it makes sure
that arg_type is properly passed to crypt_load() in all cases.

We actually never set arg_type to CRYPT_LUKS2, which is why this wasn't
noticed before, but theoretically this might change one day, and
existing comments suggest it as possible value for arg_type, hence let's
process it properly.
src/cryptsetup/cryptsetup.c