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

_lcmaps_utils.h File Reference

Internal header for the LCMAPS utilities. More...

#include <gssapi.h>
#include "lcmaps_types.h"
#include "lcmaps_utils.h"

Include dependency graph for _lcmaps_utils.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

CREDENTIAL FUNCTIONS

int lcmaps_fill_cred (char *dn, gss_cred_id_t cred, lcmaps_cred_id_t *lcmaps_credential)
 Fill cedential from distinghuished name and globus credential. More...

int lcmaps_release_cred (lcmaps_cred_id_t *lcmaps_credential)
 Release the LCMAPS credential. More...


OTHER FUNCTIONS

int lcmaps_tokenize (const char *command, char **args, int *n, char *sep)
 Break the argument string up into tokens. More...


Detailed Description

Internal header for the LCMAPS utilities.

Author:
Martijn Steenbakkers for the EU DataGrid.

This header contains the declarations of the LCMAPS utility functions:
  1. lcmaps_fill_cred():
  2. lcmaps_release_cred():
  3. lcmaps_tokenize():

    For internal use only.

Definition in file _lcmaps_utils.h.


Function Documentation

int lcmaps_fill_cred ( char * dn,
gss_cred_id_t cred,
lcmaps_cred_id_t * plcmaps_cred )
 

Fill cedential from distinghuished name and globus credential.

The LCMAPS credential only differs from the GLOBUS credential by the extra entry for the dn. This allows (temporarily) the passed delegated GLOBUS credential to be empty.

Parameters:
dn   distinguished name
cred   GLOBUS credential
lcmaps_cred   pointer to LCMAPS credential to be filled.
Return values:
0   succes.
1   failure.

For internal use only.

Definition at line 74 of file lcmaps_utils.c.

int lcmaps_release_cred ( lcmaps_cred_id_t * plcmaps_cred )
 

Release the LCMAPS credential.

Parameters:
lcmaps_cred   pointer to LCMAPS credential to be released
Return values:
0   succes.
1   failure.

For internal use only.

Definition at line 115 of file lcmaps_utils.c.

int lcmaps_tokenize ( const char * command,
char ** args,
int * n,
char * sep )
 

Break the argument string up into tokens.

Breakup the command in to arguments, pointing the args array at the tokens. Replace white space at the end of each token with a null. A token maybe in quotes. (Copied (and modified) from GLOBUS gatekeeper.c)

Parameters:
command   the command line to be parsed
args   pointer to an array of pointers to be filled
n   size of the array, on input, and set to size used on output
sep   string of separating characters
Return values:
0   succes
-1   malloc error
-2   too many args
-3   quote not matched

For internal use only.

Definition at line 462 of file lcmaps_utils.c.


Generated at Thu Mar 4 17:39:10 2004 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001