|
XRootD
|
#include <unistd.h>#include <cctype>#include <cstdlib>#include <strings.h>#include <cstdio>#include <sys/param.h>#include "XrdNet/XrdNetAddr.hh"#include "XrdOuc/XrdOucErrInfo.hh"#include "XrdSys/XrdSysE2T.hh"#include "XrdSys/XrdSysHeaders.hh"#include "XrdSys/XrdSysLogger.hh"#include "XrdSec/XrdSecInterface.hh"
Include dependency graph for XrdSectestServer.cc:Go to the source code of this file.
Classes | |
| struct | myOpts |
Macros | |
| #define | H(x) fprintf(stderr,x); fprintf(stderr, "\n"); |
| #define | I(x) fprintf(stderr, "\n"); H(x) |
| #define | insx(a, b) sprintf(errbuff,a,b) |
| #define | insy(a, b, c) sprintf(errbuff,a,b,c) |
Typedefs | |
| typedef unsigned char | uchar |
Functions | |
| int | cvtx (uchar idig, uchar *odig) |
| int | emsg (int rc, char *msg) |
| const char * | Ereason () |
| void | getargs (int argc, char **argv) |
| int | getbintix (uchar *buff, int blen) |
| void | getline (uchar *buff, int blen) |
| void | help (int rc) |
| int | main (int argc, char **argv) |
| int | unhex (uchar *ibuff, uchar *obuff, int blen) |
| void | xerr (int x) |
| XrdSecService * | XrdSecgetService (XrdSysLogger *lp, const char *cfn) |
Variables | |
| char | errbuff [256] |
| char | hexbuff [256] |
| struct myOpts | opts |
| struct myOpts |
Definition at line 62 of file XrdSectestServer.cc.
Collaboration diagram for myOpts:| Class Members | ||
|---|---|---|
| int | bin | |
| char * | cfn | |
| int | debug | |
| char * | host | |
| FILE * | infid | |
| char * | inpt | |
| int | online | |
| int | xtra | |
| #define H | ( | x | ) | fprintf(stderr,x); fprintf(stderr, "\n"); |
Definition at line 49 of file XrdSectestServer.cc.
| #define I | ( | x | ) | fprintf(stderr, "\n"); H(x) |
Definition at line 50 of file XrdSectestServer.cc.
| #define insx | ( | a, | |
| b | |||
| ) | sprintf(errbuff,a,b) |
Definition at line 51 of file XrdSectestServer.cc.
| #define insy | ( | a, | |
| b, | |||
| c | |||
| ) | sprintf(errbuff,a,b,c) |
Definition at line 52 of file XrdSectestServer.cc.
| typedef unsigned char uchar |
Definition at line 54 of file XrdSectestServer.cc.
Definition at line 281 of file XrdSectestServer.cc.
Referenced by unhex().
Here is the caller graph for this function:| int emsg | ( | int | rc, |
| char * | msg | ||
| ) |
Definition at line 309 of file XrdSectestServer.cc.
Referenced by XrdOfsEvr::theEvent::theEvent(), XrdTlsContext::XrdTlsContext(), XrdOuca2x::a2fm(), XrdOuca2x::a2i(), XrdOuca2x::a2ll(), XrdOuca2x::a2sn(), XrdOuca2x::a2sp(), XrdOuca2x::a2sz(), XrdOuca2x::a2tm(), XrdOuca2x::a2vp(), XrdSecProtocolkrb5::Authenticate(), getargs(), XrdCl::InitTLS(), main(), XrdPosixXrootd::QueryError(), XrdOucErrInfo::setErrInfo(), XrdAccSciTokens::Validate(), Macaroons::Authz::Validate(), and xerr().
Here is the caller graph for this function:| const char * Ereason | ( | ) |
Definition at line 299 of file XrdSectestServer.cc.
References XrdSysE2T().
Referenced by getargs(), and getbintix().
Here is the call graph for this function:
Here is the caller graph for this function:| void getargs | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 205 of file XrdSectestServer.cc.
References myOpts::bin, myOpts::cfn, myOpts::debug, emsg(), Ereason(), fopen, help(), myOpts::host, myOpts::infid, myOpts::inpt, insx, insy, myOpts::online, optind, opts, xerr(), and myOpts::xtra.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| int getbintix | ( | uchar * | buff, |
| int | blen | ||
| ) |
Definition at line 189 of file XrdSectestServer.cc.
References Ereason(), myOpts::infid, insx, opts, and xerr().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void getline | ( | uchar * | buff, |
| int | blen | ||
| ) |
Definition at line 291 of file XrdSectestServer.cc.
References myOpts::infid, and opts.
Referenced by encode_xrootd_opaque_to_uri(), XrdOssCsiConfig::Init(), main(), XrdCl::ParseInput(), XrdHttpTpcUtils::prepareOpenURL(), XrdCl::Utils::ProcessConfig(), and readline().
Here is the caller graph for this function:| void help | ( | int | rc | ) |
Definition at line 317 of file XrdSectestServer.cc.
Referenced by getargs().
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 105 of file XrdSectestServer.cc.
References XrdSecProtocol::Authenticate(), myOpts::bin, XrdSecBuffer::buffer, myOpts::cfn, emsg(), XrdSecProtocol::Entity, getargs(), getbintix(), XrdOucErrInfo::getErrInfo(), XrdOucErrInfo::getErrText(), getline(), XrdSecService::getParms(), XrdSecService::getProtocol(), XrdSecEntity::host, myOpts::host, myOpts::inpt, XrdGlobal::Logger, XrdSecEntity::name, myOpts::online, opts, XrdSecEntity::prot, XrdNetAddr::Set(), XrdSecBuffer::size, unhex(), and XrdSecgetService().
Here is the call graph for this function:Definition at line 269 of file XrdSectestServer.cc.
References cvtx().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void xerr | ( | int | x | ) |
Definition at line 305 of file XrdSectestServer.cc.
References emsg(), and errbuff.
Referenced by getargs(), getbintix(), and XProtocol::toErrno().
Here is the call graph for this function:
Here is the caller graph for this function:| XrdSecService* XrdSecgetService | ( | XrdSysLogger * | lp, |
| const char * | cfn | ||
| ) |
Definition at line 1195 of file XrdSecServer.cc.
References XrdSecServer::Configure().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| char errbuff[256] |
Definition at line 75 of file XrdSectestServer.cc.
Referenced by xerr().
| char hexbuff[256] |
Definition at line 77 of file XrdSectestServer.cc.
| struct myOpts opts |
Referenced by XrdOssCache_FS::XrdOssCache_FS(), XrdOucNSWalk::XrdOucNSWalk(), XrdRmcData::XrdRmcData(), XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolpwd::XrdSecProtocolpwd(), XrdSutBuffer::XrdSutBuffer(), XrdTlsContext::XrdTlsContext(), XrdXrootdJob2Do::XrdXrootdJob2Do(), XrdInet::Accept(), XrdNet::Accept(), XrdLinkCtl::Alloc(), XrdNet::Bind(), XrdInet::BindSD(), XrdCpConfig::Config(), XrdInet::Connect(), XrdNet::Connect(), XrdOssWrapper::Create(), XrdNetSocket::Create(), XrdXrootdMonFile::Defaults(), XrdOssCsiPages::FetchRange(), XrdOssCsiPages::FetchRangeAligned(), XrdOssCsiPages::FetchRangeUnaligned(), XrdOssCsiPages::FetchRangeUnaligned_postblock(), XrdOssCsiPages::FetchRangeUnaligned_preblock(), XrdMonitor::Format(), XrdNetUtils::GetAddrs(), XrdNetRegistry::GetAddrs(), getargs(), getbintix(), XrdCl::Utils::GetHostAddresses(), getline(), XrdOssSpace::Init(), XrdOssCsiFileAio::Init(), XrdNetUtils::IPFormat(), XrdCmsCluster::List(), main(), XrdOssMio::Map(), XrdOucCacheIO::pgRead(), XrdPosixFile::pgRead(), XrdPosixExtra::pgRead(), XrdOssCsiFile::pgRead(), XrdOfsHanOssErr::pgRead(), XrdOssWrapDF::pgRead(), XrdOssDFHandler::pgRead(), XrdOssStats::File::pgRead(), XrdPfc::IOFile::pgRead(), XrdOssDF::pgRead(), XrdSfsFile::pgRead(), XrdOfsFile::pgRead(), XrdThrottle::File::pgRead(), XrdOucCacheIO::pgWrite(), XrdOssCsiFile::pgWrite(), XrdOssDF::pgWrite(), XrdOssWrapDF::pgWrite(), XrdOssDFHandler::pgWrite(), XrdPssFile::pgWrite(), XrdOssStats::File::pgWrite(), XrdThrottle::File::pgWrite(), XrdOfsFile::pgWrite(), XrdSfsFile::pgWrite(), XrdOssCsiPages::pgWritePrelockCheck(), XrdOucCacheIO::Preread(), XrdNet::Relay(), XrdOssSys::Remdir(), XrdSysThread::Run(), XrdOucSxeq::Serialize(), XrdTlsContext::SessionCache(), XrdXrootdXPath::Set(), XrdSecProtocolkrb5::setClientOpts(), XrdTls::SetDebug(), XrdAccGroups::SetOptions(), XrdNetSocket::setOpts(), XrdSecProtocolkrb5::setOpts(), XrdOssSys::Stat(), XrdOssStats::FileSystem::Stat(), XrdOssWrapper::Stat(), XrdOssCsi::Stat(), XrdOssHandler::Stat(), XrdOssAt::Stat(), XrdOssSys::StatPF(), XrdOssWrapper::StatPF(), XrdOssCsi::StatPF(), XrdOssHandler::StatPF(), XrdOssStats::FileSystem::StatPF(), XrdStats::Stats(), XrdXrootdStats::Stats(), XrdOssCsiPages::StoreRange(), XrdOssStatInfo(), XrdSecProtocolgsiInit(), XrdSecProtocolkrb5Init(), XrdSecProtocolpwdInit(), XrdSecProtocolztnInit(), and XrdSsiStatInfo().