Skip to content

Commit

Permalink
Add pin deletion to factory reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Mar 30, 2023
1 parent 78665c2 commit 9c2399d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ fn factory_reset<const R: usize, T: trussed::Client + AuthClient>(
.map_err(unspecified_delete_error)?;
try_syscall!(ctx.backend.client_mut().delete_all(Location::Volatile))
.map_err(unspecified_delete_error)?;
try_syscall!(ctx.backend.client_mut().delete_all_pins()).map_err(unspecified_delete_error)?;
Ok(())
}

Expand Down

0 comments on commit 9c2399d

Please sign in to comment.