Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

lcmaps_cred_data.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001 EU DataGrid.
00003  * For license conditions see http://www.eu-datagrid.org/license.html
00004  *
00005  * Copyright (c) 2001, 2002 by
00006  *     Martijn Steenbakkers <martijn@nikhef.nl>,
00007  *     Oscar Koeroo <okoeroo@nikhef.nl>,
00008  *     David Groep <davidg@nikhef.nl>,
00009  *     NIKHEF Amsterdam, the Netherlands
00010  */
00011 
00021 #ifndef LCMAPS_CRED_DATA_H
00022 #define LCMAPS_CRED_DATA_H
00023 
00024 /******************************************************************************
00025                              Define constants
00026 ******************************************************************************/
00027 #define DN         5
00028 #define UID        10
00029 #define PRI_GID    20
00030 #define SEC_GID    30
00031 #define LCMAPS_VO_CRED 90
00032 #define LCMAPS_VO_CRED_STRING 100
00033 
00034 
00035 /******************************************************************************
00036                              Include header files
00037 ******************************************************************************/
00038 
00039 #include <pwd.h>
00040 #include "lcmaps_vo_data.h"
00041 
00042 /******************************************************************************
00043                                Type definitions
00044 ******************************************************************************/
00045 
00046 
00055 typedef struct cred_data_s
00056 {
00057     char  *dn;                
00058     uid_t *uid;               
00059     gid_t *priGid;            
00060     gid_t *secGid;            
00061     lcmaps_vo_data_t *VoCred; 
00062     char  **VoCredString;     
00063     int   cntUid;             
00064     int   cntPriGid;          
00065     int   cntSecGid;          
00066     int   cntVoCred;          
00067     int   cntVoCredString;    
00068 } cred_data_t;
00069 
00070 
00071 /******************************************************************************
00072  *                 Module definition
00073  *****************************************************************************/
00074 
00075 /******************************************************************************
00076 Function:   addCredentialData
00077 Description:
00078     Add a credential to the list of found credentials (uids, gids etc)
00079 
00080 Parameters:
00081     datatype: type of credential
00082     data:     pointer to credential
00083 Returns:
00084     0:  success
00085     -1: failure (unknown data type, realloc error)
00086 ******************************************************************************/
00087 extern int   addCredentialData(int datatype, void *data);
00088 
00089 /******************************************************************************
00090 Function:   getCredentialData
00091 Description:
00092     Get pointer to a list of credential data of a certain type
00093 
00094 Parameters:
00095     datatype: type of credential
00096     count:    number of credentials found in list of datatype
00097 Returns:
00098     pointer to list of credential data or NULL in case of failure
00099 ******************************************************************************/
00100 extern void *getCredentialData(int datatype, int *count);
00101 
00102 #endif /* LCMAPS_CRED_DATA_H */
00103 
00104 /******************************************************************************
00105 CVS Information:
00106     $Source: /cvs/fabric_mgt/gridification/lcmaps/include/lcmaps_cred_data.h,v $
00107     $Date: 2003/07/10 16:33:23 $
00108     $Revision: 1.6 $
00109     $Author: martijn $
00110 ******************************************************************************/

Generated at Tue Sep 23 15:48:08 2003 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001