Grid Community Toolkit  6.2.1566487665 (tag: v6.2.20190829)
Typedefs | Functions
Callback Data Functions

Callback Data Functions. More...

Typedefs

typedef struct globus_l_gsi_callback_data_s * globus_gsi_callback_data_t
 

Functions

globus_result_t globus_gsi_callback_data_init (globus_gsi_callback_data_t *callback_data)
 Initialize a callback data structure. More...
 
globus_result_t globus_gsi_callback_data_destroy (globus_gsi_callback_data_t callback_data)
 Initialize a callback data structure. More...
 
globus_result_t globus_gsi_callback_data_copy (globus_gsi_callback_data_t source, globus_gsi_callback_data_t *dest)
 Copy a callback data structure. More...
 
globus_result_t globus_gsi_callback_get_cert_depth (globus_gsi_callback_data_t callback_data, int *cert_depth)
 Getting the certificate chain depth. More...
 
globus_result_t globus_gsi_callback_set_cert_depth (globus_gsi_callback_data_t callback_data, int cert_depth)
 Set the certificate chain depth. More...
 
globus_result_t globus_gsi_callback_get_proxy_depth (globus_gsi_callback_data_t callback_data, int *proxy_depth)
 Get the "proxy chain" depth. More...
 
globus_result_t globus_gsi_callback_set_proxy_depth (globus_gsi_callback_data_t callback_data, int proxy_depth)
 Set the "proxy chain" depth. More...
 
globus_result_t globus_gsi_callback_get_cert_type (globus_gsi_callback_data_t callback_data, globus_gsi_cert_utils_cert_type_t *cert_type)
 Get the certificate type. More...
 
globus_result_t globus_gsi_callback_set_cert_type (globus_gsi_callback_data_t callback_data, globus_gsi_cert_utils_cert_type_t cert_type)
 Set the certificate type. More...
 
globus_result_t globus_gsi_callback_get_cert_chain (globus_gsi_callback_data_t callback_data, STACK_OF(X509) **cert_chain)
 Get the certificate chain. More...
 
globus_result_t globus_gsi_callback_set_cert_chain (globus_gsi_callback_data_t callback_data, STACK_OF(X509) *cert_chain)
 Set the certificate chain. More...
 
globus_result_t globus_gsi_callback_get_multiple_limited_proxy_ok (globus_gsi_callback_data_t callback_data, int *multiple_limited_proxy_ok)
 Get the limited proxy handling setting. More...
 
globus_result_t globus_gsi_callback_set_multiple_limited_proxy_ok (globus_gsi_callback_data_t callback_data, int multiple_limited_proxy_ok)
 Set the limited proxy handling setting. More...
 
globus_result_t globus_gsi_callback_get_extension_oids (globus_gsi_callback_data_t callback_data, void **extension_oids)
 Get X.509 extension OIDs. More...
 
globus_result_t globus_gsi_callback_set_extension_oids (globus_gsi_callback_data_t callback_data, void *extension_oids)
 Set X.509 extension OIDs. More...
 
globus_result_t globus_gsi_callback_get_cert_dir (globus_gsi_callback_data_t callback_data, char **cert_dir)
 Get the trusted certificate directory. More...
 
globus_result_t globus_gsi_callback_set_cert_dir (globus_gsi_callback_data_t callback_data, char *cert_dir)
 Set the trusted certificate directory. More...
 
globus_result_t globus_gsi_callback_get_extension_cb (globus_gsi_callback_data_t callback_data, globus_gsi_extension_callback_t *extension_cb)
 Get the unknown X.509 extension callback. More...
 
globus_result_t globus_gsi_callback_set_extension_cb (globus_gsi_callback_data_t callback_data, globus_gsi_extension_callback_t extension_cb)
 
globus_result_t globus_gsi_callback_get_error (globus_gsi_callback_data_t callback_data, globus_result_t *error)
 Get error status. More...
 
globus_result_t globus_gsi_callback_set_error (globus_gsi_callback_data_t callback_data, globus_result_t error)
 Set error status. More...
 
