Skip to content

sectrust: add guards for rest of Apple OS flavors - #23149

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:apple-os-more
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:apple-os-more

Conversation

@vszakats

@vszakats vszakats commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Refs:
https://developer.apple.com/documentation/security/secpolicycreaterevocation(_:)?language=objc
https://developer.apple.com/documentation/security/sectrustevaluatewitherror(_:_:)?language=objc

Also:

  • checked rest of Apple version guards if they support more OS flavors,
    and did not find anything missing, according to SDK 26 headers and
    online documentation.

Ref: #23126 (comment)

@vszakats vszakats added TLS appleOS specific to an Apple operating system build labels Sep 28, 2026
@vszakats
vszakats requested a balanced review from Copilot September 28, 2026 22:05

This comment was marked as outdated.

Copilot:

"These new availability names are parsed on every build that defines
`SUPPORTS_SecOCSP`, including macOS builds with older Xcode.
`HAVE_BUILTIN_AVAILABLE` only probes `macOS`/`iOS`
(`CMake/CurlTests.c:334` and `acinclude.m4:1521`), so a compiler
predating the `visionOS` spelling rejects this with “unrecognized
platform name” even though it supports the builtin. Since visionOS and
Mac Catalyst expose this API from their initial versions, the
wildcard/current iOS handling already makes this branch available there;
keep the older compiler-compatible expression (or add a separate feature
probe before spelling newer platform names)."

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.

Copilot review overview

🟢 Approval recommended

The platform versions align with the affected Security APIs and existing availability handling.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@vszakats vszakats closed this in 05aea50 Sep 28, 2026
@vszakats
vszakats deleted the apple-os-more branch September 28, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system build TLS

Development

Successfully merging this pull request may close these issues.

2 participants