Skip to content

Fix FEATURE_DISTRO_AGNOSTIC_SSL guards in ECC import/export#129332

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-build-breaks
Closed

Fix FEATURE_DISTRO_AGNOSTIC_SSL guards in ECC import/export#129332
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-build-breaks

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This fixes the native crypto build break caused by #if FEATURE_DISTRO_AGNOSTIC_SSL in non-portable builds, where the macro is not defined and -Wundef turns the check into a hard error.

Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot June 12, 2026 14:57
Copilot AI requested a review from jkotas June 12, 2026 14:58
@jkotas jkotas marked this pull request as ready for review June 12, 2026 15:29
Copilot AI review requested due to automatic review settings June 12, 2026 15:29
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security
See info in area-owners.md if you want to be subscribed.

@jkotas jkotas closed this Jun 12, 2026
@jkotas jkotas reopened this Jun 12, 2026
@jkotas

jkotas commented Jun 12, 2026

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes native crypto (OpenSSL) compilation under non-portable builds with -Wundef by avoiding #if FEATURE_DISTRO_AGNOSTIC_SSL when the macro may be undefined, aligning these guards with the existing #ifdef FEATURE_DISTRO_AGNOSTIC_SSL pattern used elsewhere in the same component.

Changes:

  • Replaced three #if FEATURE_DISTRO_AGNOSTIC_SSL directives with #ifdef FEATURE_DISTRO_AGNOSTIC_SSL in ECC import/export code paths.
  • Prevented -Wundef (and -Werror-promoted) build failures when FEATURE_DISTRO_AGNOSTIC_SSL is not defined.

@jkotas

jkotas commented Jun 12, 2026

Copy link
Copy Markdown
Member

Duplicate of #129330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants