xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdTlsTempCA::TempCAGuard Class Reference

#include <XrdTlsTempCA.hh>

Public Member Functions

int getCAFD () const
 
std::string getCAFilename () const
 
int getCRLFD () const
 
std::string getCRLFilename () const
 
bool commit ()
 
 TempCAGuard (const TempCAGuard &)=delete
 
 ~TempCAGuard ()
 

Static Public Member Functions

static std::unique_ptr< TempCAGuardcreate (XrdSysError &, const std::string &ca_tmp_dir)
 

Private Member Functions

 TempCAGuard (int ca_fd, int crl_fd, const std::string &ca_tmp_dir, const std::string &ca_fname, const std::string &crl_fname)
 

Private Attributes

int m_ca_fd {-1}
 
int m_crl_fd {-1}
 
std::string m_ca_tmp_dir
 
std::string m_ca_fname
 
std::string m_crl_fname
 

Detailed Description

Manages the temporary file associated with the curl handle

Constructor & Destructor Documentation

◆ TempCAGuard() [1/2]

XrdTlsTempCA::TempCAGuard::TempCAGuard ( const TempCAGuard )
delete

◆ ~TempCAGuard()

XrdTlsTempCA::TempCAGuard::~TempCAGuard ( )

◆ TempCAGuard() [2/2]

XrdTlsTempCA::TempCAGuard::TempCAGuard ( int  ca_fd,
int  crl_fd,
const std::string &  ca_tmp_dir,
const std::string &  ca_fname,
const std::string &  crl_fname 
)
private

Member Function Documentation

◆ commit()

bool XrdTlsTempCA::TempCAGuard::commit ( )

Move temporary file to the permanent location.

◆ create()

static std::unique_ptr< TempCAGuard > XrdTlsTempCA::TempCAGuard::create ( XrdSysError ,
const std::string &  ca_tmp_dir 
)
static

◆ getCAFD()

int XrdTlsTempCA::TempCAGuard::getCAFD ( ) const
inline

References m_ca_fd.

◆ getCAFilename()

std::string XrdTlsTempCA::TempCAGuard::getCAFilename ( ) const
inline

References m_ca_fname.

◆ getCRLFD()

int XrdTlsTempCA::TempCAGuard::getCRLFD ( ) const
inline

References m_crl_fd.

◆ getCRLFilename()

std::string XrdTlsTempCA::TempCAGuard::getCRLFilename ( ) const
inline

References m_crl_fname.

Member Data Documentation

◆ m_ca_fd

int XrdTlsTempCA::TempCAGuard::m_ca_fd {-1}
private

Referenced by getCAFD().

◆ m_ca_fname

std::string XrdTlsTempCA::TempCAGuard::m_ca_fname
private

Referenced by getCAFilename().

◆ m_ca_tmp_dir

std::string XrdTlsTempCA::TempCAGuard::m_ca_tmp_dir
private

◆ m_crl_fd

int XrdTlsTempCA::TempCAGuard::m_crl_fd {-1}
private

Referenced by getCRLFD().

◆ m_crl_fname

std::string XrdTlsTempCA::TempCAGuard::m_crl_fname
private

Referenced by getCRLFilename().


The documentation for this class was generated from the following file: