#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. |
Definition in file lcmaps_cred_data.c.
|
Add a credential to the list of found credentials (uids, gids etc). The credential value is copied into list (memory is allocated for this)
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. |
|
Clean the credData structure.
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(). |
|
Get pointer to a list of credential data of a certain type.
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(). |
|
Get pointer to a list of credential data of a certain type.
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(). |