Support for policy mappings extension.

Delete X509_POLICY_REF code.

Fix handling of invalid policy extensions to return the correct error.

Add command line option to inhibit policy mappings.
This commit is contained in:
Dr. Stephen Henson
2008-08-12 10:32:56 +00:00
parent e9746e03ee
commit 002e66c0e8
11 changed files with 272 additions and 107 deletions

View File

@@ -2235,6 +2235,8 @@ int args_verify(char ***pargs, int *pargc,
flags |= X509_V_FLAG_EXPLICIT_POLICY;
else if (!strcmp(arg, "-inhibit_any"))
flags |= X509_V_FLAG_INHIBIT_ANY;
else if (!strcmp(arg, "-inhibit_map"))
flags |= X509_V_FLAG_INHIBIT_MAP;
else if (!strcmp(arg, "-x509_strict"))
flags |= X509_V_FLAG_X509_STRICT;
else if (!strcmp(arg, "-policy_print"))