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
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
XrdSysLogger * logger(XrdSysLogger *lp=0)

References cryptoTrace, cryptoTRACE_ALL, cryptoTRACE_Debug, cryptoTRACE_Dump, cryptoTRACE_Notify, eDest, Logger, XrdSysError::logger(), and XrdOucTrace::What.

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

+ Here is the call graph for this function:
+ 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_") ( ,
"crypto_"   
)
static

Referenced by XrdOucGMap::XrdOucGMap(), XrdXrootdGSReal::XrdXrootdGSReal(), XrdXrootdMonitor::XrdXrootdMonitor(), XrdXrootdTpcMon::XrdXrootdTpcMon(), XrdOuca2x::a2p(), XrdOfsPoscq::Add(), XrdXrootdFileTable::Add(), XrdDigAuth::Authorize(), XrdOucPsx::ClientConfig(), XrdOfsPoscq::Commit(), XrdNetPMarkCfg::Config(), XrdOucLogging::configLog(), XrdPssSys::ConfigMapID(), XrdOucPsx::ConfigSetup(), XrdDigAuth::Configure(), XrdDigConfig::Configure(), XrdCmsConfig::ConfigXeq(), XrdConfig::ConfigXeq(), XrdOfsPoscq::Del(), XrdOucUtils::doIf(), XrdXrootdCallBack::Done(), XrdDigFS::Emsg(), XrdSfsNative::Emsg(), XrdSsiUtils::Emsg(), XrdSecProtocolgsi::EnableTracing(), XrdSecProtocolpwd::EnableTracing(), XrdAccEntity::GetEntity(), XrdNetIF::GetIF(), XrdNetIF::GetIF(), XrdNetIF::GetIF(), XrdSysPlugin::getLibrary(), XrdCmsSecurity::getVnId(), XrdNetSocket::getWindow(), XrdXrootdMonitor::Init(), XrdSecProtocolgsi::Init(), XrdOfsPoscq::Init(), XrdXrootdMonitor::Init(), XrdPssSys::Init(), XrdXrootdFile::Init(), XrdXrootdPrepare::List(), LoadFS(), XrdCmsUtils::loadPerfMon(), XrdXrootdPrepare::Log(), XrdXrootdPrepare::Logdel(), XrdOucUtils::makeHome(), XrdOucUtils::makeHome(), XrdOucUtils::parseHome(), XrdOucUtils::parseLib(), XrdCmsUtils::ParseMan(), XrdCmsUtils::ParseManPort(), XrdOucUtils::PidFile(), XrdXrootdTpcMon::Report(), XrdSysThread::Run(), XrdXrootdPrepare::Scrub(), XrdXrootdCallBack::sendError(), XrdXrootdCallBack::sendResp(), XrdXrootdCallBack::sendVesp(), XrdAccEntity::setError(), XrdNetIF::SetIF(), XrdNetIF::SetIFNames(), XrdNetIF::SetMsgs(), XrdNetSocket::setOpts(), XrdCryptosslFactory::SetTrace(), XrdXrootdCallBack::setVals(), XrdNetSocket::setWindow(), XrdNetPMarkFF::Start(), XrdOucUtils::subLogfn(), XrdOucUtils::Undercover(), XrdCksInit(), XrdCryptoSetTrace(), XrdDigGetFS(), XrdHttpGetSecXtractor(), XrdOfsgetPrepare(), XrdOssStatInfoParm(), XrdOucgetGMap(), XrdOucgetName2Name(), XrdSecLoadSecService(), 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().