keyhole logo

Functions
hx509 environment functions

Functions

int hx509_env_add (hx509_context context, hx509_env *env, const char *key, const char *value)
 
int hx509_env_add_binding (hx509_context context, hx509_env *env, const char *key, hx509_env list)
 
const char * hx509_env_lfind (hx509_context context, hx509_env env, const char *key, size_t len)
 
const char * hx509_env_find (hx509_context context, hx509_env env, const char *key)
 
hx509_env hx509_env_find_binding (hx509_context context, hx509_env env, const char *key)
 
void hx509_env_free (hx509_env *env)
 

Detailed Description

Function Documentation

◆ hx509_env_add()

int hx509_env_add ( hx509_context  context,
hx509_env *  env,
const char *  key,
const char *  value 
)

Add a new key/value pair to the hx509_env.

Parameters
contextA hx509 context.
envenvironment to add the environment variable too.
keykey to add
valuevalue to add
Returns
An hx509 error code, see hx509_get_error_string().

◆ hx509_env_add_binding()

int hx509_env_add_binding ( hx509_context  context,
hx509_env *  env,
const char *  key,
hx509_env  list 
)

Add a new key/binding pair to the hx509_env.

Parameters
contextA hx509 context.
envenvironment to add the environment variable too.
keykey to add
listbinding list to add
Returns
An hx509 error code, see hx509_get_error_string().

◆ hx509_env_find()

const char* hx509_env_find ( hx509_context  context,
hx509_env  env,
const char *  key 
)

Search the hx509_env for a key.

Parameters
contextA hx509 context.
envenvironment to add the environment variable too.
keykey to search for.
Returns
the value if the key is found, NULL otherwise.

◆ hx509_env_find_binding()

hx509_env hx509_env_find_binding ( hx509_context  context,
hx509_env  env,
const char *  key 
)

Search the hx509_env for a binding.

Parameters
contextA hx509 context.
envenvironment to add the environment variable too.
keykey to search for.
Returns
the binding if the key is found, NULL if not found.

◆ hx509_env_free()

void hx509_env_free ( hx509_env *  env)

Free an hx509_env environment context.

Parameters
envthe environment to free.

◆ hx509_env_lfind()

const char* hx509_env_lfind ( hx509_context  context,
hx509_env  env,
const char *  key,
size_t  len 
)

Search the hx509_env for a length based key.

Parameters
contextA hx509 context.
envenvironment to add the environment variable too.
keykey to search for.
lenlength of key.
Returns
the value if the key is found, NULL otherwise.

Generated on Tue Nov 15 2022 14:04:25 for Heimdal x509 library by doxygen 1.9.1