Skip to content

Commit 28ae654

Browse files
authored
Merge pull request #321 from DavidVujic/remove_fips_mode_check_for_all_envs
Remove the OpenSSSL FIPS_mode check for Linux, Mac OS X and Windows
2 parents 39282d6 + b4e4f63 commit 28ae654

File tree

11 files changed

+19
-9
lines changed

11 files changed

+19
-9
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
run-on-windows:
4242
executor: win/default
4343
steps:
44+
- run: choco install cmake -y --installargs 'ADD_CMAKE_TO_PATH=System'
4445
- checkout
4546
- nvminstall
4647
- deps

CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
#### v 5.5.0 (2022-10-17)
2+
* fix: Remove the OpenSSSL FIPS_mode check for Linux, Mac OS X and Windows.
3+
4+
feat: Rebuild the prebuilds for Mac OS X and Windows, using Node.js 16.17.0.
5+
6+
feat: Remove the prebuilds for Node.js 14.
7+
8+
Pull request [321](https://github.com/yfinkelstein/node-zookeeper/pull/321) by @davidvujic
9+
* fix: remove code using FIPS_mode which is not available on all distros. Pull request [318](https://github.com/yfinkelstein/node-zookeeper/pull/319) by @dreusel
10+
111
#### v 5.4.0 (2022-04-18)
2-
* feat: starting the zookeeper client in a Node.js Worker thread Pull request [310](https://github.com/yfinkelstein/node-zookeeper/pull/310) by @deepcoldy
12+
* feat: starting the zookeeper client in a Node.js Worker thread. Pull request [310](https://github.com/yfinkelstein/node-zookeeper/pull/310) by @deepcoldy
313

414
#### v 5.3.2 (2022-02-16)
515
* fix: handle normalize path with slashes in all platforms. Pull request [305](https://github.com/yfinkelstein/node-zookeeper/pull/305) by @hufeng

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zookeeper",
33
"description": "apache zookeeper client (zookeeper async API v3.4.x - v3.7.x)",
4-
"version": "5.4.0",
4+
"version": "5.5.0",
55
"author": "Yuri Finkelstein <[email protected]>",
66
"license": "MIT",
77
"contributors": [

prebuilds/README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ Each platform has prebuilds for Node.js 12 and 14.
88
Create prebuilds for Mac OS X:
99

1010
```bash
11-
npx prebuildify --arch x64 --platform darwin --target 14.15.4
12-
npx prebuildify --arch x64 --platform darwin --target 16.13.1
11+
npx prebuildify --arch x64 --platform darwin --target 16.17.0
1312
```
1413

1514
Prebuilds for Mac OS X with the M1 processor:
1615
```bash
17-
npx prebuildify --arch arm64 --platform darwin --target 16.13.1
16+
npx prebuildify --arch arm64 --platform darwin --target 16.17.0
1817
```
1918

2019
Create prebuilds for Windows 10:
2120

2221
```bash
23-
npx prebuildify --arch x64 --platform win32 --target 14.15.4
24-
npx prebuildify --arch x64 --platform win32 --target 16.13.1
22+
npx prebuildify --arch x64 --platform win32 --target 16.17.0
2523
```
-16 Bytes
Binary file not shown.

prebuilds/darwin-x64/node.abi83.node

-319 KB
Binary file not shown.

prebuilds/darwin-x64/node.abi93.node

-16 Bytes
Binary file not shown.

prebuilds/win32-x64/node.abi83.node

-273 KB
Binary file not shown.

prebuilds/win32-x64/node.abi93.node

0 Bytes
Binary file not shown.

scripts/env.js

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const variables = {
3434
sourceFolder: `${rootFolder}/deps/zookeeper-client-c`,
3535
downloadedFileName,
3636
isWindows,
37-
isLinux: process.platform === 'linux',
3837
isVerbose: !!process.env.ZK_INSTALL_VERBOSE,
3938
};
4039

scripts/prepublish.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ function applyPatches() {
1818
shell.sed('-i', '#include "zookeeper_log.h"', '#include "zookeeper_log.h"\n#include "winport.h"\n', `${destination}/zk_log.c`);
1919
shell.sed('-i', '#include "zookeeper.h"', '#include "winport.h"\n#include "zookeeper.h"\n', `${destination}/zk_adaptor.h`);
2020
shell.sed('-i', '#include "zk_adaptor.h"', '#include "zk_adaptor.h"\n#include "winport.h"\n', `${destination}/zookeeper.c`);
21-
} else if (env.isLinux) {
21+
shell.sed('-i', /(FIPS_mode\(\) == 0)/, '0 == 0', `${destination}/zookeeper.c`);
22+
shell.sed('-i', /(FIPS mode is OFF)/, 'Disabled the FIPS check', `${destination}/zookeeper.c`);
23+
} else {
2224
shell.exec(`patch -d ${env.rootFolder} -p0 --forward < ${env.workFolder}/no-fipsmode.patch`);
2325
}
2426
}

0 commit comments

Comments
 (0)