Skip to content

Commit

Permalink
Fix OCSP serialisation and parsing tests (#81)
Browse files Browse the repository at this point in the history
Co-authored-by: Cory Benfield <lukasa@apple.com>
  • Loading branch information
dnadoba and Lukasa authored May 9, 2023
1 parent 147d854 commit 9099e78
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 152 deletions.
6 changes: 3 additions & 3 deletions Sources/X509/OCSP/OCSPSingleResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ struct OCSPSingleResponse: DERImplicitlyTaggable, Hashable {

var nextUpdate: GeneralizedTime?

var extensions: [Certificate.Extension]?
var extensions: Certificate.Extensions?

init(certID: OCSPCertID,
certStatus: OCSPCertStatus,
thisUpdate: GeneralizedTime,
nextUpdate: GeneralizedTime?,
extensions: [Certificate.Extension]? = nil) {
extensions: Certificate.Extensions? = nil) {
self.certID = certID
self.certStatus = certStatus
self.thisUpdate = thisUpdate
Expand All @@ -68,7 +68,7 @@ struct OCSPSingleResponse: DERImplicitlyTaggable, Hashable {
certStatus: certStatus,
thisUpdate: thisUpdate,
nextUpdate: nextUpdate,
extensions: extensions)
extensions: extensions.map { .init($0) })
}
}

Expand Down
Loading

0 comments on commit 9099e78

Please sign in to comment.