Skip to content

Commit a75d6b5

Browse files
committed
test: update parallel/test-tls-dhe for OpenSSL 3.5
The output of the `s_client` command invoked by the test has changed in the OpenSSL 3.5.0 version of `s_client`. Update the test so that it works with both the old and new output -- the `s_client` binary being run may not be at the exact same version of OpenSSL as used by Node.js so the updated test allows either output.
1 parent 3cf14f8 commit a75d6b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/parallel/test-tls-dhe.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ function test(dhparam, keylen, expectedCipher) {
8585

8686
execFile(opensslCli, args, common.mustSucceed((stdout) => {
8787
assert(keylen === null ||
88-
stdout.includes(`Server Temp Key: DH, ${keylen} bits`));
88+
// s_client < OpenSSL 3.5
89+
stdout.includes(`Server Temp Key: DH, ${keylen} bits`) ||
90+
// s_client >= OpenSSL 3.5
91+
stdout.includes(`Peer Temp Key: DH, ${keylen} bits`));
8992
assert(stdout.includes(`Cipher : ${expectedCipher}`));
9093
server.close();
9194
}));

0 commit comments

Comments
 (0)