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

lcas.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 
00027 #ifndef LCAS_H
00028 #define LCAS_H
00029 
00030 /******************************************************************************
00031                              Include header files
00032 ******************************************************************************/
00033 #include <gssapi.h>
00034 #include "lcas_types.h"
00035 
00036 /******************************************************************************
00037  *                 Module definition
00038  *****************************************************************************/
00039 
00040 /******************************************************************************
00041 Function:   lcas_init
00042 Description:
00043     Initialize LCAS module: 
00044     setup logging, error handling
00045     read from LCAS database the plugins to be loaded
00046 
00047 Parameters:
00048     fp: file handle for logging (from gatekeeper)
00049 Returns:
00050     0: initialization succeeded
00051     1: initialization failed
00052 ******************************************************************************/
00069 extern int lcas_init(
00070         FILE* fp
00071 );
00072 
00073 /******************************************************************************
00074 Function:   lcas_term
00075 Description:
00076     Terminate LCAS module: 
00077 
00078 Parameters:
00079 Returns:
00080     0: termination succeeded
00081     1: termination failed
00082 ******************************************************************************/
00094 extern int lcas_term();
00095 
00096 /******************************************************************************
00097 Function:   lcas_get_fabric_authorization
00098 Description:
00099     Call LCAS in order to get authorization on the local fabric
00100 
00101 Parameters:
00102     request: JDL
00103     user_cred : user globus credential handle
00104 Returns:
00105     0: authorization succeeded
00106     1: authorization failed
00107 ******************************************************************************/
00123 #if ALLOW_EMPTY_CREDENTIALS
00124 extern int lcas_get_fabric_authorization(
00125         char * user_dn_tmp,
00126         gss_cred_id_t user_cred,
00127         lcas_request_t request
00128 );
00129 #else
00130 extern int lcas_get_fabric_authorization(
00131         gss_cred_id_t user_cred,
00132         lcas_request_t request
00133 );
00134 #endif
00135 
00136 extern int getMajorVersionNumber();
00137 extern int getMinorVersionNumber();
00138 extern int getPatchVersionNumber();
00139 
00140 #endif /* LCAS_H */
00141 
00142 /******************************************************************************
00143 CVS Information:
00144     $Source: /cvs/fabric_mgt/gridification/lcas/include/lcas.h,v $
00145     $Date: 2003/05/28 14:36:31 $
00146     $Revision: 2.6 $
00147     $Author: martijn $
00148 ******************************************************************************/

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