Loading...
Searching...
No Matches
globus_gsi_system_config.h
Go to the documentation of this file.
/*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBUS_GSI_SYSTEM_CONFIG_H
#define GLOBUS_GSI_SYSTEM_CONFIG_H
#include "globus_common.h"
#include "globus_gsi_system_config_constants.h"
#include "openssl/x509.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef GLOBUS_GLOBAL_DOCUMENT_SET
#endif
#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
#endif
#define GLOBUS_GSI_SYSCONFIG_MODULE (&globus_i_gsi_sysconfig_module)
extern
globus_module_descriptor_t globus_i_gsi_sysconfig_module;
#ifdef WIN32
# define GLOBUS_GSI_SYSCONFIG_SET_KEY_PERMISSIONS \
globus_gsi_sysconfig_set_key_permissions_win32
# define GLOBUS_GSI_SYSCONFIG_GET_HOME_DIR \
globus_gsi_sysconfig_get_home_dir_win32
# define GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE \
globus_gsi_sysconfig_check_keyfile_win32
# define GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE_UID \
globus_gsi_sysconfig_check_keyfile_uid_win32
# define GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE \
globus_gsi_sysconfig_check_certfile_win32
# define GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE_UID \
globus_gsi_sysconfig_check_certfile_uid_win32
# define GLOBUS_GSI_SYSCONFIG_FILE_EXISTS \
globus_gsi_sysconfig_file_exists_win32
# define GLOBUS_GSI_SYSCONFIG_DIR_EXISTS \
globus_gsi_sysconfig_dir_exists_win32
# define GLOBUS_GSI_SYSCONFIG_GET_CERT_DIR \
globus_gsi_sysconfig_get_cert_dir_win32
# define GLOBUS_GSI_SYSCONFIG_GET_USER_CERT_FILENAME \
globus_gsi_sysconfig_get_user_cert_filename_win32
# define GLOBUS_GSI_SYSCONFIG_GET_HOST_CERT_FILENAME \
globus_gsi_sysconfig_get_host_cert_filename_win32
# define GLOBUS_GSI_SYSCONFIG_GET_SERVICE_CERT_FILENAME \
globus_gsi_sysconfig_get_service_cert_filename_win32
# define GLOBUS_GSI_SYSCONFIG_GET_PROXY_FILENAME \
globus_gsi_sysconfig_get_proxy_filename_win32
# define GLOBUS_GSI_SYSCONFIG_GET_SIGNING_POLICY_FILENAME \
globus_gsi_sysconfig_get_signing_policy_filename_win32
# define GLOBUS_GSI_SYSCONFIG_GET_CA_CERT_FILES \
globus_gsi_sysconfig_get_ca_cert_files_win32
# define GLOBUS_GSI_SYSCONFIG_GET_CURRENT_WORKING_DIR \
globus_gsi_sysconfig_get_current_working_dir_win32
# define GLOBUS_GSI_SYSCONFIG_MAKE_ABSOLUTE_PATH_FOR_FILENAME \
globus_gsi_sysconfig_make_absolute_path_for_filename_win32
# define GLOBUS_GSI_SYSCONFIG_SPLIT_DIR_AND_FILENAME \
globus_gsi_sysconfig_split_dir_and_filename_win32
# define GLOBUS_GSI_SYSCONFIG_REMOVE_ALL_OWNED_FILES \
globus_gsi_sysconfig_remove_all_owned_files_win32
# define GLOBUS_GSI_SYSCONFIG_GET_GRIDMAP_FILENAME \
globus_gsi_sysconfig_get_gridmap_filename_win32
# define GLOBUS_GSI_SYSCONFIG_GET_AUTHZ_CONF_FILENAME \
globus_gsi_sysconfig_get_authz_conf_filename_win32
# define GLOBUS_GSI_SYSCONFIG_GET_GAA_CONF_FILENAME \
globus_gsi_sysconfig_get_gaa_conf_filename_win32
# define GLOBUS_GSI_SYSCONFIG_IS_SUPERUSER \
globus_gsi_sysconfig_is_superuser_win32
# define GLOBUS_GSI_SYSCONFIG_GET_USER_ID_STRING \
globus_gsi_sysconfig_get_user_id_string_win32
# define GLOBUS_GSI_SYSCONFIG_GET_PROC_ID_STRING \
globus_gsi_sysconfig_get_proc_id_string_win32
# define GLOBUS_GSI_SYSCONFIG_GET_USERNAME \
globus_gsi_sysconfig_get_username_win32
#else
# define GLOBUS_GSI_SYSCONFIG_SET_KEY_PERMISSIONS \
globus_gsi_sysconfig_set_key_permissions_unix
# define GLOBUS_GSI_SYSCONFIG_GET_HOME_DIR \
globus_gsi_sysconfig_get_home_dir_unix
# define GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE \
globus_gsi_sysconfig_check_keyfile_unix
# define GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE_UID \
globus_gsi_sysconfig_check_keyfile_uid_unix
# define GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE \
globus_gsi_sysconfig_check_certfile_unix
# define GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE_UID \
globus_gsi_sysconfig_check_certfile_uid_unix
# define GLOBUS_GSI_SYSCONFIG_FILE_EXISTS \
globus_gsi_sysconfig_file_exists_unix
# define GLOBUS_GSI_SYSCONFIG_DIR_EXISTS \
globus_gsi_sysconfig_dir_exists_unix
# define GLOBUS_GSI_SYSCONFIG_GET_CERT_DIR \
globus_gsi_sysconfig_get_cert_dir_unix
# define GLOBUS_GSI_SYSCONFIG_GET_USER_CERT_FILENAME \
globus_gsi_sysconfig_get_user_cert_filename_unix
# define GLOBUS_GSI_SYSCONFIG_GET_HOST_CERT_FILENAME \
globus_gsi_sysconfig_get_host_cert_filename_unix
# define GLOBUS_GSI_SYSCONFIG_GET_SERVICE_CERT_FILENAME \
globus_gsi_sysconfig_get_service_cert_filename_unix
# define GLOBUS_GSI_SYSCONFIG_GET_PROXY_FILENAME \
globus_gsi_sysconfig_get_proxy_filename_unix
# define GLOBUS_GSI_SYSCONFIG_GET_SIGNING_POLICY_FILENAME \
globus_gsi_sysconfig_get_signing_policy_filename_unix
# define GLOBUS_GSI_SYSCONFIG_GET_CA_CERT_FILES \
globus_gsi_sysconfig_get_ca_cert_files_unix
# define GLOBUS_GSI_SYSCONFIG_GET_CURRENT_WORKING_DIR \
globus_gsi_sysconfig_get_current_working_dir_unix
# define GLOBUS_GSI_SYSCONFIG_MAKE_ABSOLUTE_PATH_FOR_FILENAME \
globus_gsi_sysconfig_make_absolute_path_for_filename_unix
# define GLOBUS_GSI_SYSCONFIG_SPLIT_DIR_AND_FILENAME \
globus_gsi_sysconfig_split_dir_and_filename_unix
# define GLOBUS_GSI_SYSCONFIG_REMOVE_ALL_OWNED_FILES \
globus_gsi_sysconfig_remove_all_owned_files_unix
# define GLOBUS_GSI_SYSCONFIG_GET_GRIDMAP_FILENAME \
globus_gsi_sysconfig_get_gridmap_filename_unix
# define GLOBUS_GSI_SYSCONFIG_GET_AUTHZ_CONF_FILENAME \
globus_gsi_sysconfig_get_authz_conf_filename_unix
# define GLOBUS_GSI_SYSCONFIG_GET_GAA_CONF_FILENAME \
globus_gsi_sysconfig_get_gaa_conf_filename_unix
# define GLOBUS_GSI_SYSCONFIG_IS_SUPERUSER \
globus_gsi_sysconfig_is_superuser_unix
# define GLOBUS_GSI_SYSCONFIG_GET_USER_ID_STRING \
globus_gsi_sysconfig_get_user_id_string_unix
# define GLOBUS_GSI_SYSCONFIG_GET_PROC_ID_STRING \
globus_gsi_sysconfig_get_proc_id_string_unix
# define GLOBUS_GSI_SYSCONFIG_GET_USERNAME \
globus_gsi_sysconfig_get_username_unix
#endif
#define GLOBUS_GSI_SYSCONFIG_GET_UNIQUE_PROXY_FILENAME \
globus_gsi_sysconfig_get_unique_proxy_filename
#define GLOBUS_GSI_SYSCONFIG_GET_VHOST_CRED_DIR \
globus_gsi_sysconfig_get_vhost_cred_dir
globus_result_t
GLOBUS_GSI_SYSCONFIG_SET_KEY_PERMISSIONS(
char * filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_HOME_DIR(
char ** home_dir);
globus_result_t
GLOBUS_GSI_SYSCONFIG_FILE_EXISTS(
const char * filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_DIR_EXISTS(
const char * filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE(
const char * filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE_UID(
const char * filename,
uid_t uid);
globus_result_t
GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE(
const char * filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE_UID(
const char * filename,
uid_t uid);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_CERT_DIR(
char ** cert_dir);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_USER_CERT_FILENAME(
char ** user_cert_filename,
char ** user_key_filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_HOST_CERT_FILENAME(
char ** host_cert_filename,
char ** host_key_filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_SERVICE_CERT_FILENAME(
char * service_name,
char ** service_cert_filename,
char ** service_key_filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_PROXY_FILENAME(
char ** proxy_filename,
globus_gsi_proxy_file_type_t proxy_file_type);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_SIGNING_POLICY_FILENAME(
X509_NAME * ca_name,
char * cert_dir,
char ** signing_policy_filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_CA_CERT_FILES(
char * ca_cert_dir,
globus_fifo_t * ca_cert_list);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_CURRENT_WORKING_DIR(
char ** working_dir);
globus_result_t
GLOBUS_GSI_SYSCONFIG_MAKE_ABSOLUTE_PATH_FOR_FILENAME(
char * filename,
char ** absolute_path);
globus_result_t
GLOBUS_GSI_SYSCONFIG_SPLIT_DIR_AND_FILENAME(
char * full_filename,
char ** dir_string,
char ** filename_string);
globus_result_t
GLOBUS_GSI_SYSCONFIG_REMOVE_ALL_OWNED_FILES(
char * default_filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_IS_SUPERUSER(
int * is_superuser);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_USER_ID_STRING(
char ** user_id_string);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_USERNAME(
char ** username);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_PROC_ID_STRING(
char ** proc_id_string);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_GRIDMAP_FILENAME(
char ** filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_AUTHZ_CONF_FILENAME(
char ** filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_UNIQUE_PROXY_FILENAME(
char ** unique_filename);
globus_result_t
GLOBUS_GSI_SYSCONFIG_GET_VHOST_CRED_DIR(
char **dir_name_out);
#ifdef __cplusplus
}
#endif
#endif /* GLOBUS_GSI_SYSTEM_CONFIG_H */
globus_gsi_system_config_constants.h
Globus GSI System Config Library.
globus_gsi_proxy_file_type_t
globus_gsi_proxy_file_type_t
Definition globus_gsi_system_config_constants.h:115
GLOBUS_GSI_SYSCONFIG_GET_CERT_DIR
#define GLOBUS_GSI_SYSCONFIG_GET_CERT_DIR
Definition globus_gsi_system_config.h:294
GLOBUS_GSI_SYSCONFIG_GET_PROXY_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_PROXY_FILENAME
Definition globus_gsi_system_config.h:330
GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE_UID
#define GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE_UID
Definition globus_gsi_system_config.h:267
GLOBUS_GSI_SYSCONFIG_GET_SERVICE_CERT_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_SERVICE_CERT_FILENAME
Definition globus_gsi_system_config.h:321
GLOBUS_GSI_SYSCONFIG_GET_GRIDMAP_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_GRIDMAP_FILENAME
Definition globus_gsi_system_config.h:394
GLOBUS_GSI_SYSCONFIG_GET_AUTHZ_CONF_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_AUTHZ_CONF_FILENAME
Definition globus_gsi_system_config.h:402
GLOBUS_GSI_SYSCONFIG_GET_SIGNING_POLICY_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_SIGNING_POLICY_FILENAME
Definition globus_gsi_system_config.h:339
GLOBUS_GSI_SYSCONFIG_GET_VHOST_CRED_DIR
#define GLOBUS_GSI_SYSCONFIG_GET_VHOST_CRED_DIR
Definition globus_gsi_system_config.h:466
GLOBUS_GSI_SYSCONFIG_GET_USERNAME
#define GLOBUS_GSI_SYSCONFIG_GET_USERNAME
Definition globus_gsi_system_config.h:447
GLOBUS_GSI_SYSCONFIG_DIR_EXISTS
#define GLOBUS_GSI_SYSCONFIG_DIR_EXISTS
Definition globus_gsi_system_config.h:285
GLOBUS_GSI_SYSCONFIG_GET_CA_CERT_FILES
#define GLOBUS_GSI_SYSCONFIG_GET_CA_CERT_FILES
Definition globus_gsi_system_config.h:349
GLOBUS_GSI_SYSCONFIG_SPLIT_DIR_AND_FILENAME
#define GLOBUS_GSI_SYSCONFIG_SPLIT_DIR_AND_FILENAME
Definition globus_gsi_system_config.h:376
GLOBUS_GSI_SYSCONFIG_REMOVE_ALL_OWNED_FILES
#define GLOBUS_GSI_SYSCONFIG_REMOVE_ALL_OWNED_FILES
Definition globus_gsi_system_config.h:385
GLOBUS_GSI_SYSCONFIG_GET_CURRENT_WORKING_DIR
#define GLOBUS_GSI_SYSCONFIG_GET_CURRENT_WORKING_DIR
Definition globus_gsi_system_config.h:358
GLOBUS_GSI_SYSCONFIG_SET_KEY_PERMISSIONS
#define GLOBUS_GSI_SYSCONFIG_SET_KEY_PERMISSIONS
Definition globus_gsi_system_config.h:220
GLOBUS_GSI_SYSCONFIG_GET_PROC_ID_STRING
#define GLOBUS_GSI_SYSCONFIG_GET_PROC_ID_STRING
Definition globus_gsi_system_config.h:438
GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE
#define GLOBUS_GSI_SYSCONFIG_CHECK_CERTFILE
Definition globus_gsi_system_config.h:257
GLOBUS_GSI_SYSCONFIG_GET_UNIQUE_PROXY_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_UNIQUE_PROXY_FILENAME
Definition globus_gsi_system_config.h:457
GLOBUS_GSI_SYSCONFIG_GET_HOME_DIR
#define GLOBUS_GSI_SYSCONFIG_GET_HOME_DIR
Definition globus_gsi_system_config.h:229
GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE
#define GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE
Definition globus_gsi_system_config.h:238
GLOBUS_GSI_SYSCONFIG_FILE_EXISTS
#define GLOBUS_GSI_SYSCONFIG_FILE_EXISTS
Definition globus_gsi_system_config.h:276
GLOBUS_GSI_SYSCONFIG_GET_USER_ID_STRING
#define GLOBUS_GSI_SYSCONFIG_GET_USER_ID_STRING
Definition globus_gsi_system_config.h:429
GLOBUS_GSI_SYSCONFIG_GET_HOST_CERT_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_HOST_CERT_FILENAME
Definition globus_gsi_system_config.h:312
GLOBUS_GSI_SYSCONFIG_MAKE_ABSOLUTE_PATH_FOR_FILENAME
#define GLOBUS_GSI_SYSCONFIG_MAKE_ABSOLUTE_PATH_FOR_FILENAME
Definition globus_gsi_system_config.h:367
GLOBUS_GSI_SYSCONFIG_GET_USER_CERT_FILENAME
#define GLOBUS_GSI_SYSCONFIG_GET_USER_CERT_FILENAME
Definition globus_gsi_system_config.h:303
GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE_UID
#define GLOBUS_GSI_SYSCONFIG_CHECK_KEYFILE_UID
Definition globus_gsi_system_config.h:248
GLOBUS_GSI_SYSCONFIG_IS_SUPERUSER
#define GLOBUS_GSI_SYSCONFIG_IS_SUPERUSER
Definition globus_gsi_system_config.h:420