suit: Remove non-standard hello handler

This commit is contained in:
Koen Zandberg 2020-02-14 15:18:00 +01:00
parent da78d03e95
commit e1e43118da
No known key found for this signature in database
GPG Key ID: 0E63411F8FCA8247

View File

@ -38,23 +38,6 @@ static int _handle_command_sequence(suit_v4_manifest_t *manifest, nanocbor_value
static int _common_handler(suit_v4_manifest_t *manifest, int key, nanocbor_value_t *it);
static int _common_sequence_handler(suit_v4_manifest_t *manifest, int key, nanocbor_value_t *it);
static int _hello_handler(suit_v4_manifest_t *manifest, int key, nanocbor_value_t *it)
{
(void)manifest;
(void)key;
if (nanocbor_get_type(it) == NANOCBOR_TYPE_TSTR) {
size_t len = HELLO_HANDLER_MAX_STRLEN;
char buf[HELLO_HANDLER_MAX_STRLEN];
nanocbor_get_tstr(it, ((const uint8_t **) &buf), &len);
return SUIT_OK;
}
else {
LOG_DEBUG("_hello_handler(): unexpected value type: %u\n", nanocbor_get_type(it));
return -1;
}
}
static int _validate_uuid(suit_v4_manifest_t *manifest, nanocbor_value_t *it, uuid_t *uuid)
{
(void)manifest;
@ -425,7 +408,7 @@ static int _component_handler(suit_v4_manifest_t *manifest, int key,
/* begin{code-style-ignore} */
static suit_manifest_handler_t global_handlers[] = {
[ 0] = _hello_handler,
[ 0] = NULL,
[ 1] = _version_handler,
[ 2] = _seq_no_handler,
[ 3] = _dependencies_handler,