This commits consists of three major changes: 1. Support a new interface to get the base64 quote only. This is useful in the case that application sends the quote to service provider server and get the final IAS report there. The application itself doesn't depend on IAS in this case. 2. Improve the C++ programming style. Now, we only provide C++ classes and limited C APIs(for configuration and sgx device). 3. Use the more general keywords as names prefix. Signed-off-by: Junxian Xiao <junxian.xjx@antfin.com>
22 lines
637 B
C++
22 lines
637 B
C++
#ifndef REMOTE_ATTESTATION_RA_CONFIG_H_
|
|
#define REMOTE_ATTESTATION_RA_CONFIG_H_
|
|
|
|
#include <string>
|
|
|
|
#include "tee/common/error.h"
|
|
#include "tee/common/log.h"
|
|
#include "tee/ra_conf_api.h"
|
|
|
|
constexpr char kRaConf[] = "ra_config.json";
|
|
|
|
constexpr char kConfIasServer[] = "ias_url";
|
|
constexpr char kConfIasCert[] = "ias_sp_cert_file";
|
|
constexpr char kConfIasKey[] = "ias_sp_key_file";
|
|
constexpr char kConfIasAccessKey[] = "ias_access_key";
|
|
constexpr char kConfSPID[] = "enclave_spid";
|
|
|
|
#define RA_CONF_STR(name) TeeConfGetStr(kRaConf, name)
|
|
#define RA_CONF_FILE(name) TeeConfGetStr(kRaConf, name)
|
|
|
|
#endif // REMOTE_ATTESTATION_RA_CONFIG_H_
|