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);