Repository navigation
Add native macOS TLS client and server support with Network.framework - #615
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an opt-in Network.framework backend so macOS WebSocket and HTTP clients and servers can use native TLS 1.2/1.3 without linking OpenSSL. The existing Secure Transport backend has no server support; this adds a native listener, mutual TLS, Apple certificate trust evaluation, and bounded asynchronous I/O integrated with the existing polling loop.
Enable it with
make -f makefile.dev ws_network_framework. This rebuildsbuild/ws/ws, overriding cached TLS backend selections.make -f makefile.dev test_network_frameworkbuilds and runs the native TLS integration tests. The backend currently requires macOS 10.15+; custom cipher strings and adoption of existing BSD sockets are explicitly unsupported.Align the runtime version header with the latest published release, v12.0.1, and the existing CMake project version. The branch includes current master through ae091a9.
Validation on macOS 26.4:
otool -Lconfirms no OpenSSL library linkage../build/ws/ws --versionreportsws ixwebsocket/12.0.1 macos ssl/Network.framework zlib 1.2.12.The openssl command-line tool is used only to generate temporary test credentials; no system keychain changes are made.