diff options
author | Paul Selkirk <paul@psgd.org> | 2016-06-28 01:20:42 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-06-28 01:20:42 -0400 |
commit | b10811e13e90f5eef1437bfefe01e81c5faf5d4f (patch) | |
tree | ffb8e318a9e4ce87e888dc9af646f6fe6d3ffd70 /projects/hsm/mgmt-cli.c | |
parent | 75ddc749d6f86bbb5d0f7ca8fc52eeb1fb531426 (diff) |
Only SO and wheel are allowed to upload.
Also add bootloader upload.
Diffstat (limited to 'projects/hsm/mgmt-cli.c')
-rw-r--r-- | projects/hsm/mgmt-cli.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/projects/hsm/mgmt-cli.c b/projects/hsm/mgmt-cli.c index 7789dd1..eeeaef5 100644 --- a/projects/hsm/mgmt-cli.c +++ b/projects/hsm/mgmt-cli.c @@ -43,7 +43,8 @@ #include "stm-led.h" #include "mgmt-cli.h" -#include "mgmt-dfu.h" +#include "mgmt-firmware.h" +#include "mgmt-bootloader.h" #include "mgmt-fpga.h" #include "mgmt-misc.h" #include "mgmt-show.h" @@ -235,6 +236,7 @@ static int check_auth(const char *username, const char *password) if (hal_rpc_login(client, user, password, strlen(password)) == LIBHAL_OK) return CLI_OK; + user = HAL_USER_NONE; return CLI_ERROR; } @@ -250,7 +252,8 @@ int cli_main(void) configure_cli_show(&cli); configure_cli_fpga(&cli); configure_cli_misc(&cli); - configure_cli_dfu(&cli); + configure_cli_firmware(&cli); + configure_cli_bootloader(&cli); configure_cli_keystore(&cli); configure_cli_masterkey(&cli); @@ -258,6 +261,7 @@ int cli_main(void) embedded_cli_loop(&cli); /* embedded_cli_loop returns when the user enters 'quit' or 'exit' */ cli_print(&cli, "\nLogging out...\n"); + user = HAL_USER_NONE; } /*NOTREACHED*/ |