From 749b1c989bc889593484edf2d5bae9c273150e03 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Tue, 7 Feb 2023 13:46:03 +0000 Subject: [PATCH] Silence the warnings I accidentally added --- Sources/X509/Extension Types/BasicConstraints.swift | 2 +- Sources/X509/OCSP/OCSPResponse.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/X509/Extension Types/BasicConstraints.swift b/Sources/X509/Extension Types/BasicConstraints.swift index aaf8259..2029571 100644 --- a/Sources/X509/Extension Types/BasicConstraints.swift +++ b/Sources/X509/Extension Types/BasicConstraints.swift @@ -111,7 +111,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))") } } diff --git a/Sources/X509/OCSP/OCSPResponse.swift b/Sources/X509/OCSP/OCSPResponse.swift index 5b44e29..2c948dd 100644 --- a/Sources/X509/OCSP/OCSPResponse.swift +++ b/Sources/X509/OCSP/OCSPResponse.swift @@ -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: