Open Enclave  0.6.x
properties.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 
14 #ifndef _OE_BITS_PROPERTIES_H
15 #define _OE_BITS_PROPERTIES_H
16 
17 #include "defs.h"
18 #include "result.h"
19 #include "types.h"
20 
21 OE_EXTERNC_BEGIN
22 
26 /* Injected by OE_SET_ENCLAVE_SGX macro and by the signing tool (oesign) */
27 #define OE_INFO_SECTION_NAME ".oeinfo"
28 
29 typedef struct _oe_enclave_size_settings
30 {
31  uint64_t num_heap_pages;
32  uint64_t num_stack_pages;
33  uint64_t num_tcs;
34 } oe_enclave_size_settings_t;
35 
36 /* Base type for enclave properties */
37 typedef struct _oe_enclave_properties_header
38 {
39  uint32_t size;
41  oe_enclave_type_t enclave_type;
43  oe_enclave_size_settings_t size_settings;
44 } oe_enclave_properties_header_t;
45 
54 #if __x86_64__ || _M_X64
55 #include "sgx/sgxproperties.h"
56 #else
57 #define OE_SET_ENCLAVE_SGX( \
58  PRODUCT_ID, \
59  SECURITY_VERSION, \
60  ALLOW_DEBUG, \
61  HEAP_PAGE_COUNT, \
62  STACK_PAGE_COUNT, \
63  TCS_COUNT)
64 #endif
65 
75  uint32_t year,
76  uint32_t month,
77  uint32_t day,
78  uint32_t hours,
79  uint32_t minutes,
80  uint32_t seconds);
81 
82 OE_EXTERNC_END
83 
84 #endif /* _OE_BITS_PROPERTIES_H */
This file defines the types used by the OE SDK.
enum _oe_enclave_type oe_enclave_type_t
This enumeration defines values for the type parameter passed to oe_create_enclave().
This file defines Open Enclave return codes (results).
enum _oe_result oe_result_t
This enumeration type defines return codes for Open Enclave functions.
oe_result_t __oe_sgx_set_minimum_crl_tcb_issue_date(uint32_t year, uint32_t month, uint32_t day, uint32_t hours, uint32_t minutes, uint32_t seconds)
This function sets the minimum value of issue dates of CRL and TCB info accepted by the enclave...