update libcryptsetup-rs

This commit is contained in:
shimun 2020-06-10 13:50:28 +02:00
parent a8482c50a2
commit 4507107fac
Signed by: shimun
GPG Key ID: E81D8382DC2F971B
3 changed files with 5 additions and 7 deletions

4
Cargo.lock generated
View File

@ -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",

View File

@ -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"

View File

@ -14,14 +14,12 @@ fn load_device_handle<P: AsRef<Path>>(path: P) -> Fido2LuksResult<CryptDevice> {
}
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)]