-
Notifications
You must be signed in to change notification settings - Fork 3
feat(NODE-5875): provide native crypto hooks for OpenSSL 3 #25
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
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
21e1e6b
fix(NODE-XXXX): provide native crypto hooks for OpenSSL 3
addaleax f44683c
fixup: C++-ify source
addaleax 0636567
fixup: use templates to further reduce boilerplate
addaleax bc210a9
fixup: log crypto hooks value in benchmarks
addaleax a03d4cd
fixup: clang-format
addaleax 2cdb53a
chore: add testing to native SSL hooks (#31)
nbbeeken 4178695
chore: run on correct linux version
nbbeeken 67b0286
fix: include stdexcept for linux
nbbeeken 2575d47
chore: lint
nbbeeken c1c6abd
fix: import issue on windows
nbbeeken 41c17de
chore: build and test separated
nbbeeken 9b910d4
chore: add crypto callbacks to src
nbbeeken 354d982
fix: exports test
nbbeeken 9c405b8
chore: update files
nbbeeken a5cd1e8
chore: set JS callbacks by default
nbbeeken b010fa9
chore: preserve old option passing behavior
nbbeeken 3886c37
fix: do not try to use OpenSSL when building for Electron
addaleax 8e15879
chore: clang-format
addaleax f5c7fd2
chore: revert expressionMode optionality
nbbeeken 414f95e
chore: code review comment re: static inline struct
addaleax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: {} | ||
|
||
name: Test | ||
|
||
jobs: | ||
host_tests: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-2019] | ||
node: [16.x, 18.x, 20.x, 22.x] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Build with Node.js ${{ matrix.node }} on ${{ matrix.os }} | ||
run: node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }} | ||
shell: bash | ||
|
||
- name: Test ${{ matrix.os }} | ||
shell: bash | ||
run: npm run test | ||
|
||
container_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
linux_arch: [s390x, arm64, amd64] | ||
node: [16.x, 18.x, 20.x, 22.x] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Get Full Node.js Version | ||
id: get_nodejs_version | ||
shell: bash | ||
run: | | ||
echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT" | ||
echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Run Buildx | ||
run: | | ||
docker buildx create --name builder --bootstrap --use | ||
docker buildx build \ | ||
--platform linux/${{ matrix.linux_arch }} \ | ||
--build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \ | ||
--build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \ | ||
--build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \ | ||
--build-arg="RUN_TEST=true" \ | ||
--output type=local,dest=./prebuilds,platform-split=false \ | ||
-f ./.github/docker/Dockerfile.glibc \ | ||
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.