#include <grp.h>
Include dependency graph for lcmaps_vo_data.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | lcmaps_vo_data_s |
structure that contains the VO information found in the user's gss credential. More... | |
struct | lcmaps_vo_mapping_s |
structure that contains the VO information string (or FQAN) and the local Gid it is mapped to. More... | |
Defines | |
#define | LCMAPS_NO_GID (gid_t)(-1) |
Typedefs | |
typedef struct lcmaps_vo_data_s | lcmaps_vo_data_t |
Type of VO information structure. | |
typedef struct lcmaps_vo_mapping_s | lcmaps_vo_mapping_t |
Type of VO mapping structure. | |
Functions | |
lcmaps_vo_data_t* | lcmaps_createVoData (const char *vo, const char *group, const char *subgroup, const char *role, const char *capability) |
Create a VoData structure. More... | |
int | lcmaps_deleteVoData (lcmaps_vo_data_t **vo_data) |
Delete a VoData structure. More... | |
int | lcmaps_cleanVoData (lcmaps_vo_data_t *vo_data) |
Clean a VoData structure. More... | |
int | lcmaps_copyVoData (lcmaps_vo_data_t *dst_vo_data, const lcmaps_vo_data_t *src_vo_data) |
Copy a VoData structure into an empty VoData structure. More... | |
int | lcmaps_printVoData (int debug_level, const lcmaps_vo_data_t *vo_data) |
Print the contents of a VoData structure. More... | |
int | lcmaps_stringVoData (const lcmaps_vo_data_t *vo_data, char *buffer, int nchars) |
Cast a VoData structure into a string. More... | |
lcmaps_vo_mapping_t* | lcmaps_createVoMapping (const char *vo_data_string, const char *groupname, const gid_t gid) |
Create a VoMapping structure. More... | |
int | lcmaps_deleteVoMapping (lcmaps_vo_mapping_t **vo_mapping) |
Delete a VoMapping structure. More... | |
int | lcmaps_cleanVoMapping (lcmaps_vo_mapping_t *vo_mapping) |
Clean a VoMapping structure. More... | |
int | lcmaps_copyVoMapping (lcmaps_vo_mapping_t *dst_vo_mapping, const lcmaps_vo_mapping_t *src_vo_mapping) |
Copy a VoMapping structure into an empty VoMapping structure. More... | |
int | lcmaps_printVoMapping (int debug_level, const lcmaps_vo_mapping_t *vo_mapping) |
Print the contents of a VoMapping structure. More... |
Definition in file lcmaps_vo_data.h.
|
Invalid GID Definition at line 37 of file lcmaps_vo_data.h. |
|
Clean a VoData structure.
Clean a VoData structure that was previously filled with lcmaps_copyVoData(). The contents are freed and set to zero.
Definition at line 195 of file lcmaps_vo_data.c. |
|
Clean a VoMapping structure.
Clean a VoMapping structure that was previously filled with lcmaps_copyVoMapping(). The contents are freed and set to zero.
Definition at line 682 of file lcmaps_vo_data.c. |
|
Copy a VoData structure into an empty VoData structure.
Copy a VoData structure into an empty VoData structure which has to exist.
Definition at line 263 of file lcmaps_vo_data.c. |
|
Copy a VoMapping structure into an empty VoMapping structure.
Copy a VoMapping structure into an empty VoMapping structure which has to exist.
Definition at line 736 of file lcmaps_vo_data.c. |
|
Create a VoData structure.
Create a VoData structure (store a VO, group, (subgroup,) role, capability combination). Allocate the memory. To be freed with lcmaps_deleteVoData().
Definition at line 81 of file lcmaps_vo_data.c. |
|
Create a VoMapping structure.
Create a VoMapping structure store the VO information string (or FQAN) in combination with the corresponding gid. Allocate the memory. To be freed with lcmaps_deleteVoMapping().
Definition at line 577 of file lcmaps_vo_data.c. |
|
Delete a VoData structure.
Delete a VoData structure that was previously created with lcmaps_createVoData(). The pointer to the VoData structure is finally set to NULL;
Definition at line 141 of file lcmaps_vo_data.c. |
|
Delete a VoMapping structure.
Delete a VoMapping structure that was previously created with lcmaps_createVoMapping(). The pointer to the VoMapping structure is finally set to NULL;
Definition at line 631 of file lcmaps_vo_data.c. |
|
Print the contents of a VoData structure.
Definition at line 324 of file lcmaps_vo_data.c. |
|
Print the contents of a VoMapping structure.
Definition at line 787 of file lcmaps_vo_data.c. |
|
Cast a VoData structure into a string.
The user of this function should create the buffer of size nchars beforehand. In buffer a string like the following will be written: "/VO=fred/GROUP=fred/flintstone/ROLE=director/CAPABILITY=destroy" Currently the SUBGROUP entry is ignored. Only if the information is present in the VoData structure, it is added to the string. Both data for VO and GROUP are required (might change).
Definition at line 392 of file lcmaps_vo_data.c. |