CCF
Loading...
Searching...
No Matches
include
ccf
pal
platform.h
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the Apache 2.0 License.
3
#pragma once
4
5
#include "
ccf/ds/json.h
"
6
7
namespace
ccf::pal
8
{
9
enum class
Platform
10
{
11
SGX
= 0,
12
SNP
= 1,
13
Virtual
= 2,
14
Unknown
= 3,
15
};
16
DECLARE_JSON_ENUM
(
17
Platform
,
18
{{
Platform::SGX
,
"SGX"
},
19
{
Platform::SNP
,
"SNP"
},
20
{
Platform::Virtual
,
"Virtual"
},
21
{
Platform::Unknown
,
"Unknown"
}});
22
23
constexpr
static
auto
platform =
24
#if defined(PLATFORM_SGX)
25
Platform::SGX
26
#elif defined(PLATFORM_SNP)
27
Platform::SNP
28
#elif defined(PLATFORM_VIRTUAL)
29
Platform::Virtual
30
#else
31
Platform::Unknown
32
#endif
33
;
34
}
json.h
DECLARE_JSON_ENUM
#define DECLARE_JSON_ENUM(TYPE,...)
Definition
json.h:835
ccf::pal
Definition
attestation.h:28
ccf::pal::Platform
Platform
Definition
platform.h:10
ccf::pal::Platform::SGX
@ SGX
ccf::pal::Platform::SNP
@ SNP
ccf::pal::Platform::Virtual
@ Virtual
ccf::pal::Platform::Unknown
@ Unknown
Generated by
1.9.8