diff options
author | Paul Selkirk <paul@psgd.org> | 2016-07-12 12:47:11 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-07-12 12:47:11 -0400 |
commit | e60817fe6e800c249c6032137c4baf4af72cb578 (patch) | |
tree | 4de495dbdfbbcfc0d3af355415a4a9814c4f177d /projects/hsm/mgmt-cli.c | |
parent | c160c76325355df9dae6f0ac298692c8fe6fc410 (diff) |
Re-disable 'keystore set key'; hexdump binary key names; remove unused 'show' commands.
Diffstat (limited to 'projects/hsm/mgmt-cli.c')
-rw-r--r-- | projects/hsm/mgmt-cli.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/projects/hsm/mgmt-cli.c b/projects/hsm/mgmt-cli.c index eeeaef5..a610db6 100644 --- a/projects/hsm/mgmt-cli.c +++ b/projects/hsm/mgmt-cli.c @@ -195,7 +195,7 @@ static int embedded_cli_loop(struct cli_def *cli) } if (ctx.l < 0) - continue; + break; /* cli_print(cli, "Process command: '%s'", ctx.cmd); */ n = cli_loop_process_cmd(cli, &ctx); @@ -249,13 +249,15 @@ int cli_main(void) mgmt_cli_init(&cli); cli_set_auth_callback(&cli, check_auth); - configure_cli_show(&cli); + /* we don't have any privileged commands at the moment */ + cli_unregister_command(&cli, "enable"); + configure_cli_fpga(&cli); - configure_cli_misc(&cli); - configure_cli_firmware(&cli); - configure_cli_bootloader(&cli); configure_cli_keystore(&cli); configure_cli_masterkey(&cli); + configure_cli_firmware(&cli); + configure_cli_bootloader(&cli); + configure_cli_misc(&cli); while (1) { embedded_cli_loop(&cli); |