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:
@@ -299,7 +299,7 @@ struct {
|
||||
};
|
||||
|
||||
int
|
||||
hx509_validate_ctx_init(hx509_validate_ctx *ctx)
|
||||
hx509_validate_ctx_init(hx509_context context, hx509_validate_ctx *ctx)
|
||||
{
|
||||
*ctx = malloc(sizeof(**ctx));
|
||||
if (*ctx == NULL)
|
||||
@@ -330,7 +330,9 @@ hx509_validate_ctx_free(hx509_validate_ctx ctx)
|
||||
}
|
||||
|
||||
int
|
||||
hx509_validate_cert(hx509_validate_ctx ctx, hx509_cert cert)
|
||||
hx509_validate_cert(hx509_context context,
|
||||
hx509_validate_ctx ctx,
|
||||
hx509_cert cert)
|
||||
{
|
||||
Certificate *c = _hx509_get_cert(cert);
|
||||
TBSCertificate *t = &c->tbsCertificate;
|
||||
|
Reference in New Issue
Block a user