|
xrootd
|
#include <XrdSecServer.hh>


Public Member Functions | |
| const char * | getParms (int &size, const char *hname=0) |
| XrdSecProtocol * | getProtocol (const char *host, const struct sockaddr &hadr, const XrdSecCredentials *cred, XrdOucErrInfo *einfo=0) |
| int | Configure (const char *cfn) |
| XrdSecServer (XrdSysLogger *lp) | |
| ~XrdSecServer () | |
Private Member Functions | |
| int | add2token (XrdSysError &erp, char *, char **, int &, XrdSecPMask_t &) |
| int | ConfigFile (const char *cfn) |
| int | ConfigXeq (char *var, XrdOucStream &Config, XrdSysError &Eroute) |
| int | ProtBind_Complete (XrdSysError &Eroute) |
| int | xpbind (XrdOucStream &Config, XrdSysError &Eroute) |
| int | xpparm (XrdOucStream &Config, XrdSysError &Eroute) |
| int | xprot (XrdOucStream &Config, XrdSysError &Eroute) |
| int | xtrace (XrdOucStream &Config, XrdSysError &Eroute) |
Private Attributes | |
| XrdSysError | eDest |
| XrdOucTrace * | SecTrace |
| XrdSecProtBind * | bpFirst |
| XrdSecProtBind * | bpLast |
| XrdSecProtBind * | bpDefault |
| char * | SToken |
| char * | STBuff |
| int | STBlen |
| int | Enforce |
| int | implauth |
Static Private Attributes | |
| static XrdSecPManager | PManager |
| XrdSecServer::XrdSecServer | ( | XrdSysLogger * | lp | ) |
| XrdSecServer::~XrdSecServer | ( | ) | [inline] |
| int XrdSecServer::add2token | ( | XrdSysError & | erp, |
| char * | pid, | ||
| char ** | tokbuff, | ||
| int & | toklen, | ||
| XrdSecPMask_t & | pmask | ||
| ) | [private] |
References PManager, XrdSecPManager::Find(), and XrdSysError::Emsg().
| int XrdSecServer::ConfigFile | ( | const char * | cfn | ) | [private] |
References XrdCms::Config, eDest, XrdSysError::Emsg(), open(), XrdOucStream::Attach(), XrdOucStream::Tabs(), XrdOucStream::GetMyFirstWord(), ConfigXeq(), XrdOucStream::Echo(), XrdOucStream::LastError(), snprintf, XrdSysError::Say(), XrdOucStream::Close(), ProtBind_Complete(), XrdSecProtParm::First, XrdSecProtParm::ProtoID, and XrdSecProtParm::Next.
Referenced by Configure().
| int XrdSecServer::Configure | ( | const char * | cfn | ) |
References eDest, XrdSysError::Say(), and ConfigFile().
Referenced by XrdSecgetService().
| int XrdSecServer::ConfigXeq | ( | char * | var, |
| XrdOucStream & | Config, | ||
| XrdSysError & | Eroute | ||
| ) | [private] |
References TS_Xeq, xpbind(), xprot(), xpparm(), xtrace(), XrdSysError::Say(), and XrdOucStream::Echo().
Referenced by ConfigFile().
| const char * XrdSecServer::getParms | ( | int & | size, |
| const char * | hname = 0 |
||
| ) | [virtual] |
Implements XrdSecService.
References EPNAME, bpFirst, XrdSecProtBind::Match(), XrdSecProtBind::next, bpDefault, XrdSecProtBind::SecToken, XrdSecBuffer::buffer, DEBUG, and XrdSecBuffer::size.
| XrdSecProtocol * XrdSecServer::getProtocol | ( | const char * | host, |
| const struct sockaddr & | hadr, | ||
| const XrdSecCredentials * | cred, | ||
| XrdOucErrInfo * | einfo = 0 |
||
| ) | [virtual] |
| int XrdSecServer::ProtBind_Complete | ( | XrdSysError & | Eroute | ) | [private] |
References EPNAME, bpDefault, SToken, XrdSysError::Say(), implauth, DEBUG, PManager, XrdSecPManager::Load(), XrdSysError::Emsg(), XrdOucErrInfo::getErrText(), STBuff, and STBlen.
Referenced by ConfigFile().
| int XrdSecServer::xpbind | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References EPNAME, XrdOucStream::GetWord(), XrdSysError::Emsg(), bpDefault, bpFirst, XrdSecProtBind::thost, XrdSecProtBind::next, Enforce, PManager, XrdSecPManager::Find(), add2token(), DEBUG, XrdSysError::Say(), XrdSysDNS::getHostName(), and bpLast.
Referenced by ConfigXeq().
| int XrdSecServer::xpparm | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
| int XrdSecServer::xprot | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References XrdSecPROTOIDSIZE, XrdOucStream::GetWord(), strlcpy(), XrdSysError::Emsg(), PManager, XrdSecPManager::Find(), XrdSysError::Say(), add2token(), STBuff, STBlen, implauth, XrdSecProtParm::Cat(), XrdSecProtParm::Find(), XrdSecProtParm::Result(), XrdSecProtParm::Insert(), XrdSecPManager::Load(), and XrdOucErrInfo::getErrText().
Referenced by ConfigXeq().
| int XrdSecServer::xtrace | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References TRACE_ALL, TRACE_Debug, TRACE_Authen, XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdSysError::Say(), SecTrace, XrdOucTrace::What, TRACE_Authenxx, QTRACE, Debug, PManager, and XrdSecPManager::setDebug().
Referenced by ConfigXeq().
XrdSecProtBind* XrdSecServer::bpDefault [private] |
Referenced by XrdSecServer(), getParms(), xpbind(), and ProtBind_Complete().
XrdSecProtBind* XrdSecServer::bpFirst [private] |
Referenced by XrdSecServer(), getParms(), getProtocol(), and xpbind().
XrdSecProtBind* XrdSecServer::bpLast [private] |
Referenced by XrdSecServer(), and xpbind().
XrdSysError XrdSecServer::eDest [private] |
Referenced by XrdSecServer(), Configure(), and ConfigFile().
int XrdSecServer::Enforce [private] |
Referenced by XrdSecServer(), getProtocol(), and xpbind().
int XrdSecServer::implauth [private] |
Referenced by XrdSecServer(), xprot(), and ProtBind_Complete().
XrdSecPManager XrdSecServer::PManager [static, private] |
Referenced by getProtocol(), xpbind(), xprot(), xpparm(), xtrace(), add2token(), and ProtBind_Complete().
XrdOucTrace* XrdSecServer::SecTrace [private] |
Referenced by XrdSecServer(), and xtrace().
int XrdSecServer::STBlen [private] |
Referenced by XrdSecServer(), xprot(), and ProtBind_Complete().
char* XrdSecServer::STBuff [private] |
Referenced by XrdSecServer(), xprot(), and ProtBind_Complete().
char* XrdSecServer::SToken [private] |
Referenced by XrdSecServer(), and ProtBind_Complete().
1.7.5