ROOT 6.08/07 Reference Guide |
Macros | |
#define | DFLTTOKENLIFETIME (24*3600) |
Functions | |
char * | AFSLocalCell () |
Returns a pointer to a string with the local cell. More... | |
void | DeleteAFSToken (void *token) |
Delete an AFS token returned by a successful call to GetAFSToken. More... | |
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... | |
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.
Delete an AFS token returned by a successful call to GetAFSToken.
Definition at line 229 of file AFSAuth.cxx.
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.
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.