add print.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22349 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -34,6 +34,12 @@
|
||||
#include "hx_locl.h"
|
||||
RCSID("$Id$");
|
||||
|
||||
/**
|
||||
* @page page_env Hx509 enviroment functions
|
||||
*
|
||||
* See the library functions here: @ref hx509_env
|
||||
*/
|
||||
|
||||
struct hx509_env {
|
||||
struct {
|
||||
char *key;
|
||||
@@ -42,6 +48,17 @@ struct hx509_env {
|
||||
size_t len;
|
||||
};
|
||||
|
||||
/**
|
||||
* Allocate a new hx509_env container object.
|
||||
*
|
||||
* @param context A hx509 context.
|
||||
* @param env return a hx509_env structure, free with hx509_env_free().
|
||||
*
|
||||
* @return An hx509 error code, see hx509_get_error_string().
|
||||
*
|
||||
* @ingroup hx509_env
|
||||
*/
|
||||
|
||||
int
|
||||
hx509_env_init(hx509_context context, hx509_env *env)
|
||||
{
|
||||
@@ -53,6 +70,19 @@ hx509_env_init(hx509_context context, hx509_env *env)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new key/value pair to the hx509_env.
|
||||
*
|
||||
* @param context A hx509 context.
|
||||
* @param env enviroment to add the enviroment variable too.
|
||||
* @param key key to add
|
||||
* @param value value to add
|
||||
*
|
||||
* @return An hx509 error code, see hx509_get_error_string().
|
||||
*
|
||||
* @ingroup hx509_env
|
||||
*/
|
||||
|
||||
int
|
||||
hx509_env_add(hx509_context context, hx509_env env,
|
||||
const char *key, const char *value)
|
||||
@@ -80,6 +110,19 @@ hx509_env_add(hx509_context context, hx509_env env,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Search the hx509_env for a key.
|
||||
*
|
||||
* @param context A hx509 context.
|
||||
* @param env enviroment to add the enviroment variable too.
|
||||
* @param key key to search for.
|
||||
* @param len length of key.
|
||||
*
|
||||
* @return the value if the key is found, NULL otherwise.
|
||||
*
|
||||
* @ingroup hx509_env
|
||||
*/
|
||||
|
||||
const char *
|
||||
hx509_env_lfind(hx509_context context, hx509_env env,
|
||||
const char *key, size_t len)
|
||||
@@ -94,6 +137,13 @@ hx509_env_lfind(hx509_context context, hx509_env env,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Free an hx509_env enviroment context.
|
||||
*
|
||||
* @param env the enviroment to free.
|
||||
*
|
||||
* @ingroup hx509_env
|
||||
*/
|
||||
|
||||
void
|
||||
hx509_env_free(hx509_env *env)
|
||||
|
Reference in New Issue
Block a user