Skip to content

Commit

Permalink
fix(android): initialize keystore upon startup
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 authored and ubordignon committed May 17, 2024
1 parent 2363502 commit 0278319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions v3_bridges/sentinel-strongbox/src/android/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl<'a> State<'a> {
let input_string: String = env.get_string(input)?.into();
let msg = WebSocketMessagesEncodable::try_from(input_string)?;
let strongbox = Strongbox::new(env, strongbox_java_class);
strongbox.initialize_keystore();
Ok(State {
env,
msg,
Expand Down
2 changes: 1 addition & 1 deletion v3_bridges/sentinel-strongbox/src/android/strongbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<'a> Strongbox<'a> {
}
}

fn initialize_keystore(&self) -> Result<(), SentinelError> {
pub fn initialize_keystore(&self) -> Result<(), SentinelError> {
if matches!(self.check_keystore_is_initialized(), Ok(true)) {
debug!("keystore already initialized!");
Ok(())
Expand Down

0 comments on commit 0278319

Please sign in to comment.