#include <XrdSecProtocolsss.hh>
|
int | Authenticate (XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0) |
|
void | Delete () |
| Delete the protocol object. DO NOT use C++ delete() on this object.
|
|
XrdSecCredentials * | getCredentials (XrdSecParameters *parms=0, XrdOucErrInfo *einfo=0) |
|
int | Init_Client (XrdOucErrInfo *erp, const char *Parms) |
|
int | Init_Server (XrdOucErrInfo *erp, const char *Parms) |
|
| XrdSecProtocolsss (const char *hname, XrdNetAddrInfo &endPoint) |
|
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.
|
|
|
static int | eMsg (const char *epn, int rc, const char *txt1, const char *txt2=0, const char *txt3=0, const char *txt4=0) |
|
static int | Fatal (XrdOucErrInfo *erP, const char *epn, int rc, const char *etxt) |
|
static char * | Load_Client (XrdOucErrInfo *erp, const char *Parms) |
|
static char * | Load_Server (XrdOucErrInfo *erp, const char *Parms) |
|
|
| ~XrdSecProtocolsss () |
|
int | Decode (XrdOucErrInfo *error, XrdSecsssKT::ktEnt &decKey, char *iBuff, XrdSecsssRR_DataHdr *rrDHdr, int iSize) |
|
XrdSecCredentials * | Encode (XrdOucErrInfo *error, XrdSecsssKT::ktEnt &encKey, XrdSecsssRR_Hdr *rrHdr, XrdSecsssRR_DataHdr *rrDHdr, int dLen) |
|
int | getCred (XrdOucErrInfo *, XrdSecsssRR_DataHdr *&, const char *, const char *) |
|
int | getCred (XrdOucErrInfo *, XrdSecsssRR_DataHdr *&, const char *, const char *, XrdSecParameters *) |
|
char * | getLID (char *buff, int blen) |
|
int | myClock () |
|
char * | setID (char *id, char **idP) |
|
void | setIP (XrdNetAddrInfo &endPoint) |
|
◆ XrdSecProtocolsss()
XrdSecProtocolsss::XrdSecProtocolsss |
( |
const char * |
hname, |
|
|
XrdNetAddrInfo & |
endPoint |
|
) |
| |
|
inline |
◆ ~XrdSecProtocolsss()
XrdSecProtocolsss::~XrdSecProtocolsss |
( |
| ) |
|
|
inlineprivate |
◆ 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.
◆ Decode()
◆ Delete()
void XrdSecProtocolsss::Delete |
( |
| ) |
|
|
virtual |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implements XrdSecProtocol.
◆ eMsg()
static int XrdSecProtocolsss::eMsg |
( |
const char * |
epn, |
|
|
int |
rc, |
|
|
const char * |
txt1, |
|
|
const char * |
txt2 = 0 , |
|
|
const char * |
txt3 = 0 , |
|
|
const char * |
txt4 = 0 |
|
) |
| |
|
static |
◆ Encode()
◆ Fatal()
static int XrdSecProtocolsss::Fatal |
( |
XrdOucErrInfo * |
erP, |
|
|
const char * |
epn, |
|
|
int |
rc, |
|
|
const char * |
etxt |
|
) |
| |
|
static |
◆ getCred() [1/2]
◆ getCred() [2/2]
◆ 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.
◆ getLID()
char * XrdSecProtocolsss::getLID |
( |
char * |
buff, |
|
|
int |
blen |
|
) |
| |
|
private |
◆ Init_Client()
int XrdSecProtocolsss::Init_Client |
( |
XrdOucErrInfo * |
erp, |
|
|
const char * |
Parms |
|
) |
| |
◆ Init_Server()
int XrdSecProtocolsss::Init_Server |
( |
XrdOucErrInfo * |
erp, |
|
|
const char * |
Parms |
|
) |
| |
◆ Load_Client()
static char * XrdSecProtocolsss::Load_Client |
( |
XrdOucErrInfo * |
erp, |
|
|
const char * |
Parms |
|
) |
| |
|
static |
◆ Load_Crypto() [1/2]
◆ Load_Crypto() [2/2]
◆ Load_Server()
static char * XrdSecProtocolsss::Load_Server |
( |
XrdOucErrInfo * |
erp, |
|
|
const char * |
Parms |
|
) |
| |
|
static |
◆ myClock()
int XrdSecProtocolsss::myClock |
( |
| ) |
|
|
private |
◆ setID()
char * XrdSecProtocolsss::setID |
( |
char * |
id, |
|
|
char ** |
idP |
|
) |
| |
|
private |
◆ setIP()
◆ XrdSecProtocolDummy
friend class XrdSecProtocolDummy |
|
friend |
◆ aProts
char* XrdSecProtocolsss::aProts |
|
staticprivate |
◆ Crypto
◆ CryptObj
◆ CryptoTab
struct Crypto XrdSecProtocolsss::CryptoTab[] |
|
staticprivate |
◆ dataOpts
int XrdSecProtocolsss::dataOpts |
|
private |
◆ deltaTime
int XrdSecProtocolsss::deltaTime |
|
staticprivate |
◆ epAddr
◆ idBuff
char* XrdSecProtocolsss::idBuff |
|
private |
◆ idMap
◆ isMapped
bool XrdSecProtocolsss::isMapped |
|
staticprivate |
◆ isMutual
bool XrdSecProtocolsss::isMutual |
|
staticprivate |
◆ keyTab
◆ ktFixed
bool XrdSecProtocolsss::ktFixed |
|
staticprivate |
◆ ktObject
◆ Sequence
char XrdSecProtocolsss::Sequence |
|
private |
◆ staticID
◆ urIP
char XrdSecProtocolsss::urIP[48] |
|
private |
◆ urIQ
char XrdSecProtocolsss::urIQ[48] |
|
private |
◆ urName
char* XrdSecProtocolsss::urName |
|
private |
◆ v2EndPnt
bool XrdSecProtocolsss::v2EndPnt |
|
private |
The documentation for this class was generated from the following file: