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

lcmaps_cred_data.h File Reference

Public header file to be used by plugins. More...

#include <pwd.h>
#include "lcmaps_vo_data.h"

Go to the source code of this file.

Data Structures

struct  cred_data_s
 structure that contains the gathered (local) credentials en VOMS info More...


Typedefs

typedef cred_data_s cred_data_t
 Type of credential data.


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.


Detailed Description

Public header file to be used by plugins.

Routines to access the credential data that are gathered by the plugins.

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

Definition in file lcmaps_cred_data.h.


Function Documentation

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.

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().


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