|
XRootD
|
#include <cstdio>#include <cstdlib>#include <cstring>#include <unistd.h>#include <cerrno>#include <ctime>#include <pwd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include "XrdSys/XrdSysLogger.hh"#include "XrdSys/XrdSysError.hh"#include "XrdSys/XrdSysPwd.hh"#include "XrdOuc/XrdOucString.hh"#include "XrdSut/XrdSutAux.hh"#include "XrdSut/XrdSutRndm.hh"#include "XrdSut/XrdSutTrace.hh"
Include dependency graph for XrdSutAux.cc:Go to the source code of this file.
Functions | |
| bool | XrdSutAskConfirm (const char *msg1, bool defact, const char *msg2) |
| const char * | XrdSutBuckStr (int kbck) |
| int | XrdSutExpand (XrdOucString &path) |
| int | XrdSutFromHex (const char *in, char *out, int &lout) |
| int | XrdSutGetLine (XrdOucString &line, const char *prompt) |
| int | XrdSutGetPass (const char *prompt, XrdOucString &passwd) |
| const char * | XrdSutHome () |
| volatile void * | XrdSutMemSet (volatile void *dst, int c, int len) |
| int | XrdSutMkdir (const char *dir, unsigned int mode, const char *opt) |
| int | XrdSutParseTime (const char *tstr, int opt) |
| int | XrdSutResolve (XrdOucString &path, const char *ho, const char *vo, const char *gr, const char *us) |
| void | XrdSutSetTrace (kXR_int32 trace) |
| int | XrdSutTimeString (int t, char *st, int opt) |
| int | XrdSutToHex (const char *in, int lin, char *out) |
Variables | |
| static XrdSysError | eDest (0,"sut_") |
| static const char * | gXRSBucketTypes [] |
| static XrdSysLogger | Logger |
| XrdOucTrace * | sutTrace = 0 |
| bool XrdSutAskConfirm | ( | const char * | msg1, |
| bool | defact, | ||
| const char * | msg2 ) |
Definition at line 203 of file XrdSutAux.cc.
References XrdOucString::c_str(), XrdOucString::insert(), XrdOucString::length(), XrdOucString::lower(), and XrdSutGetLine().
Here is the call graph for this function:| const char * XrdSutBuckStr | ( | int | kbck | ) |
Definition at line 121 of file XrdSutAux.cc.
References gXRSBucketTypes, kXRS_cryptomod, and kXRS_reserved.
Referenced by XrdSutBuffer::XrdSutBuffer(), XrdSecProtocolgsi::Authenticate(), XrdSutBucket::Dump(), XrdSecProtocolgsi::getCredentials(), XrdSecProtocolpwd::getCredentials(), XrdSutBuffer::MarshalBucket(), and XrdSutBuffer::UnmarshalBucket().
Here is the caller graph for this function:| int XrdSutExpand | ( | XrdOucString & | path | ) |
Definition at line 360 of file XrdSutAux.cc.
References XrdOucString::assign(), XrdOucString::c_str(), DEBUG, EPNAME, XrdOucString::erase(), XrdOucString::find(), XrdOucString::insert(), XrdOucString::length(), STR_NPOS, and XrdSutHome().
Referenced by XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), ParseArguments(), and XrdSutMkdir().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdSutFromHex | ( | const char * | in, |
| char * | out, | ||
| int & | lout ) |
Definition at line 268 of file XrdSutAux.cc.
Referenced by XrdCryptoBasic::FromHex().
Here is the caller graph for this function:| int XrdSutGetLine | ( | XrdOucString & | line, |
| const char * | prompt ) |
Definition at line 179 of file XrdSutAux.cc.
References XrdOucString::length(), and XrdSutMAXBUF.
Referenced by AskConfirm(), main(), and XrdSutAskConfirm().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdSutGetPass | ( | const char * | prompt, |
| XrdOucString & | passwd ) |
Definition at line 150 of file XrdSutAux.cc.
References DEBUG, EPNAME, and XrdSutMemSet().
Referenced by AddPassword(), and AddPassword().
Here is the call graph for this function:
Here is the caller graph for this function:| const char * XrdSutHome | ( | ) |
Definition at line 459 of file XrdSutAux.cc.
References XrdOucString::c_str(), DEBUG, EPNAME, and XrdOucString::length().
Referenced by XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), ParseArguments(), and XrdSutExpand().
Here is the call graph for this function:
Here is the caller graph for this function:| volatile void * XrdSutMemSet | ( | volatile void * | dst, |
| int | c, | ||
| int | len ) |
Definition at line 140 of file XrdSutAux.cc.
Referenced by XrdSutGetPass().
Here is the caller graph for this function:| int XrdSutMkdir | ( | const char * | dir, |
| unsigned int | mode, | ||
| const char * | opt ) |
Definition at line 487 of file XrdSutAux.cc.
References XrdOucString::append(), XrdOucString::c_str(), XrdOucString::find(), XrdOucString::length(), mkdir, stat, and XrdSutExpand().
Referenced by XrdSecProtocolpwd::Init(), ParseArguments(), SavePasswd(), and SavePuk().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdSutParseTime | ( | const char * | tstr, |
| int | opt ) |
Definition at line 534 of file XrdSutAux.cc.
References XrdOucString::assign(), XrdOucString::c_str(), DEBUG, EPNAME, XrdOucString::erase(), XrdOucString::length(), and ts().
Referenced by main(), and XrdSecProtocolpwdInit().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdSutResolve | ( | XrdOucString & | path, |
| const char * | ho, | ||
| const char * | vo, | ||
| const char * | gr, | ||
| const char * | us ) |
Definition at line 419 of file XrdSutAux.cc.
References XrdOucString::find(), XrdSutRndm::GetString(), XrdOucString::length(), XrdOucString::replace(), and STR_NPOS.
Here is the call graph for this function:| void XrdSutSetTrace | ( | kXR_int32 | trace | ) |
Definition at line 93 of file XrdSutAux.cc.
References eDest, Logger, sutTrace, sutTRACE_ALL, sutTRACE_Debug, sutTRACE_Dump, and sutTRACE_Notify.
Referenced by XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), and main().
Here is the caller graph for this function:| int XrdSutTimeString | ( | int | t, |
| char * | st, | ||
| int | opt ) |
Definition at line 305 of file XrdSutAux.cc.
Referenced by XrdSutCacheEntry::AsString(), XrdSutPFEntry::AsString(), XrdSutPFile::Browse(), XrdSutPFCache::Dump(), and SavePuk().
Here is the caller graph for this function:| int XrdSutToHex | ( | const char * | in, |
| int | lin, | ||
| char * | out ) |
Definition at line 235 of file XrdSutAux.cc.
Referenced by XrdCryptoBasic::AsHexString(), XrdSecProtocolpwd::Authenticate(), and main().
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 49 of file XrdSutAux.cc.
Referenced by XrdSutBuckStr().
|
static |
Definition at line 85 of file XrdSutAux.cc.
| XrdOucTrace* sutTrace = 0 |
Definition at line 87 of file XrdSutAux.cc.
Referenced by XrdSutSetTrace().