Skip to content

Commit 0cd2bb5

Browse files
authored
Merge pull request #17 from apple/cb-remove-warnings
Silence the warnings I accidentally added
2 parents c2ca943 + 39aa8e7 commit 0cd2bb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/X509/Extension Types/BasicConstraints.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct BasicConstraintsValue: DERImplicitlyTaggable {
109109

110110
// CA's must not assert the path len constraint field unless isCA is true.
111111
guard pathLenConstraint == nil || isCA else {
112-
throw ASN1Error.invalidASN1Object(reason: "Invalid combination of isCA (\(isCA)) and path length constraint (\(pathLenConstraint)")
112+
throw ASN1Error.invalidASN1Object(reason: "Invalid combination of isCA (\(isCA)) and path length constraint (\(String(describing: pathLenConstraint))")
113113
}
114114
}
115115

Sources/X509/OCSP/OCSPResponse.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ enum OCSPResponse: DERImplicitlyTaggable, Hashable {
4646
guard let responseBytes,
4747
responseBytes.responseType == .OCSP.basicResponse
4848
else {
49-
throw ASN1Error.invalidASN1Object(reason: "Successful response does not have appropriate response bytes: \(responseBytes)")
49+
throw ASN1Error.invalidASN1Object(reason: "Successful response does not have appropriate response bytes: \(String(describing: responseBytes))")
5050
}
5151
return .successful(try BasicOCSPResponse(derEncoded: responseBytes.response.bytes))
5252
case .malformedRequest:

0 commit comments

Comments
 (0)