Added inhibitAnyPolicy constraint support to pki tool

This commit is contained in:
Martin Willi
2011-01-05 16:46:05 +01:00
parent 07eee80401
commit 6a339fffc7
3 changed files with 21 additions and 5 deletions
+7 -1
View File
@@ -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);