add a hx509_context where we can store configuration

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16476 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-04 20:33:31 +00:00
parent d5e17d6541
commit 7dcf3289bb
16 changed files with 456 additions and 310 deletions

View File

@@ -36,7 +36,8 @@ RCSID("$Id$");
static int
null_init(hx509_certs certs, void **data, int flags,
null_init(hx509_context context,
hx509_certs certs, void **data, int flags,
const char *residue, hx509_lock lock)
{
*data = NULL;
@@ -51,21 +52,24 @@ null_free(hx509_certs certs, void *data)
}
static int
null_iter_start(hx509_certs certs, void *data, void **cursor)
null_iter_start(hx509_context context,
hx509_certs certs, void *data, void **cursor)
{
*cursor = NULL;
return 0;
}
static int
null_iter(hx509_certs certs, void *data, void *iter, hx509_cert *cert)
null_iter(hx509_context context,
hx509_certs certs, void *data, void *iter, hx509_cert *cert)
{
*cert = NULL;
return ENOENT;
}
static int
null_iter_end(hx509_certs certs,
null_iter_end(hx509_context context,
hx509_certs certs,
void *data,
void *cursor)
{
@@ -74,8 +78,6 @@ null_iter_end(hx509_certs certs,
}
struct hx509_keyset_ops keyset_null = {
"NULL",
0,