ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
AFSAuth.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DFLTTOKENLIFETIME   (24*3600)
 

Functions

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

Macro Definition Documentation

#define DFLTTOKENLIFETIME   (24*3600)

Definition at line 27 of file AFSAuth.h.

Referenced by GetAFSToken().

Function Documentation

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

void DeleteAFSToken ( void token)

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