Merge pull request #17 from apple/cb-remove-warnings

Silence the warnings I accidentally added
This commit is contained in:
Cory Benfield authored and GitHub committed 2023-02-07 13:49:41 +00:00
commit 0cd2bb5ea5
2 files changed
+2 -2

No files matched your search

@@ -109,7 +109,7 @@ struct BasicConstraintsValue: DERImplicitlyTaggable {
// CA's must not assert the path len constraint field unless isCA is true.
guard pathLenConstraint == nil || isCA else {
throw ASN1Error.invalidASN1Object(reason: "Invalid combination of isCA (\(isCA)) and path length constraint (\(pathLenConstraint)")
throw ASN1Error.invalidASN1Object(reason: "Invalid combination of isCA (\(isCA)) and path length constraint (\(String(describing: pathLenConstraint))")
}
}
+1 -1
View File
@@ -46,7 +46,7 @@ enum OCSPResponse: DERImplicitlyTaggable, Hashable {
guard let responseBytes,
responseBytes.responseType == .OCSP.basicResponse
else {
throw ASN1Error.invalidASN1Object(reason: "Successful response does not have appropriate response bytes: \(responseBytes)")
throw ASN1Error.invalidASN1Object(reason: "Successful response does not have appropriate response bytes: \(String(describing: responseBytes))")
}
return .successful(try BasicOCSPResponse(derEncoded: responseBytes.response.bytes))
case .malformedRequest: