diff --git a/Cargo.lock b/Cargo.lock index 35eab58..e9dd9c1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -472,9 +472,9 @@ checksum = "99e85c08494b21a9054e7fe1374a732aeadaff3980b6990b94bfd3a70f690005" [[package]] name = "libcryptsetup-rs" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "286a440a894fafd96c841b61c73e2053ff5b4d456820b3e04f7e88c4e8636a6b" +checksum = "38cd24132ee0239515bc895782f65ab3e382a0f78e7cee30417159e5c6f81b6b" dependencies = [ "either", "libc", diff --git a/Cargo.toml b/Cargo.toml index 2ec3341..5f9bf3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ ring = "0.13.5" failure = "0.1.5" rpassword = "4.0.1" structopt = "0.3.2" -libcryptsetup-rs = "0.4.0" +libcryptsetup-rs = "0.4.1" serde_json = "1.0.51" serde_derive = "1.0.106" serde = "1.0.106" diff --git a/src/luks.rs b/src/luks.rs index de07f72..6b3e99a 100644 --- a/src/luks.rs +++ b/src/luks.rs @@ -14,14 +14,12 @@ fn load_device_handle>(path: P) -> Fido2LuksResult { } fn check_luks2(device: &mut CryptDevice) -> Fido2LuksResult<()> { - //Wait for PR to fix err https://github.com/stratis-storage/libcryptsetup-rs/pull/82 - Ok(()) - /*match device.format_handle().get_type()? { + match device.format_handle().get_type()? { EncryptionFormat::Luks2 => Ok(()), _ => Err(Fido2LuksError::LuksError { cause: LuksError::Luks2Required, }), - }*/ + } } #[derive(Debug, Clone, Serialize, Deserialize)]