From 2adec617e6a5d82f69bf738b2d203f5fa319f183 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Tue, 26 Mar 2024 13:25:06 +0000 Subject: [PATCH] Add empty privacy manifest files (#226) BoringSSL distributions need to be covered by privacy manifest files, so we add one here. --- .PrivacyInfo.xcprivacy | 15 +++++++++++++++ Package.swift | 15 +++++++++++++++ Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy | 1 + .../CCryptoBoringSSLShims/PrivacyInfo.xcprivacy | 1 + Sources/Crypto/PrivacyInfo.xcprivacy | 1 + Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy | 1 + Sources/_CryptoExtras/PrivacyInfo.xcprivacy | 1 + 7 files changed, 35 insertions(+) create mode 100644 .PrivacyInfo.xcprivacy create mode 120000 Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy create mode 120000 Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy create mode 120000 Sources/Crypto/PrivacyInfo.xcprivacy create mode 120000 Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy create mode 120000 Sources/_CryptoExtras/PrivacyInfo.xcprivacy diff --git a/.PrivacyInfo.xcprivacy b/.PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1a71db6f --- /dev/null +++ b/.PrivacyInfo.xcprivacy @@ -0,0 +1,15 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + + diff --git a/Package.swift b/Package.swift index 2ee6769a..902c095d 100644 --- a/Package.swift +++ b/Package.swift @@ -88,6 +88,9 @@ let package = Package( "crypto/bio/socket_helper.c", "crypto/bio/socket.c" ], + resources: [ + .copy("PrivacyInfo.xcprivacy"), + ], cSettings: [ // These defines come from BoringSSL's build system .define("_HAS_EXCEPTIONS", to: "0", .when(platforms: [Platform.windows])), @@ -106,6 +109,9 @@ let package = Package( dependencies: ["CCryptoBoringSSL"], exclude: [ "CMakeLists.txt" + ], + resources: [ + .copy("PrivacyInfo.xcprivacy"), ] ), .target( @@ -118,6 +124,9 @@ let package = Package( "Key Agreement/ECDH.swift.gyb", "Signatures/ECDSA.swift.gyb", ], + resources: [ + .copy("PrivacyInfo.xcprivacy"), + ], swiftSettings: swiftSettings ), .target( @@ -131,6 +140,9 @@ let package = Package( exclude: [ "CMakeLists.txt", ], + resources: [ + .copy("PrivacyInfo.xcprivacy"), + ], swiftSettings: swiftSettings ), .target( @@ -141,6 +153,9 @@ let package = Package( ], exclude: [ "CMakeLists.txt", + ], + resources: [ + .copy("PrivacyInfo.xcprivacy"), ] ), .executableTarget(name: "crypto-shasum", dependencies: ["Crypto"]), diff --git a/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy b/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy new file mode 120000 index 00000000..11b855aa --- /dev/null +++ b/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy @@ -0,0 +1 @@ +../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy b/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy new file mode 120000 index 00000000..11b855aa --- /dev/null +++ b/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy @@ -0,0 +1 @@ +../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/Crypto/PrivacyInfo.xcprivacy b/Sources/Crypto/PrivacyInfo.xcprivacy new file mode 120000 index 00000000..11b855aa --- /dev/null +++ b/Sources/Crypto/PrivacyInfo.xcprivacy @@ -0,0 +1 @@ +../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy b/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy new file mode 120000 index 00000000..11b855aa --- /dev/null +++ b/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy @@ -0,0 +1 @@ +../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/_CryptoExtras/PrivacyInfo.xcprivacy b/Sources/_CryptoExtras/PrivacyInfo.xcprivacy new file mode 120000 index 00000000..11b855aa --- /dev/null +++ b/Sources/_CryptoExtras/PrivacyInfo.xcprivacy @@ -0,0 +1 @@ +../../.PrivacyInfo.xcprivacy \ No newline at end of file