30#include <unordered_map>
34typedef enum RESTServerResult {
37 RESULT_OBJECT_REJECTED,
38 RESULT_DUPLICATE_REJECTED,
39 RESULT_ROUTE_INSERT_ERROR,
40 RESULT_NEW_PIN_REQUESTED
54 bool StartServer(std::string certificate_location);
62 void SetSecThreadActive(
void) { m_bsec_thread_active =
true; }
63 void SetSecThreadInActive(
void) { m_bsec_thread_active =
false; }
64 bool IsSecThreadActive()
const {
return m_bsec_thread_active; }
67 m_pSecondary_Thread = secondary_Thread;
70 return m_pSecondary_Thread;
72 void SetThreadRunFlag(
int run) { m_Thread_run_flag = run; }
74 std::string GetCertificateDirectory(){
return m_certificate_directory; }
75 int m_Thread_run_flag;
77 std::string m_cert_file;
78 std::string m_key_file;
81 bool LoadConfig(
void );
82 bool SaveConfig(
void );
85 bool m_bsec_thread_active;
86 std::string m_certificate_directory;
87 std::unordered_map<std::string, std::string> m_key_map;