removed keyctl dependency
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
use keyutils::Keyring;
|
||||
|
||||
fn get_passphrase() -> Vec<u8> {
|
||||
Keyring::request("user")
|
||||
.unwrap()
|
||||
.request_key("fido2luks")
|
||||
.unwrap()
|
||||
.read()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
fn add_secret(secret: &[u8]) {
|
||||
Keyring::request("session")
|
||||
.unwrap()
|
||||
.add_key("cryptsetup", secret)
|
||||
.unwrap();
|
||||
}
|
@@ -26,7 +26,6 @@ mod cli;
|
||||
mod config;
|
||||
mod device;
|
||||
mod error;
|
||||
mod keystore;
|
||||
|
||||
fn open_container(device: &PathBuf, name: &str, secret: &[u8; 32]) -> Fido2LuksResult<()> {
|
||||
let mut handle = luks::open(device.canonicalize()?)?.luks1()?;
|
||||
|
Reference in New Issue
Block a user