check for luks2
This commit is contained in:
parent
36dc36d454
commit
85e4a30420
@ -38,6 +38,9 @@ impl LuksDevice {
|
|||||||
&'a mut self,
|
&'a mut self,
|
||||||
) -> Fido2LuksResult<Box<dyn Iterator<Item = Fido2LuksResult<(u32, Fido2LuksToken)>> + 'a>>
|
) -> Fido2LuksResult<Box<dyn Iterator<Item = Fido2LuksResult<(u32, Fido2LuksToken)>> + 'a>>
|
||||||
{
|
{
|
||||||
|
if !self.is_luks2()? {
|
||||||
|
return Err(LuksError::Luks2Required.into());
|
||||||
|
}
|
||||||
Ok(Box::new(
|
Ok(Box::new(
|
||||||
(0..32)
|
(0..32)
|
||||||
.map(move |i| {
|
.map(move |i| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user