XRootD
Loading...
Searching...
No Matches
XrdCryptoAux.cc File Reference
Include dependency graph for XrdCryptoAux.cc:

Go to the source code of this file.

Functions

void XrdCryptoSetTrace (kXR_int32 trace)
time_t XrdCryptoTZCorr ()

Variables

XrdOucTracecryptoTrace = 0
static XrdSysError eDest (0,"crypto_")
static XrdSysLogger Logger
static time_t TZCorr = 0
static bool TZInitialized = 0

Function Documentation

◆ XrdCryptoSetTrace()

void XrdCryptoSetTrace ( kXR_int32 trace)

Definition at line 49 of file XrdCryptoAux.cc.

50{
51 // Set trace flags according to 'trace'
52
53 //
54 // Initiate error logging and tracing
55 eDest.logger(&Logger);
56 if (!cryptoTrace)
58 if (cryptoTrace) {
59 // Set debug mask
60 cryptoTrace->What = 0;
61 // Low level only
62 if ((trace & cryptoTRACE_Notify))
64 // Medium level
65 if ((trace & cryptoTRACE_Debug))
67 // High level
68 if ((trace & cryptoTRACE_Dump))
70 }
71}
XrdOucTrace * cryptoTrace
static XrdSysLogger Logger
static XrdSysError eDest(0,"crypto_")
#define cryptoTRACE_Notify
#define cryptoTRACE_Dump
#define cryptoTRACE_Debug
#define cryptoTRACE_ALL

References cryptoTrace, cryptoTRACE_ALL, cryptoTRACE_Debug, cryptoTRACE_Dump, cryptoTRACE_Notify, eDest, and Logger.

Referenced by XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), and main().

Here is the caller graph for this function:

◆ XrdCryptoTZCorr()

time_t XrdCryptoTZCorr ( )

Definition at line 77 of file XrdCryptoAux.cc.

78{
79 // Time Zone correction (wrt UTC)
80 // Assumes no DST, the correction is not expected to change during the year
81
82 if (!TZInitialized) {
83 time_t now = time(0);
84 struct tm ltn, gtn;
85 if (localtime_r(&now, &ltn) != 0 && gmtime_r(&now, &gtn) != 0) {
86 TZCorr = time_t(difftime(mktime(&ltn), mktime(&gtn)));
87 TZInitialized = 1;
88 }
89 }
90 // Done
91 return TZCorr;
92}
static time_t TZCorr
static bool TZInitialized

References TZCorr, and TZInitialized.

Referenced by Display(), and XrdCryptosslASN1toUTC().

Here is the caller graph for this function:

Variable Documentation

◆ cryptoTrace

XrdOucTrace* cryptoTrace = 0

Definition at line 39 of file XrdCryptoAux.cc.

Referenced by XrdCryptoSetTrace().

◆ eDest

XrdSysError eDest(0,"crypto_") ( 0 ,
"crypto_"  )
static

Referenced by XrdOucGMap::XrdOucGMap(), XrdOucN2NLoader::XrdOucN2NLoader(), XrdXrootdGSReal::XrdXrootdGSReal(), XrdXrootdMonitor::XrdXrootdMonitor(), XrdXrootdTpcMon::XrdXrootdTpcMon(), XrdCmsUtils::~XrdCmsUtils(), XrdOuca2x::a2p(), XrdXrootdFileTable::Add(), XrdDigAuth::Authorize(), XrdOucPsx::ClientConfig(), XrdNetPMarkCfg::Config(), XrdOucLogging::configLog(), XrdPssSys::ConfigMapID(), XrdOucPsx::ConfigSetup(), XrdDigAuth::Configure(), XrdDigConfig::Configure(), XrdCmsConfig::ConfigXeq(), XrdConfig::ConfigXeq(), XrdOucUtils::doIf(), XrdXrootdCallBack::Done(), XrdDigFS::Emsg(), XrdSsiUtils::Emsg(), XrdAccEntity::GetEntity(), XrdCmsSecurity::getVnId(), XrdNetSocket::getWindow(), XrdPssSys::Init(), XrdXrootdFile::Init(), XrdXrootdMonitor::Init(), XrdXrootdMonitor::Init(), LoadFS(), XrdCmsUtils::loadPerfMon(), main(), XrdOucUtils::makeHome(), XrdOucUtils::makeHome(), XrdOucUtils::parseHome(), XrdOucUtils::parseLib(), XrdCmsUtils::ParseMan(), XrdCmsUtils::ParseManPort(), XrdOucUtils::PidFile(), XrdXrootdTpcMon::Report(), XrdXrootdCallBack::sendError(), XrdXrootdCallBack::sendResp(), XrdXrootdCallBack::sendVesp(), XrdAccEntity::setError(), XrdNetSocket::setOpts(), XrdCryptosslFactory::SetTrace(), XrdXrootdCallBack::setVals(), XrdNetSocket::setWindow(), XrdNetPMarkFF::Start(), XrdOucUtils::subLogfn(), XrdOucUtils::Undercover(), XrdCksCalcInit(), XrdCksInit(), XrdCryptoSetTrace(), XrdDigGetFS(), XrdHttpGetSecXtractor(), XrdOfsgetPrepare(), XrdOssStatInfoParm(), XrdOucgetGMap(), XrdOucgetName2Name(), XrdSecLoadSecService(), XrdSutSetTrace(), and XrdXrootdloadFileSystem().

◆ Logger

◆ TZCorr

time_t TZCorr = 0
static

Definition at line 42 of file XrdCryptoAux.cc.

Referenced by XrdCryptoTZCorr().

◆ TZInitialized

bool TZInitialized = 0
static

Definition at line 43 of file XrdCryptoAux.cc.

Referenced by XrdCryptoTZCorr().