Skip to content

Commit f17a122

Browse files
committed
Bump swift-crypto to 2.5.0; address review feedback
1 parent 9be812d commit f17a122

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
751751
// dependency version changes here with those projects.
752752
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.2.2")),
753753
.package(url: "https://github.com/apple/swift-driver.git", branch: relatedDependenciesBranch),
754-
.package(url: "https://github.com/apple/swift-crypto.git", .upToNextMinor(from: "2.4.1")),
754+
.package(url: "https://github.com/apple/swift-crypto.git", .upToNextMinor(from: "2.5.0")),
755755
.package(url: "https://github.com/apple/swift-system.git", .upToNextMinor(from: "1.1.1")),
756756
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMinor(from: "1.0.1")),
757757
.package(url: "https://github.com/apple/swift-certificates.git", .upToNextMinor(from: "0.3.0")),

Sources/PackageSigning/VerifierPolicies.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ struct _OCSPVerifierPolicy: VerifierPolicy {
130130

131131
let verifyingCriticalExtensions: [ASN1ObjectIdentifier] = []
132132

133+
/// Initializes an `_OCSPVerifierPolicy` that caches its results.
134+
///
135+
/// - Parameters:
136+
/// - failureMode: `OCSPFailureMode` that defines policy failure in event of failure.
137+
/// Possible values are `hard` (OCSP request failure and unknown status
138+
/// not allowed) or `soft` (OCSP request failure and unknown status allowed).
139+
/// - httpClient: `HTTPClient` that backs`_OCSPRequester` for making OCSP requests.
140+
/// - validationTime: The time used to decide if the OCSP request is relatively recent. It is
141+
/// considered a failure if the request is too old.
133142
init(failureMode: OCSPFailureMode, httpClient: HTTPClient, validationTime: Date) {
134143
self.underlying = OCSPVerifierPolicy(
135144
failureMode: failureMode,

0 commit comments

Comments
 (0)