#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <stdarg.h>
#include <gssapi.h>
#include "lcas_defines.h"
#include "lcas_types.h"
Go to the source code of this file.
Functions | |
char * | cred_to_dn (gss_cred_id_t) |
Get the globus DN from GLOBUS credential (gssapi). | |
int | fexist (char *) |
check the existence of file corresponding to <path> | |
int | lcas_fill_cred (char *dn, gss_cred_id_t cred, lcas_cred_id_t *plcas_cred) |
Fill cedential from distinghuished name and globus credential. | |
int | lcas_release_cred (lcas_cred_id_t *plcas_cred) |
Release the LCAS credential. | |
char * | lcas_get_dn (lcas_cred_id_t lcas_credential) |
Retrieve user DN from (LCAS) credential. | |
gss_cred_id_t | lcas_get_gss_cred (lcas_cred_id_t lcas_credential) |
Retrieve globus gss credential from (LCAS) credential. | |
char * | lcas_genfilename (char *prefixp, char *pathp, char *suffixp) |
Generate an absolute file name. | |
char * | lcas_getfexist (int n,...) |
Picks the first existing file in argument list. | |
char * | lcas_findfile (char *name) |
Checks for file in standard directories. | |
int | lcas_tokenize (const char *command, char **args, int *n, char *sep) |
Break the argument string up into tokens. |
Definition in file lcas_utils.c.
|
Get the globus DN from GLOBUS credential (gssapi). (copied and modified from GLOBUS gatekeeper.c)
Definition at line 150 of file lcas_utils.c. Referenced by lcas_fill_cred(). |
|
check the existence of file corresponding to <path>
Definition at line 259 of file lcas_utils.c. Referenced by lcas_getfexist(). |
|
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.
Definition at line 60 of file lcas_utils.c. References lcas_cred_id_s::cred, cred_to_dn(), lcas_cred_id_s::dn, and lcas_cred_id_t. Referenced by lcas_get_fabric_authorization(). |
|
Checks for file in standard directories. The directories that are checked are:
Definition at line 315 of file lcas_utils.c. References LCAS_ETC_HOME, lcas_genfilename(), lcas_getfexist(), LCAS_LIB_HOME, and LCAS_MOD_HOME. Referenced by plugin_initialize(), and PluginInit(). |
|
Generate an absolute file name. Given a starting prefix, a relative or absolute path, and a suffix an absolute file name is generated. Uses the prefix only if the path is relative. (Copied (and modified) from GLOBUS gatekeeper.c)
Definition at line 202 of file lcas_utils.c. Referenced by lcas_findfile(), lcas_init_and_logfile(), lcas_setup(), and PluginInit(). |
|
Retrieve user DN from (LCAS) credential. This function takes an LCAS credential as input and returns the corresponding user distinguished name (DN). (Internal:) If the GLOBUS credential part of the LCAS credential is empty the user DN is already included in the LCAS credential.
Definition at line 111 of file lcas_utils.c. References lcas_cred_id_s::dn, and lcas_cred_id_t. Referenced by lcas_get_fabric_authorization(), and plugin_confirm_authorization(). |
|
Retrieve globus gss credential from (LCAS) credential. This function takes an LCAS credential as input and returns the corresponding globus gss credential.
Definition at line 125 of file lcas_utils.c. References lcas_cred_id_s::cred, and lcas_cred_id_t. |
|
Picks the first existing file in argument list.
Definition at line 290 of file lcas_utils.c. References fexist(). Referenced by lcas_findfile(), plugin_initialize(), and PluginInit(). |
|
Release the LCAS credential.
Definition at line 90 of file lcas_utils.c. References lcas_cred_id_s::dn, and lcas_cred_id_t. Referenced by lcas_get_fabric_authorization(). |
|
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)
Definition at line 366 of file lcas_utils.c. Referenced by lcas_setup(), and parse_args_plugin(). |