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:
@@ -37,7 +37,7 @@ RCSID("$Id$");
|
|||||||
#include <hxtool-commands.h>
|
#include <hxtool-commands.h>
|
||||||
#include <sl.h>
|
#include <sl.h>
|
||||||
|
|
||||||
hx509_context context;
|
static hx509_context context;
|
||||||
|
|
||||||
static int version_flag;
|
static int version_flag;
|
||||||
static int help_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:chain", 0, NULL, &chain);
|
||||||
ret = hx509_certs_init(context, "MEMORY:certs", 0, NULL, &certs);
|
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);
|
ret = hx509_revoke_init(context, &revoke);
|
||||||
if (ret)
|
if (ret)
|
||||||
errx(1, "hx509_revoke_init: %d", ret);
|
errx(1, "hx509_revoke_init: %d", ret);
|
||||||
|
Reference in New Issue
Block a user