Michael Cardell Widerkrantz a3bdc73efa
fw: Simplify starting management app
- In state INITIAL: Register allowed app digest early for the default
  case where we start from flash slot 0. Transition to LOAD_FLASH_MGMT.

- Introduce new state FW_STATE_LOAD_FLASH_MGMT which loads an app from
  flash slot 0 and registers app as a prospective management app.

- Rely on ordinary verification in state START to actually do the
  verification of the prospective management app.
2025-04-11 09:38:04 +02:00

15 lines
284 B
C

// Copyright (C) 2024 - Tillitis AB
// SPDX-License-Identifier: GPL-2.0-only
#ifndef MGMT_APP_H
#define MGMT_APP_H
#include <stdbool.h>
#include <stdint.h>
int mgmt_app_init(uint8_t app_digest[32]);
bool mgmt_app_authenticate(void);
uint8_t *mgmt_app_allowed_digest(void);
#endif