diff options
author | Bernd Schoolmann <mail@quexten.com> | 2023-03-15 22:38:44 +0100 |
---|---|---|
committer | Bernd Schoolmann <mail@quexten.com> | 2023-03-26 04:28:11 +0200 |
commit | 22f7344befc026666b48e3153c4dfe4175f052ee (patch) | |
tree | b3082cf9935da0bfbe5df324f9e0454f7a12a8fe /src/bin | |
parent | 9645a4636f6f4b04f4e6aba84e3c77fa0f2f6961 (diff) | |
download | rbw-22f7344befc026666b48e3153c4dfe4175f052ee.tar.gz rbw-22f7344befc026666b48e3153c4dfe4175f052ee.zip |
Switch kdf type to enum
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/rbw-agent/actions.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/rbw-agent/actions.rs b/src/bin/rbw-agent/actions.rs index 4b3267f..56a98e9 100644 --- a/src/bin/rbw-agent/actions.rs +++ b/src/bin/rbw-agent/actions.rs @@ -1,4 +1,5 @@ use anyhow::Context as _; +use rbw::api::KdfType; pub async fn register( sock: &mut crate::sock::Sock, @@ -217,7 +218,7 @@ async fn two_factor( email: &str, password: rbw::locked::Password, provider: rbw::api::TwoFactorProviderType, -) -> anyhow::Result<(String, String, u32, u32, Option<u32>, Option<u32>, String)> { +) -> anyhow::Result<(String, String, KdfType, u32, Option<u32>, Option<u32>, String)> { let mut err_msg = None; for i in 1_u8..=3 { let err = if i > 1 { @@ -295,7 +296,7 @@ async fn login_success( state: std::sync::Arc<tokio::sync::RwLock<crate::agent::State>>, access_token: String, refresh_token: String, - kdf: u32, + kdf: KdfType, iterations: u32, memory: Option<u32>, parallelism: Option<u32>, |