CCF/edl/ccf.edl

36 строки
1.2 KiB
Plaintext
Исходник Обычный вид История

2019-08-28 12:57:45 +03:00
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
2019-04-26 18:27:27 +03:00
enclave {
2020-07-13 12:03:14 +03:00
from "openenclave/edl/sgx/platform.edl" import *;
from "openenclave/edl/time.edl" import *;
2019-08-28 12:57:45 +03:00
include "common/enclave_interface_types.h"
2019-08-28 12:57:45 +03:00
2019-04-26 18:27:27 +03:00
trusted {
public CreateNodeStatus enclave_create_node(
[user_check] void* enclave_config,
[user_check] uint8_t* ccf_config,
2019-08-28 12:57:45 +03:00
size_t ccf_config_size,
[user_check] uint8_t* startup_snapshot,
size_t startup_snapshot_size,
[out, count=node_cert_size] uint8_t* node_cert,
2019-04-26 18:27:27 +03:00
size_t node_cert_size,
[out] size_t* node_cert_len,
[out, count=service_cert_size] uint8_t* service_cert,
size_t service_cert_size,
[out] size_t* service_cert_len,
[out, count=enclave_version_size] uint8_t* enclave_version,
size_t enclave_version_size,
[out] size_t* enclave_version_len,
StartType start_type,
LoggerLevel enclave_log_level,
size_t num_worker_thread,
[user_check] void* time_location,
2019-04-26 18:27:27 +03:00
);
public bool enclave_run();
};
};