Logo ROOT   6.10/09
Reference Guide
Macros | Functions
AFSAuth.h File Reference
This graph shows which files directly or indirectly include this file:

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...
 
voidGetAFSToken (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...
 

Macro Definition Documentation

◆ DFLTTOKENLIFETIME

#define DFLTTOKENLIFETIME   (24*3600)

Definition at line 27 of file AFSAuth.h.

Function Documentation

◆ AFSLocalCell()

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.

◆ DeleteAFSToken()

void DeleteAFSToken ( void token)

Delete an AFS token returned by a successful call to GetAFSToken.

Definition at line 229 of file AFSAuth.cxx.

◆ GetAFSToken()

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.

◆ VerifyAFSToken()

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.