Skip to content

Commit

Permalink
Handle X509 policy constraints on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsjones authored Jan 26, 2021
1 parent 0fcfa46 commit fb001e6
Show file tree
Hide file tree
Showing 2 changed files with 358 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ static void MergeStatusCodes(CFTypeRef key, CFTypeRef value, void* context)
*pStatus |= PAL_X509ChainHasNotSupportedCriticalExtension;
else if (CFEqual(keyString, CFSTR("NameConstraints")))
*pStatus |= PAL_X509ChainInvalidNameConstraints;
else if (CFEqual(keyString, CFSTR("PolicyConstraints")))
*pStatus |= PAL_X509ChainInvalidPolicyConstraints;
else if (CFEqual(keyString, CFSTR("UnparseableExtension")))
{
// 10.15 introduced new status code value which is not reported by Windows. Ignoring for now.
Expand Down
Loading

0 comments on commit fb001e6

Please sign in to comment.