#include <XrdSecProtocolsss.hh>
Classes | |
struct | Crypto |
Public Member Functions | |
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) | |
Static Public Member Functions | |
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) |
Private Member Functions | |
~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) |
Static Private Member Functions | |
static XrdCryptoLite * | Load_Crypto (XrdOucErrInfo *erp, const char *eN) |
static XrdCryptoLite * | Load_Crypto (XrdOucErrInfo *erp, const char eT) |
Private Attributes | |
char * | urName |
char | urIP [48] |
char | urIQ [48] |
XrdNetAddrInfo * | epAddr |
XrdSecsssKT * | keyTab |
XrdCryptoLite * | Crypto |
char * | idBuff |
int | dataOpts |
char | Sequence |
bool | v2EndPnt |
Static Private Attributes | |
static struct Crypto | CryptoTab [] |
static int | deltaTime |
static bool | isMutual |
static bool | isMapped |
static bool | ktFixed |
static XrdSecsssKT * | ktObject |
static XrdCryptoLite * | CryptObj |
static XrdSecsssID * | idMap |
static char * | aProts |
static XrdSecsssEnt * | staticID |
Friends | |
class | XrdSecProtocolDummy |
XrdSecProtocolsss::XrdSecProtocolsss | ( | const char * | hname, | |
XrdNetAddrInfo & | endPoint | |||
) | [inline] |
XrdSecProtocolsss::~XrdSecProtocolsss | ( | ) | [inline, private] |
int XrdSecProtocolsss::Authenticate | ( | XrdSecCredentials * | cred, | |
XrdSecParameters ** | parms, | |||
XrdOucErrInfo * | einfo = 0 | |||
) | [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.
int XrdSecProtocolsss::Decode | ( | XrdOucErrInfo * | error, | |
XrdSecsssKT::ktEnt & | decKey, | |||
char * | iBuff, | |||
XrdSecsssRR_DataHdr * | rrDHdr, | |||
int | iSize | |||
) | [private] |
void XrdSecProtocolsss::Delete | ( | ) | [virtual] |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implements XrdSecProtocol.
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] |
XrdSecCredentials* XrdSecProtocolsss::Encode | ( | XrdOucErrInfo * | error, | |
XrdSecsssKT::ktEnt & | encKey, | |||
XrdSecsssRR_Hdr * | rrHdr, | |||
XrdSecsssRR_DataHdr * | rrDHdr, | |||
int | dLen | |||
) | [private] |
static int XrdSecProtocolsss::Fatal | ( | XrdOucErrInfo * | erP, | |
const char * | epn, | |||
int | rc, | |||
const char * | etxt | |||
) | [static] |
int XrdSecProtocolsss::getCred | ( | XrdOucErrInfo * | , | |
XrdSecsssRR_DataHdr *& | , | |||
const char * | , | |||
const char * | , | |||
XrdSecParameters * | ||||
) | [private] |
int XrdSecProtocolsss::getCred | ( | XrdOucErrInfo * | , | |
XrdSecsssRR_DataHdr *& | , | |||
const char * | , | |||
const char * | ||||
) | [private] |
XrdSecCredentials* XrdSecProtocolsss::getCredentials | ( | XrdSecParameters * | parm = 0 , |
|
XrdOucErrInfo * | einfo = 0 | |||
) | [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.
char* XrdSecProtocolsss::getLID | ( | char * | buff, | |
int | blen | |||
) | [private] |
int XrdSecProtocolsss::Init_Client | ( | XrdOucErrInfo * | erp, | |
const char * | Parms | |||
) |
int XrdSecProtocolsss::Init_Server | ( | XrdOucErrInfo * | erp, | |
const char * | Parms | |||
) |
static char* XrdSecProtocolsss::Load_Client | ( | XrdOucErrInfo * | erp, | |
const char * | Parms | |||
) | [static] |
static XrdCryptoLite* XrdSecProtocolsss::Load_Crypto | ( | XrdOucErrInfo * | erp, | |
const char | eT | |||
) | [static, private] |
static XrdCryptoLite* XrdSecProtocolsss::Load_Crypto | ( | XrdOucErrInfo * | erp, | |
const char * | eN | |||
) | [static, private] |
static char* XrdSecProtocolsss::Load_Server | ( | XrdOucErrInfo * | erp, | |
const char * | Parms | |||
) | [static] |
int XrdSecProtocolsss::myClock | ( | ) | [private] |
char* XrdSecProtocolsss::setID | ( | char * | id, | |
char ** | idP | |||
) | [private] |
void XrdSecProtocolsss::setIP | ( | XrdNetAddrInfo & | endPoint | ) | [private] |
Referenced by XrdSecProtocolsss().
friend class XrdSecProtocolDummy [friend] |
char* XrdSecProtocolsss::aProts [static, private] |
XrdCryptoLite* XrdSecProtocolsss::Crypto [private] |
XrdCryptoLite* XrdSecProtocolsss::CryptObj [static, private] |
struct Crypto XrdSecProtocolsss::CryptoTab[] [static, read, private] |
int XrdSecProtocolsss::dataOpts [private] |
int XrdSecProtocolsss::deltaTime [static, private] |
XrdNetAddrInfo* XrdSecProtocolsss::epAddr [private] |
char* XrdSecProtocolsss::idBuff [private] |
XrdSecsssID* XrdSecProtocolsss::idMap [static, private] |
bool XrdSecProtocolsss::isMapped [static, private] |
bool XrdSecProtocolsss::isMutual [static, private] |
XrdSecsssKT* XrdSecProtocolsss::keyTab [private] |
bool XrdSecProtocolsss::ktFixed [static, private] |
XrdSecsssKT* XrdSecProtocolsss::ktObject [static, private] |
char XrdSecProtocolsss::Sequence [private] |
XrdSecsssEnt* XrdSecProtocolsss::staticID [static, private] |
char XrdSecProtocolsss::urIP[48] [private] |
char XrdSecProtocolsss::urIQ[48] [private] |
char* XrdSecProtocolsss::urName [private] |
Referenced by XrdSecProtocolsss().
bool XrdSecProtocolsss::v2EndPnt [private] |