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

_lcas_utils.h File Reference

Internal header for the LCAS utilities. More...

#include <gssapi.h>
#include "lcas_types.h"
#include "lcas_utils.h"

Go to the source code of this file.

CREDENTIAL FUNCTIONS

int lcas_fill_cred (char *dn, gss_cred_id_t cred, lcas_cred_id_t *lcas_credential)
 Fill cedential from distinghuished name and globus credential. More...

int lcas_release_cred (lcas_cred_id_t *lcas_credential)
 Release the LCAS credential. More...


OTHER FUNCTIONS

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


Detailed Description

Internal header for the LCAS utilities.

Author:
Martijn Steenbakkers for the EU DataGrid.
This header contains the declarations of the LCAS utility functions:
  1. lcas_fill_cred():
  2. lcas_release_cred():
  3. lcas_tokenize():

Definition in file _lcas_utils.h.


Function Documentation

lcas_fill_cred char *    dn,
gss_cred_id_t    cred,
lcas_cred_id_t   lcas_credential
 

Fill cedential from distinghuished name and globus credential.

The LCAS 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
lcas_cred  pointer to LCAS credential to be filled.
Return values:
0  succes.
1  failure.

Definition at line 53 of file lcas_utils.c.

lcas_release_cred lcas_cred_id_t   lcas_credential
 

Release the LCAS credential.

Parameters:
lcas_cred  pointer to LCAS credential to be released
Return values:
0  succes.
1  failure.

Definition at line 83 of file lcas_utils.c.

lcas_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

Definition at line 359 of file lcas_utils.c.


Generated on Mon Sep 20 15:14:15 2004 for edg-lcas by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002