![]() |
XRootD
|
#include <XrdSecTLayer.hh>
Public Types | |
enum | Initiator { isClient = 0 , isServer } |
Public Member Functions | |
XrdSecTLayer (const char *pName, Initiator who1st=isClient) | |
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 | secClient (int theFD, XrdOucErrInfo *einfo)=0 |
virtual void | secServer (int theFD, XrdOucErrInfo *einfo)=0 |
void | secXeq () |
![]() | |
XrdSecProtocol (const char *pName) | |
Constructor. | |
virtual int | Decrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
virtual int | Encrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
virtual int | getKey (char *buff=0, int size=0) |
virtual bool | needTLS () |
Check if this protocol requires TLS to properly function. | |
virtual int | setKey (char *buff, int size) |
virtual int | Sign (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
virtual int | Verify (const char *inbuff, int inlen, const char *sigbuff, int siglen) |
Protected Member Functions | |
virtual | ~XrdSecTLayer () |
![]() | |
virtual | ~XrdSecProtocol () |
Destructor (prevents use of direct delete). | |
Protected Attributes | |
pthread_t | secTid |
Additional Inherited Members | |
![]() | |
XrdSecEntity | Entity |
Definition at line 64 of file XrdSecTLayer.hh.
Definition at line 58 of file XrdSecTLayer.cc.
|
inlineprotectedvirtual |
Definition at line 122 of file XrdSecTLayer.hh.
References close.
|
virtual |
Authenticate a client.
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. |
Implements XrdSecProtocol.
Definition at line 145 of file XrdSecTLayer.cc.
References XrdSecBuffer::buffer, isServer, XrdSecBuffer::size, and write.
|
pure virtual |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implements XrdSecProtocol.
|
virtual |
Generate client credentials to be used in the authentication process.
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. |
Implements XrdSecProtocol.
Definition at line 77 of file XrdSecTLayer.cc.
References XrdSecBuffer::buffer, isClient, isServer, XrdSecBuffer::size, and write.
|
pure virtual |
|
pure virtual |
void XrdSecTLayer::secXeq | ( | ) |
Definition at line 341 of file XrdSecTLayer.cc.
References close, XrdOucErrInfo::getErrText(), isClient, XrdSysSemaphore::Post(), secClient(), and secServer().
Referenced by XrdSecTLayerBootUp().
|
protected |
Definition at line 120 of file XrdSecTLayer.hh.