Add verify --allow-proxy-certificate.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17261 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-26 14:43:14 +00:00
parent 5a3e4a1865
commit 05557b9ae9

View File

@@ -37,7 +37,7 @@ RCSID("$Id$");
#include <hxtool-commands.h>
#include <sl.h>
hx509_context context;
static hx509_context context;
static int version_flag;
static int help_flag;
@@ -574,6 +574,9 @@ pcert_verify(struct verify_options *opt, int argc, char **argv)
ret = hx509_certs_init(context, "MEMORY:chain", 0, NULL, &chain);
ret = hx509_certs_init(context, "MEMORY:certs", 0, NULL, &certs);
if (opt->allow_proxy_certificate_flag)
hx509_verify_set_proxy_certificate(ctx, 1);
ret = hx509_revoke_init(context, &revoke);
if (ret)
errx(1, "hx509_revoke_init: %d", ret);