update libcryptsetup-rs
This commit is contained in:
parent
a8482c50a2
commit
4507107fac
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -472,9 +472,9 @@ checksum = "99e85c08494b21a9054e7fe1374a732aeadaff3980b6990b94bfd3a70f690005"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libcryptsetup-rs"
|
name = "libcryptsetup-rs"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "286a440a894fafd96c841b61c73e2053ff5b4d456820b3e04f7e88c4e8636a6b"
|
checksum = "38cd24132ee0239515bc895782f65ab3e382a0f78e7cee30417159e5c6f81b6b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"either",
|
"either",
|
||||||
"libc",
|
"libc",
|
||||||
|
@ -20,7 +20,7 @@ ring = "0.13.5"
|
|||||||
failure = "0.1.5"
|
failure = "0.1.5"
|
||||||
rpassword = "4.0.1"
|
rpassword = "4.0.1"
|
||||||
structopt = "0.3.2"
|
structopt = "0.3.2"
|
||||||
libcryptsetup-rs = "0.4.0"
|
libcryptsetup-rs = "0.4.1"
|
||||||
serde_json = "1.0.51"
|
serde_json = "1.0.51"
|
||||||
serde_derive = "1.0.106"
|
serde_derive = "1.0.106"
|
||||||
serde = "1.0.106"
|
serde = "1.0.106"
|
||||||
|
@ -14,14 +14,12 @@ fn load_device_handle<P: AsRef<Path>>(path: P) -> Fido2LuksResult<CryptDevice> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn check_luks2(device: &mut CryptDevice) -> Fido2LuksResult<()> {
|
fn check_luks2(device: &mut CryptDevice) -> Fido2LuksResult<()> {
|
||||||
//Wait for PR to fix err https://github.com/stratis-storage/libcryptsetup-rs/pull/82
|
match device.format_handle().get_type()? {
|
||||||
Ok(())
|
|
||||||
/*match device.format_handle().get_type()? {
|
|
||||||
EncryptionFormat::Luks2 => Ok(()),
|
EncryptionFormat::Luks2 => Ok(()),
|
||||||
_ => Err(Fido2LuksError::LuksError {
|
_ => Err(Fido2LuksError::LuksError {
|
||||||
cause: LuksError::Luks2Required,
|
cause: LuksError::Luks2Required,
|
||||||
}),
|
}),
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user