![]() |
XRootD
|
Public Member Functions | |
XrdSecProtocolunix (const char *hname, XrdNetAddrInfo &endPoint) | |
int | Authenticate (XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0) |
void | Delete () |
Delete the protocol object. DO NOT use C++ delete() on this object. More... | |
XrdSecCredentials * | getCredentials (XrdSecParameters *parm=0, XrdOucErrInfo *einfo=0) |
![]() | |
XrdSecProtocol (const char *pName) | |
Constructor. More... | |
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. More... | |
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) |
Friends | |
class | XrdSecProtocolDummy |
Additional Inherited Members | |
![]() | |
XrdSecEntity | Entity |
![]() | |
virtual | ~XrdSecProtocol () |
Destructor (prevents use of direct delete). More... | |
Definition at line 51 of file XrdSecProtocolunix.cc.
|
inline |
Definition at line 64 of file XrdSecProtocolunix.cc.
References XrdSecEntity::addrInfo, XrdSecProtocol::Entity, XrdSecEntity::host, and XrdSecEntity::name.
|
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 127 of file XrdSecProtocolunix.cc.
References XrdSecBuffer::buffer, XrdSecProtocol::Entity, XrdSecEntity::grps, XrdSecEntity::name, XrdSecEntity::prot, XrdOucErrInfo::setErrInfo(), and XrdSecBuffer::size.
|
inlinevirtual |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implements XrdSecProtocol.
Definition at line 73 of file XrdSecProtocolunix.cc.
|
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 93 of file XrdSecProtocolunix.cc.
References XrdOucUtils::GroupName(), and XrdOucUtils::UserName().
|
friend |
Definition at line 54 of file XrdSecProtocolunix.cc.