globus_result_t globus_gsi_callback_get_check_policy_for_self_signed_certs (globus_gsi_callback_data_t callback_data, globus_bool_t *check)
 Get the self-signed policy checking flag. More...
 
globus_result_t globus_gsi_callback_set_check_policy_for_self_signed_certs (globus_gsi_callback_data_t callback_data, globus_bool_t check)
 Set the self-signed policy checking flag. More...
 
globus_result_t globus_gsi_callback_get_allow_missing_signing_policy (globus_gsi_callback_data_t callback_data, globus_bool_t *allow)
 Get the "allow missing signing policy" flag. More...
 
globus_result_t globus_gsi_callback_set_allow_missing_signing_policy (globus_gsi_callback_data_t callback_data, globus_bool_t allow)
 Set the "allow missing signing policy" flag. More...
 

Detailed Description

Callback Data Functions.

Functions that deal with the data structure that contains state associated with the path validation callback.

Typedef Documentation

◆ globus_gsi_callback_data_t

typedef struct globus_l_gsi_callback_data_s* globus_gsi_callback_data_t

Callback data typedef

Function Documentation

◆ globus_gsi_callback_data_copy()

globus_result_t globus_gsi_callback_data_copy ( globus_gsi_callback_data_t  source,
globus_gsi_callback_data_t dest 
)

Copy a callback data structure.

This function copies a globus_gsi_callback_data_t.

Parameters
sourceThe structure to be copied
destThe destination of the copy
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_data_destroy()

globus_result_t globus_gsi_callback_data_destroy ( globus_gsi_callback_data_t  callback_data)

Initialize a callback data structure.

This function destroys a globus_gsi_callback_data_t.

Parameters
callback_dataThe structure to be destroyed
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_data_init()

globus_result_t globus_gsi_callback_data_init ( globus_gsi_callback_data_t callback_data)

Initialize a callback data structure.

This function initializes a globus_gsi_callback_data_t.

Parameters
callback_dataReference to the structure to be initialized
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_allow_missing_signing_policy()

globus_result_t globus_gsi_callback_get_allow_missing_signing_policy ( globus_gsi_callback_data_t  callback_data,
globus_bool_t allow 
)

Get the "allow missing signing policy" flag.

This function gets the value of the "allow missing signing policy" flag in the callback data. If this is TRUE then the CA signing policy need not be present.

Parameters
callback_dataThe globus_gsi_callback_data_t to get the error from
allowContains the value of the flag upon successful return.
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned
Since
Globus Toolkit 5.2.0

◆ globus_gsi_callback_get_cert_chain()

globus_result_t globus_gsi_callback_get_cert_chain ( globus_gsi_callback_data_t  callback_data,
STACK_OF(X509) **  cert_chain 
)

Get the certificate chain.

This function returns the certificate chain associated with the callback data.

Parameters
callback_dataThe globus_gsi_callback_data_t to retrieve the certificate chain from.
cert_chainContains the certificate chain upon successful return
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_cert_depth()

globus_result_t globus_gsi_callback_get_cert_depth ( globus_gsi_callback_data_t  callback_data,
int *  cert_depth 
)

Getting the certificate chain depth.

This function returns the certificate chain depth.

Parameters
callback_dataThe globus_gsi_callback_data_t to retrieve the depth from
cert_depthThe returned certificate chain depth
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_cert_dir()

globus_result_t globus_gsi_callback_get_cert_dir ( globus_gsi_callback_data_t  callback_data,
char **  cert_dir 
)

Get the trusted certificate directory.

This function gets the trusted certificate directory from the callback data.

Parameters
callback_dataThe globus_gsi_callback_data_t to get the trusted certificates directory from.
cert_dirContains the path to the trusted certificate directory upon successful return.
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_cert_type()

globus_result_t globus_gsi_callback_get_cert_type ( globus_gsi_callback_data_t  callback_data,
globus_gsi_cert_utils_cert_type_t cert_type 
)

