diff options
author | Martin Willi <martin@revosec.ch> | 2010-12-22 15:52:19 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-01-05 16:46:05 +0100 |
commit | 6a339fffc7eb981bf7593d2ff337be5e5f7f30e2 (patch) | |
tree | 0ffba6a553f356ae2f1666024167402b35355682 /src/pki/commands/print.c | |
parent | 07eee80401c7a0687363ac07f2d296d12f2ec1fb (diff) | |
download | strongswan-6a339fffc7eb981bf7593d2ff337be5e5f7f30e2.tar.bz2 strongswan-6a339fffc7eb981bf7593d2ff337be5e5f7f30e2.tar.xz |
Added inhibitAnyPolicy constraint support to pki tool
Diffstat (limited to 'src/pki/commands/print.c')
-rw-r--r-- | src/pki/commands/print.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pki/commands/print.c b/src/pki/commands/print.c index 046f2bed0..ee6f30c98 100644 --- a/src/pki/commands/print.c +++ b/src/pki/commands/print.c @@ -261,8 +261,10 @@ static void print_x509(x509_t *x509) explicit = x509->get_constraint(x509, X509_REQUIRE_EXPLICIT_POLICY); inhibit = x509->get_constraint(x509, X509_INHIBIT_POLICY_MAPPING); + len = x509->get_constraint(x509, X509_INHIBIT_ANY_POLICY); - if (explicit != X509_NO_CONSTRAINT || inhibit != X509_NO_CONSTRAINT) + if (explicit != X509_NO_CONSTRAINT || inhibit != X509_NO_CONSTRAINT || + len != X509_NO_CONSTRAINT) { printf("PolicyConstraints:\n"); if (explicit != X509_NO_CONSTRAINT) @@ -273,6 +275,10 @@ static void print_x509(x509_t *x509) { printf(" inhibitPolicyMapping: %d\n", inhibit); } + if (len != X509_NO_CONSTRAINT) + { + printf(" inhibitAnyPolicy: %d\n", len); + } } chunk = x509->get_authKeyIdentifier(x509); |