---
name: "globus_gsi_sysconfig_get_vhost_cred_dir"
section: "3"
platform: "linux"
package: "libglobus-gsi-sysconfig-doc"
version: "9.6-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_gsi_sysconfig_shared"
---

# globus\_gsi\_sysconfig\_get\_vhost\_cred\_dir(3)

Functions for all platforms - Functions for all platforms.

Part of [globus\_gsi\_sysconfig\_shared(3)](/globus_gsi_sysconfig_shared/3.md).

## NAME

globus\_gsi\_sysconfig\_shared - Functions for all platforms

 \- Functions for all platforms.

## SYNOPSIS

### Functions

globus\_result\_t **globus\_gsi\_sysconfig\_get\_unique\_proxy\_filename** (char \*\*unique\_filename)\
 Get Unique Proxy Filename.  globus\_result\_t **globus\_gsi\_sysconfig\_get\_vhost\_cred\_dir** (char \*\*dir\_name\_out)\
 UNIX - Get vhost credential dir.

## Detailed Description

Functions for all platforms.

These functions are platform independent members of the Globus GSI System Configuration API.

## Function Documentation

### globus\_result\_t globus\_gsi\_sysconfig\_get\_unique\_proxy\_filename (char \*\* unique\_filename)

Get Unique Proxy Filename. Get a unique proxy cert filename. This is mostly used for delegated proxy credentials. Each filename returned is going to be unique for each time the function is called.

**Parameters**

*unique\_filename* the unique filename for a delegated proxy cert

**Returns**

GLOBUS\_SUCCESS or an error object identifier

### globus\_result\_t globus\_gsi\_sysconfig\_get\_vhost\_cred\_dir (char \*\* dir\_name\_out)

UNIX - Get vhost credential 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.

- 1\.

  `$X509_VHOST_CRED_DIR` environment variable

- 2\.

  `$GLOBUS_LOCATION/etc/vhosts`

- 3\.

  `/etc/grid-security/vhosts`

If this function is successful, it modifies **dir\_name\_out** to point to the directory path. The caller must free this value.

**Returns**

If successful, this function returns GLOBUS\_SUCCESS. Otherwise, this function returns an error result.

**Parameters**

*dir\_name\_out* Pointer to set to the vhosts directory

## Author

Generated automatically by Doxygen for globus\_gsi\_sysconfig from the source code.
