mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05:00
test: fix test-dh-regr for OpenSSL 3
PR-URL: https://github.com/nodejs/node/pull/34289 Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
1 parent
213ae4f4c6
commit
8cee28465c
1 file changed
+1
-1
@@ -29,7 +29,7 @@ const crypto = require('crypto');
|
||||
|
||||
// FIPS requires length >= 1024 but we use 256 in this test to keep it from
|
||||
// taking too long and timing out in CI.
|
||||
const length = common.hasFipsCrypto ? 1024 : 256;
|
||||
const length = (common.hasFipsCrypto || common.hasOpenSSL3) ? 1024 : 256;
|
||||
|
||||
const p = crypto.createDiffieHellman(length).getPrime();
|
||||
|
||||
|
||||
Reference in new issue
Block a user