keyhole logo

hx509 enviroment functions


Functions

int hx509_env_init (hx509_context context, hx509_env *env)
int hx509_env_add (hx509_context context, hx509_env env, const char *key, const char *value)
const char * hx509_env_lfind (hx509_context context, hx509_env env, const char *key, size_t len)
void hx509_env_free (hx509_env *env)

Detailed Description


Function Documentation

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:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to add
value value to add
Returns:
An hx509 error code, see hx509_get_error_string().

void hx509_env_free ( hx509_env *  env  ) 

Free an hx509_env enviroment context.

Parameters:
env the enviroment to free.

int hx509_env_init ( hx509_context  context,
hx509_env *  env 
)

Allocate a new hx509_env container object.

Parameters:
context A hx509 context.
env return a hx509_env structure, free with hx509_env_free().
Returns:
An hx509 error code, see hx509_get_error_string().

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

Search the hx509_env for a key.

Parameters:
context A hx509 context.
env enviroment to add the enviroment variable too.
key key to search for.
len length of key.
Returns:
the value if the key is found, NULL otherwise.


Generated on Sat Sep 5 22:16:29 2009 for Heimdalx509library by doxygen 1.5.4