Logo ROOT   6.12/07
Reference Guide
AFSAuthTypes.h
Go to the documentation of this file.
1 // @(#)root/auth:$Id$
2 // Author: G. Ganis, Nov 2006
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_AFSAuthTypes
13 #define ROOT_AFSAuthTypes
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // AFSAuthTypes //
19 // //
20 // Sugnatures for the utility functions to acquire / handle AFS tokens. //
21 // Needed when loading dynamically the library. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 // AFS token getter: arguments are
26 // 1st user name
27 // 2nd password or encrypted key buffer
28 // 3rd length of encrypted key buffer or <=0 for plain password
29 // 4th lifetime in seconds (-1 for default - 1 day)
30 // 5th reason message in case of failure
31 // On success a token is returned as opaque information.
32 // On error / failure, 0 is returned; if emsg != 0, *emsg points to an
33 // error message.
34 typedef void *(*GetAFSToken_t)(const char *, const char *, int, int, char **);
35 
36 // Verify validity an AFS token. The opaque input information is the one
37 // returned by a successful call to GetAFSToken.
38 // The remaining lifetime is returned, i.e. <=0 if expired.
39 typedef int (*VerifyAFSToken_t)(void *);
40 
41 // Delete an AFS token returned by a successful call to GetAFSToken.
42 typedef void (*DeleteAFSToken_t)(void *);
43 
44 // Returns a pointer to a string with the local cell. The string must
45 // not be freed or deleted.
46 typedef char *(*AFSLocalCell_t)();
47 
48 #endif
49 
void(* DeleteAFSToken_t)(void *)
Definition: AFSAuthTypes.h:42
int(* VerifyAFSToken_t)(void *)
Definition: AFSAuthTypes.h:39
typedef void((*Func_t)())