ROOT
6.06/09
Reference Guide
|
Go to the source code of this file.
Macros | |
#define | DFLTTOKENLIFETIME (24*3600) |
Functions | |
void * | GetAFSToken (const char *usr, const char *pwd, int pwlen=-1, int life=DFLTTOKENLIFETIME, char **emsg=0) |
Get AFS token for the local cell for 'usr'. More... | |
int | VerifyAFSToken (void *token) |
Verify validity an AFS token. More... | |
void | DeleteAFSToken (void *token) |
Delete an AFS token returned by a successful call to GetAFSToken. More... | |
char * | AFSLocalCell () |
Returns a pointer to a string with the local cell. More... | |
#define DFLTTOKENLIFETIME (24*3600) |
Definition at line 27 of file AFSAuth.h.
Referenced by GetAFSToken().
char* AFSLocalCell | ( | ) |
Returns a pointer to a string with the local cell.
The string must not be freed or deleted.
Definition at line 239 of file AFSAuth.cxx.
Referenced by TAFS::TAFS().
Delete an AFS token returned by a successful call to GetAFSToken.
Definition at line 229 of file AFSAuth.cxx.
Referenced by TAFS::~TAFS().
void* GetAFSToken | ( | const char * | usr, |
const char * | pwd, | ||
int | pwlen, | ||
int | life, | ||
char ** | emsg | ||
) |
Get AFS token for the local cell for 'usr'.
The meaning of the information passed at 'pwd' depends on 'pwlen'. For 'pwlen <= 0' 'pwd' is interpreted as the plain password (null terminated string). For 'pwlen > 0', the 'pwlen' bytes at 'pwd' contain the password in for of encryption key (struct ktc_encryptionKey). On success a token is returned as opaque information. On error / failure, 0 is returned; if emsg != 0, *emsg points to an error message.
Definition at line 93 of file AFSAuth.cxx.
Referenced by TAFS::TAFS().
int VerifyAFSToken | ( | void * | token | ) |
Verify validity an AFS token.
The opaque input information is the one returned by a successful call to GetAFSToken. The remaining lifetime is returned, i.e. <=0 if expired.
Definition at line 212 of file AFSAuth.cxx.
Referenced by TAFS::Verify().