Skip to content

Commit

Permalink
chore: update libcryptsetup to 0.8.0 and fix API changes
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Diez <idiez@redhat.com>
  • Loading branch information
7flying committed Jun 13, 2023
1 parent 9386ea8 commit 557d6bf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client-linuxapp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rand = "0.8.4"
nix = "0.26"
uuid = "1.3"
thiserror = "1"
libcryptsetup-rs = { version = "0.7.0", features = ["mutex"] }
libcryptsetup-rs = { version = "0.8.0", features = ["mutex"] }
secrecy = "0.8"
devicemapper = "0.33"

Expand Down
2 changes: 1 addition & 1 deletion client-linuxapp/src/reencrypt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn perform_reencrypt(dev_name: &str) -> Result<()> {
.context("Error opening device")?;

dev.context_handle()
.load::<libcryptsetup_rs::CryptParamsLuks2>(None, None)
.load::<()>(None, None)
.context("Error loading device context")?;

let status = dev
Expand Down
2 changes: 1 addition & 1 deletion client-linuxapp/src/reencrypt/rebind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fn clevis_bind(
log::trace!("Clevis bind successful");

dev.context_handle()
.load::<libcryptsetup_rs::CryptParamsLuks2>(None, None)
.load::<()>(None, None)
.context("Error re-loading device context")?;

log::trace!("Reloaded device context");
Expand Down
2 changes: 1 addition & 1 deletion client-linuxapp/src/serviceinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ impl DiskEncryptionInProgress {
log::debug!("Device initiated");

dev.context_handle()
.load::<libcryptsetup_rs::CryptParamsLuks2>(None, None)
.load::<()>(None, None)
.context("Error loading device context")?;

log::debug!("Device information loaded");
Expand Down

0 comments on commit 557d6bf

Please sign in to comment.