53 bool IsValid()
const {
return m_ca_file.get() && m_crl_file.get();}
58 std::string
CAFilename()
const {
auto file_ref = m_ca_file;
return file_ref ? *file_ref :
"";}
63 std::string
CRLFilename()
const {
auto file_ref = m_crl_file;
return file_ref ? *file_ref :
"";}
76 static std::unique_ptr<TempCAGuard>
create(
XrdSysError &,
const std::string &ca_tmp_dir);
94 TempCAGuard(
int ca_fd,
int crl_fd,
const std::string &ca_tmp_dir,
const std::string &ca_fname,
const std::string &crl_fname);
98 std::string m_ca_tmp_dir;
99 std::string m_ca_fname;
100 std::string m_crl_fname;
116 static void *MaintenanceThread(
void *myself_raw);
122 int m_maintenance_pipe_r{-1};
123 int m_maintenance_pipe_w{-1};
124 int m_maintenance_thread_pipe_r{-1};
125 int m_maintenance_thread_pipe_w{-1};
127 const std::string m_ca_dir;
128 std::shared_ptr<std::string> m_ca_file;
129 std::shared_ptr<std::string> m_crl_file;
130 bool m_atLeastOneCRLFound =
false;
133 static constexpr
unsigned m_update_interval = 900;
135 static constexpr
unsigned m_update_interval_failure = 10;
static std::unique_ptr< TempCAGuard > create(XrdSysError &, const std::string &ca_tmp_dir)
std::string getCRLFilename() const
std::string getCAFilename() const
TempCAGuard(const TempCAGuard &)=delete
bool atLeastOneValidCRLFound() const
XrdTlsTempCA(XrdSysError *log, std::string ca_dir)
std::string CAFilename() const
std::string CRLFilename() const