Grid Community Toolkit  6.2.1653033972 (tag: v6.2.20220524)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
globus_gsi_credential.h File Reference

Globus GSI Credential Library. More...

#include "globus_common.h"
#include "globus_error_openssl.h"
#include "globus_gsi_cred_constants.h"
#include "globus_gsi_callback.h"
#include "globus_gsi_cert_utils.h"
#include "openssl/x509.h"
#include "openssl/bio.h"
#include "openssl/ssl.h"
#include "globus_error_generic.h"

Go to the source code of this file.

Macros

#define GLOBUS_GSI_CREDENTIAL_MODULE
 

Typedefs

typedef struct
globus_l_gsi_cred_handle_s * 
globus_gsi_cred_handle_t
 
typedef struct
globus_l_gsi_cred_handle_attrs_s * 
globus_gsi_cred_handle_attrs_t
 

Functions

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. More...
 
globus_result_t globus_gsi_cred_handle_destroy (globus_gsi_cred_handle_t handle)
 Destroy the credential handle. More...
 
globus_result_t globus_gsi_cred_handle_copy (globus_gsi_cred_handle_t source, globus_gsi_cred_handle_t *dest)
 Copy a handle. More...
 
globus_result_t globus_gsi_cred_handle_attrs_init (globus_gsi_cred_handle_attrs_t *handle_attrs)
 Initialize credential handle attributes. More...
 
globus_result_t globus_gsi_cred_handle_attrs_destroy (globus_gsi_cred_handle_attrs_t handle_attrs)
 Destroy credential handle attributes. More...
 
globus_result_t globus_gsi_cred_handle_attrs_copy (globus_gsi_cred_handle_attrs_t source, globus_gsi_cred_handle_attrs_t *dest)
 Copy credential handle attributes. More...
 
globus_result_t globus_gsi_cred_read (globus_gsi_cred_handle_t handle, X509_NAME *desired_subject)
 Read a credential. More...
 
globus_result_t globus_gsi_cred_read_proxy (globus_gsi_cred_handle_t handle, const char *proxy_filename)
 Read proxy credential. More...
 
globus_result_t globus_gsi_cred_read_proxy_bio (globus_gsi_cred_handle_t handle, BIO *bio)
 Read proxy credential from a BIO. More...
 
globus_result_t globus_gsi_cred_read_key (globus_gsi_cred_handle_t handle, const char *key_filename, int(*pw_cb)())
 Read a private key. More...
 
globus_result_t globus_gsi_cred_read_cert (globus_gsi_cred_handle_t handle, const char *cert_filename)
 Read a certificate chain from a file. More...
 
globus_result_t globus_gsi_cred_read_cert_bio (globus_gsi_cred_handle_t handle, BIO *bio)
 Read a certificate chain from a BIO. More...
 
globus_result_t globus_gsi_cred_read_cert_buffer (const char *pem_buf, globus_gsi_cred_handle_t *out_handle, X509 **out_cert, STACK_OF(X509)**out_cert_chain, char **out_subject)
 Read certificate chain from a buffer. More...
 
globus_result_t globus_gsi_cred_read_pkcs12 (globus_gsi_cred_handle_t handle, const char *pkcs12_filename)
 Read certificate and key from a PKCS12 file. More...
 
globus_result_t globus_gsi_cred_write (globus_gsi_cred_handle_t handle, BIO *bio)
 Write Credential. More...
 
globus_result_t globus_gsi_cred_write_proxy (globus_gsi_cred_handle_t handle, const char *proxy_filename)
 Write a proxy credential. More...
 
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. More...
 
globus_result_t globus_gsi_cred_verify_cert_chain_when (globus_gsi_cred_handle_t cred_handle, globus_gsi_callback_data_t callback_data, time_t check_time)
 Verify credential at a specific time. More...
 
globus_result_t globus_gsi_cred_verify (globus_gsi_cred_handle_t handle)
 Verify a credential. More...
 
globus_result_t globus_gsi_cred_get_X509_subject_name (globus_gsi_cred_handle_t handle, X509_NAME **subject_name)
 Get credential subject name. More...
 
globus_result_t globus_gsi_cred_get_subject_name (globus_gsi_cred_handle_t handle, char **subject_name)
 Get credential subject name. More...
 
globus_result_t globus_gsi_cred_get_policies (globus_gsi_cred_handle_t handle, STACK_OF(OPENSSL_STRING)**policies)
 Get certificate chain policies. More...
 
globus_result_t globus_gsi_cred_get_policy_languages (globus_gsi_cred_handle_t handle, STACK_OF(ASN1_OBJECT)**languages)
 Get certificate chain policy languages. More...
 
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. More...
 
globus_result_t globus_gsi_cred_get_issuer_name (globus_gsi_cred_handle_t handle, char **issuer_name)
 Get issuer name. More...
 
globus_result_t globus_gsi_cred_get_X509_identity_name (globus_gsi_cred_handle_t handle, X509_NAME **identity_name)
 Get X.509 identity. More...
 
globus_result_t globus_gsi_cred_get_identity_name (globus_gsi_cred_handle_t handle, char **identity_name)
 Get identity name. More...
 
globus_result_t globus_gsi_cred_set_cert (globus_gsi_cred_handle_t handle, X509 *cert)
 Set the credential's certificate. More...
 
globus_result_t globus_gsi_cred_set_key (globus_gsi_cred_handle_t handle, EVP_PKEY *key)
 Set the credential's private key. More...
 
globus_result_t globus_gsi_cred_set_cert_chain (globus_gsi_cred_handle_t handle, STACK_OF(X509)*cert_chain)
 Set the certificate chain. More...
 
globus_result_t globus_gsi_cred_get_cert (globus_gsi_cred_handle_t handle, X509 **cert)
 Get the credential's certificate. More...
 
globus_result_t globus_gsi_cred_get_key (globus_gsi_cred_handle_t handle, EVP_PKEY **key)
 Get the credential's private key. More...
 
globus_result_t globus_gsi_cred_get_cert_chain (globus_gsi_cred_handle_t handle, STACK_OF(X509)**cert_chain)
 Get the certificate chain. More...
 
globus_result_t globus_gsi_cred_get_handle_attrs (globus_gsi_cred_handle_t handle, globus_gsi_cred_handle_attrs_t *handle_attrs)
 Get the handle attributes. More...
 
globus_result_t globus_gsi_cred_get_lifetime (globus_gsi_cred_handle_t handle, time_t *lifetime)
 Get credential lifetime. More...
 
globus_result_t globus_gsi_cred_get_goodtill (globus_gsi_cred_handle_t handle, time_t *goodtill)
 Get credential expiration. More...
 
globus_result_t globus_gsi_cred_get_cert_type (globus_gsi_cred_handle_t handle, globus_gsi_cert_utils_cert_type_t *type)
 Get the X.509 certificate type. More...
 
globus_result_t globus_gsi_cred_get_key_bits (globus_gsi_cred_handle_t handle, int *key_bits)
 Get credential strength. More...
 
globus_result_t globus_gsi_cred_handle_attrs_set_search_order (globus_gsi_cred_handle_attrs_t handle_attrs, globus_gsi_cred_type_t search_order[])
 Set the search order. More...
 

Detailed Description

Globus GSI Credential Library.

Author
Sam Lang, Sam Meder