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

lcas_utils.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  *     David Groep <davidg@nikhef.nl>,
00008  *     NIKHEF Amsterdam, the Netherlands
00009  */
00010 
00024 #ifndef LCAS_UTILS_H
00025 #define LCAS_UTILS_H
00026 
00027 /******************************************************************************
00028                              Include header files
00029 ******************************************************************************/
00030 #include <gssapi.h>
00031 #include "lcas_types.h"
00032 
00033 /******************************************************************************
00034  *                 Module definition
00035  *****************************************************************************/
00036 
00038  /* Beginning of credential functions */
00039 
00040 /******************************************************************************
00041 Function:       lcas_get_dn()
00042 Description:    returns user dn
00043 Parameters:
00044                 lcas_cred: lcas_credential
00045 Returns:        user dn
00046 ******************************************************************************/
00062 extern char * lcas_get_dn(
00063         lcas_cred_id_t lcas_credential
00064 );
00065 
00066 
00067 /******************************************************************************
00068 Function:       lcas_get_gss_cred()
00069 Description:    returns globus gss credential
00070 Parameters:
00071                 lcas_cred: lcas_credential
00072 Returns:        globus gss credential
00073 ******************************************************************************/
00086 extern gss_cred_id_t lcas_get_gss_cred(
00087         lcas_cred_id_t lcas_credential
00088 );
00089  /* End of credential functions */
00091 
00093  /* Beginning of filename functions */
00094 /******************************************************************************
00095 Function:       lcas_genfilename() (copied from GLOBUS gatekeeper.c)
00096 Description:    generate an absolute file name given a starting prefix,
00097                 a relative or absolute path, and a suffix
00098                 Only use prefix if path is relative.
00099 Parameters:
00100 Returns:        a pointer to a string which could be freeded.
00101 ******************************************************************************/
00121 extern char * lcas_genfilename(
00122         char * prefix,
00123         char * path,
00124         char * suffix
00125 );
00126 
00127 /******************************************************************************
00128 Function:       lcas_getfexist()
00129 Description:    picks the first existing file in argument list
00130 Parameters:     n   : number of paths,
00131                 ... : list of paths
00132 Returns:        returns filename found or NULL
00133 ******************************************************************************/
00146 extern char * lcas_getfexist(
00147         int n,
00148         ...
00149 );
00150 
00151 /******************************************************************************
00152 Function:       lcas_findfile()
00153 Description:    Checks for file in standard directories
00154 Parameters:     name
00155 Returns:        returns filename found (should be freeed) or NULL
00156 ******************************************************************************/
00174 extern char * lcas_findfile(
00175         char * name
00176 ); /* End of filename functions */
00178 
00179 #endif /* LCAS_UTILS_H */
00180 
00181 /******************************************************************************
00182 CVS Information:
00183     $Source: /cvs/fabric_mgt/gridification/lcas/include/lcas_utils.h,v $
00184     $Date: 2003/08/08 16:16:07 $
00185     $Revision: 2.8 $
00186     $Author: martijn $
00187 ******************************************************************************/

Generated at Tue Sep 23 15:06:52 2003 for edg-lcas by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001