|
xrootd
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <errno.h>#include <netinet/in.h>#include <time.h>#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/XrdSutTrace.hh>
Functions | |
| void | XrdSutSetTrace (kXR_int32 trace) |
| const char * | XrdSutBuckStr (int kbck) |
| volatile void * | XrdSutMemSet (volatile void *dst, int c, int len) |
| int | XrdSutGetPass (const char *prompt, XrdOucString &passwd) |
| int | XrdSutGetLine (XrdOucString &line, const char *prompt) |
| bool | XrdSutAskConfirm (const char *msg1, bool defact, const char *msg2) |
| 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) |
| 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, const char *opt) |
| int | XrdSutParseTime (const char *tstr, int opt) |
Variables | |
| static const char * | gXRSBucketTypes [] |
| static XrdSysLogger | Logger |
| static XrdSysError | eDest (0,"sut_") |
| XrdOucTrace * | sutTrace = 0 |
| bool XrdSutAskConfirm | ( | const char * | msg1, |
| bool | defact, | ||
| const char * | msg2 | ||
| ) |
| const char* XrdSutBuckStr | ( | int | kbck | ) |
References kXRS_reserved, kXRS_cryptomod, and gXRSBucketTypes.
Referenced by XrdSecProtocolgsi::getCredentials(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolgsi::AddSerialized(), XrdSecProtocolpwd::getCredentials(), XrdSecProtocolpwd::AddSerialized(), XrdSutBucket::Dump(), XrdSutBuffer::XrdSutBuffer(), XrdSutBuffer::MarshalBucket(), and XrdSutBuffer::UnmarshalBucket().
| int XrdSutExpand | ( | XrdOucString & | path | ) |
References EPNAME, XrdOucString::length(), XrdOucString::find(), STR_NPOS, XrdOucString::assign(), XrdOucString::erase(), XrdOucString::c_str(), DEBUG, XrdSutHome(), and XrdOucString::insert().
Referenced by ParseArguments(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), and XrdSutMkdir().
| int XrdSutFromHex | ( | const char * | in, |
| char * | out, | ||
| int & | lout | ||
| ) |
| int XrdSutGetLine | ( | XrdOucString & | line, |
| const char * | prompt | ||
| ) |
References XrdSutMAXBUF, and XrdOucString::length().
Referenced by XrdSecProtocolpwd::GetUserHost(), main(), AskConfirm(), and XrdSutAskConfirm().
| int XrdSutGetPass | ( | const char * | prompt, |
| XrdOucString & | passwd | ||
| ) |
References EPNAME, XrdSutMemSet(), and DEBUG.
Referenced by XrdSecProtocolpwd::QueryCreds(), and AddPassword().
| const char* XrdSutHome | ( | ) |
References EPNAME, XrdOucString::length(), DEBUG, and XrdOucString::c_str().
Referenced by ParseArguments(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), and XrdSutExpand().
| volatile void* XrdSutMemSet | ( | volatile void * | dst, |
| int | c, | ||
| int | len | ||
| ) |
Referenced by XrdSutGetPass().
| int XrdSutMkdir | ( | const char * | dir, |
| unsigned int | mode, | ||
| const char * | opt | ||
| ) |
References XrdSutExpand(), XrdOucString::length(), XrdOucString::append(), XrdOucString::find(), stat(), XrdOucString::c_str(), and mkdir().
Referenced by XrdSecProtocolpwd::Init(), SavePasswd(), and SavePuk().
| int XrdSutParseTime | ( | const char * | tstr, |
| int | opt | ||
| ) |
References EPNAME, XrdOucString::length(), XrdOucString::find(), XrdOucString::assign(), XrdOucString::erase(), XrdOucString::c_str(), and DEBUG.
Referenced by main(), XrdSecProtocolgsi::InitProxy(), and XrdSecProtocolpwdInit().
| int XrdSutResolve | ( | XrdOucString & | path, |
| const char * | ho, | ||
| const char * | vo, | ||
| const char * | gr, | ||
| const char * | us | ||
| ) |
| void XrdSutSetTrace | ( | kXR_int32 | trace | ) |
References eDest, XrdSysError::logger(), XrdOucTrace::What, sutTRACE_Notify, sutTRACE_Debug, sutTRACE_Dump, and sutTRACE_ALL.
Referenced by main(), XrdSecProtocolgsi::Init(), and XrdSecProtocolpwd::Init().
| int XrdSutTimeString | ( | int | t, |
| char * | st, | ||
| int | opt | ||
| ) |
References localtime_r.
Referenced by SavePuk(), XrdSutCache::Dump(), XrdSutPFEntry::AsString(), and XrdSutPFile::Browse().
| int XrdSutToHex | ( | const char * | in, |
| int | lin, | ||
| char * | out | ||
| ) |
Referenced by XrdCryptoBasic::AsHexString(), XrdCryptolocalCipher::Public(), main(), and XrdSecProtocolpwd::Authenticate().
XrdSysError eDest(0,"sut_") [static] |
Referenced by XrdSutSetTrace().
const char* gXRSBucketTypes[] [static] |
Referenced by XrdSutBuckStr().
XrdSysLogger Logger [static] |
| XrdOucTrace* sutTrace = 0 |
1.7.5