1 #ifndef XRDSECTLAYER_HH
2 #define XRDSECTLAYER_HH
123 if (myFD>0) {
close(myFD);myFD=-1;}
129 int Read(
int FD,
char *Buff,
int rdLen);
132 const char *secErrno(
int rc,
char *buff);
133 void secError(
const char *Msg,
int rc,
int iserrno=1);
150 static const char endData = 0x00;
151 static const char xfrData = 0x01;
155 static const int buffSz = 8192;
156 static const int hdrSz =
sizeof(TLayerRR);
157 static const int dataSz = buffSz - hdrSz;
virtual void secClient(int theFD, XrdOucErrInfo *einfo)=0
virtual int Authenticate(XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0)
virtual void Delete()=0
Delete the protocol object. DO NOT use C++ delete() on this object.
virtual XrdSecCredentials * getCredentials(XrdSecParameters *parm=0, XrdOucErrInfo *einfo=0)
virtual void secServer(int theFD, XrdOucErrInfo *einfo)=0
XrdSecTLayer(const char *pName, Initiator who1st=isClient)
Generic structure to pass security information back and forth.