aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-02-21 09:25:21 -0500
committerPaul Selkirk <paul@psgd.org>2017-02-21 09:25:21 -0500
commit9335ada0d5d8a2754457fc705bb04a1e8cb6e470 (patch)
tree7f8d9e438e510e20b524c5934cb53dbc20135777 /projects/hsm
parent0c298a1c2d0ab40760bf38b27fec43d8b8f3afb5 (diff)
Use bulk erase in the one place it makes sense.
Diffstat (limited to 'projects/hsm')
-rw-r--r--projects/hsm/mgmt-keystore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/hsm/mgmt-keystore.c b/projects/hsm/mgmt-keystore.c
index d04099b..81965c0 100644
--- a/projects/hsm/mgmt-keystore.c
+++ b/projects/hsm/mgmt-keystore.c
@@ -274,8 +274,8 @@ static int cmd_keystore_erase(struct cli_def *cli, const char *command, char *ar
return CLI_ERROR;
}
- cli_print(cli, "OK, erasing keystore, this might take a while...");
- if ((status = keystore_erase_sectors(0, KEYSTORE_NUM_SECTORS - 1)) != 1) {
+ cli_print(cli, "OK, erasing keystore, this will take about 45 seconds...");
+ if ((status = keystore_erase_bulk()) != 1) {
cli_print(cli, "Failed erasing token keystore: %i", status);
return CLI_ERROR;
}