mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 18:43:50 +01:00
sys/suit: save seq_number when parsing manifest
This commit is contained in:
parent
e3f9252947
commit
6a1b472a06
@ -245,6 +245,7 @@ typedef struct {
|
|||||||
uint8_t validation_buf[SUIT_COSE_BUF_SIZE];
|
uint8_t validation_buf[SUIT_COSE_BUF_SIZE];
|
||||||
char *urlbuf; /**< Buffer containing the manifest url */
|
char *urlbuf; /**< Buffer containing the manifest url */
|
||||||
size_t urlbuf_len; /**< Length of the manifest url */
|
size_t urlbuf_len; /**< Length of the manifest url */
|
||||||
|
uint32_t seq_number; /**< Set sequence number */
|
||||||
} suit_manifest_t;
|
} suit_manifest_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -76,6 +76,7 @@ static int _seq_no_handler(suit_manifest_t *manifest, int key,
|
|||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO("suit: validated sequence number\n)");
|
LOG_INFO("suit: validated sequence number\n)");
|
||||||
|
manifest->seq_number = seq_nr;
|
||||||
manifest->validated |= SUIT_VALIDATED_SEQ_NR;
|
manifest->validated |= SUIT_VALIDATED_SEQ_NR;
|
||||||
return SUIT_OK;
|
return SUIT_OK;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user