#include <XrdSecTLayer.hh>
|
| XrdSecTLayer (const char *pName, Initiator who1st=isClient) |
|
virtual void | secClient (int theFD, XrdOucErrInfo *einfo)=0 |
|
virtual void | secServer (int theFD, XrdOucErrInfo *einfo)=0 |
|
virtual void | Delete ()=0 |
| Delete the protocol object. DO NOT use C++ delete() on this object.
|
|
virtual int | Authenticate (XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0) |
|
virtual XrdSecCredentials * | getCredentials (XrdSecParameters *parm=0, XrdOucErrInfo *einfo=0) |
|
void | secXeq () |
|
virtual int | Encrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
|
virtual int | Decrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
|
virtual int | Sign (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
|
virtual int | Verify (const char *inbuff, int inlen, const char *sigbuff, int siglen) |
|
virtual int | getKey (char *buff=0, int size=0) |
|
virtual int | setKey (char *buff, int size) |
|
virtual bool | needTLS () |
| Check if this protocol requires TLS to properly function.
|
|
| XrdSecProtocol (const char *pName) |
| Constructor.
|
|
◆ Initiator
Enumerator |
---|
isClient | |
isServer | |
◆ XrdSecTLayer()
◆ ~XrdSecTLayer()
virtual XrdSecTLayer::~XrdSecTLayer |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ Authenticate()
Authenticate a client.
- Parameters
-
cred | Credentials supplied by the client. |
parms | Place where the address of additional authentication data is to be placed for another autrhentication handshake. |
einfo | The error information object where error messages should be placed. The messages are returned to the client. Should einfo be null, messages should be written to stderr. |
- Returns
- > 0 -> parms present (more authentication needed) = 0 -> Entity present (authentication suceeded) < 0 -> einfo present (error has occurred)
Implements XrdSecProtocol.
◆ bootUp()
◆ Delete()
virtual void XrdSecTLayer::Delete |
( |
| ) |
|
|
pure virtual |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implements XrdSecProtocol.
◆ getCredentials()
Generate client credentials to be used in the authentication process.
- Parameters
-
parm | Pointer to the information returned by the server either in the initial login response or the authmore response. |
einfo | The error information object where error messages should be placed. The messages are returned to the client. Should einfo be null, messages should be written to stderr. |
- Returns
- Success: Pointer to credentials to sent to the server. The caller is responsible for deleting the object. Failure: Null pointer with einfo, if supplied, containing the reason for the failure.
Implements XrdSecProtocol.
◆ Read()
int XrdSecTLayer::Read |
( |
int |
FD, |
|
|
char * |
Buff, |
|
|
int |
rdLen |
|
) |
| |
|
private |
◆ secClient()
virtual void XrdSecTLayer::secClient |
( |
int |
theFD, |
|
|
XrdOucErrInfo * |
einfo |
|
) |
| |
|
pure virtual |
◆ secDone()
int XrdSecTLayer::secDone |
( |
| ) |
|
|
private |
◆ secDrain()
void XrdSecTLayer::secDrain |
( |
| ) |
|
|
private |
◆ secErrno()
const char * XrdSecTLayer::secErrno |
( |
int |
rc, |
|
|
char * |
buff |
|
) |
| |
|
private |
◆ secError()
void XrdSecTLayer::secError |
( |
const char * |
Msg, |
|
|
int |
rc, |
|
|
int |
iserrno = 1 |
|
) |
| |
|
private |
◆ secServer()
virtual void XrdSecTLayer::secServer |
( |
int |
theFD, |
|
|
XrdOucErrInfo * |
einfo |
|
) |
| |
|
pure virtual |
◆ secXeq()
void XrdSecTLayer::secXeq |
( |
| ) |
|
◆ buffSz
const int XrdSecTLayer::buffSz = 8192 |
|
staticprivate |
◆ dataSz
◆ eCode
◆ eDest
◆ eText
char* XrdSecTLayer::eText |
|
private |
◆ Hdr
◆ hdrSz
const int XrdSecTLayer::hdrSz = sizeof(TLayerRR) |
|
staticprivate |
◆ myFD
◆ mySem
◆ Responder
◆ secTid
pthread_t XrdSecTLayer::secTid |
|
protected |
◆ Starter
◆ Tcur
◆ Tmax
◆ urFD
The documentation for this class was generated from the following file: