Repository navigation
sectrust and ocsp checks - #23486
Closed
icing wants to merge 3 commits into
Closed
sectrust and ocsp checks#23486icing wants to merge 3 commits into
icing wants to merge 3 commits into
Conversation
icing
commented
Oct 19, 2026
Contributor
- When the linked Apple SecTrust does not support OCSP checks, fail a required OCSP presence unconditionally.
- Have gnutls always forward ocsp data and verifystatus to sectrust checks when invoked. Remember a sectrust ocsp verificion to skip the additonal checks of GnuTLS performed ocsp handling.
- When the linked Apple SecTrust does not support OCSP checks, fail a required OCSP presence unconditionally. - Have gnutls always forward ocsp data and verifystatus to sectrust checks when invoked. Remember a sectrust ocsp verificion to skip the additonal checks of GnuTLS performed ocsp handling.
There was a problem hiding this comment.
🟡 Changes recommended
Required OCSP verification can incorrectly succeed, and SecTrust OCSP errors can be lost.
3 open issues
What changed in this PR
Updates OCSP verification across libcurl’s GnuTLS and Apple SecTrust integration.
Changes:
- Forwards OCSP data and verification requirements to SecTrust.
- Tracks successful SecTrust verification to avoid duplicate GnuTLS checks.
- Adds an error path for required OCSP checks on unsupported Apple builds.
| File | Description |
|---|---|
| lib/vtls/gtls.c | Integrates SecTrust OCSP handling and adjusts error classification. |
| lib/vtls/apple.c | Attempts to reject required OCSP checks when support is unavailable. |
Review effort: Balanced
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.

