From 05557b9ae93ab5fd03f42307d57bd35284855098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 26 Apr 2006 14:43:14 +0000 Subject: [PATCH] Add verify --allow-proxy-certificate. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17261 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index e518daeac..94fce2299 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -37,7 +37,7 @@ RCSID("$Id$"); #include #include -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);