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

_lcmaps_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 
00023 #ifndef _LCMAPS_UTILS_H
00024 #define _LCMAPS_UTILS_H
00025 
00026 /******************************************************************************
00027                              Include header files
00028 ******************************************************************************/
00029 #include <gssapi.h>
00030 #include "lcmaps_types.h"
00031 #include "lcmaps_utils.h"
00032 
00033 /******************************************************************************
00034  *                            Module definition
00035  *****************************************************************************/
00036 
00038  /* Beginning of credential functions */
00039 /******************************************************************************
00040 Function:       lcmaps_fill_cred()
00041 Description:    Fill cedential from dn and globus credential
00042 Parameters:
00043                 dn: distinguished name
00044                 cred: globus credential
00045                 lcmaps_cred: pointer to lcmaps_credential
00046 Returns:        0: succes
00047                 1: failure
00048 ******************************************************************************/
00049 extern int lcmaps_fill_cred(
00050         char * dn,
00051         gss_cred_id_t cred,
00052         lcmaps_cred_id_t * lcmaps_credential
00053 );
00054 /******************************************************************************
00055 Function:       lcmaps_release_cred()
00056 Description:    release lcmaps credential
00057 Parameters:
00058                 plcmaps_cred: pointer to lcmaps_credential
00059 Returns:        0: succes
00060                 1: failure
00061 ******************************************************************************/
00062 extern int lcmaps_release_cred(
00063         lcmaps_cred_id_t * lcmaps_credential
00064 ); /* End of credential functions */
00066 
00067 /******************************************************************************
00068         OTHER STUFF
00069 ******************************************************************************/
00071  /* Beginning of other functions */
00072 /******************************************************************************
00073 Function:   lcmaps_tokenize() (in modified form from globus_gatekeeper_utils.c)
00074 
00075 Description:
00076     Breakup the command in to args, pointing the args array
00077     at the tokens. Replace white space at the end of each
00078     token with a null. A token maybe in quotes. 
00079 
00080 Parameters:
00081     command: The command line to be parsed.
00082     args:    A pointer to an array of pointers to be filled it
00083     n:       Size of the array, on input, and set to size used on output. 
00084     sep:     string of separating characters
00085 
00086 Returns:
00087     0 on success. 
00088     -1 on to malloc
00089     -2 on to many args
00090     -3 on quote not matched
00091 ******************************************************************************/
00092 extern int lcmaps_tokenize(
00093         const char * command, 
00094         char ** args,
00095         int * n,
00096         char * sep
00097 ); /* End of other functions */
00099 
00100 #endif /* _LCMAPS_UTILS_H */
00101 
00102 /******************************************************************************
00103 CVS Information:
00104     $Source: /cvs/fabric_mgt/gridification/lcmaps/src/pluginmanager/_lcmaps_utils.h,v $
00105     $Date: 2003/07/02 14:49:47 $
00106     $Revision: 1.2 $
00107     $Author: martijn $
00108 ******************************************************************************/

Generated at Thu Mar 4 17:39:02 2004 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001