Skip to content

Remove RSA guard for OSSL#127192

Merged
steveisok merged 3 commits intodotnet:mainfrom
PranavSenthilnathan:fix-build-rsa-primitive
Apr 22, 2026
Merged

Remove RSA guard for OSSL#127192
steveisok merged 3 commits intodotnet:mainfrom
PranavSenthilnathan:fix-build-rsa-primitive

Conversation

@PranavSenthilnathan
Copy link
Copy Markdown
Member

@PranavSenthilnathan PranavSenthilnathan commented Apr 20, 2026

Fixes #127154

Removes the check for deprecated RSA APIs. This was intended to detect if the APIs were removed in some future version of OSSL but the Linux build isn't detecting it correctly. Since all the OSSL versions currently still have the APIs, it's safe to remove the guard to unlock the build.

Copy link
Copy Markdown
Contributor

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.

Pull request overview

Updates OpenSSL feature detection to avoid compilation failures when probing deprecated RSA APIs during CMake configuration (fixing the reported Mono build break on linux bionic arm64).

Changes:

  • Switch RSA legacy API detection from a check_source_compiles snippet (including <openssl/rsa.h>) to check_function_exists(RSA_new).
  • Keep HAVE_OPENSSL_RSA_PRIMITIVE feature flag generation intact while making the probe less header-sensitive.

@PranavSenthilnathan
Copy link
Copy Markdown
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

This was referenced Apr 21, 2026
@steveisok
Copy link
Copy Markdown
Member

/azp run runtime-linuxbionic

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@PranavSenthilnathan
Copy link
Copy Markdown
Member Author

/azp run runtime-linuxbionic

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@steveisok
Copy link
Copy Markdown
Member

Weird, not sure what's up with the linux-bionic pipeline.

@steveisok
Copy link
Copy Markdown
Member

/azp run runtime-extra-platforms

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copilot AI review requested due to automatic review settings April 22, 2026 01:29
@PranavSenthilnathan
Copy link
Copy Markdown
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread src/native/libs/System.Security.Cryptography.Native/configure.cmake
Comment thread src/native/libs/System.Security.Cryptography.Native/opensslshim.h
@steveisok
Copy link
Copy Markdown
Member

/ba-g Unrealted failures - prioritizing merge to unblock the VMR build.

@steveisok steveisok merged commit 0606b0a into dotnet:main Apr 22, 2026
62 of 166 checks passed
@PranavSenthilnathan PranavSenthilnathan changed the title Use check_function_exists for deprecated OSSL RSA function Remove RSA guard for OSSL Apr 22, 2026
@PranavSenthilnathan PranavSenthilnathan deleted the fix-build-rsa-primitive branch April 22, 2026 23:16
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.

Mono build fails on linux bionic arm64: conflicting types for 'EVP_PKEY_get0_RSA'

3 participants