conditions.h
1 /*
2  * SPDX-FileCopyrightText: 2019 Koen Zandberg
3  * SPDX-FileCopyrightText: 2019 Kaspar Schleiser <kaspar@schleiser.de>
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
21 #include <stddef.h>
22 #include <stdint.h>
23 
24 #include "uuid.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
36 #ifndef SUIT_VENDOR_DOMAIN
37 #define SUIT_VENDOR_DOMAIN "riot-os.org"
38 #endif
39 
45 #ifndef SUIT_CLASS_ID
46 #define SUIT_CLASS_ID RIOT_BOARD
47 #endif
48 
52 enum {
53  SUIT_COND_VENDOR_ID = 1,
54  SUIT_COND_CLASS_ID = 2,
55  SUIT_COND_DEV_ID = 3,
56  SUIT_COND_BEST_BEFORE = 4,
57 };
58 
62 typedef struct {
64  uuid_t class;
67 
79 
86 
93 
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
void suit_init_conditions(void)
Initialize boot-time conditions for SUIT manifests.
uuid_t * suit_get_device_id(void)
Retrieve the generated device ID.
uuid_t * suit_get_class_id(void)
Retrieve the generated class ID.
uuid_t * suit_get_vendor_id(void)
Retrieve the generated vendor ID.
SUIT condition parameters.
Definition: conditions.h:62
uuid_t device
Device specific information as UUID.
Definition: conditions.h:65
uuid_t vendor
Vendor url as UUID
Definition: conditions.h:63
UUID layout.
Definition: uuid.h:60
RFC 4122 UUID functions