Skip to content

Fix non-portable build for < OpenSSL 3.4 #113965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

vcsjones
Copy link
Member

The build was checking to see if HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT was defined, however because we use cmakedefine01 in the build, it is always defined. We care about the value of the define, not if it is defined or not. This is different from NEED_OPENSSL_3_0, which uses the presence of the define or not.

/cc @tmds @omajid since y'all reported the initial build break.

The build was checking to see if HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT was defined, however because we use cmakedefine01 in the build, it is always defined. We care about the value of the define, not if it is defined or not.
@vcsjones vcsjones requested review from krwq and Copilot March 27, 2025 13:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (2)
  • src/native/libs/System.Security.Cryptography.Native/openssl.c: Language not supported
  • src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_ml_dsa.c: Language not supported

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

Copy link
Contributor

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

@tmds
Copy link
Member

tmds commented Mar 27, 2025

Thanks @vcsjones!

I verified this fixes #113764 (comment).

@bartonjs
Copy link
Member

/ba-g Unrelated, known failures.

@vcsjones vcsjones merged commit c32f8d0 into dotnet:main Mar 27, 2025
97 of 101 checks passed
@vcsjones vcsjones deleted the fix-non-portable-build branch March 27, 2025 17:26
@vcsjones vcsjones added this to the 10.0.0 milestone Apr 8, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants