Implement Rust-owned adaptive Android password navigation (#96)
This commit is contained in:
1 parent
36e5f55283
commit
8c9341f214
26 files changed
+1553
-16
No files matched your search
@@ -5,6 +5,8 @@
|
||||
|
||||
mod private_storage;
|
||||
pub use private_storage::*;
|
||||
mod password_navigation;
|
||||
pub use password_navigation::*;
|
||||
|
||||
use std::{
|
||||
error::Error,
|
||||
@@ -1747,6 +1749,27 @@ impl MobileAuthentication {
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
pub fn navigation_entry(
|
||||
&self,
|
||||
directory: String,
|
||||
row_id: String,
|
||||
revision: String,
|
||||
passphrase: Option<String>,
|
||||
unix_seconds: u64,
|
||||
) -> Result<MobileEntryPresentation, MobileAuthenticationFfiError> {
|
||||
self.authentication
|
||||
.navigation_entry(
|
||||
&directory,
|
||||
&row_id,
|
||||
&revision,
|
||||
passphrase
|
||||
.map(|value| ironstorage::repository::SecretBytes::new(value.into_bytes())),
|
||||
unix_seconds,
|
||||
)
|
||||
.map(Into::into)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
pub fn entry_page(
|
||||
&self,
|
||||
path: String,
|
||||
|
||||
Reference in new issue
Block a user