#include "XrdSys/XrdSysHeaders.hh"
#include <XProtocol/XProtocol.hh>
Go to the source code of this file.
Classes | |
class | XrdSutFileLocker |
Defines | |
#define | XrdSutMAXBUF 4096 |
#define | XrdSutMAXPPT 512 |
#define | XrdSutMAXBUCKS 10 |
#define | XrdSutMAXINT64LEN 25 |
#define | XrdSutPRINTLEN 100 |
#define | sutTRACE_ALL 0x0007 |
#define | sutTRACE_Dump 0x0004 |
#define | sutTRACE_Debug 0x0002 |
#define | sutTRACE_Notify 0x0001 |
Enumerations | |
enum | kXRSBucketTypes |
Functions | |
const char * | XrdSutBuckStr (int kbck) |
void | XrdSutSetTrace (kXR_int32 trace) |
volatile void * | XrdSutMemSet (volatile void *dst, int c, int len) |
int | XrdSutGetPass (const char *prompt, XrdOucString &passwd) |
int | XrdSutGetLine (XrdOucString &line, const char *prompt=0) |
bool | XrdSutAskConfirm (const char *msg1, bool defact, const char *msg2=0) |
int | XrdSutToHex (const char *in, int lin, char *out) |
int | XrdSutFromHex (const char *in, char *out, int &lout) |
int | XrdSutTimeString (int t, char *st, int opt=0) |
int | XrdSutExpand (XrdOucString &path) |
int | XrdSutResolve (XrdOucString &path, const char *ho, const char *vo, const char *gr, const char *us) |
const char * | XrdSutHome () |
int | XrdSutMkdir (const char *dir, unsigned int mode=0777, const char *opt="-p") |
int | XrdSutParseTime (const char *tstr, int opt=0) |
#define sutTRACE_ALL 0x0007 |
#define sutTRACE_Debug 0x0002 |
#define sutTRACE_Dump 0x0004 |
#define sutTRACE_Notify 0x0001 |
#define XrdSutMAXBUCKS 10 |
Definition at line 33 of file XrdSutAux.hh.
#define XrdSutMAXBUF 4096 |
Definition at line 31 of file XrdSutAux.hh.
Referenced by XrdCryptoBasic::AsHexString(), XrdSutPFile::Err(), and XrdSutGetLine().
#define XrdSutMAXINT64LEN 25 |
Definition at line 34 of file XrdSutAux.hh.
#define XrdSutMAXPPT 512 |
Definition at line 32 of file XrdSutAux.hh.
Referenced by XrdSecProtocolpwd::QueryCreds(), and XrdSecProtocolpwd::QueryUser().
#define XrdSutPRINTLEN 100 |
enum kXRSBucketTypes |
Definition at line 37 of file XrdSutAux.hh.
bool XrdSutAskConfirm | ( | const char * | msg1, | |
bool | defact, | |||
const char * | msg2 = 0 | |||
) |
Definition at line 193 of file XrdSutAux.cc.
References XrdOucString::c_str(), XrdOucString::insert(), XrdOucString::length(), XrdOucString::lower(), and XrdSutGetLine().
const char* XrdSutBuckStr | ( | int | kbck | ) |
Definition at line 105 of file XrdSutAux.cc.
References gXRSBucketTypes, kXRS_cryptomod, and kXRS_reserved.
Referenced by XrdSecProtocolgsi::AddSerialized(), XrdSecProtocolpwd::AddSerialized(), XrdSecProtocolgsi::Authenticate(), XrdSutBucket::Dump(), XrdSecProtocolgsi::getCredentials(), XrdSecProtocolpwd::getCredentials(), XrdSutBuffer::MarshalBucket(), XrdSutBuffer::UnmarshalBucket(), and XrdSutBuffer::XrdSutBuffer().
int XrdSutExpand | ( | XrdOucString & | path | ) |
Definition at line 346 of file XrdSutAux.cc.
References XrdOucString::assign(), XrdOucString::c_str(), DEBUG, EPNAME, XrdOucString::erase(), XrdOucString::find(), getenv(), XrdOucString::insert(), XrdOucString::length(), pwd(), STR_NPOS, and XrdSutHome().
Referenced by XrdSecProtocolpwd::Init(), XrdSecProtocolgsi::Init(), ParseArguments(), and XrdSutMkdir().
int XrdSutFromHex | ( | const char * | in, | |
char * | out, | |||
int & | lout | |||
) |
Definition at line 254 of file XrdSutAux.cc.
Referenced by XrdCryptolocalCipher::Finalize(), XrdCryptoBasic::FromHex(), XrdSecProtocolpwd::QueryCreds(), XrdProofdProofServMgr::SaveAFSkey(), and XrdCryptolocalCipher::XrdCryptolocalCipher().
int XrdSutGetLine | ( | XrdOucString & | line, | |
const char * | prompt = 0 | |||
) |
Definition at line 169 of file XrdSutAux.cc.
References line, and XrdSutMAXBUF.
Referenced by AskConfirm(), XrdSecProtocolpwd::GetUserHost(), main(), and XrdSutAskConfirm().
int XrdSutGetPass | ( | const char * | prompt, | |
XrdOucString & | passwd | |||
) |
Definition at line 140 of file XrdSutAux.cc.
References DEBUG, EPNAME, i, k, len, x20, and XrdSutMemSet().
Referenced by AddPassword(), and XrdSecProtocolpwd::QueryCreds().
const char* XrdSutHome | ( | ) |
Definition at line 437 of file XrdSutAux.cc.
References XrdOucString::c_str(), DEBUG, EPNAME, getenv(), and XrdOucString::length().
Referenced by XrdSecProtocolpwd::Init(), XrdSecProtocolgsi::Init(), ParseArguments(), and XrdSutExpand().
volatile void* XrdSutMemSet | ( | volatile void * | dst, | |
int | c, | |||
int | len | |||
) |
int XrdSutMkdir | ( | const char * | dir, | |
unsigned int | mode = 0777 , |
|||
const char * | opt = "-p" | |||
) |
Definition at line 464 of file XrdSutAux.cc.
References XrdOucString::append(), XrdOucString::find(), XrdOucString::length(), mkdir, pd, stat, and XrdSutExpand().
Referenced by XrdSecProtocolpwd::Init(), SavePasswd(), and SavePuk().
int XrdSutParseTime | ( | const char * | tstr, | |
int | opt = 0 | |||
) |
Definition at line 511 of file XrdSutAux.cc.
References XrdOucString::assign(), XrdOucString::c_str(), DEBUG, EPNAME, XrdOucString::erase(), i, XrdOucString::length(), ls(), ts, and u.
Referenced by XrdSecProtocolgsi::InitProxy(), main(), and XrdSecProtocolpwdInit().
int XrdSutResolve | ( | XrdOucString & | path, | |
const char * | ho, | |||
const char * | vo, | |||
const char * | gr, | |||
const char * | us | |||
) |
Definition at line 404 of file XrdSutAux.cc.
References XrdOucString::find(), XrdOucString::length(), XrdOucString::replace(), and STR_NPOS.
Referenced by XrdSecProtocolgsi::ClientDoInit(), XrdSecProtocolpwd::ExportCreds(), XrdSecProtocolpwd::QueryNetRc(), and XrdSecProtocolgsi::ServerDoSigpxy().
void XrdSutSetTrace | ( | kXR_int32 | trace | ) |
Definition at line 77 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 291 of file XrdSutAux.cc.
References i, localtime_r, sprintf(), and x20.
Referenced by XrdSutPFEntry::AsString(), XrdSutPFile::Browse(), XrdSutCache::Dump(), and SavePuk().
int XrdSutToHex | ( | const char * | in, | |
int | lin, | |||
char * | out | |||
) |
Definition at line 225 of file XrdSutAux.cc.
Referenced by XrdCryptoBasic::AsHexString(), XrdSecProtocolpwd::Authenticate(), main(), and XrdCryptolocalCipher::Public().