![]() |
XRootD
|
Go to the source code of this file.
Classes | |
class | XrdSutFileLocker |
Macros | |
#define | sutTRACE_ALL 0x0007 |
#define | sutTRACE_Debug 0x0002 |
#define | sutTRACE_Dump 0x0004 |
#define | sutTRACE_Notify 0x0001 |
#define | XrdSutMAXBUCKS 10 |
#define | XrdSutMAXBUF 4096 |
#define | XrdSutMAXINT64LEN 25 |
#define | XrdSutMAXPPT 512 |
#define | XrdSutPRINTLEN 100 |
Enumerations | |
enum | kXRSBucketTypes { kXRS_none = 0 , kXRS_inactive = 1 , kXRS_cryptomod = 3000 , kXRS_main , kXRS_srv_seal , kXRS_clnt_seal , kXRS_puk , kXRS_cipher , kXRS_rtag , kXRS_signed_rtag , kXRS_user , kXRS_host , kXRS_creds , kXRS_message , kXRS_srvID , kXRS_sessionID , kXRS_version , kXRS_status , kXRS_localstatus , kXRS_othercreds , kXRS_cache_idx , kXRS_clnt_opts , kXRS_error_code , kXRS_timestamp , kXRS_x509 , kXRS_issuer_hash , kXRS_x509_req , kXRS_cipher_alg , kXRS_md_alg , kXRS_afsinfo , kXRS_reserved } |
Functions | |
bool | XrdSutAskConfirm (const char *msg1, bool defact, const char *msg2=0) |
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=0) |
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=0777, const char *opt="-p") |
int | XrdSutParseTime (const char *tstr, int opt=0) |
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=0) |
int | XrdSutToHex (const char *in, int lin, char *out) |
#define sutTRACE_ALL 0x0007 |
Definition at line 97 of file XrdSutAux.hh.
#define sutTRACE_Debug 0x0002 |
Definition at line 99 of file XrdSutAux.hh.
#define sutTRACE_Dump 0x0004 |
Definition at line 98 of file XrdSutAux.hh.
#define sutTRACE_Notify 0x0001 |
Definition at line 100 of file XrdSutAux.hh.
#define XrdSutMAXBUCKS 10 |
Definition at line 50 of file XrdSutAux.hh.
#define XrdSutMAXBUF 4096 |
Definition at line 48 of file XrdSutAux.hh.
#define XrdSutMAXINT64LEN 25 |
Definition at line 51 of file XrdSutAux.hh.
#define XrdSutMAXPPT 512 |
Definition at line 49 of file XrdSutAux.hh.
#define XrdSutPRINTLEN 100 |
Definition at line 52 of file XrdSutAux.hh.
enum kXRSBucketTypes |
Definition at line 54 of file XrdSutAux.hh.
bool XrdSutAskConfirm | ( | const char * | msg1, |
bool | defact, | ||
const char * | msg2 = 0 |
||
) |
Definition at line 209 of file XrdSutAux.cc.
References XrdOucString::c_str(), XrdOucString::insert(), XrdOucString::length(), XrdOucString::lower(), and XrdSutGetLine().
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().
int XrdSutExpand | ( | XrdOucString & | path | ) |
Definition at line 366 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().
int XrdSutFromHex | ( | const char * | in, |
char * | out, | ||
int & | lout | ||
) |
Definition at line 274 of file XrdSutAux.cc.
Referenced by XrdCryptoBasic::FromHex().
int XrdSutGetLine | ( | XrdOucString & | line, |
const char * | prompt = 0 |
||
) |
Definition at line 185 of file XrdSutAux.cc.
References XrdOucString::length(), and XrdSutMAXBUF.
Referenced by AskConfirm(), main(), and XrdSutAskConfirm().
int XrdSutGetPass | ( | const char * | prompt, |
XrdOucString & | passwd | ||
) |
Definition at line 156 of file XrdSutAux.cc.
References DEBUG, EPNAME, and XrdSutMemSet().
Referenced by AddPassword().
const char* XrdSutHome | ( | ) |
Definition at line 465 of file XrdSutAux.cc.
References XrdOucString::c_str(), DEBUG, EPNAME, and XrdOucString::length().
Referenced by XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), ParseArguments(), and XrdSutExpand().
volatile void* XrdSutMemSet | ( | volatile void * | dst, |
int | c, | ||
int | len | ||
) |
Definition at line 140 of file XrdSutAux.cc.
Referenced by XrdSutGetPass().
int XrdSutMkdir | ( | const char * | dir, |
unsigned int | mode = 0777 , |
||
const char * | opt = "-p" |
||
) |
Definition at line 493 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().
int XrdSutParseTime | ( | const char * | tstr, |
int | opt = 0 |
||
) |
Definition at line 540 of file XrdSutAux.cc.
References XrdOucString::assign(), XrdOucString::c_str(), DEBUG, EPNAME, XrdOucString::erase(), XrdOucString::find(), and XrdOucString::length().
Referenced by main(), and XrdSecProtocolpwdInit().
int XrdSutResolve | ( | XrdOucString & | path, |
const char * | ho, | ||
const char * | vo, | ||
const char * | gr, | ||
const char * | us | ||
) |
Definition at line 425 of file XrdSutAux.cc.
References XrdOucString::find(), XrdSutRndm::GetString(), XrdOucString::length(), XrdOucString::replace(), and STR_NPOS.
void XrdSutSetTrace | ( | kXR_int32 | trace | ) |
Definition at line 93 of file XrdSutAux.cc.
References eDest, Logger, XrdSysError::logger(), sutTrace, sutTRACE_ALL, sutTRACE_Debug, sutTRACE_Dump, sutTRACE_Notify, and XrdOucTrace::What.
Referenced by XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), and main().
int XrdSutTimeString | ( | int | t, |
char * | st, | ||
int | opt = 0 |
||
) |
Definition at line 311 of file XrdSutAux.cc.
Referenced by XrdSutCacheEntry::AsString(), XrdSutPFEntry::AsString(), XrdSutPFile::Browse(), XrdSutPFCache::Dump(), and SavePuk().
int XrdSutToHex | ( | const char * | in, |
int | lin, | ||
char * | out | ||
) |
Definition at line 241 of file XrdSutAux.cc.
Referenced by XrdCryptoBasic::AsHexString(), XrdSecProtocolpwd::Authenticate(), and main().