apple / swift-certificates

An implementation of X.509 for Swift
https://swiftpackageindex.com/apple/swift-certificates/main/documentation/x509
Apache License 2.0
223 stars 53 forks source link

Allow OneOfPolicies and AllOfPolicies to take throwing policy builders, to match Verifier #173

Closed hamzahrmalik closed 4 months ago

hamzahrmalik commented 4 months ago

This matches what verifier does (https://github.com/apple/swift-certificates/blob/83640c8097acaec17c9835a083e89678cb0f2b66/Sources/X509/Verifier/Verifier.swift#L22) and allows users to more easily use policies which throw in their initialiser