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

lcmaps_gsi_utils.c File Reference

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/x509.h>
#include <gssapi.h>
#include "gssapi_openssl.h"
#include "globus_gsi_credential.h"
#include "_lcmaps_gsi_utils.h"

Go to the source code of this file.

Functions

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

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

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 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 level) Contains modified globus code.

Definition in file lcmaps_gsi_utils.c.


Function Documentation

X509* 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.

STACK_OF_X509* 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.

char* 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:12 2005 for lcmaps by doxygen 1.3.5