XRootD
Loading...
Searching...
No Matches
XrdSecProtocolsss.cc File Reference
#include <alloca.h>
#include <cctype>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <strings.h>
#include <cstdio>
#include <sys/param.h>
#include <unistd.h>
#include "XrdVersion.hh"
#include "XrdNet/XrdNetUtils.hh"
#include "XrdOuc/XrdOucCRC.hh"
#include "XrdOuc/XrdOucErrInfo.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdOuc/XrdOucPup.hh"
#include "XrdOuc/XrdOucTokenizer.hh"
#include "XrdOuc/XrdOucUtils.hh"
#include "XrdSec/XrdSecEntityAttr.hh"
#include "XrdSecsss/XrdSecsssEnt.hh"
#include "XrdSecsss/XrdSecProtocolsss.hh"
#include "XrdSys/XrdSysE2T.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdSys/XrdSysPthread.hh"
Include dependency graph for XrdSecProtocolsss.cc:

Go to the source code of this file.

Macros

#define CLDBG(x)
#define XrdsssPROTOIDENT   "sss"

Functions

char * XrdSecProtocolsssInit (const char mode, const char *parms, XrdOucErrInfo *erp)
XrdSecProtocolXrdSecProtocolsssObject (const char mode, const char *hostname, XrdNetAddrInfo &endPoint, const char *parms, XrdOucErrInfo *erp)
 XrdVERSIONINFO (XrdSecProtocolsssObject, secsss)

Macro Definition Documentation

◆ CLDBG

#define CLDBG ( x)
Value:
if (sssDEBUG) std::cerr<<"sec_sss: "<<x<<'\n'<<std::flush

Definition at line 65 of file XrdSecProtocolsss.cc.

◆ XrdsssPROTOIDENT

#define XrdsssPROTOIDENT   "sss"

Definition at line 63 of file XrdSecProtocolsss.cc.

Referenced by XrdSecProtocolsss::getCredentials().

Function Documentation

◆ XrdSecProtocolsssInit()

char * XrdSecProtocolsssInit ( const char mode,
const char * parms,
XrdOucErrInfo * erp )

Definition at line 1089 of file XrdSecProtocolsss.cc.

1092{
1093
1094// Set debug option
1095//
1096 if (getenv("XrdSecDEBUG")) sssDEBUG = true;
1097
1098// Perform load-time initialization
1099//
1100 return (mode == 'c' ? XrdSecProtocolsss::Load_Client(erp, parms)
1101 : XrdSecProtocolsss::Load_Server(erp, parms));
1102}
static char * Load_Client(XrdOucErrInfo *erp, const char *Parms)
static char * Load_Server(XrdOucErrInfo *erp, const char *Parms)

References XrdSecProtocolsss::Load_Client(), and XrdSecProtocolsss::Load_Server().

Here is the call graph for this function:

◆ XrdSecProtocolsssObject()

XrdSecProtocol * XrdSecProtocolsssObject ( const char mode,
const char * hostname,
XrdNetAddrInfo & endPoint,
const char * parms,
XrdOucErrInfo * erp )

Definition at line 1113 of file XrdSecProtocolsss.cc.

1118{
1119 XrdSecProtocolsss *prot;
1120 int Ok;
1121
1122// Get a new protocol object
1123//
1124 if (!(prot = new XrdSecProtocolsss(endPoint.Name(hostname), endPoint)))
1125 XrdSecProtocolsss::Fatal(erp, "sss_Object", ENOMEM,
1126 "Secsss: Insufficient memory for protocol.");
1127 else {Ok = (mode == 'c' ? prot->Init_Client(erp, parms)
1128 : prot->Init_Server(erp, parms));
1129
1130 if (!Ok) {prot->Delete(); prot = 0;}
1131 }
1132
1133// All done
1134//
1135 return (XrdSecProtocol *)prot;
1136}
const char * Name(const char *eName=0, const char **eText=0)
int Init_Server(XrdOucErrInfo *erp, const char *Parms)
static int Fatal(XrdOucErrInfo *erP, const char *epn, int rc, const char *etxt)
void Delete()
Delete the protocol object. DO NOT use C++ delete() on this object.
int Init_Client(XrdOucErrInfo *erp, const char *Parms)

References XrdSecProtocolsss::Delete(), XrdSecProtocolsss::Fatal(), XrdSecProtocolsss::Init_Client(), XrdSecProtocolsss::Init_Server(), and XrdNetAddrInfo::Name().

Referenced by XrdVERSIONINFO().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ XrdVERSIONINFO()

XrdVERSIONINFO ( XrdSecProtocolsssObject ,
secsss  )

References XrdSecProtocolsssObject().

Here is the call graph for this function: