test: adapt tests for OpenSSL 3.1

PR-URL: https://github.com/nodejs/node/pull/47859
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
OttoHollmann authored and Michaël Zasso committed 2023-06-04 14:31:11 +02:00
1 parent 3b00f3afef
commit 9875885357
6 files changed
+24 -4

No files matched your search

@@ -56,6 +56,7 @@ function faultyServer(port) {
function second(server, session) {
const req = https.request({
port: server.address().port,
ciphers: (common.hasOpenSSL31 ? 'DEFAULT:@SECLEVEL=0' : 'DEFAULT'),
rejectUnauthorized: false
}, function(res) {
res.resume();