Skip to content

Commit 4629b04

Browse files
committed
Refactor and replace OpenSSL dependencies with Apple-native CryptoKit/CommonCrypto for DTLS-SRTP
- Updated STATUS.md to reflect the transition from OpenSSL to Apple-native CryptoKit/CommonCrypto for DTLS-SRTP backend. - Removed check_openssl_packaging.sh script and associated validation logic. - Modified release proof scripts to validate Apple-native crypto DTLS-SRTP instead of OpenSSL XCFramework. - Updated various scripts to ensure no OpenSSL dependencies remain, including checks for C FFI and XCFramework packaging. - Adjusted release readiness checks and proof generation to align with the new crypto backend.
1 parent defc1b3 commit 4629b04

27 files changed

Lines changed: 682 additions & 1574 deletions

.github/workflows/production-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
LIVEKIT_NATIVE_RUN_DEVICE_VALIDATION: "1"
3434
LIVEKIT_NATIVE_RUN_DEVICE_AUDIO_VIDEO: "1"
3535
LIVEKIT_NATIVE_RUN_DEVICE_SOAK: "1"
36-
LIVEKIT_NATIVE_VALIDATE_OPENSSL_XCFRAMEWORK: "1"
36+
LIVEKIT_NATIVE_VALIDATE_APPLE_NATIVE_CRYPTO_DTLS_SRTP: "1"
3737
LIVEKIT_NATIVE_LIVEKIT_URL: ${{ secrets.LIVEKIT_NATIVE_LIVEKIT_URL }}
3838
LIVEKIT_NATIVE_API_KEY: ${{ secrets.LIVEKIT_NATIVE_API_KEY }}
3939
LIVEKIT_NATIVE_API_SECRET: ${{ secrets.LIVEKIT_NATIVE_API_SECRET }}
@@ -76,7 +76,7 @@ jobs:
7676
LIVEKIT_NATIVE_DEVICE_VALIDATION_PROOF
7777
LIVEKIT_NATIVE_DEVICE_AUDIO_VIDEO_PROOF
7878
LIVEKIT_NATIVE_DEVICE_SOAK_PROOF
79-
LIVEKIT_NATIVE_OPENSSL_XCFRAMEWORK_PROOF
79+
LIVEKIT_NATIVE_APPLE_NATIVE_CRYPTO_DTLS_SRTP_PROOF
8080
)
8181
8282
for variable_name in "${required_proof_variables[@]}"; do

Package.swift

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ let package = Package(
4444
),
4545
.target(
4646
name: "LiveKitNativeWebRTC",
47-
dependencies: [
48-
"CLiveKitNativeOpenSSL",
49-
],
47+
dependencies: [],
5048
linkerSettings: [
5149
.linkedFramework("AVFoundation", .when(platforms: [.iOS, .macOS])),
5250
.linkedFramework("AudioToolbox", .when(platforms: [.iOS, .macOS])),
@@ -56,19 +54,6 @@ let package = Package(
5654
.linkedFramework("VideoToolbox", .when(platforms: [.iOS, .macOS])),
5755
]
5856
),
59-
.systemLibrary(
60-
name: "COpenSSL",
61-
pkgConfig: "openssl",
62-
providers: [
63-
.brew(["openssl@3"]),
64-
]
65-
),
66-
.target(
67-
name: "CLiveKitNativeOpenSSL",
68-
dependencies: [
69-
"COpenSSL",
70-
]
71-
),
7257
.executableTarget(
7358
name: "LiveKitNativeBenchmarks",
7459
dependencies: [

0 commit comments

Comments
 (0)