Skip to content

Conversation

@richardlau
Copy link
Member

OpenSSL versions before 3.0.0 do not define

  • OPENSSL_VERSION_MAJOR
  • OPENSSL_VERSION_MINOR
  • OPENSSL_VERSION_PATCH

in openssl/opensslv.h. For these versions, OPENSSL_VERSION_NUMBER is a literal which we can parse directly.


Noticed this in, e.g. https://ci.nodejs.org/job/node-test-commit-linux-containered/53610/nodes=ubuntu2404_sharedlibs_openssl111_x64/consoleFull

08:02:34                  'openssl_version': 15,

it should instead be

                 'openssl_version': 269488511,

(269488511 = 0x1010117F)

FWIW I'm planning a follow up a PR after this to warn for OpenSSL versions < 3. I've kept the changes separate as this PR should land on v25.x but the warning for OpenSSL < 3 would be semver-major.

OpenSSL versions before 3.0.0 do not define
- `OPENSSL_VERSION_MAJOR`
- `OPENSSL_VERSION_MINOR`
- `OPENSSL_VERSION_PATCH`

in `openssl/opensslv.h`. For these versions, `OPENSSL_VERSION_NUMBER`
is a literal which we can parse directly.
@richardlau richardlau added dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. labels Nov 18, 2025
@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. labels Nov 18, 2025
@richardlau

This comment was marked as outdated.

@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 18, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 18, 2025
@nodejs-github-bot
Copy link
Collaborator

@richardlau
Copy link
Member Author

it should instead be

                 'openssl_version': 269488511,

(269488511 = 0x1010117F)

For this PR: https://ci.nodejs.org/job/node-test-commit-linux-containered/53614/nodes=ubuntu2404_sharedlibs_openssl111_x64/consoleFull

15:10:07                  'openssl_version': 269488511,

@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 18, 2025
@richardlau richardlau added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 18, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 20, 2025
@nodejs-github-bot nodejs-github-bot merged commit 0771137 into nodejs:main Nov 20, 2025
99 of 109 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 0771137

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

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. build Issues and PRs related to build files or the CI. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants