mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
Revert "test: skip different params test for OpenSSL 3.x"
This reverts commit 269f5132cc.
Fixes: https://github.com/nodejs/node/issues/38216
PR-URL: https://github.com/nodejs/node/pull/40640
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
3055edec2f
commit
38fd30f34b
1 file changed
+4
-8
@@ -144,17 +144,13 @@ test(crypto.generateKeyPairSync('dh', { group: 'modp5' }),
|
||||
test(crypto.generateKeyPairSync('dh', { group: 'modp5' }),
|
||||
crypto.generateKeyPairSync('dh', { prime: group.getPrime() }));
|
||||
|
||||
const list = [];
|
||||
// Same generator, but different primes.
|
||||
// TODO(danbev) only commenting out this so that we can get our CI build
|
||||
// to pass. I'll continue looking into the cause/change.
|
||||
// [{ group: 'modp5' }, { group: 'modp18' }]];
|
||||
const list = [
|
||||
// Same generator, but different primes.
|
||||
[{ group: 'modp5' }, { group: 'modp18' }]];
|
||||
|
||||
// TODO(danbev): Take a closer look if there should be a check in OpenSSL3
|
||||
// when the dh parameters differ.
|
||||
if (!common.hasOpenSSL3) {
|
||||
// Same generator, but different primes.
|
||||
list.push([{ group: 'modp5' }, { group: 'modp18' }]);
|
||||
// Same primes, but different generator.
|
||||
list.push([{ group: 'modp5' }, { prime: group.getPrime(), generator: 5 }]);
|
||||
// Same generator, but different primes.
|
||||
@@ -167,7 +163,7 @@ for (const [params1, params2] of list) {
|
||||
crypto.generateKeyPairSync('dh', params2));
|
||||
}, common.hasOpenSSL3 ? {
|
||||
name: 'Error',
|
||||
code: 'ERR_OSSL_DH_INVALID_PUBLIC_KEY'
|
||||
code: 'ERR_OSSL_MISMATCHING_DOMAIN_PARAMETERS'
|
||||
} : {
|
||||
name: 'Error',
|
||||
code: 'ERR_OSSL_EVP_DIFFERENT_PARAMETERS'
|
||||
|
||||
Reference in new issue
Block a user