mirror of
https://github.com/apple/swift-certificates
synced 2026-11-25 04:37:48 +00:00
* Add support for policing critical extensions We are required to ensure that we do not validate chains that contain certificates with extensions marked critical that we do not understand. Because we allow pluggable policies which can handle arbitrary extensions, we need a way to ask verifier policy objects what extensions they can handle. This patch adds support for policies to express that set, as well as for the verifier to ensure that certificates that have critical extensions we cannot understand are not used for chain building. This is integrated early into chain building to reject unsatisfiable chains, and works transparently. This PR also updates the tests to meet this new standard, including applying the RFC 5280 policy liberally throughout the test suite. * Don't forget the leaf! * Rename property * Remove Sendable