CCF
Loading...
Searching...
No Matches
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
7namespace ccf::pal
8{
9 enum class Platform
10 {
11 SGX = 0,
12 SNP = 1,
13 Virtual = 2,
14 Unknown = 3,
15 };
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)
26#elif defined(PLATFORM_SNP)
28#elif defined(PLATFORM_VIRTUAL)
30#else
32#endif
33 ;
34}
#define DECLARE_JSON_ENUM(TYPE,...)
Definition json.h:835
Definition attestation.h:28
Platform
Definition platform.h:10