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

_lcmaps_gsi_utils.h

Go to the documentation of this file.
00001 /*                                                                                                            
00002  * Copyright (c) Members of the EGEE Collaboration. 2004.
00003  * See http://eu-egee.org/partners/ for details on the copyright holders.
00004  * For license conditions see the license file or
00005  * http://eu-egee.org/license.html
00006  */
00007 
00022 #ifndef _LCMAPS_GSI_UTILS_H
00023 #define _LCMAPS_GSI_UTILS_H
00024 
00025 /******************************************************************************
00026                              Include header files
00027 ******************************************************************************/
00028 #include <openssl/x509.h>
00029 #include <gssapi.h>
00030 
00031 /******************************************************************************
00032  *                 Module definition
00033  *****************************************************************************/
00034 
00035 #ifndef LCMAPS_GSI_UTILS_C
00036 #   define LCMAPS_GSI_UTILS_STORAGE_CLASS extern
00037 #else
00038 #   define LCMAPS_GSI_UTILS_STORAGE_CLASS
00039 #endif
00040 
00041 /******************************************************************************
00042 Function:       lcmaps_gss_cred_to_dn() (copied from GLOBUS gatekeeper.c)
00043 Description:    Get the globusid from gssapi
00044 Parameters:
00045                 globus_cred: globus credential
00046 Returns:        globusid string (which could be freeed)
00047 ******************************************************************************/
00059 LCMAPS_GSI_UTILS_STORAGE_CLASS char * lcmaps_gss_cred_to_dn(
00060         gss_cred_id_t globus_cred
00061 );
00062 
00063 /******************************************************************************
00064 Function:       lcmaps_cred_to_x509()
00065 Description:    Return the pointer to X509 structure from gss credential
00066 Parameters:
00067                 cred: globus credential
00068 Returns:        pointer to X509 struct or NULL
00069 ******************************************************************************/
00070 LCMAPS_GSI_UTILS_STORAGE_CLASS X509 * lcmaps_cred_to_x509(
00071         gss_cred_id_t cred
00072 );
00073 
00074 
00075 /******************************************************************************
00076 Function:       lcmaps_cred_to_x509_chain()
00077 Description:    Return the pointer to X509 chain from gss credential
00078 Parameters:
00079                 cred: globus credential
00080 Returns:        pointer to X509 chain or NULL
00081 ******************************************************************************/
00082 LCMAPS_GSI_UTILS_STORAGE_CLASS STACK_OF(X509) * lcmaps_cred_to_x509_chain(
00083         gss_cred_id_t cred
00084 );
00085 
00086 #endif /* _LCMAPS_GSI_UTILS_H */
00087 
00088 /******************************************************************************
00089 CVS Information:
00090     $Source: /cvs/jra1mw/org.glite.security.lcmaps/src/grid_credential_handling/gsi_handling/_lcmaps_gsi_utils.h,v $
00091     $Date: 2004/12/02 17:17:53 $
00092     $Revision: 1.1 $
00093     $Author: msteenba $
00094 ******************************************************************************/

Generated on Sun May 29 21:22:10 2005 for lcmaps by doxygen 1.3.5