#ifndef __ENCLAVE_MAP_H__ #define __ENCLAVE_MAP_H__ #include #include #include #include struct enclave_hash_comparer : public std::binary_function { public: bool operator() (const sgx_measurement_t* a, const sgx_measurement_t* b) const { return memcmp(a->m, b->m, 32) < 0; } }; class enclave_map_t : public std::map { }; void add_enclave_mapping(sgx_measurement_t *mr_enclave, sgx_enclave_id_t enclave_id); sgx_enclave_id_t get_enclave_id(sgx_measurement_t *mr_enclave); #endif /* __ENCLAVE_MAP_H__ */