From bde8ca32a096825dfce37467137c903418c1893d Mon Sep 17 00:00:00 2001 From: Benedek Kozma Date: Tue, 28 Apr 2026 20:49:37 +0200 Subject: [PATCH] Remove Foundation import (#297) #227 --- Sources/X509/Extension Types/SubjectKeyIdentifier.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/X509/Extension Types/SubjectKeyIdentifier.swift b/Sources/X509/Extension Types/SubjectKeyIdentifier.swift index 669f29e..a965565 100644 --- a/Sources/X509/Extension Types/SubjectKeyIdentifier.swift +++ b/Sources/X509/Extension Types/SubjectKeyIdentifier.swift @@ -14,7 +14,11 @@ import SwiftASN1 import Crypto +#if canImport(FoundationEssentials) +import struct FoundationEssentials.Data +#else import struct Foundation.Data +#endif /// Provides a means of identifying a certificate that contains a particular public key. ///