Get the certificate type.

This function returns the certificate type of the certificate currently being processed

Parameters
callback_dataThe globus_gsi_callback_data_t to retrieve the certificate type from
cert_typeVariable containing the certificate type on return
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_check_policy_for_self_signed_certs()

globus_result_t globus_gsi_callback_get_check_policy_for_self_signed_certs ( globus_gsi_callback_data_t  callback_data,
globus_bool_t check 
)

Get the self-signed policy checking flag.

This function gets the value of the "check policy for self-signed certificates flag" in the callback data. If this is set than the CA signing policy for a self-signed certificate must include a policy line that allows it to sign itself.

Parameters
callback_dataThe globus_gsi_callback_data_t to get the error from
checkContains the value of the flag upon successful return.
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned
Since
Globus Toolkit 4.2.1

◆ globus_gsi_callback_get_error()

globus_result_t globus_gsi_callback_get_error ( globus_gsi_callback_data_t  callback_data,
globus_result_t error 
)

Get error status.

This function gets the error status stored in the callback data.

Parameters
callback_dataThe globus_gsi_callback_data_t to get the error from
errorContains the error upon successful return.
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_extension_cb()

globus_result_t globus_gsi_callback_get_extension_cb ( globus_gsi_callback_data_t  callback_data,
globus_gsi_extension_callback_t extension_cb 
)

Get the unknown X.509 extension callback.

This function gets the callback that is called for unknown X.509 extensions

Parameters
callback_dataThe globus_gsi_callback_data_t to get the callback information from
extension_cbContains the extension callback upon successful return.
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_extension_oids()

globus_result_t globus_gsi_callback_get_extension_oids ( globus_gsi_callback_data_t  callback_data,
void **  extension_oids 
)

Get X.509 extension OIDs.

This function gets a list of X.509 extension OIDs that may be used by the extensions callback to allow or disallow certain extensions.

Parameters
callback_dataThe globus_gsi_callback_data_t to get the array of extension OIDs from.
extension_oidsContains the list of extension OIDs upon successful return.
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_multiple_limited_proxy_ok()

globus_result_t globus_gsi_callback_get_multiple_limited_proxy_ok ( globus_gsi_callback_data_t  callback_data,
int *  multiple_limited_proxy_ok 
)

Get the limited proxy handling setting.

This function gets the value of the limited proxy handling setting. This setting determines whether path validation will accept limited proxies that have been further delegated, i.e. certificate chains with a limited proxy followed by further proxies.

Parameters
callback_dataThe globus_gsi_callback_data_t to get the limited proxy setting from
multiple_limited_proxy_okContains the value of the setting upon successful return.
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_get_proxy_depth()

globus_result_t globus_gsi_callback_get_proxy_depth ( globus_gsi_callback_data_t  callback_data,
int *  proxy_depth 
)

Get the "proxy chain" depth.

This function returns the number of proxies in the certificate chain.

Parameters
callback_dataThe globus_gsi_callback_data_t to retrieve the depth from
proxy_depthThe returned "proxy chain" depth
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_allow_missing_signing_policy()

globus_result_t globus_gsi_callback_set_allow_missing_signing_policy ( globus_gsi_callback_data_t  callback_data,
globus_bool_t  allow 
)

Set the "allow missing signing policy" flag.

This function sets the value of the "allow missing signing policy" flag in the callback data. If this is TRUE then the CA signing policy need not be present.

Parameters
callback_dataThe globus_gsi_callback_data_t to set the error on
allowNew value of the flag
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned
Since
Globus Toolkit 5.2.0

◆ globus_gsi_callback_set_cert_chain()

globus_result_t globus_gsi_callback_set_cert_chain ( globus_gsi_callback_data_t  callback_data,
STACK_OF(X509) *  cert_chain 
)

Set the certificate chain.

This function sets the certificate chain associated with the callback data.

Parameters
callback_dataThe globus_gsi_callback_data_t to set the certificate chain on
cert_chainThe certificate chain
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_cert_depth()

