globus_gsi_cred_handle(3) | Library Functions Manual | globus_gsi_cred_handle(3) |
globus_gsi_cred_handle - Credential Handle Management
- Credential Handle Management.
typedef struct globus_l_gsi_cred_handle_s *
globus_gsi_cred_handle_t
globus_result_t globus_gsi_cred_handle_init
(globus_gsi_cred_handle_t *handle,
globus_gsi_cred_handle_attrs_t handle_attrs)
Initialize a Handle. globus_result_t globus_gsi_cred_handle_destroy
(globus_gsi_cred_handle_t handle)
Destroy the credential handle. globus_result_t
globus_gsi_cred_handle_copy (globus_gsi_cred_handle_t source,
globus_gsi_cred_handle_t *dest)
Copy a handle. globus_result_t globus_gsi_cred_get_handle_attrs
(globus_gsi_cred_handle_t handle,
globus_gsi_cred_handle_attrs_t *attrs)
Get the handle attributes. globus_result_t globus_gsi_cred_get_goodtill
(globus_gsi_cred_handle_t cred_handle, time_t *goodtill)
Get credential expiration. globus_result_t globus_gsi_cred_get_lifetime
(globus_gsi_cred_handle_t cred_handle, time_t *lifetime)
Get credential lifetime. globus_result_t globus_gsi_cred_get_key_bits
(globus_gsi_cred_handle_t cred_handle, int *key_bits)
Get credential strength. globus_result_t globus_gsi_cred_set_cert
(globus_gsi_cred_handle_t handle, X509 *cert)
Set the credential's certificate. globus_result_t
globus_gsi_cred_get_cert (globus_gsi_cred_handle_t handle,
X509 **cert)
Get the credential's certificate. globus_result_t
globus_gsi_cred_set_key (globus_gsi_cred_handle_t handle,
EVP_PKEY *key)
Set the credential's private key. globus_result_t
globus_gsi_cred_get_key (globus_gsi_cred_handle_t handle,
EVP_PKEY **key)
Get the credential's private key. globus_result_t
globus_gsi_cred_set_cert_chain (globus_gsi_cred_handle_t
handle, STACK_OF(X509) *cert_chain)
Set the certificate chain. globus_result_t
globus_gsi_cred_get_cert_chain (globus_gsi_cred_handle_t
handle, STACK_OF(X509) **cert_chain)
Get the certificate chain. globus_result_t
globus_gsi_cred_get_X509_subject_name
(globus_gsi_cred_handle_t handle, X509_NAME **subject_name)
Get credential subject name. globus_result_t
globus_gsi_cred_get_X509_identity_name
(globus_gsi_cred_handle_t handle, X509_NAME **identity_name)
Get X.509 identity. globus_result_t globus_gsi_cred_get_subject_name
(globus_gsi_cred_handle_t handle, char **subject_name)
Get credential subject name. globus_result_t
globus_gsi_cred_get_policies (globus_gsi_cred_handle_t handle,
STACK_OF(OPENSSL_STRING) **policies)
Get certificate chain policies. globus_result_t
globus_gsi_cred_get_policy_languages (globus_gsi_cred_handle_t
handle, STACK_OF(ASN1_OBJECT) **policy_languages)
Get certificate chain policy languages. globus_result_t
globus_gsi_cred_get_X509_issuer_name (globus_gsi_cred_handle_t
handle, X509_NAME **issuer_name)
Get credential issuer name object. globus_result_t
globus_gsi_cred_get_issuer_name (globus_gsi_cred_handle_t
handle, char **issuer_name)
Get issuer name. globus_result_t globus_gsi_cred_get_identity_name
(globus_gsi_cred_handle_t handle, char **identity_name)
Get identity name. globus_result_t globus_gsi_cred_verify_cert_chain
(globus_gsi_cred_handle_t cred_handle, globus_gsi_callback_data_t
callback_data)
Verify credential. globus_result_t
globus_gsi_cred_verify_cert_chain_when
(globus_gsi_cred_handle_t cred_handle, globus_gsi_callback_data_t
callback_data_in, time_t check_time)
Verify credential at a specific time. globus_result_t
globus_gsi_cred_verify (globus_gsi_cred_handle_t handle)
Verify a credential.
Credential Handle Management.
Create/Destroy/Modify a GSI Credential Handle.
Within the Globus GSI Credential Library, all credential operations require a handle parameter. Currently only one operation may be in progress at once per credential handle.
This section defines operations to create, modify and destroy GSI Credential handles.
GSI Credential Handle.
A GSI Credential handle keeps track of state relating to a credential. Handles can have immutable attributes associated with them. All credential operations take a credential handle pointer as a parameter.
See also
Get the credential's certificate. Get the certificate of a credential
Parameters
Returns
Get the certificate chain. Get the certificate chain of the credential handle
Parameters
Returns
Get credential expiration. This function retrieves the expiration time of the credential contained in the handle
Parameters
Returns
Get the handle attributes. This function retrieves a copy of the credential handle attributes
Parameters
Returns
Get identity name. Get the identity's subject name from the credential handle
Parameters
Returns
Get issuer name. Get the issuer's subject name from the credential handle
Parameters
Returns
Get the credential's private key. Get the credential handle's private key
Parameters
Returns
Get credential strength. This function retrieves the key strength of the credential contained in a handle
Parameters
Returns
Get credential lifetime. This function retrieves the lifetime of the credential contained in a handle
Parameters
Returns
Get certificate chain policies. Get the Policies from the Cert Chain in the handle. The policies will be null-terminated as they are added to the handle. If a policy for a cert in the chain doesn't exist, the string in the stack will be set to the static string GLOBUS_NULL_POLICIES
Parameters
Returns
Get certificate chain policy languages. Get the policy languages from the cert chain in the handle.
Parameters
Returns
Get credential subject name. Get the credential handle's certificate subject name
Parameters
Returns
Get X.509 identity. Get the identity's X.509 subject name from the credential handle
Parameters
Returns
Get credential issuer name object. Get the credential handle's certificate issuer name
Parameters
Returns
Get credential subject name. Get the credential handle's certificate subject name
Parameters
Returns
Copy a handle. Copies a credential handle.
Parameters
Returns
Destroy the credential handle. Destroys the credential handle
Parameters
Returns
Initialize a Handle. Initializes a credential handle to be used credential handling functions. Takes a set of handle attributes that are immutable to the handle. The handle attributes are only pointed to by the handle, so the lifetime of the attributes needs to be as long as that of the handle.
Parameters
Returns
Set the credential's certificate. Set the Credential's Certificate. The X509 cert that is passed in should be a valid X509 certificate object
Parameters
Returns
Set the certificate chain. Set the certificate chain of the credential handle
Parameters
Returns
Set the credential's private key. Set the private key of the credential handle.
Parameters
Verify a credential. This function checks that the certificate is signed by the public key of the issuer cert (the first cert in the chain). Note that this function DOES NOT check the private key or the public of the certificate, as stated in a previous version of the documentation.
Parameters
Returns
Verify credential. This function performs path validation on the certificate chain contained in the credential handle.
Parameters
Returns
Verify credential at a specific time. This function performs path validation on the certificate chain contained in the credential handle. Expiration checks are done at the time given.
Parameters
Returns
Generated automatically by Doxygen for globus_gsi_credential from the source code.
Version 8.4 | globus_gsi_credential |