Skip to content

Commit

Permalink
remove PIN reset from transaction (issue #47)
Browse files Browse the repository at this point in the history
  • Loading branch information
af-anssi committed Apr 11, 2023
1 parent 730a650 commit 4df65b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fr/anssi/smartpgp/Persistent.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ protected void reset(final boolean isRegistering) {
Common.beginTransaction(isRegistering);
user_pin_length = (byte)Constants.USER_PIN_DEFAULT.length;
user_pin.update(Constants.USER_PIN_DEFAULT, (short)0, user_pin_length);
user_pin.resetAndUnblock();
Common.commitTransaction(isRegistering);
user_pin.resetAndUnblock();

Common.beginTransaction(isRegistering);
user_puk_length = (short)0;
Expand All @@ -253,8 +253,8 @@ protected void reset(final boolean isRegistering) {
Common.beginTransaction(isRegistering);
admin_pin_length = (byte)Constants.ADMIN_PIN_DEFAULT.length;
admin_pin.update(Constants.ADMIN_PIN_DEFAULT, (short)0, admin_pin_length);
admin_pin.resetAndUnblock();
Common.commitTransaction(isRegistering);
admin_pin.resetAndUnblock();

isTerminated = false;
}
Expand Down

0 comments on commit 4df65b2

Please sign in to comment.