Skip to content

sectrust and ocsp checks - #23486

Closed
icing wants to merge 3 commits into
curl:masterfrom
icing:sectrust-ocps-fixes
Closed

icing wants to merge 3 commits into
curl:masterfrom
icing:sectrust-ocps-fixes

Conversation

@icing

@icing icing commented Oct 19, 2026

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread lib/vtls/apple.c Resolved
Comment thread lib/vtls/gtls.c Resolved
Comment thread lib/vtls/gtls.c Resolved
@bagder bagder closed this in 84a4c39 Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants