test: leverage process.features.openssl_is_boringssl in test

PR-URL: https://github.com/nodejs/node/pull/58421
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Shelley Vohr authored and Antoine du Hamel committed 2025-06-10 14:52:20 +02:00
1 parent b3e0cf1b15
commit 99a20902fc
6 files changed
+50 -23

No files matched your search

@@ -13,23 +13,31 @@ const options = {
cert: fixtures.readKey('agent1-cert.pem'),
ca: fixtures.readKey('ca1-cert.pem'),
minVersion: 'TLSv1.1',
ciphers: 'ALL@SECLEVEL=0'
};
if (!process.features.openssl_is_boringssl) {
options.ciphers = 'ALL@SECLEVEL=0';
}
const server = https.Server(options, (req, res) => {
res.writeHead(200);
res.end('hello world\n');
});
function getBaseOptions(port) {
return {
const baseOptions = {
path: '/',
port: port,
ca: options.ca,
rejectUnauthorized: true,
servername: 'agent1',
ciphers: 'ALL@SECLEVEL=0'
};
if (!process.features.openssl_is_boringssl) {
baseOptions.ciphers = 'ALL@SECLEVEL=0';
}
return baseOptions;
}
const updatedValues = new Map([