xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
< TempCAGuard
create (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

XrdTlsTempCA::TempCAGuard::TempCAGuard ( const TempCAGuard )
delete
XrdTlsTempCA::TempCAGuard::~TempCAGuard ( )
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

bool XrdTlsTempCA::TempCAGuard::commit ( )

Move temporary file to the permanent location.

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

References m_ca_fd.

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

References m_ca_fname.

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

References m_crl_fd.

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

References m_crl_fname.

Member Data Documentation

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

Referenced by getCAFD().

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

Referenced by getCAFilename().

std::string XrdTlsTempCA::TempCAGuard::m_ca_tmp_dir
private
int XrdTlsTempCA::TempCAGuard::m_crl_fd {-1}
private

Referenced by getCRLFD().

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

Referenced by getCRLFilename().


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