globus_gsi...nfig_win32(3)
π globus_gsi_sysconfig_win32 β the Win32 files, bestie π
okay so this is globus_gsi...nfig_win32(3) from the Library Functions Manual (section 3, library functions, you know the vibe). It's the Windows-flavoured twin of the GSI System Config stuff. Pull up a chair. π«Ά
β¨ NAME β¨
globus_gsi_sysconfig_win32 β Functions for Win32 platforms
- Functions for Win32 platforms.
π¦ SYNOPSIS π¦
Functions
globus_result_t globus_gsi_sysconfig_set_key_permissions_win32 (char *filename)β Win32 - Set Key Permissions.globus_result_t globus_gsi_sysconfig_file_exists_win32 (const char *filename)β Win32 - File Exists.globus_result_t globus_gsi_sysconfig_dir_exists_win32 (const char *filename)β Win32 - Directory Exists.globus_result_t globus_gsi_sysconfig_get_current_working_dir_win32 (char **working_dir)β Win32 - Get Current Working Directory.globus_result_t globus_gsi_sysconfig_make_absolute_path_for_filename_win32 (char *filename, char **absolute_path)β Win32 - Make Absolute Path.globus_result_t globus_gsi_sysconfig_split_dir_and_filename_win32 (char *full_filename, char **dir_string, char **filename_string)β Win32 - Split Directory and Filename.globus_result_t globus_gsi_sysconfig_get_cert_dir_win32 (char **cert_dir)β Win32 - Get Trusted CA Cert Dir.globus_result_t globus_gsi_sysconfig_get_user_cert_filename_win32 (char **user_cert, char **user_key)β Win32 - Get User Certificate Filename.globus_result_t globus_gsi_sysconfig_get_host_cert_filename_win32 (char **host_cert, char **host_key)β Win32 - Get Host Certificate and Key Filenames.globus_result_t globus_gsi_sysconfig_get_service_cert_filename_win32 (char *service_name, char **service_cert, char **service_key)β Win32 - Get Service Certificate and Key Filenames.globus_result_t globus_gsi_sysconfig_get_proxy_filename_win32 (char **user_proxy, globus_gsi_proxy_file_type_t proxy_file_type)β Win32 - Get Proxy Filename.globus_result_t globus_gsi_sysconfig_get_ca_cert_files_win32 (char *ca_cert_dir, globus_fifo_t *ca_cert_list)β Win32 - Get CA Cert Filenames.globus_result_t globus_gsi_sysconfig_remove_all_owned_files_win32 (char *default_filename)β Win32 - Remove all proxies owned by current uid.globus_result_t globus_gsi_sysconfig_get_gridmap_filename_win32 (char **filename)β Win32 - Get the path and file name of the grid map file.globus_result_t globus_gsi_sysconfig_get_authz_conf_filename_win32 (char **filename)β Win32 - Get the path and file name of the grid map file.globus_result_t globus_gsi_sysconfig_get_authz_lib_conf_filename_win32 (char **filename)β Win32 - Get authorization configuration filename.globus_result_t globus_gsi_sysconfig_get_gaa_conf_filename_win32 (char **filename)β Win32 - Get the path and file name of the gaa config file.globus_result_t globus_gsi_sysconfig_is_superuser_win32 (int *is_superuser)β Win32 - Check if the current user is root.globus_result_t globus_gsi_sysconfig_get_signing_policy_filename_win32 (X509_NAME *ca_name, char *cert_dir, char **signing_policy_filename)β Win32 - Get Signing Policy Filename.
πΈ Detailed Description πΈ
Functions for Win32 platforms.
These functions implement the Win32 version of the Globus GSI System Configuration API. They should never be called directly β please use the provided platform independent defines. like, do not @ them directly, use the defines, i promise it's the move π
π Function Documentation π
globus_result_t globus_gsi_sysconfig_dir_exists_win32 (const char * filename)
Win32 - Directory Exists. Check that the directory exists.
Parameters
- filename β the file to check
Returns
GLOBUS_SUCCESS if the directory exists, otherwise an error object identifier.
globus_result_t globus_gsi_sysconfig_file_exists_win32 (const char * filename)
Win32 - File Exists. Check that the file exists.
Parameters
- filename β the file to check
Returns
GLOBUS_SUCCESS (even if the file doesn't exist) β in some abortive cases an error object identifier is returned. yes bestie, it succeeds even when the file is missing, that is not a typo, that's just how it is π
globus_result_t globus_gsi_sysconfig_get_authz_conf_filename_win32 (char ** filename)
Win32 - Get the path and file name of the grid map file. Get the path and file name of the authorization callback configuration file.
Parameters
- filename β Contains the location of the authorization callback configuration file upon successful return
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned.
globus_result_t globus_gsi_sysconfig_get_authz_lib_conf_filename_win32 (char ** filename)
Win32 - Get authorization configuration filename. Get the path and file name of the authorization callback library configuration file.
Parameters
- filename β Contains the location of the authorization callback library configuration file upon successful return
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned.
globus_result_t globus_gsi_sysconfig_get_ca_cert_files_win32 (char * ca_cert_dir, globus_fifo_t * ca_cert_list)
Win32 - Get CA Cert Filenames. Gets a list of trusted CA certificate filenames in a trusted CA certificate directory. it's giving "gimme the whole roster" β¨
Parameters
- ca_cert_dir β The trusted CA certificate directory to get the filenames from
- ca_cert_list β The resulting list of CA certificate filenames. This is a globus list structure.
See also
globus_fifo_t
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned.
globus_result_t globus_gsi_sysconfig_get_cert_dir_win32 (char ** cert_dir)
Win32 - Get Trusted CA Cert Dir. Get the Trusted Certificate Directory containing the trusted Certificate Authority certificates. This directory is determined in the order shown below. Failure in one method results in attempting the next. so it's a whole search party, not a single lookup, okay? π
X509_CERT_DIRenvironment variable β if this is set, the trusted certificates will be searched for in that directory. This variable allows the end user to specify the location of trusted certificates.x509_cert_dirregistry key β If this registry key is set on windows, the directory it points to should contain the trusted certificates. The path to the registry key issoftware\Globus\GSI\<user home directory>\.globus\certificatesβ If this directory exists, and the previous methods of determining the trusted certs directory failed, this directory will be used.- Host Trusted Cert Dir β This location is intended to be independent of the globus installation (
$GLOBUS_LOCATION), and is generally only writeable by the host system administrator. - Globus Install Trusted Cert Dir β this is
$GLOBUS_LOCATION\share\certificates.
Parameters
- cert_dir β The trusted certificates directory
Returns
GLOBUS_SUCCESS if no error occurred, and a sufficient trusted certificates directory was found. Otherwise, an error object identifier returned.
globus_result_t globus_gsi_sysconfig_get_current_working_dir_win32 (char ** working_dir)
Win32 - Get Current Working Directory. Get the current working directory on a windows system.
Parameters
- working_dir β The working directory to get
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned.
globus_result_t globus_gsi_sysconfig_get_gaa_conf_filename_win32 (char ** filename)
Win32 - Get the path and file name of the gaa config file. Get the path and file name of the gaa config configuration file.
Parameters
- filename β Contains the location of the authorization callback configuration file upon successful return
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned.
globus_result_t globus_gsi_sysconfig_get_gridmap_filename_win32 (char ** filename)
Win32 - Get the path and file name of the grid map file. Get the path and file name of the grid map file.
Parameters
- filename β Contains the location of the grid map file upon successful return
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned.
globus_result_t globus_gsi_sysconfig_get_host_cert_filename_win32 (char ** host_cert, char ** host_key)
Win32 - Get Host Certificate and Key Filenames. Get the Host Certificate and Key Filenames based on the current user's environment. The host cert and key are searched for in the following locations (in order):
X509_USER_CERTandX509_USER_KEYenvironment variables- registry keys
x509_user_certandx509_user_keyinsoftware\Globus\GSI <GLOBUS_LOCATION>\etc\host[cert|key].pem<users home directory>\.globus\host[cert|key].pem
Parameters
- host_cert β pointer to the host certificate filename
- host_key β pointer to the host key filename
Returns
GLOBUS_SUCCESS if the host cert and key were found, otherwise an error object identifier is returned.
globus_result_t globus_gsi_sysconfig_get_proxy_filename_win32 (char ** user_proxy, globus_gsi_proxy_file_type_t proxy_file_type)
Win32 - Get Proxy Filename. Get the proxy cert filename based on the following search order:
X509_USER_PROXYenvironment variable β This environment variable is set by the at run time for the specific application. If the proxy_file_type variable is set toGLOBUS_PROXY_OUTPUT(a proxy filename for writing is requested), and theX509_USER_PROXYis set, this will be the resulting value of the user_proxy filename string passed in. If the proxy_file_type is set toGLOBUS_PROXY_INPUTandX509_USER_PROXYis set, but the file it points to does not exist, or has some other readability issues, the function will continue checking using the other methods available.- check the registry key:
x509_user_proxy. Just as with the environment variable, if the registry key is set, and proxy_file_type isGLOBUS_PROXY_OUTPUT, the string set to be the proxy filename will be this registry key's value. If proxy_file_type isGLOBUS_PROXY_INPUT, and the file doesn't exist, the function will check the next method for the proxy's filename.
<!-- part 1 ends here, more coming -->
- Check the default location for the proxy file. The default location should be set to reside in the temp directory on that host, with the filename taking the format:
x509_u<user id>where<user id>is some unique string for that user on the host.
Parameters
user_proxyβ the proxy filename of the userproxy_file_typeβ Switch for determining whether to return a existing proxy filename or if a filename suitable for creating a proxy should be returned
Returns
GLOBUS_SUCCESS or an error object identifier.
globus_result_t globus_gsi_sysconfig_get_service_cert_filename_win32 (char * service_name, char ** service_cert, char ** service_key)
Win32 - Get Service Certificate and Key Filenames. Get the Service Certificate Filename based on the current user's environment. The host cert and key are searched for in the following locations (in order):
X509_USER_CERTandX509_USER_KEYenvironment variables- registry keys
x509_user_certandx509_user_keyinsoftware\Globus\GSI GLOBUS_LOCATION\etc\{service_name}\{service_name}[cert|key].pemSo for example, if my service was named:myservice, the location of the certificate would be:
<GLOBUS_LOCATION>\etc\myservice\myservicecert.pem
<users home>\.globus\{service_name}\{service_name}[cert|key].pem
Parameters
service_nameβ The name of the service which allows us to determine the locations of cert and key files to look forservice_certβ pointer to the host certificate filenameservice_keyβ pointer to the host key filename
Returns
GLOBUS_SUCCESS if the service cert and key were found, otherwise an error object identifier
globus_result_t globus_gsi_sysconfig_get_signing_policy_filename_win32 (X509_NAME * ca_name, char * cert_dir, char ** signing_policy_filename)
Win32 - Get Signing Policy Filename. Get the Signing Policy Filename on the current system, based on the CA's subject name, and the trusted certificates directory.
Parameters
ca_nameβ The X.509 subject name of the CA to get the signing policy of. The hash of the CA is generated from thiscert_dirβ The trusted CA certificates directory, containing thesinging_policyfiles of the trusted CAs.signing_policy_filenameβ The resultingsinging_policyfilename
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID
globus_result_t globus_gsi_sysconfig_get_user_cert_filename_win32 (char ** user_cert, char ** user_key)
Win32 - Get User Certificate Filename. Get the User Certificate Filename based on the current user's environment. The following locations are searched for cert and key files in order:
- environment variables
X509_USER_CERTandX509_USER_KEY - registry keys
x509_user_certandx509_user_keyinsoftware\Globus\GSI <users home directory>\.globus\usercert.pemand<users home directory>\.globus\userkey.pem<users home directory>\.globus\usercred.p12- this is a PKCS12 credential
Parameters
user_certβ pointer the filename of the user certificateuser_keyβ pointer to the filename of the user key
Returns
GLOBUS_SUCCESS if the cert and key files were found in one of the possible locations, otherwise an error object identifier is returned
globus_result_t globus_gsi_sysconfig_is_superuser_win32 (int * is_superuser)
Win32 - Check if the current user is root. Checks whether the current user is root.
Parameters
is_superuserβ1if the user is the superuser0if not
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned
globus_result_t globus_gsi_sysconfig_make_absolute_path_for_filename_win32 (char * filename, char ** absolute_path)
Win32 - Make Absolute Path. Make the filename into an absolute path string based on the current working directory.
Parameters
filenameβ the filename to get the absolute path of.absolute_pathβ The resulting absolute path
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned
globus_result_t globus_gsi_sysconfig_remove_all_owned_files_win32 (char * default_filename)
Win32 - Remove all proxies owned by current uid. Removes all proxies (all delegated and grid-proxy-init generated proxies) found in the secure temp directory that are owned by the current user.
Parameters
default_filenameβ The filename of the default proxy
Returns
GLOBUS_SUCCESS if no error occurred, otherwise an error object ID is returned
globus_result_t globus_gsi_sysconfig_set_key_permissions_win32 (char * filename)
Win32 - Set Key Permissions. Set the file permissions of a file to read only by the user which are the permissions that should be set for all private keys.
Parameters
filename
Returns
GLOBUS_SUCCESS or an error object id
globus_result_t globus_gsi_sysconfig_split_dir_and_filename_win32 (char * full_filename, char ** dir_string, char ** filename_string)
Win32 - Split Directory and Filename. Split the directory and filename portions of a filename string into two separate strings
Parameters
full_filenamedir_stringfilename_string
Returns
(the original page just says Returns and then nothing, bestie β no description, no vibes, just silence π)
π Author
Generated automatically by Doxygen for globus_gsi_sysconfig from the source code.
Okay so that's the whole thing, and the footer line was from globus_gsi_sysconfig, Version 9.6, tagged as globus_gsi...nfig_win32(3). No date on the footer, just that version flex. Slay, you made it to the end! π
β¨
π¦ where this page comes from
- epel 10: globus-gsi-sysconfig-doc 9.6-1.el10_0 Β· Apache-2.0
- fedora 43: globus-gsi-sysconfig-doc 9.6-4.fc43 Β· Apache-2.0
- fedora 44: globus-gsi-sysconfig-doc 9.6-5.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-gsi-sysconfig-doc 9.6-2build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms