From 88c4694e15d356de7dfee56cc5156bf6fbdabd3f Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Mon, 23 Feb 2026 12:49:58 -0600 Subject: [PATCH] Do not log the caCerts value if PKCS#12 parsing goes haywire (#571) The `caCerts` value is, from Swift's perspective, merely an `OpaquePointer?`; logging its value as part of a `preconditionFailure()` is not particularly useful. In addition, including it in the log message causes GitHub's CodeQL code analysis to inaccurately report a high-severity information disclosure vulnerability in any repo using it which has `swift-nio-ssl` as a direct or indirect dependency. Since logging it serves no useful purpose anyway, might as well get rid of it. --- Sources/NIOSSL/SSLPKCS12Bundle.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/NIOSSL/SSLPKCS12Bundle.swift b/Sources/NIOSSL/SSLPKCS12Bundle.swift index f4eece87..ff8c1b32 100644 --- a/Sources/NIOSSL/SSLPKCS12Bundle.swift +++ b/Sources/NIOSSL/SSLPKCS12Bundle.swift @@ -69,7 +69,7 @@ public struct NIOSSLPKCS12Bundle: Hashable { for idx in 0..