1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/suit: save seq_number when parsing manifest

This commit is contained in:
Francisco Molina 2022-04-04 11:27:41 +02:00
parent e3f9252947
commit 6a1b472a06
2 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,7 @@ typedef struct {
uint8_t validation_buf[SUIT_COSE_BUF_SIZE];
char *urlbuf; /**< Buffer containing the manifest url */
size_t urlbuf_len; /**< Length of the manifest url */
uint32_t seq_number; /**< Set sequence number */
} suit_manifest_t;
/**

View File

@ -76,6 +76,7 @@ static int _seq_no_handler(suit_manifest_t *manifest, int key,
}
LOG_INFO("suit: validated sequence number\n)");
manifest->seq_number = seq_nr;
manifest->validated |= SUIT_VALIDATED_SEQ_NR;
return SUIT_OK;