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 Michaël Zasso committed 2025-05-31 13:30:46 +02:00
1 parent 4629b18397
commit 5fc4706280
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([