12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef _LE_CLASS_H_
- #define _LE_CLASS_H_
- #include "arch.h"
- #include "AEClass.h"
- #include "ae_debug_flag.hh"
- class CLEClass: public SingletonEnclave<CLEClass>
- {
- friend class Singleton<CLEClass>;
- friend class SingletonEnclave<CLEClass>;
- static aesm_enclave_id_t get_enclave_fid(){return LE_ENCLAVE_FID;}
- protected:
- CLEClass(){};
- ~CLEClass(){};
- virtual int get_debug_flag() { return LE_DEBUG_FLAG;}
- void load_white_cert_list();
- ae_error_t load_enclave_only();
- ae_error_t load_verified_white_cert_list();
- ae_error_t load_white_cert_list_to_be_verify();
- bool m_ufd;
- public:
- virtual ae_error_t load_enclave();
- int get_launch_token(
- uint8_t * mrenclave, uint32_t mrenclave_size,
- uint8_t *mrsigner, uint32_t mrsigner_size,
- uint8_t *se_attributes, uint32_t se_attributes_size,
- uint8_t * lictoken, uint32_t lictoken_size,
- uint32_t *ae_mrsigner_value=NULL
- );
- int white_list_register(
- const uint8_t *white_list_cert,
- uint32_t white_list_cert_size,
- bool save_to_persistent_storage=true);
- static ae_error_t update_white_list_by_url(void);
- bool is_ufd() { return m_ufd; }
- };
- #endif
|