#include <XrdSecProtocolpwd.hh>
|
int | Authenticate (XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0) |
|
XrdSecCredentials * | getCredentials (XrdSecParameters *parm=0, XrdOucErrInfo *einfo=0) |
|
| XrdSecProtocolpwd (int opts, const char *hname, XrdNetAddrInfo &endPoint, const char *parms=0) |
|
virtual | ~XrdSecProtocolpwd () |
|
void | Delete () |
| Delete the protocol object. DO NOT use C++ delete() on this object. More...
|
|
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. More...
|
|
| XrdSecProtocol (const char *pName) |
| Constructor. More...
|
|
|
int | ParseClientInput (XrdSutBuffer *br, XrdSutBuffer **bm, String &emsg) |
|
int | ParseServerInput (XrdSutBuffer *br, XrdSutBuffer **bm, String &cmsg) |
|
int | ParseCrypto (XrdSutBuffer *buf) |
|
XrdSecCredentials * | ErrC (XrdOucErrInfo *einfo, XrdSutBuffer *b1, XrdSutBuffer *b2, XrdSutBuffer *b3, kXR_int32 ecode, const char *msg1=0, const char *msg2=0, const char *msg3=0) |
|
int | ErrS (String ID, XrdOucErrInfo *einfo, XrdSutBuffer *b1, XrdSutBuffer *b2, XrdSutBuffer *b3, kXR_int32 ecode, const char *msg1=0, const char *msg2=0, const char *msg3=0) |
|
XrdSutBucket * | QueryCreds (XrdSutBuffer *bm, bool netrc, int &status) |
|
int | QueryUser (int &status, String &cmsg) |
|
int | QueryCrypt (String &fn, String &pwhash) |
|
int | QueryNetRc (String host, String &passwd, int &status) |
|
bool | CheckCreds (XrdSutBucket *creds, int credtype) |
|
bool | CheckCredsAFS (XrdSutBucket *creds, int ctype) |
|
bool | CheckTimeStamp (XrdSutBuffer *b, int skew, String &emsg) |
|
bool | CheckRtag (XrdSutBuffer *bm, String &emsg) |
|
int | ExportCreds (XrdSutBucket *creds) |
|
int | SaveCreds (XrdSutBucket *creds) |
|
int | UpdateAlog () |
|
int | GetUserHost (String &usr, String &host) |
|
int | AddSerialized (char opt, kXR_int32 step, String ID, XrdSutBuffer *bls, XrdSutBuffer *buf, kXR_int32 type, XrdCryptoCipher *cip) |
|
int | DoubleHash (XrdCryptoFactory *cf, XrdSutBucket *bck, XrdSutBucket *s1, XrdSutBucket *s2=0, const char *tag=0) |
|
XrdSecProtocolpwd::XrdSecProtocolpwd |
( |
int |
opts, |
|
|
const char * |
hname, |
|
|
XrdNetAddrInfo & |
endPoint, |
|
|
const char * |
parms = 0 |
|
) |
| |
virtual XrdSecProtocolpwd::~XrdSecProtocolpwd |
( |
| ) |
|
|
inlinevirtual |
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.
bool XrdSecProtocolpwd::CheckCreds |
( |
XrdSutBucket * |
creds, |
|
|
int |
credtype |
|
) |
| |
|
private |
bool XrdSecProtocolpwd::CheckCredsAFS |
( |
XrdSutBucket * |
creds, |
|
|
int |
ctype |
|
) |
| |
|
private |
void XrdSecProtocolpwd::Delete |
( |
| ) |
|
|
virtual |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implements XrdSecProtocol.
static XrdOucTrace* XrdSecProtocolpwd::EnableTracing |
( |
| ) |
|
|
static |
static void XrdSecProtocolpwd::ErrF |
( |
XrdOucErrInfo * |
einfo, |
|
|
kXR_int32 |
ecode, |
|
|
const char * |
msg1, |
|
|
const char * |
msg2 = 0 , |
|
|
const char * |
msg3 = 0 |
|
) |
| |
|
staticprivate |
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.
int XrdSecProtocolpwd::GetUserHost |
( |
String & |
usr, |
|
|
String & |
host |
|
) |
| |
|
private |
static void XrdSecProtocolpwd::PrintTimeStat |
( |
| ) |
|
|
static |
int XrdSecProtocolpwd::QueryCrypt |
( |
String & |
fn, |
|
|
String & |
pwhash |
|
) |
| |
|
private |
int XrdSecProtocolpwd::QueryNetRc |
( |
String |
host, |
|
|
String & |
passwd, |
|
|
int & |
status |
|
) |
| |
|
private |
int XrdSecProtocolpwd::QueryUser |
( |
int & |
status, |
|
|
String & |
cmsg |
|
) |
| |
|
private |
int XrdSecProtocolpwd::UpdateAlog |
( |
| ) |
|
|
private |
int XrdSecProtocolpwd::AutoLogin |
|
staticprivate |
int XrdSecProtocolpwd::AutoReg |
|
staticprivate |
char XrdSecProtocolpwd::CName[256] |
|
private |
int XrdSecProtocolpwd::Debug |
|
staticprivate |
String XrdSecProtocolpwd::DefCrypto |
|
staticprivate |
String XrdSecProtocolpwd::DefError |
|
staticprivate |
String XrdSecProtocolpwd::FileAdmin |
|
staticprivate |
String XrdSecProtocolpwd::FileCrypt |
|
staticprivate |
String XrdSecProtocolpwd::FileExpCreds |
|
staticprivate |
String XrdSecProtocolpwd::FileSrvPuk |
|
staticprivate |
String XrdSecProtocolpwd::FileUser |
|
staticprivate |
int XrdSecProtocolpwd::FmtExpCreds |
|
staticprivate |
bool XrdSecProtocolpwd::KeepCreds |
|
staticprivate |
int XrdSecProtocolpwd::LifeCreds |
|
staticprivate |
int XrdSecProtocolpwd::MaxFailures |
|
staticprivate |
int XrdSecProtocolpwd::MaxPrompts |
|
staticprivate |
int XrdSecProtocolpwd::ncrypt |
|
staticprivate |
int XrdSecProtocolpwd::options |
|
private |
bool XrdSecProtocolpwd::Server |
|
staticprivate |
String XrdSecProtocolpwd::SrvEmail |
|
staticprivate |
String XrdSecProtocolpwd::SrvID |
|
staticprivate |
bool XrdSecProtocolpwd::srvMode |
|
private |
bool XrdSecProtocolpwd::SysPwd |
|
staticprivate |
int XrdSecProtocolpwd::TimeSkew |
|
staticprivate |
int XrdSecProtocolpwd::UserPwd |
|
staticprivate |
int XrdSecProtocolpwd::VeriClnt |
|
staticprivate |
int XrdSecProtocolpwd::VeriSrv |
|
staticprivate |
The documentation for this class was generated from the following file: