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

_lcmaps_gsi_utils.h File Reference

This file contains the headers for utility functions to retrieve info from gsi credentials/contexts (at the gssapi level). More...

#include <openssl/x509.h>
#include <gssapi.h>

Go to the source code of this file.

Functions

LCMAPS_GSI_UTILS_STORAGE_CLASS
char * 
lcmaps_gss_cred_to_dn (gss_cred_id_t globus_cred)
 Get the globus DN from GLOBUS credential (gssapi).

LCMAPS_GSI_UTILS_STORAGE_CLASS
X509 * 
lcmaps_cred_to_x509 (gss_cred_id_t cred)
 Return the pointer to X509 structure from gss credential.

LCMAPS_GSI_UTILS_STORAGE_CLASS
STACK_OF_X509 * 
lcmaps_cred_to_x509_chain (gss_cred_id_t cred)
 Return the pointer to X509 structure from gss credential.


Detailed Description

This file contains the headers for utility functions to retrieve info from gsi credentials/contexts (at the gssapi level).

Author:
Martijn Steenbakkers for EGEE
This file contains utility functions to retrieve info from gsi credentials/contexts (at the gssapi and gsi level) The following functions are defined:
  1. lcmaps_cred_to_x509()
  2. lcmaps_cred_to_x509_chain()
  3. lcmaps_gss_cred_to_dn()

Definition in file _lcmaps_gsi_utils.h.


Function Documentation

lcmaps_cred_to_x509 gss_cred_id_t  cred  ) 
 

Return the pointer to X509 structure from gss credential.

This function takes a gss credential as input and returns the corresponding X509 structure, which is allocated for this purpose (should be freed)

Parameters:
cred the gss credential
Returns:
a pointer to a X509 struct or NULL

Definition at line 127 of file lcmaps_gsi_utils.c.

lcmaps_cred_to_x509_chain gss_cred_id_t  cred  ) 
 

Return the pointer to X509 structure from gss credential.

This function takes a gss credential as input and returns the corresponding X509 chain, which is allocated for this purpose (should be freed)

Parameters:
cred the gss credential
Returns:
a pointer to a X509 chain or NULL

Definition at line 187 of file lcmaps_gsi_utils.c.

lcmaps_gss_cred_to_dn gss_cred_id_t  globus_cred  ) 
 

Get the globus DN from GLOBUS credential (gssapi).

(copied and modified from GLOBUS gatekeeper.c)

Parameters:
globus_cred GLOBUS credential
Returns:
globus DN string (which may should be freed)

Definition at line 63 of file lcmaps_gsi_utils.c.


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