mirror of
https://github.com/apple/swift-certificates
synced 2026-11-22 04:20:39 +00:00
Merge pull request #17 from apple/cb-remove-warnings
Silence the warnings I accidentally added
This commit is contained in:
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))")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user