Skip to content

Conversation

@josephnoir
Copy link
Contributor

Motivation:

In some scenarios a server might want to accept connections from both, authenticated and not authenticated peers and defer decisions after the handshake. This new options allows a host to only do TLS verificaiton if the peer presents certificates and accept connections otherwise.

Modifications:

Add a new associated value to the none case of
CertificationVerification to maintain backwards compatibility. This option enables opportunistic verification.

Result:

A new configuration case for TLS verification.

josephnoir and others added 4 commits October 27, 2025 17:21
Motivation:

In some scenarios a server might want to accept connections from both,
authenticated and not authenticated peers and defer decisions after the
handshake. This new options allows a host to only do TLS
verificaiton if the peer presents certificates and accept connections
otherwise.

Modifications:

Add a new associated value to the `none` case of
`CertificationVerification` to maintain backwards compatibility. This
option enables opportunistic verification.

Result:

A new configuration case for TLS verification.
@josephnoir josephnoir added the 🆕 semver/minor Adds new public API. label Oct 29, 2025
@josephnoir josephnoir marked this pull request as ready for review October 29, 2025 13:34
@Lukasa Lukasa merged commit 173cc69 into apple:main Oct 29, 2025
47 of 48 checks passed
@josephnoir josephnoir deleted the opportunistic-tls-verification branch October 29, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants