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

lcmaps_cred_data.c File Reference

Routines to handle lcmaps credential data. More...

#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include "_lcmaps_cred_data.h"
#include "lcmaps_log.h"
#include "lcmaps_vo_data.h"

Go to the source code of this file.

Functions

int addCredentialData (int datatype, void *data)
 Add a credential to the list of found credentials (uids, gids etc).

void * getCredentialData (int datatype, int *count)
 Get pointer to a list of credential data of a certain type.

int cleanCredentialData ()
 Clean the credData structure.

void printCredData (int debug_level)
 Get pointer to a list of credential data of a certain type.


Detailed Description

Routines to handle lcmaps credential data.

Author:
Oscar Koeroo and Martijn Steenbakkers for the EU DataGrid.

Definition in file lcmaps_cred_data.c.


Function Documentation

int addCredentialData int  datatype,
void *  data
 

Add a credential to the list of found credentials (uids, gids etc).

The credential value is copied into list (memory is allocated for this)

Parameters:
datatype type of credential
data pointer to credential
Returns:
0 in case of succes

Definition at line 92 of file lcmaps_cred_data.c.

References cred_data_s::cntPriGid, cred_data_s::cntSecGid, cred_data_s::cntUid, cred_data_s::cntVoCred, cred_data_s::cntVoCredMapping, cred_data_s::cntVoCredString, cred_data_s::dn, lcmaps_copyVoData(), lcmaps_copyVoMapping(), lcmaps_vo_data_t, lcmaps_vo_mapping_t, cred_data_s::pool_index, cred_data_s::priGid, cred_data_s::secGid, cred_data_s::uid, cred_data_s::VoCred, cred_data_s::VoCredMapping, and cred_data_s::VoCredString.

int cleanCredentialData  ) 
 

Clean the credData structure.

Returns:
0

Definition at line 287 of file lcmaps_cred_data.c.

References cred_data_s::cntPriGid, cred_data_s::cntSecGid, cred_data_s::cntUid, cred_data_s::cntVoCred, cred_data_s::cntVoCredMapping, cred_data_s::cntVoCredString, cred_data_s::dn, lcmaps_cleanVoData(), lcmaps_cleanVoMapping(), cred_data_s::pool_index, cred_data_s::priGid, cred_data_s::secGid, cred_data_s::uid, cred_data_s::VoCred, cred_data_s::VoCredMapping, and cred_data_s::VoCredString.

Referenced by resetCredentialData(), and stopPluginManager().

void* getCredentialData int  datatype,
int *  count
 

Get pointer to a list of credential data of a certain type.

Parameters:
datatype type of credential
count number of credentials found in list of datatype (filled by routine)
Returns:
pointer to list of credential data or NULL in case of failure

Definition at line 228 of file lcmaps_cred_data.c.

References cred_data_s::cntPriGid, cred_data_s::cntSecGid, cred_data_s::cntUid, cred_data_s::cntVoCred, cred_data_s::cntVoCredMapping, cred_data_s::cntVoCredString, cred_data_s::dn, cred_data_s::pool_index, cred_data_s::priGid, cred_data_s::secGid, cred_data_s::uid, cred_data_s::VoCred, cred_data_s::VoCredMapping, and cred_data_s::VoCredString.

Referenced by lcmaps_run_and_return_poolindex(), lcmaps_run_and_return_username(), lcmaps_run_with_fqans_and_return_account(), and lcmaps_run_without_credentials_and_return_username().

void printCredData int  debug_level  ) 
 

Get pointer to a list of credential data of a certain type.

Parameters:
debug_level the debug level
Returns:
nothing

Definition at line 345 of file lcmaps_cred_data.c.

References cred_data_s::cntPriGid, cred_data_s::cntSecGid, cred_data_s::cntUid, cred_data_s::cntVoCred, cred_data_s::cntVoCredMapping, cred_data_s::cntVoCredString, cred_data_s::dn, lcmaps_log_a_string_debug(), lcmaps_log_debug(), lcmaps_printVoData(), lcmaps_printVoMapping(), cred_data_s::pool_index, cred_data_s::priGid, cred_data_s::secGid, cred_data_s::uid, cred_data_s::VoCred, cred_data_s::VoCredMapping, and cred_data_s::VoCredString.

Referenced by stopPluginManager().


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