policy.h
1 /*
2  * Copyright (C) 2019 Koen Zandberg
3  * 2019 Kaspar Schleiser <kaspar@schleiser.de>
4  * 2019 Inria
5  * 2019 Freie Universit├Ąt Berlin
6  *
7  * This file is subject to the terms and conditions of the GNU Lesser
8  * General Public License v2.1. See the file LICENSE in the top level
9  * directory for more details.
10  */
23 #ifndef SUIT_POLICY_H
24 #define SUIT_POLICY_H
25 
26 #include <stddef.h>
27 #include <stdint.h>
28 
29 #include "uuid.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
39 #define SUIT_VALIDATED_AUTH 0x1
40 #define SUIT_VALIDATED_VERSION 0x2
41 #define SUIT_VALIDATED_SEQ_NR 0x4
42 #define SUIT_VALIDATED_VENDOR 0x8
43 #define SUIT_VALIDATED_CLASS 0x10
44 #define SUIT_VALIDATED_DEVICE 0x20
50 #define SUIT_DEFAULT_POLICY \
51  (SUIT_VALIDATED_VERSION | SUIT_VALIDATED_SEQ_NR | SUIT_VALIDATED_VENDOR | \
52  SUIT_VALIDATED_CLASS)
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* SUIT_POLICY_H */
59 
RFC 4122 UUID functions