globus_result_t globus_gsi_callback_set_cert_depth ( globus_gsi_callback_data_t  callback_data,
int  cert_depth 
)

Set the certificate chain depth.

This function sets the certificate chain depth

Parameters
callback_dataThe globus_gsi_callback_data_t to retrieve the depth from
cert_depthThe certificate chain depth
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_cert_dir()

globus_result_t globus_gsi_callback_set_cert_dir ( globus_gsi_callback_data_t  callback_data,
char *  cert_dir 
)

Set the trusted certificate directory.

This function sets the trusted certificate directory on the callback data.

Parameters
callback_dataThe globus_gsi_callback_data_t to set the trusted certificates directory on.
cert_dirThe path to the trusted certificate directory
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_cert_type()

globus_result_t globus_gsi_callback_set_cert_type ( globus_gsi_callback_data_t  callback_data,
globus_gsi_cert_utils_cert_type_t  cert_type 
)

Set the certificate type.

This function sets the certificate type of the certificate currently being processed

Parameters
callback_dataThe globus_gsi_callback_data_t to set the certificate type on
cert_typeThe certificate type
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_check_policy_for_self_signed_certs()

globus_result_t globus_gsi_callback_set_check_policy_for_self_signed_certs ( globus_gsi_callback_data_t  callback_data,
globus_bool_t  check 
)

Set the self-signed policy checking flag.

This function sets the value of the "check policy for self-signed certificates flag" in the callback data. If this is set than the CA signing policy for a self-signed certificate must include a policy line that allows it to sign itself.

Parameters
callback_dataThe globus_gsi_callback_data_t to set the error on
checkNew value of the flag
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned
Since
Globus Toolkit 4.2.1

◆ globus_gsi_callback_set_error()

globus_result_t globus_gsi_callback_set_error ( globus_gsi_callback_data_t  callback_data,
globus_result_t  error 
)

Set error status.

This function sets the error status stored in the callback data.

Parameters
callback_dataThe globus_gsi_callback_data_t to set the error on
errorThe error
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_extension_cb()

globus_result_t globus_gsi_callback_set_extension_cb ( globus_gsi_callback_data_t  callback_data,
globus_gsi_extension_callback_t  extension_cb 
)

Set the unknown X.509 extension callback

This function sets the callback that is called for unknown X.509 extensions.

Parameters
callback_dataThe globus_gsi_callback_data_t to set the callback information on
extension_cbThe extension callback
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_extension_oids()

globus_result_t globus_gsi_callback_set_extension_oids ( globus_gsi_callback_data_t  callback_data,
void *  extension_oids 
)

Set X.509 extension OIDs.

This function sets a list of X.509 extension OIDs that may be used by the extensions callback to allow or disallow certain extensions.

Parameters
callback_dataThe globus_gsi_callback_data_t to get the array of extension OIDs from.
extension_oidsThe list of extension OIDs
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_multiple_limited_proxy_ok()

globus_result_t globus_gsi_callback_set_multiple_limited_proxy_ok ( globus_gsi_callback_data_t  callback_data,
int  multiple_limited_proxy_ok 
)

Set the limited proxy handling setting.

This function sets the value of the limited proxy handling setting. This setting determines whether path validation will accept limited proxies that have been further delegated, i.e. certificate chains with a limited proxy followed by further proxies.

Parameters
callback_dataThe globus_gsi_callback_data_t to set the limited proxy setting on
multiple_limited_proxy_okThe value of the setting
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned

◆ globus_gsi_callback_set_proxy_depth()

globus_result_t globus_gsi_callback_set_proxy_depth ( globus_gsi_callback_data_t  callback_data,
int  proxy_depth 
)

Set the "proxy chain" depth.

This function sets the number of proxies in the certificate chain.

Parameters
callback_dataThe globus_gsi_callback_data_t to retrieve the depth from
proxy_depthThe "proxy chain" depth
Returns
GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned