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/actions.rs | |
parent | 9645a4636f6f4b04f4e6aba84e3c77fa0f2f6961 (diff) | |
download | rbw-22f7344befc026666b48e3153c4dfe4175f052ee.tar.gz rbw-22f7344befc026666b48e3153c4dfe4175f052ee.zip |
Switch kdf type to enum
Diffstat (limited to 'src/actions.rs')
-rw-r--r-- | src/actions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions.rs b/src/actions.rs index 2c57405..7212415 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -1,4 +1,4 @@ -use crate::prelude::*; +use crate::{prelude::*, api::KdfType}; pub async fn register( email: &str, @@ -18,7 +18,7 @@ pub async fn login( password: crate::locked::Password, two_factor_token: Option<&str>, two_factor_provider: Option<crate::api::TwoFactorProviderType>, -) -> Result<(String, String, u32, u32, Option<u32>, Option<u32>, String)> { +) -> Result<(String, String, KdfType, u32, Option<u32>, Option<u32>, String)> { let (client, config) = api_client_async().await?; let (kdf, iterations, memory, parallelism) = client.prelogin(email).await?; @@ -40,7 +40,7 @@ pub async fn login( pub fn unlock<S: std::hash::BuildHasher>( email: &str, password: &crate::locked::Password, - kdf: u32, + kdf: KdfType, iterations: u32, memory: Option<u32>, parallelism: Option<u32>, |